Authorization
Salesforce B2C Commerce Cloud
Prerequisites
Before creating a Salesforce B2C Commerce Cloud credential, you need to obtain your OAuth2 Client ID, Client Secret, and other required configuration parameters from your Salesforce B2C Commerce Cloud account. Salesforce B2C Commerce Cloud uses OAuth2 2-legged authentication (Client Credentials flow), which allows Nexla to access your account using client credentials without user interaction.
To obtain your Salesforce B2C Commerce Cloud OAuth2 credentials, follow these steps:
-
Sign in to your Salesforce B2C Commerce Cloud account using your administrator credentials.
-
Navigate to your account settings or API management section in the Salesforce B2C Commerce Cloud interface.
-
Look for the API or OAuth2 Applications section in your account settings, or navigate to Settings > API or Developers > OAuth2 Applications.
-
If you don't have an OAuth2 application yet, look for the option to create or register your OAuth2 application.
-
Click Create OAuth2 Application or Register OAuth2 Application to create a new OAuth2 application.
-
Configure your OAuth2 application settings:
- Enter a name for the application (e.g., "Nexla Integration")
- Review and select the permissions or scopes for the application (if applicable)
- Select Client Credentials or 2-legged OAuth as the grant type
-
Click Create or Register to create the OAuth2 application.
-
Your Client ID will be displayed immediately after creation. Copy the Client ID.
-
Your Client Secret will be displayed immediately after creation. Copy the Client Secret immediately, as it may not be accessible again after you navigate away from the page.
-
Navigate to your Salesforce B2C Commerce Cloud account settings to find your Organization ID, Realm ID, Instance ID, Short Code, and other required parameters. These can typically be found in your account settings or API configuration page.
-
Store all credentials securely, as you will need them to configure your Nexla credential. The Client ID, Client Secret, and other configuration parameters are sensitive information and should be kept confidential.
The Client ID and Client Secret are used to authenticate with the Salesforce B2C Commerce Cloud API authentication endpoint (/dwsso/oauth2/access_token) to obtain an access token. The access token is then sent in the Authorization header with the Bearer prefix for all subsequent API requests to the Salesforce B2C Commerce Cloud API. The access token is automatically obtained and refreshed by Nexla as needed. If your credentials are compromised, you should immediately revoke them in your Salesforce B2C Commerce Cloud account settings and generate new ones. For detailed information about Salesforce B2C Commerce Cloud OAuth2 authentication, API access, and available endpoints, refer to the Salesforce B2C Commerce Cloud API documentation.
Create a Salesforce B2C Commerce Cloud Credential
- To create a new Salesforce B2C Commerce Cloud credential, after selecting the data source/destination type, click the Add Credential tile to open the Add New Credential overlay.
New Credential Overlay – Salesforce B2C Commerce Cloud

Credential Name & Description
-
Enter a name for the credential in the Credential Name field and a short, meaningful description in the Credential Description field.
Resource descriptions are recommended but are not required. They should be used provide information about the resource purpose, data freshness, etc. that can help the owner and other users efficiently understand and utilize the resource.