Skip to content

Delete a booking

DELETE /api/bookings/v4/{id}

Permanently removes a booking record, along with its sender, receiver, and all items. This is most commonly used to clean up quote records (status new) that you no longer need.

Use this endpoint to remove draft bookings before they are paid or confirmed — typically when sender/receiver details turned out wrong and you want to start over.

You should not need to delete quotes (new status) routinely — they are cheap to leave in place and clean themselves up. Reach for this endpoint when you have a draft booking that’s no longer needed and you don’t want it appearing in lists.

Once a booking has been paid or confirmed, deletion is not possible. To cancel a paid or confirmed booking, contact support@transdirect.com.au.

ParameterTypeRequiredDescription
idintegerYesThe unique booking ID.
Terminal window
curl -X DELETE \
-H "Api-key: YOUR_API_KEY" \
https://www.transdirect.com.au/api/bookings/v4/12345678

A successful deletion returns 204 No Content with an empty body.

Deletion is only possible before a booking is paid or confirmed. The endpoint will reject the request if:

  • The booking has been paid or confirmed. To cancel a paid or confirmed booking, contact support.
  • The booking belongs to another member.
Status codeDescription
401Unauthorised — invalid or missing credentials.
404Not found — no booking exists with the given ID, or it belongs to another member.
500The booking is locked (paid) and cannot be deleted, or another internal error occurred.