> For the complete documentation index, see [llms.txt](https://help.daasity.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.daasity.com/core-concepts/data-integrations/setup-guides/digital-integrations/shopify/shopify-b2b-data.md).

# Shopify B2B Data

When you set up a new Shopify Plus integration in Daasity, we'll automatically pull in your B2B orders, draft orders, and metadata about companies, company locations, and contacts.&#x20;

{% hint style="info" %}
**Shopify integrations set up before September 2024**

If you have a Shopify Plus integration that was set up before September 2024, you need to re-authorize your integration and run history to pick up additional B2B data. You can do this in the edit menu of the integration screen in the Daasity app.
{% endhint %}

{% hint style="info" %}
**Shopify Markets data — July 2026 update**

As of July 7, 2026, Daasity extracts Shopify Markets data as a standalone resource — it no longer requires B2B to be enabled on your store. Markets data is stored in the `shopify_b2b.markets` and `shopify_b2b.market_regions` tables.

If your integration was authorized before July 2026, you may need to re-authorize it to grant the `read_markets` scope and enable the Markets resource. You can do this in the edit menu of the integration screen in the Daasity app, then run a history load to backfill.
{% endhint %}

## Segmenting by Sales Rep and Sales Region

We also have additional tools to help you segment your B2B performance by sales rep and region. But to use these, you must set up some custom fields in Shopify.

### Set up the Sales Rep field

Here's how you would set up the custom company sales rep field:

{% hint style="info" %}
You can set up the **Sales Rep** field under either **Companies** or **Company Locations** — you should choose whichever makes sense for your business. If you assign sales reps to entire companies, choose **Companies**. If you assign a sales reps to individual company locations, choose **Company Locations**.
{% endhint %}

{% embed url="<https://youtu.be/zQ95YYCZHdE>" fullWidth="true" %}

1. In your Shopify admin, navigate to **Settings** in the lower right-hand corner of your screen.
2. Click into the **Custom Data** tab on the left.
3. In the **Metafield definitions** section, click on **Companies** or **Company Locations** — You should choose based on whether your organization assigns sales reps to a specific company or a specific company location.
4. Click **Add Definition**.
5. In the **Name** field, enter `Sales Rep`.
6. Click the **Select Type** button and choose **Single Line Text**.
7. If you want to create a preset list of choices (we recommend choosing this so that there aren't inconsistencies), check the **Limit to preset choices** option under the **Validations** section. Then enter the names of the sales reps currently active in your organization.
8. Under the **Options** section, click the **Filter in company index** toggle so that you'll be able to filter companies by sales rep in your Shopify admin.
9. Click **Save**.

### Set up the Sales Region field

Here's how you would set up the custom company location sales region field:

{% hint style="info" %}
You can set up the **Sales Region** field under either **Companies** or **Company Locations** — you should choose whichever makes sense for your business. If you assign sales regions to entire companies, choose **Companies**. If you assign a sales regions to individual company locations, choose **Company Locations**.
{% endhint %}

{% embed url="<https://youtu.be/fLg-0c8NbIc>" fullWidth="true" %}

1. In your Shopify admin, navigate to **Settings** in the lower right-hand corner of your screen.
2. Click into the **Custom Data** tab on the left.
3. In the **Metafield definitions** section, click on **Companies** or **Company Locations** — You should choose based on whether your organization assigns sales regions to a specific company or a specific company location.
4. Click **Add Definition**.
5. In the **Name** field, enter `Sales Region`.
6. Click the **Select Type** button and choose **Single Line Text**.
7. If you want to create a preset list of choices (we recommend choosing this so that there aren't inconsistencies), check the **Limit to preset choices** option under the **Validations** section. Then enter the names of the sales regions used by your organization to classify B2B customers.
8. Under the **Options** section, click the **Filter in company index** toggle so that you'll be able to filter companies by sales rep in your Shopify admin.
9. Click **Save**.

### Add metadata info

Now that you have set up your Sales Rep and Sales Region fields, you must populate those fields for the companies and company locations in your Shopify admin.
