> ## Documentation Index
> Fetch the complete documentation index at: https://docs.voucherify.io/llms.txt
> Use this file to discover all available pages before exploring further.

# List program expiring points buckets

> Returns a cursor-paginated list of `ACTIVE` point expiration buckets for every member in the program. Each bucket groups points that share an expiration date and expiration type, including points from separate transactions.

The list starts on the current project day. Earlier buckets are omitted.

Optionally, filter by `card_definition_id` when the program has more than one point wallet, and by `expiration_date`. Order by `expiration_date`.

Returns `400` when the query or cursor is invalid. Returns `404` when the program doesn't exist.

Distinct from [List card expiring points buckets](/api-reference/programs/list-card-expiring-points-buckets), which scopes the list to one member card.

Bucket IDs from this list are the `bucketId` for [Expire point bucket](/api-reference/programs/expire-point-bucket). That call also needs `memberId` and `cardId` from the bucket.

A successful call records no activity.



## OpenAPI

````yaml /openapi/loyalties-v2.json get /v2/loyalties/programs/{programId}/expiring-points
openapi: 3.1.0
info:
  title: Voucherify API - Loyalty v2
  version: v2018-08-01
  description: >-
    Voucherify promotion engine REST API. Please see
    https://docs.voucherify.io/docs for more details.
  contact:
    name: Voucherify Team
    url: https://www.voucherify.io/contact-support
    email: support@voucherify.io
  termsOfService: https://www.voucherify.io/legal/subscription-agreement
  license:
    name: MIT
    url: https://github.com/voucherifyio/voucherify-js-sdk/blob/main/LICENSE
servers:
  - url: https://{cluster}.voucherify.io
    description: Base URL
    variables:
      cluster:
        default: api
        enum:
          - api
          - us1.api
          - as1.api
          - download
          - us1.download
          - as1.download
