Remove an item
Endpoint
Section titled “Endpoint”DELETE /api/bookings/v4/{id}/items/{item_id}Removes an item from a booking. This action cannot be undone.
Path parameters
Section titled “Path parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | The booking ID |
item_id | integer | Yes | The item ID to remove |
Request
Section titled “Request”curl -X DELETE \ -H "Api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ https://www.transdirect.com.au/api/bookings/v4/123456/items/1Response
Section titled “Response”A successful response returns a 200 status code with a confirmation message.
{ "message": "Item removed successfully."}Error responses
Section titled “Error responses”| Status code | Meaning |
|---|---|
401 | Unauthorised — invalid credentials or API key |
404 | Not found — the booking or item does not exist, or does not belong to your account |