---
schema_version: "1"
id: e5168e9e25c23f6b236ba2c09be4b7af05338c3727e1bc663f0871d72c8cc18a
title: Generate an API Client ID for Marketing Cloud Intelligence
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/cc/264-0-0/b2c_generate_datorama_api_client_id.md
canonical_url: https://help.salesforce.com/s/articleView?id=cc.b2c_generate_datorama_api_client_id.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 237b3f2edc8a9092ddb5bf5e669a2e5ebfaf8fdaf0783e5ff4dde552215f22d3
description: To connect your B2C Commerce data to Marketing Cloud Intelligence, generate an API Client ID for Marketing Cloud Intelligence.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Generate an API Client ID for Marketing Cloud Intelligence

To connect your B2C Commerce data to Marketing Cloud Intelligence, generate an API Client ID for Marketing Cloud Intelligence.

1. Log into Account Manager.
2. Click **API Client**.
    
    The API Clients page lists the ID, display name, and status for each client.
3. Click **Add API Client**.
4. Complete the API Client information.
    1. In the Display Name field, enter the client display name.
    2. Enter a secure password.
    3. In the Confirm Password field, reenter the password.
    4. Under Organizations, select your organization.
    5. Under Roles, select **Salesforce Commerce API** and add your production instance as a filter.
        
        ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/images/icon_note.png)
        
        Note Data extraction is allowed only for production instances.
    6. Under OpenID Connect, in the Default Scopes field, enter the tenant filter (1) and roles (2) on separate lines.
        
        ![Open ID Connect default scopes.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/cc/b2c_merchandiser_administrator/images/b2c_analytics_defaultscopes.png)
        
        ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/images/icon_note.png)
        
        Note The tenantFilter and roles entries are necessary when using the Authorization Code Flow or OpenID Connect.
    7. From the Token Endpoint dropdown, select **client\_secret\_post**.
    8. From the Access Token Format dropdown, select **JSON Web Token (JWT)**.
    9. Click **Save**.
        
        The saved API Client appears in the API client list for your organization.
5. To view the API Client ID, click the API Client.
    
    Use the new API Client ID when entering your B2C Commerce credentials in the Salesforce B2C Commerce Connector.