Get all Account Memberships
GEThttps://useast.api.elasticpath.com/v2/accounts/:accountID/account-memberships
You can also use include=account_member
to retrieve details about the account members associated with the account memberships. With this option, you can get more information about the account members such as name and email in a single request. For more information see including resources.
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 for which you want to get the list of unassigned account members.
Query Parameters
Specifies the filter attributes.
Supported attributes are created_at
, email
, id
, name
, or updated_at
. When specified, the results are sorted in ascending order based on the value of the field. To sort in descending order, prefix the attribute with -
, for example, -updated_at
. The default sort order is created_at
in descending order. For more information, see Sorting.
The number of records per page.
Possible values: <= 10000
The number of records to offset the results by.
Parameter to retrieve more information about any related resources like account members.
Responses
- 200
- 404
- default
OK
- application/json
- Schema
- Example (from schema)
Schema
data AccountMembershipResponse[]
meta object
links object
{
"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_member": {
"data": {
"id": "908f7849-60da-4e4a-a3b1-51d4cbe3b953",
"type": "account_member"
}
}
},
"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
errors Error[]required
{
"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
errors Error[]required
{
"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"
}
]
}
Authorization: http
name: BearerTokentype: httpscheme: bearer
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET 'https://useast.api.elasticpath.com/v2/accounts/:accountID/account-memberships' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'