Authorizationcontexts
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 accounts 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 account.
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
GET
the link with rel: authorizationcontexts- Render the response.
Read An Authorization Context
Retrieve the details for an authorization context. An authorization context represents a store.
Workflow
- Start with authorization-contexts
GET
the link with rel: element- Render the response.
Response Fields
Type: elasticpath.authorizationcontexts.authorization-context
Name | Description | Type |
---|---|---|
name | Name of the authorization context. | string |
Read An Authorization Profile
Retrieve the details for an authorization profile. An authorization profile represents the account an associate can login on behalf of.
Workflow
- Start with authorization-context
GET
the link with rel: element- Render the response.
Response Fields
Type: elasticpath.authorizationcontexts.authorization-profile
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 account.
Workflow
- Start with authorization-profile
GET
the link with rel: accesstokenform- Fill out the form.
POST
the form using the link with rel: createaccesstokenaction