Get a List of Account Memberships of Account Member
GET/v2/account-members/:accountMemberId/account-memberships
You can also use include=account
to retrieve details about the accounts associated with the account memberships. For more information see including resources.
You can use pagination with this resource. For more information, see pagination.
Filtering
The following operators and attributes are available for filtering account memberships.
Operator | Description |
---|---|
eq | Checks whether the values of two operands are equal. If the values are equal, the condition is true. |
like | Checks if the operand contains the specified string. You can use wildcard characters in operand. |
Attribute | Type | Operator | Example |
---|---|---|---|
account_member_id | string | eq / like | eq(account_member_id,00000000-0000-1000-8000-0000000) |
Request
Path Parameters
The ID of the account member for which you want to list the memberships.
Query Parameters
Specifies the filter attributes.
Parameter to retrieve more information about any related resources like accounts.
Responses
- 200
- 404
- default
OK
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
data AccountMembershipResponseUsingAccountMemberId[]
Represents the unique identifier for the account membership.
Default value: account_membership
Represents the type of the object returned.
meta object
timestamps object
The date the account is created.
The date the account is updated.
relationships object
account object
data object
Specifies the ID of the account.
Default value: account
Specifies the type of the Account.
links object
A URL to the specific resource.
meta object
page object
The maximum number of records per page for this response. You can set this value up to 100.
The current page.
The current offset by number of records, not pages. Offset is zero-based.
The total page count.
results object
The total number of results after applying filters, if any, or all results.
links object
Always the current page.
Always the first page.
Always null
if there is only one page.
Always null
if there is only one page.
Always null
if the user is on the first page.
{
"data": [
{
"id": "24e939f6-178f-497b-9d64-5bf2b5a70a2e",
"type": "account_membership",
"meta": {
"timestamps": {
"created_at": "2021-02-23T09:40:33.882Z",
"updated_at": "2021-02-23T09:40:33.882Z"
}
},
"relationships": {
"account": {
"data": {
"id": "908f7849-60da-4e4a-a3b1-51d4cbe3b953",
"type": "account"
}
}
},
"links": {
"self": "https://useast.api.elasticpath.com/v2/accounts/5b495058-9ffc-4b9b-810a-c9d43ffc6500/account-memberships/24e939f6-178f-497b-9d64-5bf2b5a70a2e"
}
}
],
"meta": {
"page": {
"limit": 25,
"current": 0,
"offset": 0,
"total": 1
},
"results": {
"total": 1
}
},
"links": {
"current": "https://useast.api.elasticpath.com/v2/accounts/5b495058-9ffc-4b9b-810a-c9d43ffc6500/account-memberships?page[offset]=0&page[limit]=25",
"first": "https://useast.api.elasticpath.com/v2/accounts/5b495058-9ffc-4b9b-810a-c9d43ffc6500/account-memberships?page[offset]=0&page[limit]=25",
"last": "https://useast.api.elasticpath.com/v2/accounts/5b495058-9ffc-4b9b-810a-c9d43ffc6500/account-memberships?page[offset]=0&page[limit]=25",
"next": null,
"prev": null
}
}
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"
}
]
}