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.

When a booking is confirmed with payment_method: "demo", it is placed on the synthetic Demo courier and receives a watermarked test label (and a DEMO-… connote). The label endpoint returns that PDF so you can test download and print workflows without transmitting anything to a real carrier.

EndpointPurpose
GET /api/bookings/v4/{id}/a6labelA6-format label PDF
GET /api/bookings/v4/{id}/manifestManifest PDF
GET /api/bookings/v4/{id}/tntregeneralabelForce-regenerate TNT label
GET /api/bookings/v4/{id}/public_urlTime-limited signed public label URL
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