Skip to content

Get booking label

GET /api/bookings/v4/{id}/label

Returns the shipping label for a confirmed booking as a PDF file. Labels are generated by the courier after a booking is confirmed.

ParameterTypeRequiredDescription
idintegerYesThe booking ID
Terminal window
curl -X GET \
-H "Api-key: YOUR_API_KEY" \
-o label.pdf \
https://www.transdirect.com.au/api/bookings/v4/123456/label

A successful response returns a 200 status code with the PDF label as the response body. The Content-Type header is set to application/pdf.

Save the response body directly to a .pdf file.

If your account is in demo mode, the label endpoint returns a static demo label rather than a real courier label. This allows you to test your label download and printing workflow without creating live bookings.

Demo labels are available for the following couriers:

Courier
Couriers Please
Aramex
Toll
Toll International
Status codeMeaning
401Unauthorised — invalid credentials or API key
404Not found — the booking does not exist, does not belong to your account, or has not been confirmed