Shipments
Shipment endpoints handle creation, retrieval, and cancellation.
Create shipment
POST /shipments
Creates a shipment and returns the identifiers needed for operational processing and customer visibility.
Key request fields:
externalOrderIdquoteIdserviceLevelsenderrecipientparcelscodAmount
Headers:
X-API-KeyIdempotency-Key
Key response fields:
shipmentIdtrackingNumberstatuslabelUrl
Retrieve shipment
GET /shipments/{shipmentId}
Returns the current shipment record by Aquiline shipment identifier.
Cancel shipment
POST /shipments/{shipmentId}/cancel
Cancels a shipment when the operational state still allows cancellation.
Integration guidance
- Persist both
shipmentIdandtrackingNumber - Store idempotency keys with original payloads
- Surface shipment exceptions to customer support tooling