An air cargo tracking API response is a structured record of one air waybill, and it usually contains four groups of fields: shipment identifiers (AWB, origin, destination, pieces, weight), airline information, a list of milestone events, and an overall status. Each event carries a code, a UTC timestamp, an airport, and often a flight. Qubictron's air tracking API returns this kind of data for the AWB number you send, and this guide explains how to read each group before you write any parsing code.
Field names differ between providers, so the examples below use common patterns rather than one vendor's exact schema. Where a point comes from a provider's public documentation, the provider is named.
Anatomy of a Tracking Response
The air cargo tracking API response fields fall into four groups. One object describes the waybill, and a list of events sits underneath it.
Group | Typical fields | What it answers |
|---|---|---|
Shipment identifiers | AWB, waybill type, origin, destination, pieces, weight | Which consignment is this? |
Airline | Airline name or code, usually derived from the AWB prefix | Who issued the waybill? |
Milestone events | Code, description, UTC timestamp, airport, flight | What happened, when, and where? |
Status | Overall state of the waybill | Where does it stand now? |
This air cargo API response structure mirrors how airlines report cargo. Airlines and ground handlers record events against the master waybill, and the provider collects them and adds a summary on top. Keep the roles apart: the summary at the top is a convenience, and the events are the evidence. When they disagree, trust the events and their timestamps. A well-structured air cargo tracking API response makes these details easier to interpret and process.
Shipment Identifiers: AWB, Type, Route and Weight
The first fields identify the consignment. An air waybill number has eleven digits: a three-digit airline prefix, a seven-digit serial number, and a check digit. Responses usually echo it as it was sent, for example in the XXX-XXXXXXXX pattern that Qubictron's endpoint expects. Most responses add a few more fields:
Waybill type. Some providers label the document as a master or a house waybill, which tells you whether the airline recognizes it directly.
Origin and destination. Usually IATA airport codes, such as PVG or FRA. They describe the routing of the waybill, not where the cargo is handled today. Today's location comes from the latest event.
Pieces and weight. The count and gross weight recorded for the consignment. Check the data type before doing arithmetic: one public sample returns weight as a string ("656.00"), not as a number.
Provider ID. Some providers add their own identifier for the tracked shipment. Keep it, because it is often the key for retrieving later updates.
Store these shipment details separately from the events. They rarely change, while the event list keeps growing. A complete air cargo tracking API response keeps these identifiers alongside event data, making each shipment easier to identify and process.
The Airline in the Response
A response may name the airline, return an airline code, or leave the airline out entirely, because the prefix already tells you who issued the waybill. One public sample has no airline field at all, and the carrier is implied by the first three digits. If your system needs airline information, derive it from the prefix with your own lookup table or ask the provider for it.
Remember that this is the issuing airline. The airline operating a particular leg can be different, and that shows up in the flight on each event. Airline tracking API data also varies in depth: some airlines send detailed events, others send only a few, and a provider cannot add events that an airline does not publish.
Milestone Events: The Core of the Response
Events are the part you will use most. Each one records a single fact: the cargo was received, the flight departed, the aircraft landed. Typical event fields are:
Code. The standardized milestone, such as RCS, DEP, ARR, or DLV. Qubictron's documentation uses milestones such as BKD, DEP, ARR, RCT, and DLV.
Description. Free text. Show it to users, but do not build logic on it, because wording differs between airlines.
Timestamp. Check whether the time is UTC or local airport time. Vizion's documentation, for example, states UTC.
Airport. The IATA code of the place where the event was recorded.
Flight. Present on flight events and often empty on ground events such as freight on hand.
Pieces and weight. Present on some events. A count lower than the shipment total can mean part of the consignment moved ahead of the rest.
Two timestamps are easy to confuse: the time an event happened and the time the provider received it. Project44's documentation, for example, keeps them as separate fields. Store both when you get both, because the gap shows how late the airline reported. Any event can also carry an estimated or actual time, so read the field name and not only the value. The full list of fields for Qubictron's endpoint is in its API documentation.
Events do not always arrive in order. Sort by event time, not by arrival, and keep the raw code next to your own mapping so that an unknown code never breaks your parser. The same AWB tracking data can also look different on an airline's own site, because airlines may use their own names for the same step.
Flight Data and Route Segments
Air cargo flight data answers one question: which aircraft movement carried the cargo? It usually appears in one of two shapes. The first is a flight on each event, as in a public sample where flight events show the flight and ground events show null. The second is a list of flight route segments, each with a flight, a departure airport, a destination airport, and scheduled and actual times.
Air cargo route information can be rebuilt from either shape. With flights on events, group the events by flight and airport to see the legs. With a segment list, read the legs directly and compare their times with the events. If the first flight lands at a hub and the second leaves from it, the response describes a connection, and the event after the hub should refer to the second flight.
Do not confuse this with flight tracking data from aircraft position feeds. That data shows where a plane is, not whether your cargo was on it. Cargo events do, because they are recorded against the waybill. The flight number is usually an airline code plus digits, such as CV9733, so store it as a string, not as an integer.
Shipment Status vs Event Status
The overall shipment status summarizes the whole waybill, while an event status describes a single step. Project44's documentation, for instance, sets the state of a shipment from its most recent actual event and uses a small set of states such as scheduled, in transit, at stop, completed, and unknown. Do not copy one vendor's list. Map the provider's states to the few your team actually uses.
Two cautions apply. On a consolidated shipment, a completed master does not mean every house shipment has been released. And an empty or unknown state usually means no data yet, not an error.
Understanding a Qubictron Air Cargo Tracking API JSON Response
The values below are invented, and the field names follow common patterns rather than one provider's schema.
{
{
"success": true,
"status_code": "OK",
"meta": {
"airline": {
"name": "American Airlines",
"iata_code": "AA",
"icao_code": "AAL"
}
},
"data": {
"shipment": {
"awb_number": "001-28124600",
"status": "OK",
"updated_at": "2026-10-19 14:42:53",
"departure": {
"location": "FRA",
"estimated": "2026-09-05T11:00:00+02:00",
"actual": "2026-09-05T12:00:00+02:00"
},
"arrival": {
"location": "EZE",
"estimated": "2026-09-21T11:05:00-03:00",
"actual": "2026-09-21T10:38:00-03:00"
},
"cargo_details": {
"quantity": 2,
"weight": 2243
}
},
"route_segments": [
{
"sequence": 1,
"departure": {
"location": "FRA"
},
"arrival": {
"location": "BCN"
},
"transport": {
"mode": "PLANE",
"number": "AA7244"
}
}
],
"events": [
{
"sequence": 1,
"code": "BKD",
"description": "Booked",
"location": "FRA",
"date_time": {
"estimated": null,
"actual": "2026-08-28T12:14:00+02:00"
}
}
]
}
}
Qubictron JSON field | Meaning |
success | Indicates whether the API operation succeeded |
status_code | API result or carrier-side outcome |
meta.airline | Issuing airline and its identifiers |
data.shipment.awb_number | Air Waybill reference |
data.shipment.status | Shipment status provided in the response |
data.shipment.updated_at | Timestamp of the shipment record's update |
data.shipment.cargo_details | Cargo quantity and weight |
data.route_segments | Flight legs and route information |
data.route_segments[].transport.number | Flight number for a route segment |
Recorded shipment milestones | |
data.events[].code | Event code, such as BKD or DEP |
data.events[].date_time.actual | Actual event timestamp, when available |
data.events[].date_time.estimated | Estimated event timestamp, when available |
This simplified response illustrates how Qubictron organizes air cargo tracking data. The meta.airline object identifies the issuing airline, while data.shipment contains the AWB number, shipment status, cargo details, and estimated or actual departure and arrival times. The data.route_segments array describes individual flight legs, and data.events contains recorded shipment milestones.
Each event can include its code, description, location, and timestamps. The success and status_code fields describe the API request outcome, not the physical delivery status of the cargo. The complete response may contain additional fields, locations, and events depending on the available tracking data.
Handling Empty, Partial and Error Responses
Any AWB tracking API response can be incomplete, so plan for these cases:
No events yet. A new waybill may return the identifiers and an empty event list. Qubictron's documentation lists a NO_EVENTS response status for this case. Retry later instead of treating it as a failure.
Wrong reference. A status such as WRONG_REFERENCE_NUMBER points to a typo, a missing prefix, or a house number. Validate the XXX-XXXXXXXX format before you call the API.
Airline data unavailable. A status such as CARRIER_INFO_NOT_PROVIDED signals that the airline's data is not available to the provider. Check the documentation for the exact meaning.
Empty fields. Ground events often have no flight. Handle null explicitly.
Unknown codes. Store the raw code, show it as is, and add it to your mapping later.
An air cargo tracking API should distinguish between missing shipment data and a failed tracking request. Unlike a shipment tracking API response for ocean freight, which centers on containers and vessels, an air response centers on the waybill and the flights that carried it.
Using the Response in Your Own Systems
Air freight tracking API data arrives as a stream of events, so design for repeated updates to the same waybill. Integrating an air cargo tracking API into internal systems allows logistics teams to process shipment updates automatically. Save the raw payload, de-duplicate events by code, time, airport, and flight, and sort by event time. Show the latest event with its age, and alert on gaps only after you have checked whether the airline publishes data at all.
To see these fields for a real waybill without writing code, enter an AWB in Qubictron's air tracking and compare what you see with the structure above.
Reading Any Response in the Same Order
Whichever provider you choose, read the air cargo tracking API output in the same order: identifiers first, then the airline, then the events, then the flights, and last the overall status. If the events and the status disagree, the events win. If a field is missing, check whether the airline publishes it before blaming the integration.