Skip to content

Confirm the shipment

Handle POST /shipment/{shipment_id}/confirm to confirm Shipping Assistant reservations after purchase. Includes response codes and failure behavior.

Implement this optional endpoint to confirm reservations after purchase. Kustom uses the shipment_id you returned from POST /shipment. It doesn’t call the endpoint without that id, and a failed confirmation doesn’t affect the purchase.

POST /shipment/{shipment_id}/confirm
Authorization: Bearer <token>

Kustom sends this once, when the purchase completes. There’s no body. Answer 200 or 201; anything you send back is ignored.

You answerWhat happens
200 or 201Done
404Accepted. This is the answer if you don’t implement the endpoint
401Kustom fetches a new token and tries once more
Anything else, or no answerLogged at Kustom. The purchase is unaffected, and the call isn’t retried

If you don’t implement this endpoint, answer 404. Your reservations remain unconfirmed until the merchant tells you which purchases completed. The merchant books against your shipment_id, received as tms_reference on their order.

Kustom doesn’t send it for a checkout that fell back to the merchant’s own options, or for a digital-only order.

The API reference also lists GET /shipment/{shipment_id}, to read a shipment back. Kustom doesn’t call it, so you don’t need to build it.

This page is also available as Markdown — append .md to its URL — and is indexed in llms.txt.