Skip to main content
POST /v1/org/shipments/imports
Send up to 1000 shipments in one call, in the published structure. The call returns as soon as the batch is accepted — it does not wait for the shipments to be written. You get an importId; poll it for the outcome and read the rejected rows if any.
Sending the same shipment twice is safe. A shipmentId already in the ledger is updated, not duplicated — its goods lines are replaced by the ones you send. Retries, re-runs and corrected re-sends all do the right thing.

Authorization

string
required
Your organisation API key (dzk_live_…).

Body

Shipment[]
required
1–1000 shipments. See Shipment structure for every field. Each shipment needs at least one entry in items, at most 500, and the batch as a whole may carry at most 10,000 goods lines — send bigger runs as a file.
string
Your own reference for this push — a batch id, run date or filename. It is echoed on the import and recorded against every shipment it creates, so a shipment can be traced back to the run that sent it.
Unknown fields are rejected, not ignored. If you send weight where the structure says itemWeight, you get a 400 naming the field rather than a shipment that silently lost its weight.

Response

202 Accepted with the import’s id and where to poll it.

Errors