Skip to main content
Sitecore Documentation
  • Learn
  • Downloads
  • Changelog
  • Roadmap
CDPCloud Portal
Sitecore CDP Developer Documentation
  • Developing with Sitecore CDP
    • Authentication
    • Base URL
    • Batch file formatting requirements
        • Sending offline orders
        • Order data model
        • Order data model for flight
        • Send additional order data
        • Order extension data model
        • Order item data model
        • Send additional order items data
        • Order item extension data model
        • Flight segments data model
        • Using order delete
        • Order delete data model
  1. Batch API Offline orders
  1. Sitecore CDP Developer Documentation
  2. Batch API

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:

AttributeDescriptionTypeExample(s)InsertUpsertMigration
typeThe type of order item. The accepted values must be predefined for your organization in the schema.string (uppercase)"FLIGHT"RequiredNot supportedNot supported
productIdThe ID of the product code.string"DUB-LAS"RequiredNot supportedNot supported
nameThe name of the order item. A free text value for the name of the order item. Max limit: 128string (title case recommended)"flight"RequiredNot supportedNot supported
descriptionA description of the order items.string (title case recommended)"individualSegments"RequiredNot supportedNot supported
vendorThe organization that is selling the order item.string (title case recommended)"Company ABC"RequiredNot supportedNot supported
orderedAtThe date and time the order item was made.ISO 8601 Date/Time UTC"2026-03-07T16:15
.000Z"
OptionalNot supportedNot supported
quantityThe number or quantity of the order item.number2OptionalNot supportedNot supported
priceThe organization’s price for the order item.number (currency)50, 30.6, -45RequiredNot supportedNot supported
currencyCodeThe organization’s currency code for the order item.3 letter ISO 4217"EUR", "NZD", "USD"RequiredNot supportedNot supported
originalPriceThe unit price of the order item before conversion to the organization's currency.number (currency)100OptionalNot supportedNot supported
originalCurrencyCodeThe original currency code for the order item.3 letter ISO 4217"EUR", "NZD", "USD"OptionalNot supportedNot supported
referenceIdAn ID generated by the client to reference the order item.string"B94TXY-1"RequiredNot supportedNot supported
statusThe status of the order item.string (uppercase)"PURCHASED", "CONFIRMED", "REFUNDED", "CANCELLED"RequiredOptionalNot supported
channelThe channel used in the order.string (uppercase)"AIRPORT_KIOSK", "BRANCH", "CALL_CENTER", "GDS", "KIOSK", "MOBILE_APP", "MOBILE_WEB", "OFFLINE", "OTA", "OTHER", "WEB"OptionalNot supportedNot supported
languageThe language used when making the order.2 letter ISO 639 language code (uppercase)"EN", "FR", "DE"OptionalNot supportedNot supported

Here's a JSON example that includes Personally Identifiable Information (PII) and uses insert mode for a flight order item:

{
   "ref":"056621C2-C955-492D-B7EE-C77C6BDDFDEE",
   "schema":"order",
   "mode":"insert",
   "value":{
      "referenceId":"BXTOF9",
      "channel":"WEB",
      "pointOfSale":"spinair.com",
      "status":"PURCHASED",
      "orderedAt":"2026-03-07T16:`15:11`.000Z",
      "currencyCode":"EUR",
      "price":50,
      "paymentType":"Card",
      "cardType":"Visa",
      "contact":{
         "title":"Mr",
         "firstName":"John",
         "lastName":"Doe",
         "gender":"male",
         "dateOfBirth":"1985-12-24T00:00Z",
         "email":"[email protected]",
         "phoneNumbers":[
            "+353161123345",
            "+353861123311"]
},
       "orderItems":[
            {
               "type":"FLIGHT",
               "productId":"DUB-LAS",
               "name":"flight",
               "description":"individualSegments",
               "vendor":"Company ABC",
               "orderedAt":"2026-03-07T16:`15:11`.000Z",
               "quantity":1,
               "price":50.00,
               "currencyCode":"EUR",
               "originalPrice":100.00,
               "originalCurrencyCode":"EUR",
               "referenceId":"B94TXY-1",
               "status":"PURCHASED",
               "consumerTypeCode":"ADT",
               "flightSegments":[
                  {
                     "id":"1234",
                     "origin":"DUB",
                     "destination":"LHR",
                     "departureDateTime":"2026-08-15T16:00Z",
                     "arrivalDateTime":"2026-08-15T17:20Z",
                     "flightNumber":"459",
                     "fareClass":"Economy",
                     "fareFamily":"Plus",
                     "carrier":"FR",
                     "originDestination":"DUB-LHR"
                  },
                  {
                     "id":"1235",
                     "origin":"LHR",
                     "destination":"LAS",
                     "departureDateTime":"2026-08-15T20:00Z",
                     "arrivalDateTime":"2026-08-15T22:30Z",
                     "flightNumber":"460",
                     "fareClass":"Economy",
                     "fareFamily":"Plus",
                     "carrier":"FR",
                     "originDestination":"LHR-LAS"
                  }
               ]
            }
         ]
      }
   }

