Customer returns
A customer return (dto) is a reverse pickup you request after a delivery. It is different from return to origin (rto), which follows an unsuccessful forward delivery. Reverse booking can contact a courier and incur charges.
POST /v1/orders/{order_id}/returns (scope shipments:write) books the specified SKUs. Its response contains shipments and failed_items: one dto shipment per booked piece, and an error for each refused SKU. Save each new shipment_id; do not track the reverse journey using the forward shipment's status.
| Outcome | Action |
|---|---|
| Return created, possibly with failed items | Track booked pieces and resolve failed items individually. |
200, Return-Existing: true | An open return already exists; reuse it. No new booking occurred. |
409 return-in-progress | Booking is still at the courier. Honour Retry-After. |
422 return-not-created | No item was booked. Correct the reported causes. |
An order has at most one open return. A new return can be accepted once the preceding return is delivered or cancelled. A cancelled status with direction: dto refers to that reverse leg, not the original delivery.