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. Multipickup bookings reject item changes with 400.
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 deletion returns 204 No Content with an empty body.
Error responses
Section titled “Error responses”| Status code | Meaning |
|---|---|
400 | Multipickup booking — items cannot be changed |
401 | Unauthorised |
404 | Booking or item not found |
500 | Server error while removing the item |