Last-mile
//
Retrieve order history
Every state an order has passed through, with timestamps. Available on staging and production at the matching base URL.
This is the only way to reconstruct transitions your webhook receiver missed. GET /orders/{order_id} returns the current state only.
Security
bearerToken or oauthToken
- Staging. Build and test here.https://api.staging.quiqup.com/orders/{order_id}/history
- Production. Real couriers, real charges.https://api-ae.quiqup.com/orders/{order_id}/history
curl -i -X GET \
'https://api.staging.quiqup.com/orders/{order_id}/history' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'The order's state history, oldest first. A bare array, not wrapped in an object. It records transitions, so a freshly created order returns []. pending does appear as a to_state on orders that return to it, so do not assume the initial state is never logged.
Response
[ { "to_state": "string", "occurred_at": "string", "author": { … }, "custodian": { … }, "delivery_metrics": { … }, "events": [ … ], "internal_order": {}, "on_hold_reason": "string", "reason": "string", "return_to_origin_reason": "string" } ]