List all application memberships
How to fetch a collection of application memberships via API
To fetch a collection of application memberships, send a GET
request to the /api/application_memberships
endpoint.
Request
GET https://provisioning.commercelayer.io/api/application_memberships
Example
The following request fetches a collection of application memberships:
curl -g -X GET \
'https://provisioning.commercelayer.io/api/application_memberships/' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer {{your_access_token}}'
On success, the API responds with a 200 OK
status code, returning a paginated collection of resource objects:
{
"data": [
{
"id": "xYZkjABcde",
"type": "application_memberships",
"links": {
"self": "https://provisioning.commercelayer.io/api/application_memberships/xYZkjABcde"
},
"attributes": {
"filters": {
"market_id_in": [
202,
203
]
},
"created_at": "2018-01-01T12:00:00.000Z",
"updated_at": "2018-01-01T12:00:00.000Z",
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
},
"relationships": {
"api_credential": {
"links": {
"self": "https://provisioning.commercelayer.io/api/application_memberships/xYZkjABcde/relationships/api_credential",
"related": "https://provisioning.commercelayer.io/api/application_memberships/xYZkjABcde/api_credential"
}
},
"membership": {
"links": {
"self": "https://provisioning.commercelayer.io/api/application_memberships/xYZkjABcde/relationships/membership",
"related": "https://provisioning.commercelayer.io/api/application_memberships/xYZkjABcde/membership"
}
},
"organization": {
"links": {
"self": "https://provisioning.commercelayer.io/api/application_memberships/xYZkjABcde/relationships/organization",
"related": "https://provisioning.commercelayer.io/api/application_memberships/xYZkjABcde/organization"
}
},
"role": {
"links": {
"self": "https://provisioning.commercelayer.io/api/application_memberships/xYZkjABcde/relationships/role",
"related": "https://provisioning.commercelayer.io/api/application_memberships/xYZkjABcde/role"
}
}
}
},
{
"other": "... 9 application_memberships (first page)"
}
],
"meta": {
"record_count": 140,
"page_count": 14
},
"links": {
"first": "https://provisioning.commercelayer.io/application_memberships?page[number]=1&page[size]=10",
"next": "https://provisioning.commercelayer.io/application_memberships?page[number]=2&page[size]=10",
"last": "https://provisioning.commercelayer.io/application_memberships?page[number]=14&page[size]=10"
}
}
Remember that when you fetch a list of resources you get paginated result.
Sortable fields
The list of application memberships can be sorted by the following fields:
Filterable fields
The list of application memberships can be filtered by the following fields:
Attributes
Relationships
Last updated