Integrating Salesforce B2C Commerce
Capabilities
DataGrail's Salesforce B2C Commerce integration provides the following capabilities:
Product | Capability | ||||
---|---|---|---|---|---|
Request Manager |
|
Before You Start
To successfully configure this integration, please ensure you have sufficient privileges:
- DataGrail User Role: Super Admin, Connections Manager
- Salesforce B2C Commerce User Role: Admin
Create an API Client
- Log in to Salesforce Commerce Cloud Account Manager.
- Select API Client from the left navigation and then Add API Client.
- Create a Client Password and store it in a secure, temporary location.
- Select Organizations section and add one or more organizations.
- Select the Roles section and add instances.
Adding Instances
- Select Add
- Look for the Salesforce Commerce API category and select the
Salesforce Commerce API
. - Select Add
- Select the filter button.
- Select an organization.
- Select and add all instances you want to access using the API client.
- Go to the OpenID Connect section.
- Configure the Default Scopes.
Required Default Scopes
mail
roles
tenantFilter
profile
openId
- Configure the Allowed Scopes.
Allowed Scopes
sfcc.orders.rw
- For the Token Endpoint Auth Method field, select
client_secret_post
. - For the Access Token Format field, select
JWT
. - In the Redirect URIs field, add
http://localhost:8080
. - Select Save.
- Find your new API client in the table of API clients that appears after saving.
- Copy the value in the API Client ID column of the table and store it in a secure, temporary location.
- Look up the Organization ID.
Locating The Organization ID
- Go to the Business Manager URL for your instance.
- Log in using your Account Manager credentials.
- Select App Launcher and then select Administration > Site Development > Salesforce Commerce API Settings.
- The organization ID is displayed on the page. Copy and store it.
- Retrieve the Shortcode.
Locating The Shortcode
- Go to the Business Manager URL for your instance.
- Log in using your Account Manager credentials.
- Select App Launcher and then select Administration > Site Development > Salesforce Commerce API Settings.
- If you’ve never used the B2C Commerce API in your realm, select Request Short Code. It can take up to 24 hours for the short code to propagate through the CDN and all the routing systems in your configuration.
- Retrieve the Site ID (sometimes called a “channel”) for which you want to access data.
Locating The Site ID
- Go to the Business Manager URL for your instance.
- Log in using your Account Manager credentials.
- Select App Launcher and then select Administration > Sites > Manage Sites.
Connect to DataGrail
- In DataGrail, navigate to Integrations and select Configure New Integration to search for Salesforce B2C Commerce.
- Enter the Client ID, Client Password, Shortcode, Organization ID and Site IDs (you can specify one or more Site IDs as a comma-separated list).
- Select Configure Integration.
Next Steps
Now that you've successfully connected the integration, check out the following resources:
- Synchronous vs. Asynchronous Integrations
- Direct Contact Integrations
- Access Request Lifecycle
- Request Manager Overview
Troubleshooting
If you are unable to successfully connect the integration, review these common troubleshooting steps:
Ensure Required Permissions Are Granted on API Keys/Resources
DataGrail checks required permissions and scopes on API keys/resources used by each integration. If all necessary permissions are not granted, new connections will fail.
Review Required Account Types and User Roles
If users do not have the necessary permissions or the minimum required user role in the connecting system, the connection to DataGrail will fail. Additionally, connections will fail if your account type does not match the one required by the integration.
See Before You Start to review these requirements.
Technical Details
Access Type | Asynchronous |
---|
API Documentation
Learn more about this API implementation and DataGrail functionality in our API Integration Documentation.
Disclaimer: The information contained in this message does not constitute as legal advice. We would advise seeking professional counsel before acting on or interpreting any material.