Get an Account
GET/v2/accounts/:accountID
View a specific account contained within your store
Request
Path Parameters
The ID of the account you want to retrieve.
Responses
- 200
- 404
- default
OK
- application/json
- Schema
- Example (from schema)
Schema
data object
Default value: account
Specifies the the type of object. Set this value to account
.
Specifies the name of the account.
Specifies the legal name of the account.
Specifies the registration ID. If specified, this field is checked for uniqueness.
The unique attribute associated with the account. For example, this could be an external reference from a separate company system. The maximum length is 2048 characters. Default is null
.
The unique identifier for an Account.
meta object
Additional information for this realm. For more information, see The meta object section.
timestamps object
The date the account is created.
The date the account is updated.
links object
A URL to the specific resource.
{
"data": {
"type": "account",
"name": "acc-name",
"legal_name": "acc-legal-name",
"registration_id": "reg-id",
"external_ref": "ext-ref",
"id": "deb6b25f-8451-4211-9a22-95610333df23",
"meta": {
"timestamps": {
"created_at": "2021-02-23T09:40:33.882Z",
"updated_at": "2021-02-23T09:40:33.882Z"
}
},
"links": {
"self": "https://useast.api.elasticpath.com/v2/accounts/deb6b25f-8451-4211-9a22-95610333df23"
}
}
}
Not Found
- application/json
- Schema
- Example (from schema)
- not-found-error
Schema
- Array [
- ]
errors Error[]required
A brief summary of the error.
The HTTP response code of the error.
Optional additional detail about the error.
{
"errors": [
{
"title": "string",
"status": "string",
"detail": "string"
}
]
}
{
"errors": [
{
"title": "Not Found",
"status": "404",
"detail": "account not found"
}
]
}
Internal server error.
- application/json
- Schema
- Example (from schema)
- internal-server-error
Schema
- Array [
- ]
errors Error[]required
A brief summary of the error.
The HTTP response code of the error.
Optional additional detail about the error.
{
"errors": [
{
"title": "string",
"status": "string",
"detail": "string"
}
]
}
Internal server error
{
"errors": [
{
"title": "Internal Server Error",
"status": "500",
"detail": "there was a problem processing your request"
}
]
}