Skip to content

Get a List of Memberships by Filter

Request

Requires Chain membership access. Supply abonements_ids or both created_after and created_before; otherwise the request returns 400. The date range filters membership creation, not sales. This list is not filtered by client, and type.cost is the membership type's current price, not a historical paid amount.

Security
BearerPartnerUser
Path
chain_idnumberrequired

Chain ID.

Example:123
Query
created_afterstring

Creation date from (filter by creation date).

Example:created_after=2026-09-21
created_beforestring

Creation date by (filter by creation date).

Example:created_before=2026-09-21
abonements_idsArray of numbers

List of membership IDs for the filter.

pagenumber

Page number.

Example:page=1
countnumber

Number of appointments per page.

Example:count=25
Headers
Acceptstringrequired

application/vnd.api.v2+json

Content-Typestringrequired

application/json

Authorizationstringrequired

Bearer partner_token, User user_token

curl -i -X GET \
  'https://developer.alteg.io/_mock/en/b2b-v1/openapi/chains/123/loyalty/abonements?created_after=2026-09-21&created_before=2026-09-21&abonements_ids=0&page=1&count=25' \
  -H 'Accept: string' \
  -H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
  -H 'Content-Type: string'

Responses

OK

Bodyapplication/json
Response
[ { "success": true, "data": [ … ], "meta": { … } } ]