Skip to content

Add an item

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

Adds a new item (parcel or package) to an existing booking.

ParameterTypeRequiredDescription
idintegerYesThe booking ID
FieldTypeRequiredDescription
weightnumberYesWeight in kilograms
heightnumberYesHeight in centimetres
widthnumberYesWidth in centimetres
lengthnumberYesLength in centimetres
quantityintegerYesNumber of identical items (minimum 1)
descriptionstringYesPackaging type from the allowed list (case-insensitive). Not free-text contents.
ValueNotes
CartonAlso accepts carton/box
Wine/Beer/Liquor Carton
Carton containing Fragile goods
Carton containing Liquids
Carton containing Glass
Heavy Carton
Skid
Pallet
Tube
Crate
Satchel
Satchel 250g / 500g / 1kg / 3kg / 5kg
Bag
Envelope
Other/Misc
Unpackaged
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": "Carton"
}' \
https://www.transdirect.com.au/api/bookings/v4/123456/items

A successful response returns 201 with the created item (no booking_id field):

{
"id": 3,
"description": "Carton",
"weight": 5,
"length": 40,
"width": 30,
"height": 20,
"quantity": 1
}
Status codeMeaning
400Missing/invalid fields, invalid packaging type, or multipickup booking
401Unauthorised
404Booking not found
500Server error