Skip to main content
Sitecore Documentation
  • Learn
  • Downloads
  • Changelog
  • Roadmap
CDPCloud Portal
Sitecore CDP Developer Documentation
  • Developing with Sitecore CDP
    • Base URL
    • Response codes
    • REST API Guest v2.1
    • REST API Guest data extension v2.1
    • REST API Order v2.1
    • REST API Order contact v2.1
    • REST API Order consumer v2.1
    • REST API Order data extension v2.1
    • REST API Order item data extension v2.1
    • REST API Audience export
            • Differences between v2 and v2.1
            • Create an order (legacy)
            • Retrieve orders (legacy)
            • Retrieve an order (legacy)
            • Update an order (legacy)
  1. Legacy REST APIs
  1. Sitecore CDP Developer Documentation
  2. REST APIs

Order 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.

An order object is the parent object for all other objects and contains attributes that are common to the entire order.

For airlines, an order is a one-to-one mapping to a reservation. The Order REST API matches orders that have the same referenceId values, for example, the Passenger Number Record (PNR), and have orderedAt values (purchase dates) within two days of another.

The following table describes the attributes for an order object:

AttributeTypeDescriptionExample(s)
referenceIdstringA unique ID generated by your organization to reference the order. For flight orders, this is often the PNR."B94TXY-1"
channelstringThe channel used in the order."AIRPORT_KIOSK", "BRANCH", "CALL_CENTER", "GDS", "KIOSK", "MOBILE_APP", "MOBILE_WEB", "OFFLINE", "OTA", "OTHER", "WEB"
pointOfSalestring (predefined by the client)The point of sale used in the order."spinflight.com", "spinair.com"
statusstring (uppercase)The status of the order."RESERVED", "PAYMENT_PENDING", "DECLINED", "PURCHASED", "PENDING", "CONFIRMED", "PARTIALY_CONFIRMED", "CANCELLED", "REFUNDED", "PARTIALY_REFUNDED", "UNKNOWN"
orderedAtISO 8601 Date/Time UTCThe date and time the order was made."2026-01-01T16:17
.000Z"
currencyCode3 letter ISO 4217The currency the guest used to complete a purchase. Set this to the organization’s default currency."EUR", "NZD","USD"
pricenumber (currency)The amount paid for the order.50, 30.6
paymentTypestring (title case recommended)The method of payment for the order."Card", "Paypal", "Voucher", "ATM", "Cash", "Other"
cardTypestring (title case recommended)The card type used to pay for the order."Mastercard", "Visa", "Diners", "American Express"
contactJSON objectThe contact associated with the order.N/A
consumersJSON array of JSON objectsA list of consumers associated with the order.N/A
orderItemsJSON array of JSON objectsA list of one or more items in the order.N/A

The following are the standard response attributes:

AttributeDescriptionTypeExample(s)
hrefThe resource fully qualified location Uniform Resource Identifier (URI).string"https://{apiEndpoint}/v2/{resourceName}/{resourceRef}"
refThe reference of the resource.string UUID"9d94ee11-7043-4b71-980c-a777d00a7b46"
createdAtDate and time when the resource was created in Sitecore CDP.ISO 8601 Date/Time UTC"2026-01-01T16:17
.000Z"
modifiedAtDate and time when the resource was updated in Sitecore CDP.ISO 8601 Date/Time UTC"2026-01-01T16:17
.000Z"
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