Introduction
When you ship an order with POST /orders/{orderId}/shipments, the order lines are updated first and then the order itself. Until now, if an error occurred between these two steps, the order was left half-shipped: its lines were already marked as shipped, but the order still showed as waiting for shipment. Every retry returned a 400 Bad Request because no line was left to ship, and the only fix was to ship the order manually from the Octopia Seller Portal.
From 12/11/2026, you can retry the shipment through the API.
What changed?
POST /orders/{orderId}/shipments now accepts a retry even when the order lines are already shipped. The lines are not shipped a second time — the API completes the shipment of the order.
- Technical failure: if the first call failed for a technical reason, send the same request again and the shipment completes.
- Invalid tracking URL (the most common cause): the API returns an explicit error message. Correct the
trackingUrl, then retry.
Nothing changes in the request or response format. Existing integrations need no update.
Example
Step 1 — the first call fails because the tracking URL is invalid (trailing space)
POST /orders/2610070813M7QEC/shipments
[
{
"parcelNumber": "6A12345678901",
"carrierName": "Colissimo",
"trackingUrl": "https://www.laposte.fr/outils/suivre-vos-envois?code=6A12345678901 ",
"orderLineIds": ["0"]
}
]
| Before | Now | |
|---|---|---|
| Result | Error returned. Lines marked as shipped, order not. Every retry returns 400 Bad Request. | Error returned with message: “The order’s field TrackingUrl is incorrectly filled.” The order can still be shipped. |
Step 2 — retry with the same parcel and order lines, and a corrected tracking URL
POST /orders/2610070813M7QEC/shipments
[
{
"parcelNumber": "6A12345678901",
"carrierName": "Colissimo",
"trackingUrl": "https://www.laposte.fr/outils/suivre-vos-envois?code=6A12345678901",
"orderLineIds": ["0"]
}
]
| Before | Now | |
|---|---|---|
| Result | 400 Bad Request — order stays blocked, manual fix required from the Seller Portal. | 200 OK — the order moves to Shipped. |
Good to know
- Always resend the same parcels and
orderLineIdsas in the failed call. trackingUrlmust be a valid public URL starting withhttp://orhttps://, with no leading or trailing spaces.- For
carrierName, use alabelvalue returned byGET /carriers.
Why it matters
- No more blocked orders — a temporary error or a wrong tracking URL no longer leaves an order stuck.
- Fewer error loops — integrations that retry automatically stop receiving endless
400errors. - No manual workaround — you no longer need to ship the order from the Octopia Seller Portal.
- Faster shipment confirmation — the shipment is confirmed sooner, which protects your seller performance indicators and the customer experience.