Skip to content

Add an item

POST /api/bookings/v4/{id}/items

Adds a new item (parcel or package) to an existing booking. You can add multiple items by making separate requests.

ParameterTypeRequiredDescription
idintegerYesThe booking ID
FieldTypeRequiredDescription
weightnumberYesWeight in kilograms
heightnumberYesHeight in centimetres
widthnumberYesWidth in centimetres
lengthnumberYesLength in centimetres
quantityintegerYesNumber of identical items (minimum 1)
descriptionstringNoDescription of the item contents
Terminal window
curl -X POST \
-H "Api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"weight": 5,
"height": 20,
"width": 30,
"length": 40,
"quantity": 1,
"description": "Electronics"
}' \
https://www.transdirect.com.au/api/bookings/v4/123456/items

A successful response returns a 201 status code with the created item.

{
"id": 3,
"booking_id": 123456,
"weight": 5,
"height": 20,
"width": 30,
"length": 40,
"quantity": 1,
"description": "Electronics"
}
Status codeMeaning
400Bad request — missing or invalid fields
401Unauthorised — invalid credentials or API key
404Not found — the booking does not exist or does not belong to your account
422Unprocessable entity — validation errors (e.g. weight must be greater than 0)