Generate an Account Management Authentication Token
POST/v2/account-members/tokens
Commerce provides authentication tokens for anyone using the Account Management APIs, including accounts and account members.
For each element in the list returned by the account member authentication API, a token value is returned. In order for a shopper to authenticate as the account, this value should be set as the EP-Account-Management-Authentication-Token
header when calling Commerce. This header grants access to additional resources associated with the account, such as carts, orders, catalogs with associated rules, and addresses.
The set of permissions available to a shopper using an Account Management Authentication token is documented in Permissions
Commerce provides authentication tokens for an account and an account member using:
- OpenID Connect
- Username and password
- Self signup
- One-time password token
- Switch account token
Request
Responses
- 201
- 401
- default
Created
Unauthorized
Internal server error.