Examples of order items
The Order item REST API lets you create order items to describe the purchased item in detail. The Order item data extension REST API lets you include additional information of your choice about the order item.
Here's a few examples of order items you can send to Sitecore CDP using version 2.1 of the Order item and the Order item data extension REST APIs.
Here's an example payload for an order item that describes a flight purchase:
{
"name": "NYC-PAR Flight",
"description": "Flight from New York City to Paris",
"type": "Flight Item",
"productId": "FL44124",
"price": 105,
"currencyCode": "EUR",
"originalPrice": 110,
"originalCurrencyCode": "USD",
"referenceId": "O62455331",
"vendor": "Travel Agency",
"status": "Confirmed",
"language": "EN",
"quantity": 1,
"channel": "WEB"
}Here's an example payload for an order item data extension that describes additional information about a flight purchase:
{
"tripType": "OW",
"origin": "DUB",
"destination": "PAR",
"operatingCarrier": "Carrier",
"bookingClass": "1st"
}Here's an example payload for an order item that describes a mobile phone:
{
"name": "NewGen Mobile",
"description": "Next-generation mobile phone",
"type": "Mobile",
"productId": "M44124",
"price": 105,
"currencyCode": "EUR",
"originalPrice": 110,
"originalCurrencyCode": "USD",
"referenceId": "M62455331",
"vendor": "Electronic Supplier",
"status": "Accepted",
"language": "EN",
"quantity": 1,
"channel": "WEB"
}Here's an example payload for an order item data extension that describes additional information about a mobile phone:
{
"model": "4455YU",
"color": "Black",
"capacity" : "1GB"
}