NO_DRIVER_AVAILABLE).
reason matches ^[A-Z][A-Z0-9_]{1,47}$ and defaults to MERCHANT_REQUESTED. The response is 200 with the shipment, now CANCELLED, with cancellationReasonCode and the frozen deliveryFeeAmount. Cancelling an already-cancelled shipment returns the same 200.
When it is refused
409 SHIPMENT_RETURN_REQUIRED — the parcel was picked up
409 SHIPMENT_RETURN_REQUIRED — the parcel was picked up
Example response:The delivery and custody history stay intact. With
Accept-Language: ar, title, detail, and nextAction are Arabic.422 VALIDATION_FAILED — the reason is malformed
422 VALIDATION_FAILED — the reason is malformed
reason did not match the pattern.404 RESOURCE_NOT_FOUND — no such shipment for this credential
404 RESOURCE_NOT_FOUND — no such shipment for this credential
The shipment does not exist, or it belongs to another merchant.
Retrying safely
Send anIdempotency-Key (16–128 characters) to make a retry return the original outcome; see Idempotency and ETags.