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

# Syncing order data via file

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="/pages/vhCPkRXbJ44Dk4bOVBGW">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 %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.citrusad.com/retail-media-interface/integration/data-api/order-data-1/syncing-order-data-via-file.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
