Skip to content

List orders

GET /api/orders

Returns orders imported into Transdirect for the authenticated member (excludes deleted orders). Hard limit: 50 most recent by default sort.

Requires authentication via API key or basic auth.

ParameterTypeRequiredDescription
sincestringNoOnly orders imported on or after this datetime (Y-m-d H:i:s).
sortstringNoColumn name to order by ascending (e.g. imported_time). Default is imported_time descending. An unrecognised column is ignored and the default ordering is used.
Terminal window
curl -X GET \
-H "Api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
https://www.transdirect.com.au/api/orders

A successful response returns a 200 status code with an array of order objects. When none match, the API returns 404.

[
{
"id": 5001,
"transdirect_order_id": null,
"transdirect_member_id": 12345,
"transdirect_order_status": "pending",
"order_id": "WC-1042",
"goods_summary": "Widget Pro x2",
"goods_dump": null,
"imported_from": "Woocommerce",
"imported_time": "2025-08-15T00:30:00+00:00",
"purchased_time": "2025-08-15 10:00:00",
"sale_price": "49.95",
"selected_courier": null,
"courier_price": "0",
"paid_time": "2025-08-15 10:05:00",
"buyer_name": "John Smith",
"buyer_email": "john@example.com.au",
"delivery": {
"name": "John Smith",
"email": "john@example.com.au",
"phone": "0498765432",
"address": "42 George Street"
},
"last_updated": "2025-08-15T00:30:00+00:00"
}
]
FieldTypeDescription
idintegerTransdirect order primary key
order_idstringExternal order number
transdirect_order_idinteger | nullLinked booking id when converted
transdirect_order_statusstringOrder status
imported_fromstringIntegration source
imported_timestringISO 8601 import time
deliveryobjectNested name, email, phone, address
buyer_name / buyer_emailstringBuyer details
sale_price / courier_pricestring | numberCommercial values
selected_courierstring | nullCourier string_id if selected
last_updatedstringLast update timestamp
Status codeMeaning
401Unauthorised — invalid credentials or API key
404No orders found for the member / filter