Shipment
The shipment resource.
/shipmentList shipments
Retrieve a paginated list of shipments. 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/shipment?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'[
{
"id": "abc123def456",
"shipmentId": "xyz789",
"status": "string",
"companyId": "xyz789",
"createdAt": "2026-01-01T00:00:00Z",
"createdBy": "string",
"locationId": "xyz789",
"sourceDocument": "string"
}
]/shipmentRetrieve a shipment
Fetch a single shipment by filtering on `id`.
Query parameters
idstringMatch on the shipment's `id`, e.g. `eq.{id}`.
curl --request GET \
--url 'https://rest.carbon.ms/shipment?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'{
"id": "abc123def456",
"shipmentId": "xyz789",
"status": "string",
"companyId": "xyz789",
"createdAt": "2026-01-01T00:00:00Z",
"createdBy": "string",
"locationId": "xyz789",
"sourceDocument": "string"
}/shipmentCreate a shipment
Create a new shipment.
Body parameters
shipmentIdstringrequiredlocationIdstringReferences location.id
sourceDocumentshipmentSourceDocumentsourceDocumentIdstringsourceDocumentReadableIdstringshippingMethodIdstringReferences shippingMethod.id
trackingNumberstringcustomerIdstringReferences customer.id
statusshipmentStatusrequiredpostingDatedatepostedBystringReferences user.id
invoicedbooleanassigneestringReferences user.id
internalNotesobjectexternalNotesobjectopportunityIdstringReferences opportunity.id
companyIdstringrequiredReferences company.id
tagsarraycustomFieldsobjectsupplierIdstringReferences supplier.id
supplierInteractionIdstringReferences supplierInteraction.id
externalDocumentIdstringcurl --request POST \
--url https://rest.carbon.ms/shipment \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"shipmentId":"xyz789","status":"string","companyId":"xyz789"}'{
"id": "abc123def456",
"shipmentId": "xyz789",
"status": "string",
"companyId": "xyz789",
"createdAt": "2026-01-01T00:00:00Z",
"createdBy": "string",
"locationId": "xyz789",
"sourceDocument": "string"
}/shipmentUpdate a shipment
Update an existing shipment, matched on `id`.
Body parameters
shipmentIdstringrequiredlocationIdstringReferences location.id
sourceDocumentshipmentSourceDocumentsourceDocumentIdstringsourceDocumentReadableIdstringshippingMethodIdstringReferences shippingMethod.id
trackingNumberstringcustomerIdstringReferences customer.id
statusshipmentStatusrequiredpostingDatedatepostedBystringReferences user.id
invoicedbooleanassigneestringReferences user.id
internalNotesobjectexternalNotesobjectopportunityIdstringReferences opportunity.id
companyIdstringrequiredReferences company.id
tagsarraycustomFieldsobjectsupplierIdstringReferences supplier.id
supplierInteractionIdstringReferences supplierInteraction.id
externalDocumentIdstringcurl --request PATCH \
--url 'https://rest.carbon.ms/shipment?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"shipmentId":"xyz789"}'{
"id": "abc123def456",
"shipmentId": "xyz789",
"status": "string",
"companyId": "xyz789",
"createdAt": "2026-01-01T00:00:00Z",
"createdBy": "string",
"locationId": "xyz789",
"sourceDocument": "string"
}/shipmentDelete a shipment
Delete a shipment, matched on `id`. Returns 204 No Content.
Query parameters
idstringThe `id` of the shipment to delete, e.g. `eq.{id}`.
curl --request DELETE \
--url 'https://rest.carbon.ms/shipment?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'