HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunitySubmit a ticketLog In
GitHubNuGetDev CommunitySubmit a ticket

Offline and historical orders

Provides a code sample for importing offline and historical B2B orders through XML.

The Recommendations system accepts both offline and historical order data through XML imports, in addition to order data collected through a Recommendation tracking implementation. Offline and historical order processing can enrich the data used by algorithms and lead to improved recommendation quality.

Optimizely Configured Commerce uses customerId  for offline and historical orders. The following code shows an XML sample of an order with customerId:

<orders>
  <order refCode="someRefCode" ..other fields.. customerId="SomeCustomerId">
    <user email="someEmail"/>
    //List of products
  </order>
<orders>