Supplier Location
The supplier location resource.
Basehttps://rest.carbon.ms/supplierLocation
GET
/supplierLocationList supplier locations
Retrieve a paginated list of supplier locations. 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.
GEThttps://rest.carbon.ms/supplierLocation
curl --request GET \
--url 'https://rest.carbon.ms/supplierLocation?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'Response
[
{
"id": "abc123def456",
"supplierId": "xyz789",
"addressId": "xyz789",
"name": "Example",
"customFields": "string",
"tags": []
}
]GET
/supplierLocationRetrieve a supplier location
Fetch a single supplier location by filtering on `id`.
Query parameters
idstringMatch on the supplier location's `id`, e.g. `eq.{id}`.
GEThttps://rest.carbon.ms/supplierLocation
curl --request GET \
--url 'https://rest.carbon.ms/supplierLocation?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'Response
{
"id": "abc123def456",
"supplierId": "xyz789",
"addressId": "xyz789",
"name": "Example",
"customFields": "string",
"tags": []
}POST
/supplierLocationCreate a supplier location
Create a new supplier location.
Body parameters
supplierIdstringrequiredReferences supplier.id
addressIdstringrequiredReferences address.id
customFieldsobjectnamestringrequiredtagsarrayPOSThttps://rest.carbon.ms/supplierLocation
curl --request POST \
--url https://rest.carbon.ms/supplierLocation \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"supplierId":"xyz789","addressId":"xyz789","name":"Example"}'Response
{
"id": "abc123def456",
"supplierId": "xyz789",
"addressId": "xyz789",
"name": "Example",
"customFields": "string",
"tags": []
}PATCH
/supplierLocationUpdate a supplier location
Update an existing supplier location, matched on `id`.
Body parameters
supplierIdstringrequiredReferences supplier.id
addressIdstringrequiredReferences address.id
customFieldsobjectnamestringrequiredtagsarrayPATCHhttps://rest.carbon.ms/supplierLocation
curl --request PATCH \
--url 'https://rest.carbon.ms/supplierLocation?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"supplierId":"xyz789"}'Response
{
"id": "abc123def456",
"supplierId": "xyz789",
"addressId": "xyz789",
"name": "Example",
"customFields": "string",
"tags": []
}DELETE
/supplierLocationDelete a supplier location
Delete a supplier location, matched on `id`. Returns 204 No Content.
Query parameters
idstringThe `id` of the supplier location to delete, e.g. `eq.{id}`.
DELETEhttps://rest.carbon.ms/supplierLocation
curl --request DELETE \
--url 'https://rest.carbon.ms/supplierLocation?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'204 No Content