Order item REST API
The orderItems
object represents something that has been purchased as part of the order. For an airline reservation, an order item is typically one or more flight segments, or an ancillary item purchased in addition to the flight, such as excess baggage allowance or priority boarding.
The following table describes the order item attributes:
Attribute |
Type |
Description |
Example(s) |
---|---|---|---|
|
string enum (uppercase with underscore if more than one word) |
The type of order item. |
Must be one of:
|
|
string |
The ID of the product. |
|
|
number |
The number or quantity of the order item. |
|
|
ISO 8601 Date/Time UTC |
The date and time the order item was made. |
|
|
number (currency) |
The organization’s price for the order item. |
|
|
3 letter ISO 4217 |
The organization’s currency code for the order item. |
|
|
number (currency) |
The unit price of the order item before conversion to the organization's currency. |
|
|
3 letter ISO 4217 |
The original currency code for the order item. |
|
|
string |
An ID generated by the client to reference the order item. |
|
|
string (title case recommended) |
The organization that is selling the order item. |
|
|
string (uppercase) |
The status of the order item. |
|
|
string (uppercase) |
The channel used in the order. |
|
|
2 letter ISO 639 language code (uppercase) |
The language used when making the order. |
|
|
string (title case recommended) |
The name of the order item. A free text value for the name of the order item. Max limit: 128 |
|
|
string (title case recommended) |
A description of the order items. |
|
|
JSON array of JSON objects |
A list of flight segments associated with the order item. Only applicable for flight orders. |
N/A |
Flight segment attributes:
Attribute |
Description |
Type |
Example(s) |
Required/optional |
---|---|---|---|---|
|
An ID to identify the flight segment. |
string |
|
Required |
|
The IATA airport or city origin code of the flight segment. |
IATA airport or city code (uppercase) |
|
Required |
|
The IATA airport or city destination code of the flight segment. |
IATA airport or city code (uppercase) |
|
Required |
|
The local departure date and time of the flight segment. You must pass this value in as the local departure date/time and include the Z at the end, even though it is not UTC time. |
ISO 8601 date/time |
|
Required |
|
The local arrival date and time of the flight segment. You must pass this value in as the local departure date/time and include the Z at the end, even though it is not UTC time. |
ISO 8601 date/time |
|
Required |
|
The marketing flight number for the flight segment. |
string |
|
Required |
|
The fare class of the flight segment. |
string (title case recommended) |
|
Required |
|
The fare family of the flight segment. |
string (title case recommended) |
|
Optional |
|
The booking class of the flight segment. |
string (uppercase) |
|
Optional |
|
The equipment type of the flight segment. |
string (uppercase) |
|
Optional |
|
The marketing carrier code for the flight segment. |
IATA airline code (uppercase) |
|
Required |
|
The origin and destination of the flight segment. |
string (uppercase) |
|
Optional |
|
The operating carrier code for the flight segment. |
IATA airline code (uppercase) |
|
Optional |
|
The operating carrier flight number for the flight segment. |
string |
|
Optional |