Here's a JSON example that includes the identifiers attribute and uses insert mode for an order item:

{
   "ref":"056621C2-C955-492D-B7EE-C77C6BDDFDEE",
   "schema":"order",
   "mode":"insert",
   "value":{
      "referenceId":"BET_001-1",
      "channel":"WEB",
      "pointOfSale":"spinbet.com",
      "status":"PURCHASED",
      "orderedAt":"2026-03-07T16:`15:11`.000Z",
      "currencyCode":"EUR",
      "price":50,
      "paymentType":"Card",
      "cardType":"Visa",
      "contact":{
         "identifiers":[
            {
               "provider":"IDENTITY_SYSTEM",
               "id":"B7524AE6-CF1C-440F-B1A2-0C9D42F5CB41",
               "expiryDate":"2025-08-23T16:`17:16`.000Z"
            },
            {
               "provider":"CRM",
               "id":"123456789t"
            }
         ]
      },
      "orderItems":[
         {
            "type":"BET_001-1",
            "productId":"CORRECT_SCORE",
            "name":"Exact score after 90 minutes",
            "description":"footballBets",
            "vendor":"Company ABC",
            "orderedAt":"2026-03-07T16:`15:11`.000Z",
            "quantity":1,
            "price":50.00,
            "currencyCode":"EUR",
            "originalPrice":100.00,
            "originalCurrencyCode":"EUR",
            "referenceId":"BET_001-1",
            "status":"PURCHASED"
         }
      ]
   }
}
AttributeDescriptionTypeExample(s)InsertUpsertMigration
typeThe 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"RequiredNot supportedNot supported
productIdThe ID of the product code.string"DUB-LAS"RequiredNot supportedNot supported
quantityThe number or quantity of the order item.number2OptionalNot supportedNot supported
orderedAtThe date and time the order item was made.ISO 8601 Date/Time UTC"2026-01-01T16:17
.000Z"
OptionalNot supportedNot supported
priceThe organization’s price for the order item.number (currency)50, 30.6, -45RequiredNot supportedNot supported
currencyCodeThe organization’s currency code for the order item.3 letter ISO 4217"EUR", "NZD", "USD"RequiredNot supportedNot supported
originalPriceThe unit price of the order item before conversion to the organization's currency.number (currency)100OptionalNot supportedNot supported
originalCurrencyCodeThe original currency code for the order item.3 letter ISO 4217"EUR", "NZD", "USD"OptionalNot supportedNot supported
referenceIdAn ID generated by the client to reference the order item.string"B94TXY-1"RequiredNot supportedNot supported
vendorThe organization that is selling the order item.string (title case recommended)"Company ABC"OptionalNot supportedNot supported
statusThe status of the order item.string (uppercase)"RESERVED", "PENDING", "DECLINED", "CONFIRMED", "CANCELLED", "REFUNDED", "PURCHASED", "UNKNOWN"RequiredNot supportedNot supported
channelThe channel used in the order.string (uppercase)"AIRPORT_KIOSK", "BRANCH", "CALL_CENTER", "GDS", "KIOSK", "MOBILE_APP", "MOBILE_WEB", "OFFLINE", "OTA", "OTHER", "WEB"OptionalNot supportedNot supported
languageThe language used when making the order.2 letter ISO 639 language code (uppercase)"EN", "FR", "DE"OptionalNot supportedNot supported
nameThe name of the order item. A free text value for the name of the order item. Max limit: 128string (title case recommended)"Insurance"OptionalNot supportedNot supported
descriptionA description of the order items.string (title case recommended)"Family Insurance"OptionalNot supportedNot supported
consumerTypeCodeThe code used to represent the type of passenger. Only applicable for flight.string (uppercase)"ADT", "CHD", "INF", "INS"Optional/Required depending on product categoryNot supportedNot supported
flightSegmentsA list of flight segments associated with the order item. Only applicable for flight orders.JSON array of JSON objectsN/AOptionalNot supportedNot supported
tripType (deprecated)The type of trip the guest is taking.string (uppercase)"OW", "RT"DeprecatedDeprecatedDeprecated

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.

