Skip to main content

Create

The response

201 with Location and ETag headers:
deliveryFeeAmount is the merchant delivery charge frozen on the shipment — the quoted price when you passed quoteId. codAmount is collected from the recipient and is separate.

Quote refusals

Other refusals

A pickup window outside the pickup location’s hours is refused with 422 PICKUP_OUTSIDE_OPERATING_HOURS. Field validation failures are 422 VALIDATION_FAILED with a violations list naming each field (including an invalid Idempotency-Key).
Creation accepts any destination; dispatch offers the shipment to the nearest available driver. Serviceability tells you in advance whether a delivery company covers the destination.

Retries are already safe

See Idempotency and ETags.

Read

Same shape as the create response, plus — while they apply — eta and driver:
eta.target is PICKUP until pickup and DELIVERY after. eta is null before a driver accepts, right after pickup or a driver change until the next position arrives, and once the shipment has ended. driver shows the first name, phone, vehicle type, and plate.

Change

Send the shipment’s current version in If-Match. Send only what changes: A successful change returns 200 with the shipment and a new ETag, and sends shipment.updated.

Status

Treat status as a value to read, not a sequence to assume. A shipment may skip what looks like a step.

Proof and incidents

  • GET /api/v2/external/shipments/{id}/proof (shipments:read) returns pickedUpAt, pickupPhotoPath, deliveredAt, deliveryProofType (PHOTO), deliveryProofPath, and failureReasonCode. The paths point to /proof/pickup/content and /proof/delivery/content, which return the image (image/jpeg, Cache-Control: no-store) for the same bearer token. A missing image answers 404.
  • GET /api/v2/external/shipments/{id}/incidents (shipments:read) returns an array of {type, status, reasonCode, reportedAt, evidencePaths}: type is LOST, DAMAGED, or DELIVERY_FAILED; status is OPEN, RESOLVED, or FINAL. Each evidence path returns an image for the same token.
There is no list or search endpoint. Store the shipment id against your order, and use webhooks for progress.