Before doing anything with the Salesforce Commerce API, you need an API Client ID. The API Client ID is a credential that is granted from Account Manager, which consists of both an ID value and a secret. Both the ID and the secret should be protected and treated as a username and password combination to using the Salesforce Commerce API.
In Account Manager, create a new API Client with the following settings:
-
Roles: Salesforce Commmerce API role with access to the target instance
-
OpenID Connect allowed scopes:
sfcc.orders
sfcc.orders.rw
sfcc.products
sfcc.products.rw
sfcc.shopper-baskets-orders
sfcc.shopper-baskets-orders.rw
sfcc.shopper-myaccount
sfcc.shopper-myaccount.rw
sfcc.shopper-myaccount.addresses
sfcc.shopper-myaccount.addresses.rw
sfcc.shopper-customers.register
sfcc.customerlists.rw
-
Token Endpoint Auth Method: client_secret_post
-
Access Token Format: JWT
Refer to the Add an API Client ID documentation in the Commerce Cloud Infocenter for more information.