---
title: Connect Salesforce B2C Commerce Cloud
description: Learn how to authorize your Salesforce B2C Commerce account with M2E Multichannel Connect.
url: "https://docs.m2ecloud.com/docs/connect-salesforce-b2c-commerce-cloud/"
updated: "2025-05-12"
category: Store Setup Guides / Salesforce B2C Commerce Cloud
---

# Connect Salesforce B2C Commerce Cloud

To authorize your Salesforce B2C Commerce account with M2E Multichannel Connect, you should provide a few configuration values. This guide will show you where and how to find them.

## API Client ID

To access your [API Client ID](https://developer.salesforce.com/docs/commerce/commerce-api/guide/authorization-for-admin-apis.html#create-an-api-client), you should create an API client first by following these steps:

1) Sign in to [Account Manager](https://account.demandware.com/).

2) In the left menu, click **API Client** > **Add API Client**.

3) Provide a meaningful API Client name in the **Display Name** field, for example, "*API Access for M2E*".

4) Enter a strong password (also known as the client secret) in the **Password** field. Then, re-enter the same password in the **Confirm Password** field.

> ℹ️ You will need this client secret later, so make sure to save it in a secure place.

[![Salesforce B2C Add API Client](https://docs.m2ecloud.com/wp-content/uploads/2024/10/SC_Salesforce_B2C_Add_API_Client.webp)](https://docs.m2ecloud.com/wp-content/uploads/2024/10/SC_Salesforce_B2C_Add_API_Client.webp)

5) Navigate to the **Organizations** section. Click **Add**, choose one or more organizations, and click **Add** again.

[![Salesforce B2C API Client Add Organization](https://docs.m2ecloud.com/wp-content/uploads/2024/10/SC_Salesforce_B2C_API_Client_Add_Organization.webp)](https://docs.m2ecloud.com/wp-content/uploads/2024/10/SC_Salesforce_B2C_API_Client_Add_Organization.webp)

6) Navigate to the **Roles** section and click **Add**.

[![Salesforce B2C API Client Add Roles](https://docs.m2ecloud.com/wp-content/uploads/2024/10/SC_Salesforce_B2C_API_Client_Add_Roles-1.webp)](https://docs.m2ecloud.com/wp-content/uploads/2024/10/SC_Salesforce_B2C_API_Client_Add_Roles-1.webp)

Under the *Salesforce Commerce API* category, select **Salesforce Commerce API**.

[![Salesforce B2C API Client Assign Roles](https://docs.m2ecloud.com/wp-content/uploads/2024/10/SC_Salesforce_B2C_API_Client_Add_Roles.webp)](https://docs.m2ecloud.com/wp-content/uploads/2024/10/SC_Salesforce_B2C_API_Client_Add_Roles.webp)

Once done, click **Add**.

7) Use the filter button to select an organization. For each instance you wish to access, select the instance and click **Add**.

[![Salesforce B2C API Client ID Filters](https://docs.m2ecloud.com/wp-content/uploads/2024/10/SC_Salesforce_B2C_API_Client_ID_Filters.webp)](https://docs.m2ecloud.com/wp-content/uploads/2024/10/SC_Salesforce_B2C_API_Client_ID_Filters.webp)

8) Navigate to the **OpenID Connect** section. In **Default Scopes**, input the following on separate lines:

```
mail
roles
tenantFilter
profile
openId
```

In **Allowed Scopes**, input the following on separate lines:

```
sfcc.catalogs.rw
sfcc.inventory.availability.rw
sfcc.inventory.impex-inventory.rw
sfcc.inventory.reservations.rw
sfcc.orders.rw
sfcc.products.rw
sfcc.ts_ext_on_behalf_of
```

Choose *client_secret_post* for the **Token Endpoint Auth Method**. Then, select *JWT* for **Access Token Format**.

9) Add "[**http://localhost:8080**](http://localhost:8080/)" in the **Redirect URIs** field. Click **Save**.

[![Salesforce B2C API Client ID Scopes](https://docs.m2ecloud.com/wp-content/uploads/2024/10/SC_Salesforce_B2C_API_Client_ID_Scopes.webp)](https://docs.m2ecloud.com/wp-content/uploads/2024/10/SC_Salesforce_B2C_API_Client_ID_Scopes.webp)

10) Locate your new API client in the table that appears post-save.

Copy the **API Client ID** value from the table and paste it into the corresponding field on the “Connect Salesforce” page.

[![Salesforce B2C Copy API Client ID](https://docs.m2ecloud.com/wp-content/uploads/2024/10/SC_Salesforce_B2C_Copy_API_Client_ID.webp)](https://docs.m2ecloud.com/wp-content/uploads/2024/10/SC_Salesforce_B2C_Copy_API_Client_ID.webp)

## Password (Client Secret)

It is the password that you’ve entered at step 4 of creating an API client. Copy the client secret from your secure place and paste it into the corresponding field on the “Connect Salesforce” page.

## Organization ID

It is a unique code that identifies your B2C Commerce instance. To find your Organization ID:

1) Visit your instance's Business Manager website.

2) Sign in with your Account Manager login information.

3) Navigate to *Administration > Site Development > Salesforce Commerce API Settings*. Your Organization ID will be visible on this page.

Click **Copy to Clipboard** and paste the ID into the corresponding field on the “Connect Salesforce” page.

[![Salesforce B2C Organization ID](https://docs.m2ecloud.com/wp-content/uploads/2024/10/SC_Salesforce_B2C_Organization_ID.webp)](https://docs.m2ecloud.com/wp-content/uploads/2024/10/SC_Salesforce_B2C_Organization_ID.webp)

## Short Code

It is an eight-digit identifier used for directing traffic within your B2C Commerce realm. You can find the short code in the same place as your Organization ID:

1) Visit your instance's Business Manager website.

[![](https://docs.m2ecloud.com/wp-content/uploads/2024/10/Salesforce-B2C-Business-Manager-URL-1024x249.webp)](https://docs.m2ecloud.com/wp-content/uploads/2024/10/Salesforce-B2C-Business-Manager-URL-scaled.webp)

> ℹ️ A Business Manager URL looks like this:
>
> [zzte-002.dx.commercecloud.salesforce.com](http://zzte-002.dx.commercecloud.salesforce.com/)
> where zzte - Realm ID
> 002 - Instance ID

2) Sign in with your Account Manager login information.

3) Navigate to *Administration > Site Development > Salesforce Commerce API Settings*.

[![](https://docs.m2ecloud.com/wp-content/uploads/2024/10/Salesforce-Commerce-API-Settings-1024x776.webp)](https://docs.m2ecloud.com/wp-content/uploads/2024/10/Salesforce-Commerce-API-Settings.webp)

4) If this is your first time using the B2C Commerce API in your realm, you'll need to click **Request Short Code** to obtain one.

> ℹ️ It may take up to 24 hours for the short code to be fully integrated into the CDN and all related routing systems in your setup.

Click **Copy to Clipboard** and paste the code into the corresponding field on the “Connect Salesforce” page.

[![Salesforce B2C Short Code](https://docs.m2ecloud.com/wp-content/uploads/2024/10/SC_Salesforce_B2C_Short_Code.webp)](https://docs.m2ecloud.com/wp-content/uploads/2024/10/SC_Salesforce_B2C_Short_Code.webp)

## Tenant Group ID

To find your Tenant Group ID:

1) Log in to **Salesforce Lightning Experience** and navigate to *Setup*.

2) In the *Quick Find* search bar, type **Omnichannel Inventory**.

3) In the *Omnichannel Inventory* section, copy the **Tenant Group ID**.

[![](https://docs.m2ecloud.com/wp-content/uploads/2024/10/Salesforce-Tenant-Group-ID.webp)](https://docs.m2ecloud.com/wp-content/uploads/2024/10/Salesforce-Tenant-Group-ID.webp)

> ℹ️ Access to *Setup > Omnichannel Inventory* is restricted to Salesforce administrators.

Once you’ve entered all four configuration values, click the **Connect** button to authorize your Salesforce B2C Commerce account with M2E Multichannel Connect.