security: []
paths:
  /v2/loyalties/programs/{programId}/expiring-points:
    parameters:
      - name: programId
        in: path
        required: true
        description: Identifies the loyalty program. Format `lprg_[a-f0-9]+`.
        schema:
          type: string
          pattern: ^lprg_[a-f0-9]+$
    get:
      tags:
        - Programs
      summary: List program expiring points buckets
      description: >-
        Returns a cursor-paginated list of `ACTIVE` point expiration buckets for
        every member in the program. Each bucket groups points that share an
        expiration date and expiration type, including points from separate
        transactions.


        The list starts on the current project day. Earlier buckets are omitted.


        Optionally, filter by `card_definition_id` when the program has more
        than one point wallet, and by `expiration_date`. Order by
        `expiration_date`.


        Returns `400` when the query or cursor is invalid. Returns `404` when
        the program doesn't exist.


        Distinct from [List card expiring points
        buckets](/api-reference/programs/list-card-expiring-points-buckets),
        which scopes the list to one member card.


        Bucket IDs from this list are the `bucketId` for [Expire point
        bucket](/api-reference/programs/expire-point-bucket). That call also
        needs `memberId` and `cardId` from the bucket.


        A successful call records no activity.
      operationId: listProgramExpiringPoints
      parameters:
        - name: limit
          in: query
          required: false
          description: >-
            Limits the page size to an integer from 1 to 100. Defaults to 10. A
            numeric string is accepted and rounded to the nearest integer.
          schema:
            type:
              - integer
              - 'null'
            minimum: 1
            maximum: 100
            default: 10
        - name: order
          in: query
          required: false
          description: >-
            Orders the results. Accepts one value or an array. Prefix a field
            with `-` for descending order. Defaults to `expiration_date`.
            Soonest expiration first. The same field cannot be used in both
            directions. Rows with the same sort value are then ordered by `id`
            ascending.
          schema:
            oneOf:
              - type: array
                items:
                  type: string
                  enum:
                    - expiration_date
                    - '-expiration_date'
              - type: string
                enum:
                  - expiration_date
                  - '-expiration_date'
              - type: 'null'
        - name: cursor
          in: query
          required: false
          description: >-
            Continues pagination. Pass the `cursor.next` value from a previous
            response. Format `lcrspeb_[a-f0-9]+`. The cursor matches the filters
            and order of that response.
          schema:
            type:
              - string
              - 'null'
            pattern: ^lcrspeb_[a-f0-9]+$
        - name: filters
          in: query
          required: false
          style: deepObject
          explode: true
          description: >-
            Filters the results. Pass a deep object, for example
            `filters[card_definition_id][conditions][$is]=lcdef_1297339938ae248cea`.
            Fields combine through `junction`, which defaults to `AND`. Omit
            `filters` to apply no field filter.
          schema:
            oneOf:
              - $ref: >-
                  #/components/schemas/LoyaltiesProgramsExpiringPointsListRequestQuery
              - type: 'null'
      responses:
        '200':
          description: Cursor-paginated list of points expiration buckets.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/LoyaltiesProgramsExpiringPointsListResponseBody
              examples:
                List of expiring points buckets:
                  value:
                    data:
                      - id: lcpeb_1385ec0bcde95c4fcf
                        card_id: lcrd_12c3092a050ffa1a34
                        customer_id: cust_RhnOBUBSf2lVKz74eKCHnEs4
                        card_definition_id: lcdef_128f495f720c4bec8c
                        program_id: lprg_128f58429f4c4bf7b2
                        card_type: INDIVIDUAL
                        member_id: lmbr_12c3092a048ffa1a33
                        points:
                          total: 10
                        expiration_date: '2026-12-20'
                        expiration_type: SLIDING_EXPIRATION
                        status: ACTIVE
                        created_at: '2026-11-19T15:01:11.443Z'
                        updated_at: null
                        object: card_points_bucket
                      - id: lcpeb_1385ec0bce695c4fd0
                        card_id: lcrd_12fa668cdbe025dac5
                        customer_id: cust_TL1FepNr2ewiwl3ybI36Ss1v
                        card_definition_id: lcdef_128f495f720c4bec8c
                        program_id: lprg_128f58429f4c4bf7b2
                        card_type: INDIVIDUAL
                        member_id: lmbr_12fa668cda6025dac2
                        points:
                          total: 10
                        expiration_date: '2026-12-20'
                        expiration_type: SLIDING_EXPIRATION
                        status: ACTIVE
                        created_at: '2026-11-19T15:01:11.443Z'
                        updated_at: null
                        object: card_points_bucket
                      - id: lcpeb_1385ec0beea95c4fd3
                        card_id: lcrd_128f962dbd8c4ba5df
                        customer_id: cust_6onRrs4kCnvSVrTs5YtDPFBG
                        card_definition_id: lcdef_128f495f720c4bec8c
                        program_id: lprg_128f58429f4c4bf7b2
                        card_type: INDIVIDUAL
                        member_id: lmbr_128f962dbc8c4ba5dc
                        points:
                          total: 10
                        expiration_date: '2026-12-20'
                        expiration_type: SLIDING_EXPIRATION
                        status: ACTIVE
                        created_at: '2026-11-19T15:01:11.604Z'
                        updated_at: null
                        object: card_points_bucket
                    cursor:
                      next: lcrspeb_1370fa2ec881a6e0a3
                      expires_at: '2026-12-03T17:44:51.171Z'
                    object: list
        '400':
          description: >-
            The query failed validation, the cursor is invalid or expired, or
            the cursor doesn't match the query.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Invalid cursor format:
                  value:
                    code: 400
                    key: invalid_query_params
                    message: Invalid query params
                    details: Property .cursor must match pattern "^lcrspeb_[a-f0-9]+$"
                    request_id: v-12f3be8e03ab12dbfb
                Cursor invalid or expired:
                  value:
                    code: 400
                    key: invalid_or_expired_cursor
                    message: Invalid or expired cursor
                    details: The provided cursor is invalid or has expired
                    request_id: v-12f3be8e03ab12dbfc
                Cursor does not match query:
                  value:
                    code: 400
                    key: cursor_and_query_mismatch
                    message: Cursor and query mismatch
                    details: >-
                      The provided cursor does not match the query, either the
                      cursor is invalid or the query has changed
                    request_id: v-12f3be8e03ab12dbfd
                Limit too high:
                  value:
                    code: 400
                    key: invalid_query_params
                    message: Invalid query params
                    details: Property .limit cannot be greater than 100
                    request_id: v-12f3be8e03ab12dbfe
                Limit too low:
                  value:
                    code: 400
                    key: invalid_query_params
                    message: Invalid query params
                    details: Property .limit cannot be lower than 1
                    request_id: v-12f3be8e03ab12dbff
                Unsupported order value:
                  value:
                    code: 400
                    key: invalid_query_params
                    message: Invalid query params
                    details: >-
                      Property .order must be equal to one of the allowed values
                      [ expiration_date, -expiration_date ]
                    request_id: v-12f3be8e03ab12dc00
                Conflicting order values:
                  value:
                    code: 400
                    key: invalid_query_params
                    message: Invalid query params
                    details: >-
                      Query cannot be ordered by 'expiration_date' and
                      '-expiration_date' at the same time
                    request_id: v-12f3be8e03ab12dc01
        '404':
          description: Resource not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Program not found:
                  value:
                    code: 404
                    key: not_found
                    message: Resource not found
                    details: Cannot find program with id lprg_128f5429f4c4bf7b2
                    request_id: v-12d749a01991f0e278
                    resource_id: lprg_128f5429f4c4bf7b2
                    resource_type: program
                Program id pattern mismatch:
                  value:
                    code: 404
                    key: not_found
                    message: Resource not found
                    details: Cannot find program with id non-existent-program-id
                    request_id: v-12d749a01991f0e279
                    resource_id: non-existent-program-id
                    resource_type: program
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Internal server error:
                  value:
                    code: 500
                    key: api_error
                    message: >-
                      Something went wrong. Don't worry, your campaigns are
                      still safe and the Voucherify Team has been notified.
                      Check out our Help Center and forums for help, or head
                      back to home.
      security:
        - X-App-Id: []
          X-App-Token: []
        - bearerAuth: []
