Skip to main content

Update a consignment

PATCH /v1/consignments/{id}

Changes the fields you send.

Authentication​

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

Path parameters​

NameTypeRequired
idstringyes

Request body​

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

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 PATCH 'https://orders-api.cloud.zoopit.no/v1/consignments/{id}'
-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.