Supplier
The supplier resource.
/supplierList suppliers
Retrieve a paginated list of suppliers. 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/supplier?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'[
{
"id": "abc123def456",
"name": "Example",
"companyId": "xyz789",
"createdAt": "2026-01-01T00:00:00Z",
"taxPercent": 0,
"supplierTypeId": "xyz789",
"accountManagerId": "xyz789",
"logo": "string"
}
]/supplierRetrieve a supplier
Fetch a single supplier by filtering on `id`.
Query parameters
idstringMatch on the supplier's `id`, e.g. `eq.{id}`.
curl --request GET \
--url 'https://rest.carbon.ms/supplier?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'{
"id": "abc123def456",
"name": "Example",
"companyId": "xyz789",
"createdAt": "2026-01-01T00:00:00Z",
"taxPercent": 0,
"supplierTypeId": "xyz789",
"accountManagerId": "xyz789",
"logo": "string"
}/supplierCreate a supplier
Create a new supplier.
Body parameters
namestringrequiredsupplierTypeIdstringReferences supplierType.id
accountManagerIdstringReferences user.id
logostringassigneestringReferences user.id
companyIdstringrequiredReferences company.id
customFieldsobjectcurrencyCodestringReferences currencyCode.code
phonestringfaxstringwebsitestringtagsarraytaxPercentnumberrequiredembeddingstringpurchasingContactIdstringReferences supplierContact.id
defaultCcarraysupplierStatussupplierStatusTypeintercompanyCompanyIdstringReferences company.id
curl --request POST \
--url https://rest.carbon.ms/supplier \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"name":"Example","companyId":"xyz789","taxPercent":0}'{
"id": "abc123def456",
"name": "Example",
"companyId": "xyz789",
"createdAt": "2026-01-01T00:00:00Z",
"taxPercent": 0,
"supplierTypeId": "xyz789",
"accountManagerId": "xyz789",
"logo": "string"
}/supplierUpdate a supplier
Update an existing supplier, matched on `id`.
Body parameters
namestringrequiredsupplierTypeIdstringReferences supplierType.id
accountManagerIdstringReferences user.id
logostringassigneestringReferences user.id
companyIdstringrequiredReferences company.id
customFieldsobjectcurrencyCodestringReferences currencyCode.code
phonestringfaxstringwebsitestringtagsarraytaxPercentnumberrequiredembeddingstringpurchasingContactIdstringReferences supplierContact.id
defaultCcarraysupplierStatussupplierStatusTypeintercompanyCompanyIdstringReferences company.id
curl --request PATCH \
--url 'https://rest.carbon.ms/supplier?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"name":"Example"}'{
"id": "abc123def456",
"name": "Example",
"companyId": "xyz789",
"createdAt": "2026-01-01T00:00:00Z",
"taxPercent": 0,
"supplierTypeId": "xyz789",
"accountManagerId": "xyz789",
"logo": "string"
}/supplierDelete a supplier
Delete a supplier, matched on `id`. Returns 204 No Content.
Query parameters
idstringThe `id` of the supplier to delete, e.g. `eq.{id}`.
curl --request DELETE \
--url 'https://rest.carbon.ms/supplier?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'