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, 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
Request Fields
accounts.keyword-search
Type: Name | Description | Type |
---|---|---|
keywords | Search keywords. | string |
page | The page of the search result to go to. | integer |
page-size | Defines the number of search results to list per page. This field is optional. If the field is not specified, Cortex API’s default page-size value is used, which can differ depending on your implementation. | integer |
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
elasticpath.accounts.account
Type: Name | Description | Type |
---|---|---|
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 Account Metadata
Retrieve the account metadata only visible to seller admins.
Workflow
- Start with account
GET
the link with rel: accountmetadata- Render the response
Response Fields
elasticpath.accounts.account-metadata
Type: Name | Description | Type |
---|---|---|
external-id | The external ID for an account corresponds to an ID on an external service that the seller might use to enable integrations. this is internal to the seller organization and has no meaning for a buyer organization. | 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
elasticpath.accounts.account
Type: Name | Description | Type |
---|---|---|
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 as a buyer admin.
Workflow
- Start with subaccounts
GET
the link with rel: accountform- Fill out the form
POST
the form using the link with rel: addaccountaction
Request Fields
elasticpath.accounts.account
Type: Name | Description | Type |
---|---|---|
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 With Metadata
Add a new account as a seller admin.
Workflow
- Start with subaccounts
GET
the link with rel: accountform- Fill out the form
POST
the form using the link with rel: addaccountaction
Request Fields
elasticpath.accounts.account-with-metadata
Type: Name | Description | Type |
---|---|---|
external-id | An ID on an external service that the seller might use to enable integrations, such as an Enterprise Resource Planning service. This information is accessible only to the seller organization. | 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 |
Update An Account
Update the account details for an account.
Workflow
- Start with account
- Edit the account object with new details
- Update account using a
PUT
request
Update Account Metadata
Update the account metadata for an account. Only available to seller admins
Workflow
- Start with account-metadata
- Edit the account-metadata object with new details
- Update account-metadata 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
elasticpath.accounts.account-status
Type: Name | Description | Type |
---|---|---|
status | The status of the buyer account. The options are, enabled or 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