Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

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>