---
schema_version: "1"
id: 00c9669211c47d9d90064e7c9e61009ca140aaf5a9f3e551c4a28aebdf8c2e67
title: Create an API Data Stream Using the Marketing Cloud Intelligence Connector for B2C Commerce
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/mktg/264-0-0/dato_data_streams_api_connect_commcloud_create.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.dato_data_streams_api_connect_commcloud_create.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: fb015cef3bddb10e70f311d77a2c9ea9ed75526d0f3a2f48a11e56247c6d302d
description: Create an API data steam to connect your Commerce Cloud site data to Marketing Cloud Intelligence. You can bring in either product-level or order-level data. Product-level data includes revenue generated for each product (SKU) according to the date range. Order-level data is aggregated order revenue over time without the details of specific products.
products:
  - Marketing
  - Marketing Cloud Intelligence
release: "264"
---
# Create an API Data Stream Using the Marketing Cloud Intelligence Connector for B2C Commerce

Create an API data steam to connect your Commerce Cloud site data to Marketing Cloud Intelligence. You can bring in either product-level or order-level data. Product-level data includes revenue generated for each product (SKU) according to the date range. Order-level data is aggregated order revenue over time without the details of specific products.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d33188e38">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d33188e38 ">To create an API data stream:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d33188e38 ">Admin</td>

          </tr>
        </tbody>
      </table>

Before you can use the connector, set up B2C Commerce API access by generating an API client ID. See [Generate an API Client for Marketing Cloud Intelligence](https://help.salesforce.com/s/articleView?id=cc.b2c_generate_datorama_api_client_id.htm&language=en_US).

1. On the **Connect & Mix** tab expand **Data Streams**.
2. Click **Add New**.
3. Select the **Salesforce Commerce Cloud B2C** connector.
4. In the **General** section, enter your Commerce Cloud credentials.
5. Select the site that you’re pulling data for. In the Initial data fetch section, select the dates you want to pull data for. The default is 30 days. You can process data up to 180 days prior, queried in 90-day intervals.
6. If you want to bring in order-level data, under **Extended Properties**, deselect **Bring only product (SKU) level data**. Select this option to bring in product-level data.
7. To change the mapping, on the bottom of the **Create New Stream** page, select **Map to Model**. To learn more about mapping, see [Mapping Your Source Data in Marketing Cloud Intelligence](https://help.salesforce.com/s/articleView?id=mktg.dato_data_mapping.htm&language=en_US).
8. To define advanced settings for the data stream, on the bottom of the **Create New Stream** page, select **Advanced Settings**. To learn more about defining advanced settings, see [Advanced Settings in Data Streams](https://help.salesforce.com/s/articleView?id=mktg.dato_data_adv_streams.htm&language=en_US).
9. Click **Create**.
10. Quality check your data:
    1. Create a report in Commerce Cloud for the date range, and then process the relevant data stream in Marketing Cloud Intelligence for the same date range.
    2. For order-level data, compare the number of orders and revenue generated.
    3. For product level data, compare the total number of units and revenue.
    4. In Marketing Cloud Intelligence, create a report, table widget, or pivot table containing the same dimensions and measurements for the same report and date range.
    5. Compare the measurement totals and make sure that they align.

Here’s a video about the B2B Commerce connector: