Authorization Contexts
note
Account Management API is now deprecated and we recommend that you use Account Management functionality built into Elastic Path Commerce 8.2 and later.
The authorizationcontexts
resource family provides associates the means to be able to view and access the stores and divisions they can login for. Authorization context is the context which the associate would login from, for example the store. Authorization profile is the profile which the associate logs in on behalf of, for example the division.
Read List Of Authorization Contexts
Retrieve the list of authorization contexts an associate has access to. Authorization contexts are the stores an associate has access to.
Workflow
- Start with root
- Read link following rel:
authorizationcontexts
- Render response
Read An Authorization Context
Retrieve the details for an authorization context. An authorization context represents a store.
Workflow
- Start with list of authorization-contexts
- Read link following rel:
element
- Render response
Response Fields
Name | Description | Type |
---|---|---|
name | Name of the authorization context | String |
Read An Authorization Profile
Retrieves the details for an authorization profile. An authorization profile represents the division an associate can login on behalf of.
Workflow
- Start with list of authorization-contexts
- Read link following rel:
element
- Render response
Response Fields
Name | Description | Type |
---|---|---|
name | Name of the authorization profile. This name is used by the user to select an authorization profile | String |
Create Access Token
Retrieve the token used to authorize an associate who is part of a buying organization.
Workflow
- Start with authorization-profile
- Read link following rel:
accesstokenform
- Fill out the form
- Create form to link rel:
createaccesstokenaction