Order item data model
When you create a batch file, ensure that you include all required attributes in addition to any attributes from the following table:
| Attribute | Description | Type | Example(s) | Insert | Upsert | Migration |
|---|---|---|---|---|---|---|
type | The type of order item. The accepted values must be predefined for your organization in the schema. | string (uppercase) | "FLIGHT" | Required | Not supported | Not supported |
productId | The ID of the product code. | string | "DUB-LAS" | Required | Not supported | Not supported |
name | The name of the order item. A free text value for the name of the order item. Max limit: 128 | string (title case recommended) | "flight" | Required | Not supported | Not supported |
description | A description of the order items. | string (title case recommended) | "individualSegments" | Required | Not supported | Not supported |
vendor | The organization that is selling the order item. | string (title case recommended) | "Company ABC" | Required | Not supported | Not supported |
orderedAt | The date and time the order item was made. | ISO 8601 Date/Time UTC | "2026-03-07T16:15.000Z" | Optional | Not supported | Not supported |
quantity | The number or quantity of the order item. | number | 2 | Optional | Not supported | Not supported |
price | The organization’s price for the order item. | number (currency) | 50, 30.6, -45 | Required | Not supported | Not supported |
currencyCode | The organization’s currency code for the order item. | 3 letter ISO 4217 | "EUR", "NZD", "USD" | Required | Not supported | Not supported |
originalPrice | The unit price of the order item before conversion to the organization's currency. | number (currency) | 100 | Optional | Not supported | Not supported |
originalCurrencyCode | The original currency code for the order item. | 3 letter ISO 4217 | "EUR", "NZD", "USD" | Optional | Not supported | Not supported |
referenceId | An ID generated by the client to reference the order item. | string | "B94TXY-1" | Required | Not supported | Not supported |
status | The status of the order item. | string (uppercase) | "PURCHASED", "CONFIRMED", "REFUNDED", "CANCELLED" | Required | Optional | Not supported |
channel | The channel used in the order. | string (uppercase) | "AIRPORT_KIOSK", "BRANCH", "CALL_CENTER", "GDS", "KIOSK", "MOBILE_APP", "MOBILE_WEB", "OFFLINE", "OTA", "OTHER", "WEB" | Optional | Not supported | Not supported |
language | The language used when making the order. | 2 letter ISO 639 language code (uppercase) | "EN", "FR", "DE" | Optional | Not supported | Not supported |
Here's a JSON example that includes Personally Identifiable Information (PII) and uses insert mode for a flight order item:
Here's a JSON example that includes the identifiers attribute and uses insert mode for an order item:
| Attribute | Description | Type | Example(s) | Insert | Upsert | Migration |
|---|---|---|---|---|---|---|
type | The type of order item. | string (uppercase with underscore if more than one word) | "FLIGHT", "HOTEL", "CAR", "BAG", "INSURANCE", "CAR_SEAT", "MEAL", "FEE", "LOUNGE_ACCESS", "HOTEL_WIFI", "HOTEL_BREAKFAST", "SEAT_UPGRADE", "TAXI", "PARKING", "SEAT", "UPGRADE", "TRANSPORT", "OTHER", "INFLIGHT_ENTERTAINMENT", "ACTIVITY", "CARBON_OFFSET", "PAID_SUBSCRIPTION", "COMFORT_PACK", "INFLIGHT_VOUCHER", "PACKAGE", "SMS_ITINERARY", "SPECIAL_ASSISTANCE", "CHARITY_DONATION", "TRANSFER"*Deprecated:"BAGGAGE", "FEES", "SEAT_UPGRADES", "INFLIGHT_VOUCHERS" | Required | Not supported | Not supported |
productId | The ID of the product code. | string | "DUB-LAS" | Required | Not supported | Not supported |
quantity | The number or quantity of the order item. | number | 2 | Optional | Not supported | Not supported |
orderedAt | The date and time the order item was made. | ISO 8601 Date/Time UTC | "2026-01-01T16:17.000Z" | Optional | Not supported | Not supported |
price | The organization’s price for the order item. | number (currency) | 50, 30.6, -45 | Required | Not supported | Not supported |
currencyCode | The organization’s currency code for the order item. | 3 letter ISO 4217 | "EUR", "NZD", "USD" | Required | Not supported | Not supported |
originalPrice | The unit price of the order item before conversion to the organization's currency. | number (currency) | 100 | Optional | Not supported | Not supported |
originalCurrencyCode | The original currency code for the order item. | 3 letter ISO 4217 | "EUR", "NZD", "USD" | Optional | Not supported | Not supported |
referenceId | An ID generated by the client to reference the order item. | string | "B94TXY-1" | Required | Not supported | Not supported |
vendor | The organization that is selling the order item. | string (title case recommended) | "Company ABC" | Optional | Not supported | Not supported |
status | The status of the order item. | string (uppercase) | "RESERVED", "PENDING", "DECLINED", "CONFIRMED", "CANCELLED", "REFUNDED", "PURCHASED", "UNKNOWN" | Required | Not supported | Not supported |
channel | The channel used in the order. | string (uppercase) | "AIRPORT_KIOSK", "BRANCH", "CALL_CENTER", "GDS", "KIOSK", "MOBILE_APP", "MOBILE_WEB", "OFFLINE", "OTA", "OTHER", "WEB" | Optional | Not supported | Not supported |
language | The language used when making the order. | 2 letter ISO 639 language code (uppercase) | "EN", "FR", "DE" | Optional | Not supported | Not supported |
name | The name of the order item. A free text value for the name of the order item. Max limit: 128 | string (title case recommended) | "Insurance" | Optional | Not supported | Not supported |
description | A description of the order items. | string (title case recommended) | "Family Insurance" | Optional | Not supported | Not supported |
consumerTypeCode | The code used to represent the type of passenger. Only applicable for flight. | string (uppercase) | "ADT", "CHD", "INF", "INS" | Optional/Required depending on product category | Not supported | Not supported |
flightSegments | A list of flight segments associated with the order item. Only applicable for flight orders. | JSON array of JSON objects | N/A | Optional | Not supported | Not supported |
tripType (deprecated) | The type of trip the guest is taking. | string (uppercase) | "OW", "RT" | Deprecated | Deprecated | Deprecated |
The Batch API matches orders that have the same referenceId values, for example, the Passenger Number Record (PNR), and have orderedAt values (purchase dates) within 24 hours of another.
If you have suggestions for improving this article, let us know!