components:
  schemas:
    LoyaltiesProgramsExpiringPointsListRequestQuery:
      title: Loyalties Programs Expiring Points List Request Query
      description: >-
        Request query schema for **GET**
        `/v2/loyalties/programs/{programId}/expiring-points`.
      allOf:
        - $ref: '#/components/schemas/CardPointsListQuery'
        - type: object
          properties:
            expiration_date:
              description: >-
                Filters by expiration date. Uses `DateFilter`
                (`$before`/`$after` accept ISO-8601 date or date-time;
                `$is`/`$more_than`/`$less_than` are days-ago counts).
              oneOf:
                - $ref: '#/components/schemas/DateFilter'
                - type: 'null'
      unevaluatedProperties: false
    LoyaltiesProgramsExpiringPointsListResponseBody:
      title: Loyalties Programs Expiring Points List Response Body
      type: object
      description: >-
        Response body schema for **GET**
        `/v2/loyalties/programs/{programId}/expiring-points`.
      allOf:
        - $ref: '#/components/schemas/CardExpiringPointsListResponse'
    ErrorResponse:
      type: object
      description: Standard error response returned by all Loyalty v2 endpoints.
      properties:
        code:
          type: integer
          description: HTTP status code of the error.
        key:
          type: string
          description: Machine-readable error key.
        message:
          type: string
          description: Human-readable error message.
        details:
          type: string
          description: Additional details about the error.
        request_id:
          type: string
          description: Unique identifier of the request that produced the error.
        resource_id:
          type: string
          description: Unique identifier of the resource that produced the error.
        resource_type:
          type: string
          description: Type of the resource that produced the error.
    CardPointsListQuery:
      type: object
      properties:
        junction:
          description: >-
            Joins the field filters. Allowed values are `AND` and `OR`. Defaults
            to `AND`.
          oneOf:
            - type: string
              enum:
                - AND
                - OR
            - type: 'null'
        card_definition_id:
          description: Filters by card definition ID. Format `lcdef_[a-f0-9]+`.
          oneOf:
            - $ref: '#/components/schemas/CardDefinitionIdFilterConditions'
            - type: 'null'
    DateFilter:
      type: object
      description: >-
        Date filter conditions. `$before`/`$after` take date strings (ISO 8601);
        `$is`, `$more_than`, `$less_than` take non-negative integers;
        `$has_value`/`$is_unknown` are presence checks. Each condition accepts a
        single value or an array with exactly one value. At least one condition
        is required.
      properties:
        conditions:
          type: object
          minProperties: 1
          properties:
            $before:
              description: >-
                Matches dates before the given value. An ISO 8601 date-time, as
                a string or a one-element array.
              oneOf:
                - type: string
                  format: date-time
                - type: array
                  items:
                    type: string
                    format: date-time
                  minItems: 1
                  maxItems: 1
                - type: 'null'
            $after:
              description: >-
                Matches dates after the given value. An ISO 8601 date-time, as a
                string or a one-element array.
              oneOf:
                - type: string
                  format: date-time
                - type: array
                  items:
                    type: string
                    format: date-time
                  minItems: 1
                  maxItems: 1
                - type: 'null'
            $is:
              description: >-
                Matches a date exactly the given number of days ago. A
                non-negative integer, as a string or a one-element array.
              oneOf:
                - type: string
                  pattern: ^[0-9]+$
                - type: array
                  items:
                    type: string
                    pattern: ^[0-9]+$
                  minItems: 1
                  maxItems: 1
                - type: 'null'
            $more_than:
              description: >-
                Matches dates more than the given number of days ago. A
                non-negative integer, as a string or a one-element array.
              oneOf:
                - type: string
                  pattern: ^[0-9]+$
                - type: array
                  items:
                    type: string
                    pattern: ^[0-9]+$
                  minItems: 1
                  maxItems: 1
                - type: 'null'
            $less_than:
              description: >-
                Matches dates less than the given number of days ago. A
                non-negative integer, as a string or a one-element array.
              oneOf:
                - type: string
                  pattern: ^[0-9]+$
                - type: array
                  items:
                    type: string
                    pattern: ^[0-9]+$
                  minItems: 1
                  maxItems: 1
                - type: 'null'
            $has_value:
              description: Matches when the field is set. The condition value is ignored.
              oneOf:
                - type: string
                - type: array
                  maxItems: 1
                - type: 'null'
            $is_unknown:
              description: >-
                Matches when the field is not set. The condition value is
                ignored.
              oneOf:
                - type: string
                - type: array
                  maxItems: 1
                - type: 'null'
          additionalProperties: false
      required:
        - conditions
      additionalProperties: false
    CardExpiringPointsListResponse:
      type: object
      description: Cursor-paginated list of points expiration buckets.
      properties:
        data:
          type: array
          description: Points expiration buckets on the current page.
          items:
            $ref: '#/components/schemas/CardPointsBucket'
        cursor:
          description: Pagination cursor, or `null` when there are no more results.
          oneOf:
            - $ref: '#/components/schemas/ListCursor'
            - type: 'null'
        object:
          type: string
          const: list
          description: Object type marker, always `list`.
      required:
        - data
        - cursor
        - object
    CardDefinitionIdFilterConditions:
      type: object
      description: >-
        ID conditions. Format `lcdef_[a-f0-9]+`. At least one condition is
        required.
      properties:
        conditions:
          type: object
          minProperties: 1
          properties:
            $is:
              description: >-
                Matches one value. A string or a one-element array. Format
                `lcdef_[a-f0-9]+`.
              oneOf:
                - type: string
                  pattern: ^lcdef_[a-f0-9]+$
                - type: array
                  items:
                    type: string
                    pattern: ^lcdef_[a-f0-9]+$
                  minItems: 1
                  maxItems: 1
                - type: 'null'
            $is_not:
              description: >-
                Excludes one value. A string or a one-element array. Format
                `lcdef_[a-f0-9]+`.
              oneOf:
                - type: string
                  pattern: ^lcdef_[a-f0-9]+$
                - type: array
                  items:
                    type: string
                    pattern: ^lcdef_[a-f0-9]+$
                  minItems: 1
                  maxItems: 1
                - type: 'null'
            $in:
              description: >-
                Matches any of the values. A string or an array of 1 to 100
                values. Format `lcdef_[a-f0-9]+`.
              oneOf:
                - type: string
                  pattern: ^lcdef_[a-f0-9]+$
                - type: array
                  items:
                    type: string
                    pattern: ^lcdef_[a-f0-9]+$
                  minItems: 1
                  maxItems: 100
                - type: 'null'
            $not_in:
              description: >-
                Excludes any of the values. A string or an array of 1 to 100
                values. Format `lcdef_[a-f0-9]+`.
              oneOf:
                - type: string
                  pattern: ^lcdef_[a-f0-9]+$
                - type: array
                  items:
                    type: string
                    pattern: ^lcdef_[a-f0-9]+$
                  minItems: 1
                  maxItems: 100
                - type: 'null'
          additionalProperties: false
      required:
        - conditions
      additionalProperties: false
    CardPointsBucket:
      description: A points expiration bucket of a card.
      allOf:
        - $ref: '#/components/schemas/CardBucketBase'
        - type: object
          properties:
            id:
              type: string
              pattern: ^lcpeb_[a-f0-9]+$
              description: Unique points expiration bucket ID.
            customer_id:
              type: string
              pattern: ^cust_[a-zA-Z0-9]+
              description: Voucherify ID of the customer owning the card.
            points:
              type: object
              description: >-
                Points held in the bucket. The bucket may include points from
                multiple transactions.
              properties:
                total:
                  type: number
                  description: Number of points in the bucket.
              required:
                - total
            expiration_date:
              type: string
              format: date
              description: Date when the points in the bucket expire (`YYYY-MM-DD`).
            expiration_type:
              type: string
              enum:
                - NO_EXPIRATION
                - ROLLING_EXPIRATION
                - CALENDAR_EXPIRATION
                - SLIDING_EXPIRATION
              description: >-
                Points expiration type for the bucket. It can be inherited from
                the card definition or overridden by the earning rule.
            status:
              type: string
              enum:
                - ACTIVE
                - DELETED
                - EXPIRED
              description: Bucket status. List endpoints return only `ACTIVE` buckets.
            object:
              type: string
              const: card_points_bucket
              description: Object type marker, always `card_points_bucket`.
          required:
            - id
            - customer_id
            - card_type
            - points
            - expiration_date
            - expiration_type
            - status
            - object
    ListCursor:
      type: object
      description: Pagination cursor.
      properties:
        next:
          type: string
          description: >-
            Cursor value to pass as the `cursor` query parameter to fetch the
            next page.
        expires_at:
          type: string
          format: date-time
          description: Timestamp when the cursor expires.
      required:
        - next
        - expires_at
    CardBucketBase:
      type: object
      properties:
        card_id:
          type: string
          pattern: ^lcrd_[a-f0-9]+$
          description: Identifies the card the bucket belongs to.
        card_definition_id:
          type: string
          pattern: ^lcdef_[a-f0-9]+$
          description: Identifies the card definition.
        program_id:
          type: string
          pattern: ^lprg_[a-f0-9]+$
          description: Identifies the loyalty program.
        member_id:
          type: string
          pattern: ^lmbr_[a-f0-9]+$
          description: Identifies the member that owns the card.
        card_type:
          type: string
          enum:
            - INDIVIDUAL
          description: Card type. Currently, only `INDIVIDUAL` is supported.
        created_at:
          type: string
          format: date-time
          description: Timestamp when the bucket was created (ISO 8601).
        updated_at:
          type:
            - string
            - 'null'
          format: date-time
          description: Timestamp when the bucket was last updated (ISO 8601), or `null`.
      required:
        - card_id
        - card_definition_id
        - program_id
        - member_id
        - card_type
        - created_at
        - updated_at
  securitySchemes:
    X-App-Id:
      type: apiKey
      name: X-App-Id
      in: header
    X-App-Token:
      type: apiKey
      name: X-App-Token
      in: header
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.