Skip to main content
Sitecore Documentation
  • Learn
  • Downloads
  • Changelog
  • Roadmap
CDPCloud Portal
Sitecore CDP Developer Documentation
  • Developing with Sitecore CDP
  1. Legacy REST APIs
  1. Sitecore CDP Developer Documentation
  2. REST APIs

Order item REST API v2 (legacy)

Important

A newer version of this REST API (v2.1) is available. If you're new to this REST API, use the new version. Alternatively, if you're already using the old version, read about the differences between v2 and v2.1 so you can upgrade.

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:

AttributeTypeDescriptionExample(s)
typestring enum (uppercase with underscore if more than one word)The type of order item.Must be one of:

"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"
productIdstringThe ID of the product."DUB-LAS"
quantitynumberThe number or quantity of the order item.2
orderedAtISO 8601 Date/Time UTCThe date and time the order item was made."2026-01-01T16:17
.000Z"
pricenumber (currency)The organization’s price for the order item.50, 30.6, -45
currencyCode3 letter ISO 4217The organization’s currency code for the order item."EUR", "NZD", "USD"
originalPricenumber (currency)The unit price of the order item before conversion to the organization's currency.50
originalCurrencyCode3 letter ISO 4217The original currency code for the order item."EUR", "NZD", "USD"
referenceIdstringAn ID generated by the client to reference the order item."B94TXY-1"
vendorstring (title case recommended)The organization that is selling the order item."Company ABC"
statusstring (uppercase)The status of the order item."RESERVED", "PENDING", "DECLINED", "CONFIRMED", "CANCELLED", "REFUNDED", "PURCHASED", "UNKNOWN"
channelstring (uppercase)The channel used in the order."AIRPORT_KIOSK", "BRANCH", "CALL_CENTER", "GDS", "KIOSK", "MOBILE_APP", "MOBILE_WEB", "OFFLINE", "OTA", "OTHER", "WEB"
language2 letter ISO 639 language code (uppercase)The language used when making the order."EN", "FR", "DE"
namestring (title case recommended)The name of the order item. A free text value for the name of the order item. Max limit: 128"Insurance"
descriptionstring (title case recommended)A description of the order items."Family Insurance"
flightSegmentsJSON array of JSON objectsA list of flight segments associated with the order item. Only applicable for flight orders.N/A

Flight segment attributes:

AttributeDescriptionTypeExample(s)Required/optional
idAn ID to identify the flight segment.string"1234"Required
originThe IATA airport or city origin code of the flight segment.IATA airport or city code (uppercase)"DUB", "LHR", "BCN"Required
destinationThe IATA airport or city destination code of the flight segment.IATA airport or city code (uppercase)"DUB", "LHR", "BCN"Required
departureDateTimeThe 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"2026-08-23T16:17Z"Required
arrivalDateTimeThe 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"2026-08-23T16:17Z"Required
flightNumberThe marketing flight number for the flight segment.string"12345"Required
fareClassThe fare class of the flight segment.string (title case recommended)"Economy", "Business", "First Class"Required
fareFamilyThe fare family of the flight segment.string (title case recommended)"Economy Plus"Optional
bookingClassThe booking class of the flight segment.string (uppercase)"Y7 K5 M4 T6 E3"Optional
equipmentTypeThe equipment type of the flight segment.string (uppercase)"BOEING 777"Optional
carrierThe marketing carrier code for the flight segment.IATA airline code (uppercase)"EI", "FR", "BA"Required
originDestinationThe origin and destination of the flight segment.string (uppercase)"DUB-JFK"Optional
operatingCarrierThe operating carrier code for the flight segment.IATA airline code (uppercase)"EI", "FR", "BA"Optional
operatingCarrierFlightNumberThe operating carrier flight number for the flight segment.string"5678"Optional
If you have suggestions for improving this article, let us know!

Documentation Assistant

This assistant uses AI to generate responses based on Sitecore documentation. While it has access to official sources, answers may be incomplete or inaccurate and should not be considered official advice or support.
Powered by
k
kapa.ai
Protected by reCAPTCHA

© Copyright 2026, Sitecore A/S or a Sitecore affiliated company.
All rights reserved.

Privacy policySitecore Trust CenterTerms of use