---
title: Offline and historical orders
slug: product-recommendations/docs/offline-and-historical-orders
docTags: 
createdAt: 2026-07-30T20:41:31.757Z
---

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.

The following code shows an XML sample of an order with `customerId`:

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