{
   "ref":"056621C2-C955-492D-B7EE-C77C6BDDFDEE",
   "schema":"order",
   "mode":"insert",
   "value":{
      "referenceId":"B94TXY",
      "channel":"WEB",
      "pointOfSale":"spinair.com",
      "status":"PURCHASED",
      "orderedAt":"2026-08-23T16:`17:16`.000Z",
      "currencyCode":"EUR",
      "price":50,
      "paymentType":"Card",
      "cardType":"Visa",
      "contact":{
         "title":"Mr",
         "firstName":"John",
         "lastName":"Doe",
         "gender":"male",
         "dateOfBirth":"1985-12-24T00:00Z",
         "email":"[email protected]",
         "phoneNumbers":[
            "+353161123345",
            "+353861123311"
         ],
         "identifiers":[
            {
               "provider":"IDENTITY_SYSTEM",
               "id":"B7524AE6-CF1C-440F-B1A2-0C9D42F5CB41",
               "expiryDate":"2025-08-23T16:`17:16`.000Z"
            },
            {
               "provider":"Loyalty Program",
               "id":"123456789t"
            }
         ]
      },
      "consumers":[
         {
            "title":"Mr",
            "firstName":"John",
            "lastName":"Doe",
            "identifiers":[
               {
                  "provider":"IDENTITY_SYSTEM",
                  "id":"B7524AE6-CF1C-440F-B1A2-0C9D42F5CB41",
                  "expiryDate":"2025-08-23T16:`17:16`.000Z"
               }
            ],
            "orderItems":[
               {
                  "referenceId":"B94TXY-1-item001"
               }
            ]
         }
      ],
      "orderItems":[
         {
            "type":"FLIGHT",
            "productId":"DUB-LAS",
            "orderedAt":"2026-01-01T16:`17:16`.000Z",
            "quantity":1,
            "price":50.00,
            "currencyCode":"EUR",
            "originalPrice":100.00,
            "originalCurrencyCode":"EUR",
            "referenceId":"B94TXY-1-item001",
            "status":"PURCHASED",
            "consumerTypeCode":"ADT",
            "flightSegments":[
               {
                  "id":"1234",
                  "origin":"DUB",
                  "destination":"LHR",
                  "departureDateTime":"2026-08-15T16:00Z",
                  "arrivalDateTime":"2026-08-15T17:20Z",
                  "flightNumber":"459",
                  "fareClass":"Economy",
                  "fareFamily":"Plus",
                  "carrier":"FR",
                  "originDestination":"DUB-LHR"
               },
               {
                  "id":"1235",
                  "origin":"LHR",
                  "destination":"LAS",
                  "departureDateTime":"2026-08-15T20:00Z",
                  "arrivalDateTime":"2026-08-15T22:30Z",
                  "flightNumber":"460",
                  "fareClass":"Economy",
                  "fareFamily":"Plus",
                  "carrier":"FR",
                  "originDestination":"LHR-LAS"
               }
            ]
         }
      ]
   }
}
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