Skip to main content

Tracking

Tracking endpoint exposes latest shipment state together with full tracking history.

Retrieve tracking status

GEThttps://api.aquiline-tracking.com/v3/tracking/{trackingNumber}

Returns tracking details for a specific tracking number.

Authentication and headers

  • X-API-Key (required)
  • Accept: application/json (recommended)

Path parameter

NameTypeRequiredDescriptionExample
trackingNumberstringYesAquiline tracking number assigned to a shipment.AQAA123456789YQ

Response model (200 OK)

FieldTypeRequiredDescription
numberstringYesTracking number.
statusstringYesCurrent shipment status (for example Shipping, Delivered, Error).
oriCountrystringNoOrigin country code.
destCountrystringNoDestination country code.
eventsTrackingEvent[]YesTracking history timeline.

In some cases, the API may return a failure payload with HTTP 200:

FieldTypeRequiredDescription
typestringYesfailure.
messagestringYesFailure reason.

Tracking event structure

Each events[] item contains:

FieldTypeRequiredDescription
contentstringYesEvent description from carrier.
locationstringNoEvent location (can be empty).
timestringYesEvent timestamp (YYYY-MM-DD HH:mm:ss).

Example request

curl -X GET "https://api.aquiline-tracking.com/v3/tracking/AQAA123456789YQ" \
-H "X-API-Key: <YOUR_API_KEY>" \
-H "Accept: application/json"

Example response (shipping)

{
"destCountry": "GB",
"oriCountry": "UK",
"status": "Shipping",
"number": "AQUAA8846811125YQ",
"events": [
{
"content": "Package left the courier facility",
"location": "",
"time": "2025-11-20 00:00:00"
}
]
}

Example response (delivered)

{
"destCountry": "US",
"oriCountry": "US",
"status": "Delivered",
"number": "AQUAA3682450326YQ",
"events": [
{
"content": "Package delivered.",
"location": "Marion, VA",
"time": "2026-03-12 17:29:00"
},
{
"content": "OD On Carrier vehicle for delivery",
"location": "CHRISTIANSBURG, VA",
"time": "2026-03-12 11:17:00"
}
]
}

Example response (error)

{
"destCountry": "US",
"oriCountry": "US",
"status": "Error",
"number": "AQUAA1179300126YQ",
"events": [
{
"content": "Your package may be delayed.",
"location": "Mcallen, US",
"time": "2026-01-11 22:55:00"
}
]
}

Observed statuses in production samples

Based on recent operational samples, integrations should handle at least:

StatusOperational meaningTypical action
ShippingShipment is moving through transit nodes.Keep customer informed; continue polling or consume webhooks.
DeliveredFinal successful delivery event.Mark order complete; stop active polling.
ErrorException state requiring intervention.Raise support workflow and exception alerts.
CancelledShipment was cancelled before final delivery.Close shipment workflow and reverse downstream commitments.
DelayedShipment still active but behind planned milestone/ETA.Notify customer, re-check ETA, monitor for exception escalation.
  1. Treat status as the current state snapshot.
  2. Persist events as append-only timeline records for auditability.
  3. Handle unknown future statuses gracefully (do not hard-fail parsing).
  4. Use webhooks as primary realtime feed; use polling as fallback/reconciliation.

Common error responses

HTTPCauseResponse shape
400Invalid trackingNumber format{ "error": "Missing or invalid tracking number" }
401Missing/invalid API key{ "error": "Unauthorized" }
404Tracking number not found{ "error": "Not found" }
5xxTemporary service issue{ "error": "Service temporarily unavailable" }

Operational use cases

  • Customer shipment pages
  • Support dashboards
  • Exception management tools
  • Reconciliation jobs against external order systems