Skip to content

List booking items

Get the item lines on a booking. Each line is one package type with its weight, dimensions and quantity.

GET /api/v5/bookings/{id}/items

Requires your API key in the api-key header.

ParameterTypeDescription
idintegerThe Transdirect booking id.
Terminal window
curl https://api.transdirect.com.au/api/v5/bookings/623630/items \
-H "api-key: $TD_API_KEY"
import { client, getApiV5BookingsByIdItems } from '@transdirect/api-sdk';
client.setConfig({ headers: { 'api-key': process.env.TD_API_KEY! } });
const { data: items } = await getApiV5BookingsByIdItems({ path: { id: '623630' } });

200 OK with an array of items.

[
{
"id": 46885332,
"description": "Carton",
"weight": 5,
"length": 40,
"width": 30,
"height": 20,
"quantity": 1
}
]
FieldDescription
idItem line id. Use it to get, update or delete the line.
descriptionPackage type, for example Carton, Satchel or Pallet. See items and packaging.
weightWeight of one item, in kg.
length, width, heightDimensions of one item, in cm.
quantityNumber of identical items on this line.
StatusBodyCause
401{"error":"missing_api_key"} or {"error":"invalid_api_key"}No key, or a key that is not active.
404{"error":"booking_not_found"}No booking with that id belongs to your account.
404EmptyThe booking has no items.

Open the API Explorer, add your key, and find List booking items.