> ## Documentation Index
> Fetch the complete documentation index at: https://data-foundation.rockerbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Retail Data

### Retail Overview

Tracking retail purchases in Rockerbox unlocks the ability to identify the unique marketing mix and path to conversion for your users that purchase in your retail locations vs. online.

In order to attribute marketing touchpoints back to users, Rockerbox requires a consistent user ID to be passed to Rockerbox across web and retail.

For example, if a user purchases from one of your retail locations - but you have no email address or customer ID associated with that user, there is no way for Rockerbox to attribute marketing touchpoints back to that user.

> [!TIP]
>
> Having a loyalty program signup in your retail locations is a great way to encourage users to provide their email address during the checkout process. \
> \
> The more consistent you are with capturing email address/user ID - the more retail conversions Rockerbox can attribute back to marketing.

### Integration Types

There are two ways to send Rockerbox in-store purchase data:

* [Webhooks](https://data-foundation.rockerbox.com/help-docs/setup-and-technical-documentation/conversion-events/offline-conversion-events/webhooks.md)
* [Batch files ](https://data-foundation.rockerbox.com/help-docs/setup-and-technical-documentation/conversion-events/offline-conversion-events/conversions-batch-files.md)

### JSON

The below are fields that must be provided to Rockerbox via a JSON integration. This can be sent to Rockerbox via either the Live or Batch methodology.

<table><tbody><tr><td>Field Name</td><td>Field Type</td><td>Required</td><td>Notes</td></tr><tr><td>timestamp</td><td>string (UTC)</td><td>Yes</td><td /></tr><tr><td>order\_id</td><td>string</td><td>Yes</td><td /></tr><tr><td>revenue</td><td>decimal</td><td>Yes</td><td>USD, with cents up to 2 decimal places</td></tr><tr><td>email</td><td>string</td><td>Yes (or user\_id)</td><td>Either email or user\_id must be sent and it must match the web based user identifier that is being sent in your pixel.</td></tr><tr><td>user\_id</td><td>string</td><td>Yes (or email)</td><td>Either email or user\_id must be sent and it must match the web based user identifier that is being sent in your pixel.</td></tr><tr><td>store\_id</td><td>int</td><td>No</td><td /></tr><tr><td>products</td><td>array</td><td>No</td><td>This is required if you want to execute product level returns</td></tr><tr><td>id</td><td>string</td><td>No</td><td /></tr><tr><td>name</td><td>string</td><td>No</td><td /></tr><tr><td>sku</td><td>string</td><td>No</td><td /></tr><tr><td>category</td><td>string</td><td>No</td><td /></tr><tr><td>variant</td><td>string</td><td>No</td><td /></tr><tr><td>price</td><td>float</td><td>No</td><td /></tr><tr><td>quantity</td><td>int</td><td>No</td><td /></tr></tbody></table>

```text theme={null}
{
    "email": "bob@example.com",
    "user_id": "0987654",
    "order_id": "1234567",
    "store_id": "NYC1234",
    "revenue": 310.99,
    "products": [
        {
            "id": "M083-FQFLA-ALEXAN-SKY",
            "sku": "ABCDEF123456",
            "name":" Shirt",
            "category": "Mens",
            "price": 275,
            "quantity": 1,
            "variant": "Blue Large"
        },
        {
            "id": "N209-ALWOK-MARCIA-FAL",
            "sku": "LSKEIP990812",
            "name":" Pants",
            "category": "Mens",
            "price": 325,
            "quantity": 1,
            "variant": "Red Large"
        }
    ]
}
```

### Batch file requirements

**Customer Order File:** Provide one row per order, with the following columns:

* order\_id
* customer\_id
* timestamp
* email
* revenue
* store\_id
* products

If you have more than one product per order, then you can send a JSON list of products in that column.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.