# Get a List of Memberships by Filter

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.

Endpoint: GET /chains/{chain_id}/loyalty/abonements
Version: 1.0.0
Security: BearerPartnerUser

## Security:

  - `BearerPartnerUser` (unknown)
    http bearer Bearer {PartnerToken}, User {UserToken}

## Path parameters:

  - `chain_id` (number, required)
    Chain ID.

## Query parameters:

  - `created_after` (string)
    Creation date from (filter by creation date).

  - `created_before` (string)
    Creation date by (filter by creation date).

  - `abonements_ids` (array)
    List of membership IDs for the filter.

  - `page` (number)
    Page number.

  - `count` (number)
    Number of appointments per page.

## Header parameters:

  - `Accept` (string, required)
    application/vnd.api.v2+json

  - `Content-Type` (string, required)
    application/json

  - `Authorization` (string, required)
    Bearer partner_token, User user_token

## Response 200:

  - `200` (unknown)
    OK

## Response 400:

  - `400` (unknown)
    Bad Request

