Order REST API v2 (legacy)
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:
Attribute |
Type |
Description |
Example(s) |
---|---|---|---|
|
string |
A unique ID generated by your organization to reference the order. For flight orders, this is often the PNR. |
|
|
string |
The channel used in the order. |
|
|
string (predefined by the client) |
The point of sale used in the order. |
|
|
string (uppercase) |
The status of the order. |
|
|
ISO 8601 Date/Time UTC |
The date and time the order was made. |
|
|
3 letter ISO 4217 |
The currency the guest used to complete a purchase. Set this to the organization’s default currency. |
|
|
number (currency) |
The amount paid for the order. |
|
|
string (title case recommended) |
The method of payment for the order. |
|
|
string (title case recommended) |
The card type used to pay for the order. |
|
|
JSON object |
The contact associated with the order. |
N/A |
|
JSON array of JSON objects |
A list of consumers associated with the order. |
N/A |
|
JSON array of JSON objects |
A list of one or more items in the order. |
N/A |
The following are the standard response attributes:
Attribute |
Description |
Type |
Example(s) |
---|---|---|---|
|
The resource fully qualified location Uniform Resource Identifier (URI). |
string |
|
|
The reference of the resource. |
string UUID |
|
|
Date and time when the resource was created in Sitecore CDP. |
ISO 8601 Date/Time UTC |
|
|
Date and time when the resource was updated in Sitecore CDP. |
ISO 8601 Date/Time UTC |
|