> For the complete documentation index, see [llms.txt](https://developers.citrusad.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.citrusad.com/integration/reference/syncing-order-data-via-file.md).

# Syncing order data via file

{% hint style="info" %}
Epsilon Retail Media's documentation is now centralized with our knowledgebase!

For up to date guides, please view [this page](https://help.citrusad.com/retail-media-interface/integration/data-api/order-data-1/syncing-order-data-via-file) in the new Integration APIs space of our documentation.
{% endhint %}

Epsilon Retail Mediaf only supports TSV format for order data. The table below describes the names of columns in a TSV file and their descriptions.

{% hint style="warning" %}
When syncing via TSV, `order_id` must be provided in sequential order, ensuring that if multiple products are purchased, they are attributed to the same `order_Id` at the same time.

If `order_id`’s are fragmented, subsequent products in the order will not be attributed.
{% endhint %}

## Column names and descriptions for customer data in TSV files

| Column name            | Required/optional | Data type | Description                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ---------------------- | ----------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `order_id`             | Required          | Text      | <p>This is the identifier of the order in the retailer's system.<br><br><strong>MUST</strong> be ordered by orderId.</p>                                                                                                                                                                                                                                                                                                                         |
| `order_date`           | Required          | Text      | <p>This is the date or the date and time of the order. This must be in the format of ISO-8601 standard and must be a precise, full timestamp, e.g. <code>2019-03-14T15:06:17+10:00</code><br>Must be in either timezone adjusted (+10:00 for UTC+10), or UTC time.</p>                                                                                                                                                                           |
| `product_code`         | Required          | Text      | This is the code to identify the product in the order.                                                                                                                                                                                                                                                                                                                                                                                           |
| `quantity`             | Required          | Number    | <p>This is the quantity of the product in the order.<br><br>This <strong>MUST</strong> be an integer number.</p>                                                                                                                                                                                                                                                                                                                                 |
| `regular_unit_price`   | Optional          | Number    | <p>This is regular unit price of the product in the order.<br><br>If provided, it <strong>MUST</strong> be a number.</p>                                                                                                                                                                                                                                                                                                                         |
| `price_with_discounts` | Required          | Number    | This is the total price of the products with discounts. It **MUST** be a number, e.g. if an order item contains 3 items with a price of 2.00, the value will be `6`.                                                                                                                                                                                                                                                                             |
| `customer_id`          | Optional          | Text      | This is the identifier of the customer of the order.                                                                                                                                                                                                                                                                                                                                                                                             |
| `session_id`           | Required.         | Text      | This is a generated id you control that identifies a user's session. Epsilon Retail Media can use this for purchase attribution.                                                                                                                                                                                                                                                                                                                 |
| `seller_id`            | Optional          | Text      | <p>The unique Id of the seller. <strong>Only required if onboarding marketplace sellers</strong>. Can be left blank for non marketplace products.<br><br>Providing this when not onboarding marketplace suppliers can lead to attribution issues.<br><br>There are additional requirements to integrate seller\_ids, please refer to <a href="/integration/reference/marketplace-sellerid.md">Marketplace sellerId</a> for more information.</p> |

An example of a TSV file for customers can be seen in the table below. Similar to product data and customer data, the raw data is a text file, but it is represented in a table so we can read it easily.

| `order_id` | `order_date`                | `product_code` | `quantity` | `regular_unit_price` | `price_with_discounts` | `customer_id` | `session_id`                               | `seller_id`     |
| ---------- | --------------------------- | -------------- | ---------- | -------------------- | ---------------------- | ------------- | ------------------------------------------ | --------------- |
| 1343321    | `2019-03-15T17:06:17+00:06` | 357480         | `1`        | `469`                | `469`                  | 4234          | Z2YcoG5Pqe1uTCsz3Lk5WE3sBmExNjI4NjAxNDA    | wde3e-sadet-d43 |
| 1343321    | `2019-03-15T17:06:17+00:06` | 4153234        | `4`        | `47.95`              | `191.8`                | 4234          | Z2YcoG5Pqe1uTCsz3Lk5WE3sBmExNjI4NjAxNDA    |                 |
| 1343321    | `2019-03-15T17:06:17+00:06` | 73553          | `1`        | `6`                  | `6`                    | 4234          | Z2YcoG5Pqe1uTCsz3Lk5WE3sBmExNjI4NjAxNDA    |                 |
| 6845359    | `2019-03-15T17:06:17+00:06` | 74549          | `3`        | `6`                  | `18`                   | 2462          | 4fy5MPixTU-cKAWimSlHsLkfrUZCV1NfNzM1NTM=   |                 |
| 6845360    | `2019-03-15T17:06:17+00:06` | 76542          | `2`        | `11`                 | `22`                   | 4281          | IDI0Ks\_vmSyeLUmDaa1UCCGJ\_chCV1NfNzM1NTM= |                 |

{% hint style="info" %}
If you're unsure about the terms outlined in this section, please visit the reference page.
{% endhint %}
