Salesforce B2B Commerce Cloud
Salesforce B2B Commerce Cloud is a comprehensive e-commerce platform designed for business-to-business transactions, enabling companies to create personalized buying experiences, manage complex pricing structures, and streamline B2B sales processes.

Power end-to-end data operations for your Salesforce B2B Commerce Cloud API with Nexla. Our bi-directional Salesforce B2B Commerce Cloud connector is purpose-built for Salesforce B2B Commerce Cloud, making it simple to ingest data, sync it across systems, and deliver it anywhere — all with no coding required. Nexla turns API-sourced data into ready-to-use, reusable data products and makes it easy to send data to Salesforce B2B Commerce Cloud or any other destination. With comprehensive monitoring, lineage tracking, and access controls, Nexla keeps your Salesforce B2B Commerce Cloud workflows fast, secure, and fully governed.
Features
Type: API
- Seamless API Integration: Connect to any endpoint as source or destination without coding, with automatic data product creation
- Visual Composition & Chaining: Build complex integrations using visual templates, chain API calls, and compose workflows with data validation and filtering
- API Proxy: Expose curated slices of your data securely with a secure and customizable API proxy that validates and transforms data on the fly
- Request optimization with intelligent batching, retry, and caching to minimize API calls and costs
Prerequisites
Before creating a Salesforce B2B Commerce Cloud credential, you need to obtain your OAuth2 Client ID and Client Secret from your Salesforce account. Salesforce B2B Commerce Cloud uses OAuth2 3-legged authentication, which requires user authorization to access your Salesforce account.
To obtain your Salesforce OAuth2 credentials, follow these steps:
-
Sign in to your Salesforce account using your administrator credentials.
-
Navigate to Setup in your Salesforce account by clicking the gear icon in the top right corner and selecting Setup.
-
In the Setup menu, use the Quick Find box to search for App Manager or navigate to Platform Tools > Apps > App Manager.
-
Click New Connected App to create a new connected app for API access.
-
Configure your connected app settings:
- Enter a name for the connected app (e.g., "Nexla Integration")
- Enter a contact email address
- Enable Enable OAuth Settings
- Enter a callback URL (e.g.,
https://dataops.nexla.io/cors/https://login.salesforce.com/services/oauth2/callback) - Select the OAuth scopes you need (e.g., Full access (full), Perform requests on your behalf at any time (refresh_token, offline_access))
-
Click Save to create the connected app.
-
After saving, you will be redirected to the connected app details page. Your Consumer Key (Client ID) will be displayed. Copy the Consumer Key.
-
Click Click to reveal next to the Consumer Secret to reveal your Consumer Secret (Client Secret). Copy the Consumer Secret immediately, as it may not be accessible again after you navigate away from the page.
-
Store both credentials securely, as you will need them to configure your Nexla credential. The Consumer Key and Consumer Secret are sensitive information and should be kept confidential.
The Consumer Key (Client ID) and Consumer Secret are used to authenticate with the Salesforce OAuth2 authorization endpoint. The OAuth2 flow requires user authorization to obtain an access token, which is then sent in the Authorization header with the Bearer prefix for all subsequent API requests to the Salesforce B2B 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 account settings and generate new ones. For detailed information about Salesforce OAuth2 authentication, API access, and available endpoints, refer to the Salesforce API documentation.
Authenticate
Create a credential in Nexla
- After selecting the data source/destination type, click the Add Credential tile to open the Add New Credential overlay.
New Credential Overlay – Salesforce B2B Commerce Cloud

-
Enter a name for the credential in the Credential Name field and a short, meaningful description in the Credential Description field.
-
Salesforce B2B Commerce Cloud uses OAuth2 3-legged authentication for all API requests. Click the Authorize button to begin the OAuth2 authorization flow. You will be redirected to the Salesforce authorization page where you will need to sign in and grant permissions to Nexla to access your Salesforce account.
-
After granting permissions, you will be redirected back to Nexla, and the authorization will be completed automatically. The access token and refresh token will be stored securely in your credential.
Your Salesforce OAuth2 credentials can be found in your Salesforce account under Setup > App Manager > Your Connected App. The Consumer Key (Client ID) and Consumer Secret are used to authenticate with the Salesforce OAuth2 authorization endpoint to obtain an access token. The access token is then automatically sent in the
Authorization: Bearer {token}header for all subsequent API requests to the Salesforce B2B 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 account settings and generate new ones. The Consumer Key and Consumer Secret provide access to your Salesforce account data and should be treated as sensitive information. Keep your credentials secure and do not share them publicly.
For detailed information about Salesforce OAuth2 authentication, API access, and available endpoints, see the Salesforce API documentation.
-
Click the Save button at the bottom of the overlay. The newly added credential will now appear in a tile on the Authenticate screen during data source/destination creation.
Use as a data source
To create a new data flow, navigate to the Integrate section, and click the New Data Flow button. Select the Salesforce B2B Commerce Cloud connector tile, then select the credential that will be used to connect to your Salesforce B2B Commerce Cloud account, and click Next; or, create a new Salesforce B2B Commerce Cloud credential for use in this flow.
Endpoint templates
Nexla provides pre-built templates that can be used to rapidly configure data sources to ingest data from common Salesforce B2B Commerce Cloud endpoints. Select the endpoint from which this source will fetch data from the Endpoint pulldown menu. Available endpoint templates are listed in the expandable boxes below.
Once the selected endpoint template has been configured, click the Test button to the right of the endpoint selection menu to retrieve a sample of the data that will be fetched. Sample data will be displayed in the Endpoint Test Result panel on the right, allowing you to verify that the source is configured correctly before saving.
Manual configuration
Salesforce B2B Commerce Cloud data sources can also be manually configured to ingest data from any valid Salesforce B2B Commerce Cloud API endpoint, including endpoints not covered by the pre-built templates or endpoints that require chained API calls or custom query parameters. Select the Advanced tab at the top of the configuration screen, and follow the instructions in Connect to Any API to configure the API method, endpoint URL, date/time and lookup macros, path to data, metadata, and request headers.
Salesforce B2B Commerce Cloud API typically uses the GET method. The endpoint URL should include your instance URL (e.g., https://your-instance.salesforce.com/services/apexrest/ccrz/cccategory/v8/fetch). For the Response Data Path, use $.records[*] for SOQL query results, $.categoryList[*] for the category list, $.productList[*] for the product list, or $ for single-record endpoints, depending on the endpoint. Salesforce B2B Commerce Cloud API uses next URL-based pagination (via $.nextRecordsUrl) for some endpoints, and offset-based pagination (offset/limit parameters) for others; select the pagination type that matches your endpoint.
Once all of the relevant settings have been configured, click the Next button to proceed with the rest of the data flow configuration, or click the Save button to save the new Salesforce B2B Commerce Cloud data source for later use.