{"openapi":"3.0.3","info":{"title":"ZQ Track Tracking API","version":"1.0.0","description":"Read-only shipment tracking API for tracking platforms and partners of ZQ Solution. Request an API key at support@zqtrack.com.","contact":{"email":"support@zqtrack.com"}},"servers":[{"url":"https://zqtrack.com/api/v1"}],"security":[{"ApiKey":[]}],"paths":{"/trackings/query":{"post":{"summary":"Track up to 40 shipments","operationId":"queryTrackings","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["tracking_numbers"],"properties":{"tracking_numbers":{"type":"array","minItems":1,"maxItems":40,"items":{"type":"string"},"example":["ZQ8826104593721056"]}}}}}},"responses":{"200":{"$ref":"#/components/responses/Trackings"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/trackings/{tracking_number}":{"get":{"summary":"Track one shipment","operationId":"getTracking","parameters":[{"name":"tracking_number","in":"path","required":true,"schema":{"type":"string"},"example":"ZQ8826104593721056"}],"responses":{"200":{"$ref":"#/components/responses/Trackings"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}}},"components":{"securitySchemes":{"ApiKey":{"type":"apiKey","in":"header","name":"X-API-Key"}},"responses":{"Trackings":{"description":"One result per requested number, in request order. Unknown numbers return status `NotFound` with no events.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests per second allowed for this key"},"X-RateLimit-Remaining":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","example":200},"data":{"type":"array","items":{"$ref":"#/components/schemas/Tracking"}}}}}}},"Error":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer"},"error":{"type":"object","properties":{"type":{"type":"string","enum":["unauthorized","rate_limited","invalid_json","invalid_request","too_many_numbers"]},"message":{"type":"string"}}}}}}}}},"schemas":{"Status":{"type":"string","enum":["NotFound","InfoReceived","InTransit","AvailableForPickup","OutForDelivery","DeliveryFailure","Delivered","Exception","Expired"]},"Location":{"type":"object","nullable":true,"properties":{"facility":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"state":{"type":"string","nullable":true},"postal_code":{"type":"string","nullable":true},"country":{"type":"string","description":"ISO 3166-1 alpha-2"}}},"Event":{"type":"object","properties":{"event_id":{"type":"string","description":"Stable id for de-duplication"},"time_utc":{"type":"string","format":"date-time","example":"2026-11-19T12:06:35Z"},"time_local":{"type":"string","example":"2026-11-19T07:06:35-05:00"},"status":{"$ref":"#/components/schemas/Status"},"description":{"type":"string"},"location":{"$ref":"#/components/schemas/Location"}}},"Tracking":{"type":"object","properties":{"tracking_number":{"type":"string"},"carrier_code":{"type":"string","example":"zq-solution"},"carrier_name":{"type":"string","example":"ZQ Solution"},"status":{"$ref":"#/components/schemas/Status"},"destination_country":{"type":"string","nullable":true},"service":{"type":"string","nullable":true},"tracking_url":{"type":"string","format":"uri"},"last_mile":{"type":"object","nullable":true,"description":"Local carrier that handles final delivery. Continue tracking with it once present.","properties":{"carrier_name":{"type":"string","example":"USPS"},"carrier_code":{"type":"string","example":"usps"},"tracking_number":{"type":"string"},"tracking_url":{"type":"string","format":"uri"}}},"shipped_at":{"type":"string","format":"date-time","nullable":true},"delivered_at":{"type":"string","format":"date-time","nullable":true},"updated_at":{"type":"string","format":"date-time","nullable":true},"events":{"type":"array","description":"Newest first","items":{"$ref":"#/components/schemas/Event"}}}}}},"x-rate-limit":"10 requests/second per key (burst 20)"}