Accounts
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.
With the accounts resource family, the seller administrators can create, view, and edit account structures to model organization hierarchy.
Search Accounts
Retrieve all accounts that match the keywords in the search criteria, submitted using the accountsearchform
.
Workflow
- Start with root
GET
the link with rel: searchesGET
the link with rel: accountsearchform- Fill out the form.
POST
the form using the link with rel: accountsearchaction
Read An Account
Retrieve the details for an account.
Workflow
- Start with accounts-search-results
GET
the link with rel: element- Render the response.
Response Fields
Type: elasticpath.accounts.account
Name | Description | Type |
---|---|---|
external-id | The external ID corresponds to an ID on an external service. | string |
name | The name of the account. | string |
legal-name | The legal name of the account. | string |
registration-id | The registration id of the account. | string |
Read Associates for an Account
Retrieve the list of associates assigned to the account.
Workflow
- Start with account
GET
the link with rel: associateroleassignments- Render the response.
Read List of Subaccounts
Retrieve the list of sub accounts.
Workflow
- Start with account
GET
the link with rel: subaccounts- Render the response.
Read A Subaccount
Retrieve the details for a sub-account.
Workflow
- Start with subaccounts
GET
the link with rel: element- Render the response.
Response Fields
Type: elasticpath.accounts.account
Name | Description | Type |
---|---|---|
external-id | The external ID corresponds to an ID on an external service. | string |
name | The name of the account. | string |
legal-name | The legal name of the account. | string |
registration-id | The registration id of the account. | string |
Add New Account
Add a new account.
Workflow
- Start with subaccounts
GET
the link with rel: accountform- Fill out the form.
POST
the form using the link with rel: addaccountaction
Update An Account
Update the account details for an account.
Workflow
- Start with account
- Edit the account object with new detail(s).
- Update account using a
PUT
request.
Read Account Status
Retrieve the account’s status.
Workflow
- Start with account
GET
the link with rel: statusinfoGET
the link with rel: status- Render the response.
Response Fields
Type: elasticpath.accounts.account-status
Name | Description | Type |
---|---|---|
status | The buyer account’s account status: enabled/disabled | string |
Select Account Status
Select an account status.
Workflow
- Start with account
GET
the link with rel: statusinfoGET
the link with rel: selectorGET
the link with rel: choicePOST
the choice using the link with rel: selectaction