Skip to content

Customs declaration

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

Creates a customs declaration for an international booking. This is required for shipments where the sender or receiver is outside Australia.

ParameterTypeRequiredDescription
idintegerYesThe unique booking ID.
FieldTypeRequiredDescription
contents_typestringYesType of contents: "gift", "documents", "merchandise", "sample", "return", or "other".
contents_descriptionstringYesDescription of the contents (e.g. "Clothing and accessories").
currencystringNoCurrency code for declared values. Defaults to "AUD".
itemsarrayYesArray of customs item objects.
FieldTypeRequiredDescription
descriptionstringYesDescription of the item (e.g. "Cotton t-shirt").
quantityintegerYesNumber of units.
weightstringYesWeight per unit in kilograms.
valuestringYesValue per unit in the specified currency.
country_of_originstringYesISO 3166-1 alpha-2 country code where the item was manufactured (e.g. "AU", "CN").
hs_codestringNoHarmonised System tariff code for the item.
Terminal window
curl -X POST \
-H "Api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents_type": "merchandise",
"contents_description": "Clothing and accessories",
"currency": "AUD",
"items": [
{
"description": "Cotton t-shirt",
"quantity": 5,
"weight": "0.2",
"value": "25.00",
"country_of_origin": "AU",
"hs_code": "6109.10"
},
{
"description": "Leather belt",
"quantity": 2,
"weight": "0.3",
"value": "45.00",
"country_of_origin": "AU"
}
]
}' \
https://www.transdirect.com.au/api/bookings/v4/12345678/custom_declaration
{
"id": 12345678,
"customs_declaration": {
"contents_type": "merchandise",
"contents_description": "Clothing and accessories",
"currency": "AUD",
"items": [
{
"description": "Cotton t-shirt",
"quantity": 5,
"weight": "0.2",
"value": "25.00",
"country_of_origin": "AU",
"hs_code": "6109.10"
},
{
"description": "Leather belt",
"quantity": 2,
"weight": "0.3",
"value": "45.00",
"country_of_origin": "AU",
"hs_code": null
}
]
}
}

A customs declaration is required when:

  • The receiver is in a country other than Australia
  • The sender is in a country other than Australia

The declaration provides customs authorities in the destination country with the information they need to assess duties and taxes.

Status codeDescription
400Bad request — missing required fields or invalid values.
401Unauthorised — invalid or missing credentials.
404Not found — no booking exists with the given ID, or it belongs to another member.
422Unprocessable entity — the booking is a domestic shipment and does not require a customs declaration.