Customer Shipping
The customer shipping resource.
/customerShippingList customer shippings
Retrieve a paginated list of customer shippings. 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/customerShipping?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'[
{
"customerId": "xyz789",
"companyId": "xyz789",
"shippingCustomerId": "xyz789",
"shippingCustomerLocationId": "xyz789",
"shippingCustomerContactId": "xyz789",
"shippingTermId": "xyz789",
"shippingMethodId": "xyz789",
"updatedAt": "2026-01-01T00:00:00Z"
}
]/customerShippingRetrieve a customer shipping
Fetch a single customer shipping by filtering on `customerId`.
Query parameters
customerIdstringMatch on the customer shipping's `customerId`, e.g. `eq.{id}`.
curl --request GET \
--url 'https://rest.carbon.ms/customerShipping?customerId=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'{
"customerId": "xyz789",
"companyId": "xyz789",
"shippingCustomerId": "xyz789",
"shippingCustomerLocationId": "xyz789",
"shippingCustomerContactId": "xyz789",
"shippingTermId": "xyz789",
"shippingMethodId": "xyz789",
"updatedAt": "2026-01-01T00:00:00Z"
}/customerShippingCreate a customer shipping
Create a new customer shipping.
Body parameters
shippingCustomerIdstringReferences customer.id
shippingCustomerLocationIdstringReferences customerLocation.id
shippingCustomerContactIdstringReferences customerContact.id
shippingTermIdstringReferences shippingTerm.id
shippingMethodIdstringReferences shippingMethod.id
companyIdstringrequiredReferences company.id
incotermstringincotermLocationstringcurl --request POST \
--url https://rest.carbon.ms/customerShipping \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"companyId":"xyz789"}'{
"customerId": "xyz789",
"companyId": "xyz789",
"shippingCustomerId": "xyz789",
"shippingCustomerLocationId": "xyz789",
"shippingCustomerContactId": "xyz789",
"shippingTermId": "xyz789",
"shippingMethodId": "xyz789",
"updatedAt": "2026-01-01T00:00:00Z"
}/customerShippingUpdate a customer shipping
Update an existing customer shipping, matched on `customerId`.
Body parameters
shippingCustomerIdstringReferences customer.id
shippingCustomerLocationIdstringReferences customerLocation.id
shippingCustomerContactIdstringReferences customerContact.id
shippingTermIdstringReferences shippingTerm.id
shippingMethodIdstringReferences shippingMethod.id
companyIdstringrequiredReferences company.id
incotermstringincotermLocationstringcurl --request PATCH \
--url 'https://rest.carbon.ms/customerShipping?customerId=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"shippingCustomerId":"xyz789"}'{
"customerId": "xyz789",
"companyId": "xyz789",
"shippingCustomerId": "xyz789",
"shippingCustomerLocationId": "xyz789",
"shippingCustomerContactId": "xyz789",
"shippingTermId": "xyz789",
"shippingMethodId": "xyz789",
"updatedAt": "2026-01-01T00:00:00Z"
}/customerShippingDelete a customer shipping
Delete a customer shipping, matched on `customerId`. Returns 204 No Content.
Query parameters
customerIdstringThe `customerId` of the customer shipping to delete, e.g. `eq.{id}`.
curl --request DELETE \
--url 'https://rest.carbon.ms/customerShipping?customerId=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'