TekipostAPI
Booking & couriers
POST/v1/shipping/book/sync

Book (synchronous)

no capability gate

Books inside the request and returns the AWB. It BLOCKS for the courier call — typically 30–40 seconds — so set your client timeout to at least 45s.

Prefer the asynchronous POST /v1/shipping/book unless your integration genuinely cannot poll. A transient courier failure here is handed to the durable worker, so a timeout on your side does not mean the parcel was not booked — check GET /v1/orders/status before retrying.

Request body

FieldTypeDescription
order_idrequiredintegerFrom create.
logistic_idintegerForce a courier. Omit for AUTO (forward only).
operationstringForward booking or a return. One of book · reverse.

Responses

StatusMeaning
200{status, awb, forward_id, logistic_id, order_id, courier_name, label_url}.
400
order_id and logistic_id must be positive integers
Malformed.
422
booking_failed
The courier refused. message is the courier's own words.