Get Started with the Account Manager API
The Account Manager REST API provides account administrators with programmatic access to manage the lifecycles of User and API Client objects within B2C Commerce. Key features include:
- User Management: Create, update, and manage the lifecycle of user accounts using the Users API.
- API Client Management: Create and manage API clients required for interacting with the B2C Commerce API (SCAPI) and other Salesforce services using the API Clients API.
- Information Retrieval: Query details on instances and roles.
To use the Account Manager API, you need:
- Access to Account Manager with account administrator privileges.
- An API client with appropriate permissions to authenticate requests.
All API requests are made to:
All requests to the Account Manager API must be authenticated using OAuth 2.0 bearer token authentication. The API supports two OAuth 2.0 flows:
- Client credentials: For service-to-service integrations.
- Authorization code: For user-authorized applications.
The token endpoint is available at:
For the authorization code flow, the authorization endpoint is:
-
Create an API client: Use the API Clients API to create a service account for programmatic access. API clients are created in an inactive state by default and must be explicitly activated before use. To create an API client in the Account Manager UI, see Add an API Client in B2C Commerce in Salesforce Help.
-
Authenticate: Obtain an access token using your API client credentials via the OAuth 2.0 token endpoint.
-
Make requests: Include the access token in the
Authorizationheader as a bearer token when making API requests. For an overview of available endpoints, see Develop.