{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://api.trackingmore.com/v4/schemas/tracking", "title": "Tracking", "description": "A shipment tracking record in TrackingMore", "type": "object", "properties": { "id": { "type": "string", "description": "Unique tracking identifier" }, "tracking_number": { "type": "string", "description": "Shipment tracking number" }, "courier_code": { "type": "string", "description": "Carrier/courier code (e.g., usps, ups, fedex, dhl)" }, "order_id": { "type": "string", "description": "Associated internal order ID" }, "title": { "type": "string", "description": "Custom title or label for this tracking" }, "customer_name": { "type": "string", "description": "Name of the customer" }, "customer_email": { "type": "string", "format": "email", "description": "Customer email address" }, "note": { "type": "string", "description": "Free-form note about this shipment" }, "status": { "type": "string", "description": "Current tracking status", "enum": [ "pending", "inforeceived", "transit", "pickup", "delivered", "undelivered", "exception", "expired", "notfound" ] }, "substatus": { "type": "string", "description": "Detailed sub-status code" }, "origin_country": { "type": "string", "description": "ISO 3166-1 alpha-2 origin country code" }, "destination_country": { "type": "string", "description": "ISO 3166-1 alpha-2 destination country code" }, "created_at": { "type": "string", "format": "date-time", "description": "Timestamp when this tracking was created" }, "updated_at": { "type": "string", "format": "date-time", "description": "Timestamp of last update" }, "last_event": { "type": "string", "description": "Description of the most recent tracking event" }, "last_update_time": { "type": "string", "format": "date-time", "description": "Time of the most recent carrier update" }, "origin_info": { "type": "object", "description": "Tracking events at the origin", "properties": { "trackinfo": { "type": "array", "items": { "$ref": "#/$defs/TrackingEvent" } } } }, "destination_info": { "type": "object", "description": "Tracking events at the destination", "properties": { "trackinfo": { "type": "array", "items": { "$ref": "#/$defs/TrackingEvent" } } } } }, "required": ["tracking_number", "courier_code"], "$defs": { "TrackingEvent": { "type": "object", "description": "A single tracking checkpoint event", "properties": { "checkpoint_date": { "type": "string", "format": "date-time", "description": "Date and time of this checkpoint" }, "location": { "type": "string", "description": "Location description" }, "checkpoint_status": { "type": "string", "description": "Status at this checkpoint" }, "substatus": { "type": "string", "description": "Detailed sub-status" }, "details": { "type": "string", "description": "Human-readable event description" } } } } }