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
GETthe link with rel: searchesGETthe link with rel: accountsearchform- Fill out the form
POSTthe form using the link with rel: accountsearchaction
Request Fields
Type: accounts.keyword-search
| 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 |
Lookup Accounts
Look up an account by the external id.
Workflow
- Start with lookups
GETthe link with rel: accountlookupform- Fill out the form
POSTthe form using the link with rel: accountlookupaction
Request Fields
Type: accounts.account-lookup
| Name | Description | Type |
|---|---|---|
external-id | The external-id. | string |
Read An Account
Retrieve the details for an account.
Workflow
- Start with accounts-search-results
GETthe link with rel: element- Render the response
Response Fields
Type: elasticpath.accounts.account
| 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
GETthe link with rel: accountmetadata- Render the response
Response Fields
Type: elasticpath.accounts.account-metadata
| 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 Account Attributes
The account attributes resource provides access to the read-only details of the account.
Workflow
- Start with account
GETthe link with rel: attributes- Render the response
Response Fields
Type: elasticpath.accounts.account-attributes
| Name | Description | Type |
|---|---|---|
guid | A globally unique identifier for the account. | string |
Read Associates For An Account
Retrieve the list of associates assigned to the account.
Workflow
- Start with account
GETthe link with rel: associateroleassignments- Render the response
Read List Of Subaccounts
Retrieve the list of sub accounts.
Workflow
- Start with account
GETthe link with rel: subaccounts- Render the response
Read A Subaccount
Retrieve the details for a sub-account.
Workflow
- Start with subaccounts
GETthe link with rel: element- Render the response
Response Fields
Type: elasticpath.accounts.account
| 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
GETthe link with rel: accountform- Fill out the form
POSTthe form using the link with rel: addaccountaction
Request Fields
Type: elasticpath.accounts.account
| 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
GETthe link with rel: accountform- Fill out the form
POSTthe form using the link with rel: addaccountaction
Request Fields
Type: elasticpath.accounts.account-with-metadata
| 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
PUTrequest
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
PUTrequest
Read Account Status
Retrieve the account’s status.
Workflow
- Start with account
GETthe link with rel: statusinfoGETthe link with rel: status- Render the response
Response Fields
Type: elasticpath.accounts.account-status
| 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
GETthe link with rel: statusinfoGETthe link with rel: selectorGETthe link with rel: choicePOSTthe choice using the link with rel: selectaction