Supplier Contact
The supplier contact resource.
/supplierContactList supplier contacts
Retrieve a paginated list of supplier contacts. Filter, order, and select columns with PostgREST query parameters.
Query parameters
selectstringComma-separated columns to return. Defaults to all.
orderstringColumn to sort by, e.g. `createdAt.desc`.
limitintegerMaximum rows to return.
offsetintegerRows to skip, for pagination.
curl --request GET \
--url 'https://rest.carbon.ms/supplierContact?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'[
{
"id": "abc123def456",
"supplierId": "xyz789",
"contactId": "xyz789",
"supplierLocationId": "xyz789",
"userId": "xyz789",
"customFields": "string",
"tags": []
}
]/supplierContactRetrieve a supplier contact
Fetch a single supplier contact by filtering on `id`.
Query parameters
idstringMatch on the supplier contact's `id`, e.g. `eq.{id}`.
curl --request GET \
--url 'https://rest.carbon.ms/supplierContact?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'{
"id": "abc123def456",
"supplierId": "xyz789",
"contactId": "xyz789",
"supplierLocationId": "xyz789",
"userId": "xyz789",
"customFields": "string",
"tags": []
}/supplierContactCreate a supplier contact
Create a new supplier contact.
Body parameters
supplierIdstringrequiredReferences supplier.id
contactIdstringrequiredReferences contact.id
supplierLocationIdstringReferences supplierLocation.id
userIdstringReferences user.id
customFieldsobjecttagsarraycurl --request POST \
--url https://rest.carbon.ms/supplierContact \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"supplierId":"xyz789","contactId":"xyz789"}'{
"id": "abc123def456",
"supplierId": "xyz789",
"contactId": "xyz789",
"supplierLocationId": "xyz789",
"userId": "xyz789",
"customFields": "string",
"tags": []
}/supplierContactUpdate a supplier contact
Update an existing supplier contact, matched on `id`.
Body parameters
supplierIdstringrequiredReferences supplier.id
contactIdstringrequiredReferences contact.id
supplierLocationIdstringReferences supplierLocation.id
userIdstringReferences user.id
customFieldsobjecttagsarraycurl --request PATCH \
--url 'https://rest.carbon.ms/supplierContact?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"supplierId":"xyz789"}'{
"id": "abc123def456",
"supplierId": "xyz789",
"contactId": "xyz789",
"supplierLocationId": "xyz789",
"userId": "xyz789",
"customFields": "string",
"tags": []
}/supplierContactDelete a supplier contact
Delete a supplier contact, matched on `id`. Returns 204 No Content.
Query parameters
idstringThe `id` of the supplier contact to delete, e.g. `eq.{id}`.
curl --request DELETE \
--url 'https://rest.carbon.ms/supplierContact?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'