Skip to main content

Create a consignment

POST /v1/consignments

Orders join a consignment through consignment_id, or create one inline with POST /v1/orders.

Authentication​

Send a token issued in the Zoopit dashboard as Authorization: Bearer <token>.

Request body​

FieldTypeRequired
tracking_numbernull or string
barcode_linearnull or string
barcode_2dnull or string
cargoarray of object
ownerstringyes
carrierobject
deliveryobject
recipientobject
senderobject

Responses​

201​

resource: PartialConsignmentWithId

FieldTypeRequired
attributesobject
deliveryobject
created_atstring
modified_atnull or string
deleted_atnull or string
created_bystring
modified_bynull or string
deleted_bynull or string
ownersarray of string
tagsarray of string
tracking_numbernull or string
barcode_linearnull or string
barcode_2dnull or string
senderobject
recipientobject
carrierobject
cargoarray of object
idstringyes

Example​

curl -X POST 'https://orders-api.cloud.zoopit.no/v1/consignments'
-H 'Authorization: Bearer <token>'
-H 'Content-Type: application/json'
-d '{ ... }'

Try it in the interactive Orders API reference.

Field descriptions, guides and worked examples are in the full reference, available to customers in the Zoopit dashboard under Accounts → Developer.