> ## 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 card transactions

> Returns a cursor-paginated list of card transactions for every member in the program.

Filter by `id`, `card_definition_id`, and `created_at`. Order by `id` (default `-id`, newest first). Use `card_definition_id` when the program has more than one point wallet.

Returns `404` when the program doesn't exist.

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

A successful call records no activity.



## OpenAPI

````yaml /openapi/loyalties-v2.json get /v2/loyalties/programs/{programId}/cards/transactions
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}/cards/transactions:
    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 card transactions
      description: >-
        Returns a cursor-paginated list of card transactions for every member in
        the program.


        Filter by `id`, `card_definition_id`, and `created_at`. Order by `id`
        (default `-id`, newest first). Use `card_definition_id` when the program
        has more than one point wallet.


        Returns `404` when the program doesn't exist.


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


        A successful call records no activity.
      operationId: listProgramCardTransactions
      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 `-id`. Newest first. The
            same field cannot be used in both directions.
          schema:
            oneOf:
              - type: array
                items:
                  type: string
                  enum:
                    - '-id'
                    - id
              - type: string
                enum:
                  - '-id'
                  - id
              - type: 'null'
        - name: cursor
          in: query
          required: false
          description: >-
            Continues pagination. Pass the `cursor.next` value from a previous
            response. Format `lcrsctx_[a-f0-9]+`. The cursor matches the filters
            and order of that response.
          schema:
            type:
              - string
              - 'null'
            pattern: ^lcrsctx_[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_128f49963c0c4becb7`.
            Fields combine through `junction`, which defaults to `AND`. Omit
            `filters` to apply no field filter.
          schema:
            oneOf:
              - $ref: >-
                  #/components/schemas/LoyaltiesProgramsCardsTransactionsListRequestQuery
              - type: 'null'
      responses:
        '200':
          description: Cursor-paginated list of card transactions.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/LoyaltiesProgramsCardsTransactionsListResponseBody
              examples:
                List of card transactions:
                  value:
                    data:
                      - id: lctx_1370e82df3c16e6aec
                        card_id: lcrd_1370e82de0c16e6ac0
                        program_id: lprg_128f58429f4c4bf7b2
                        member_id: lmbr_1370e82ddec16e6abb
                        card_definition_id: lcdef_128f4a88414c4bed69
                        card_type: INDIVIDUAL
                        type: REFEREE_POINTS_EARNED
                        details:
                          reason: null
                          rejection: null
                          metadata:
                            reward_id: rew_TIA01Yt3OlVCKfD5VY7MKzhh
                            campaign_id: camp_2E233neggu8BjZgQdCT2fdYm
                            assignment_id: rewa_BK5h4jKk11696s6UEOKOwKYp
                          points:
                            total: 190
                            expiration_date: '2026-12-31'
                        status: APPROVED
                        created_at: '2026-12-03T16:16:11.727Z'
                        updated_at: '2026-12-03T16:16:12.307Z'
                        object: card_transaction
                      - id: lctx_1370e82d48c16e6a89
                        card_id: lcrd_12fa668cdbe025dac7
                        program_id: lprg_128f58429f4c4bf7b2
                        member_id: lmbr_12fa668cda6025dac2
                        card_definition_id: lcdef_128f4a88414c4bed69
                        card_type: INDIVIDUAL
                        type: REFERRER_POINTS_EARNED
                        details:
                          reason: null
                          rejection: null
                          metadata:
                            reward_id: rew_mZagmcS0hUjVz7HYpAqRyQKX
                            campaign_id: camp_2E233neggu8BjZgQdCT2fdYm
                            assignment_id: rewa_2USSwDaadDdNwoLbpXMRdGAa
                          points:
                            total: 2
                            expiration_date: '2026-12-31'
                        status: APPROVED
                        created_at: '2026-12-03T16:16:11.043Z'
                        updated_at: '2026-12-03T16:16:11.413Z'
                        object: card_transaction
                    cursor:
                      next: lcrsctx_137100e3ce1c0172fb
                      expires_at: '2026-12-03T18:14:09.400Z'
                    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 "^lcrsctx_[a-f0-9]+$"
                    request_id: v-12bdef050f2cb1ef71
                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-12bdef050f2cb1ef72
                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-12bdef050f2cb1ef73
                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-12bdef050f2cb1ef7a
                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-12bdef050f2cb1ef7b
                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
                      [ -id, id ]
                    request_id: v-12bdef050f2cb1ef70
                Conflicting order values:
                  value:
                    code: 400
                    key: invalid_query_params
                    message: Invalid query params
                    details: Query cannot be ordered by 'id' and '-id' at the same time
                    request_id: v-12bdef050f2cb1ef7c
        '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_128f58429f4c4bf7b2
                    request_id: v-12bdef050f2cb1ef74
                    resource_id: lprg_128f58429f4c4bf7b2
                    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:
    LoyaltiesProgramsCardsTransactionsListRequestQuery:
      title: Loyalties Programs Cards Transactions List Request Query
      type: object
      description: >-
        Request query schema for **GET**
        `/v2/loyalties/programs/{programId}/cards/transactions`.
      properties:
        junction:
          description: >-
            Joins the field filters. Allowed values are `AND` and `OR`. Defaults
            to `AND`.
          oneOf:
            - type: string
              enum:
                - AND
                - OR
            - type: 'null'
        id:
          description: Filters by transaction ID. Format `lctx_[a-f0-9]+`.
          oneOf:
            - $ref: >-
                #/components/schemas/LoyaltiesProgramsMembersCardsTransactionsListRequestQueryId
            - type: 'null'
        created_at:
          description: Filters by transaction creation date.
          oneOf:
            - $ref: '#/components/schemas/DateFilter'
            - type: 'null'
        card_definition_id:
          description: Filters by card definition ID. Format `lcdef_[a-f0-9]+`.
          oneOf:
            - $ref: '#/components/schemas/CardDefinitionIdFilterConditions'
            - type: 'null'
      additionalProperties: false
    LoyaltiesProgramsCardsTransactionsListResponseBody:
      title: Loyalties Programs Cards Transactions List Response Body
      type: object
      description: >-
        Response body schema for **GET**
        `/v2/loyalties/programs/{programId}/cards/transactions`.
      allOf:
        - $ref: '#/components/schemas/CardTransactionListResponse'
    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.
    LoyaltiesProgramsMembersCardsTransactionsListRequestQueryId:
      type: object
      description: >-
        ID conditions. Format `lctx_[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
                `lctx_[a-f0-9]+`.
              oneOf:
                - type: string
                  pattern: ^lctx_[a-f0-9]+$
                - type: array
                  items:
                    type: string
                    pattern: ^lctx_[a-f0-9]+$
                  minItems: 1
                  maxItems: 1
                - type: 'null'
            $is_not:
              description: >-
                Excludes one value. A string or a one-element array. Format
                `lctx_[a-f0-9]+`.
              oneOf:
                - type: string
                  pattern: ^lctx_[a-f0-9]+$
                - type: array
                  items:
                    type: string
                    pattern: ^lctx_[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 `lctx_[a-f0-9]+`.
              oneOf:
                - type: string
                  pattern: ^lctx_[a-f0-9]+$
                - type: array
                  items:
                    type: string
                    pattern: ^lctx_[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 `lctx_[a-f0-9]+`.
              oneOf:
                - type: string
                  pattern: ^lctx_[a-f0-9]+$
                - type: array
                  items:
                    type: string
                    pattern: ^lctx_[a-f0-9]+$
                  minItems: 1
                  maxItems: 100
                - type: 'null'
          additionalProperties: false
      required:
        - conditions
      additionalProperties: false
      title: Loyalties Programs Members Cards Transactions List Request Query Id
    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
    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
    CardTransactionListResponse:
      type: object
      description: Cursor-paginated list of card transactions.
      properties:
        data:
          type: array
          description: Card transactions on the current page.
          items:
            $ref: '#/components/schemas/CardTransaction'
        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
    CardTransaction:
      type: object
      description: A card transaction.
      properties:
        id:
          type: string
          pattern: ^lctx_[a-f0-9]+$
          description: Unique card transaction ID assigned by Voucherify.
        card_id:
          type: string
          pattern: ^lcrd_[a-f0-9]+$
          description: ID of the card the transaction belongs to. Assigned by Voucherify.
        program_id:
          type: string
          pattern: ^lprg_[a-f0-9]+$
          description: ID of the loyalty program. Assigned by Voucherify.
        member_id:
          type: string
          pattern: ^lmbr_[a-f0-9]+$
          description: ID of the member owning the card. Assigned by Voucherify.
        card_definition_id:
          type: string
          pattern: ^lcdef_[a-f0-9]+$
          description: ID of the card definition of the card. Assigned by Voucherify.
        card_type:
          type: string
          enum:
            - INDIVIDUAL
          description: Card type.
        type:
          type: string
          enum:
            - ADMIN_CREDIT
            - ADMIN_DEBIT
            - ADMIN_POINTS_EXPIRATION
            - POINTS_EARNED
            - POINTS_SPENT_ON_REWARD
            - POINTS_PURCHASED
            - POINTS_PURCHASE_REVERSED
            - POINTS_SPENT_ON_ORDER
            - POINTS_REFUNDED
            - POINTS_RETURNED
            - POINTS_EXPIRED
            - PENDING_POINTS_ADDED
            - PENDING_POINTS_ACTIVATED
            - PENDING_POINTS_CANCELED
            - REFERRER_POINTS_EARNED
            - REFEREE_POINTS_EARNED
          description: >-
            Transaction type. Options depend on the endpoint and the transaction
            variant.
        details:
          description: >-
            Card transaction details. `reason`, `rejection` and `metadata` are
            present on all variants; the remaining fields depend on the
            transaction `type`:


            - `ADMIN_CREDIT`: `points` (`total`, `expiration_date`)

            - `ADMIN_DEBIT`: `points` (`total`)

            - `ADMIN_POINTS_EXPIRATION`: `bucket` (the point bucket expired
            manually by an admin)

            - `POINTS_EARNED`: `points` (`total`, `expiration_date`)

            - `REFERRER_POINTS_EARNED`: `points` (`total`, `expiration_date`)

            - `REFEREE_POINTS_EARNED`: `points` (`total`, `expiration_date`)

            - `POINTS_EXPIRED`: `points` (`total`), `date`, `buckets`

            - `POINTS_SPENT_ON_REWARD`: `points` (`total`), `reward`,
            `reward_transaction`,`target_card`, `purchase_transaction`

            - `POINTS_PURCHASED`: `points` (`total`, `expiration_date`,
            `expiration_type`), `reward`, `reward_transaction`,
            `card_transaction`

            - `POINTS_PURCHASE_REVERSED`: `points` (`total`, `expiration_date`,
              `expiration_type`), `reward`, `purchase`, `reward_transaction`
            - `POINTS_SPENT_ON_ORDER`: `points` (`total`), `order`,
            `order_transaction`

            - `POINTS_REFUNDED`: `points` (`total`)

            - `POINTS_RETURNED`: `points` (`total`, `expiration_date`,
            `expiration_type`), `reward`, `purchase`, `reward_transaction`

            - `PENDING_POINTS_ADDED` / `PENDING_POINTS_ACTIVATED` /
            `PENDING_POINTS_CANCELED`: `points` (`total`, `date`, `type`)
          oneOf:
            - $ref: '#/components/schemas/CardTransactionDetails'
            - type: 'null'
        status:
          type: string
          enum:
            - PENDING
            - PROCESSING
            - APPROVED
            - REJECTED
          description: >-
            Transaction processing status. Transactions are created as `PENDING`
            and processed asynchronously.
        created_at:
          type: string
          format: date-time
          description: Timestamp when the transaction was created (ISO 8601).
        updated_at:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            Timestamp when the transaction was last updated (ISO 8601), or
            `null`.
        object:
          type: string
          const: card_transaction
          description: Object type marker, always `card_transaction`.
      required:
        - id
        - card_id
        - program_id
        - member_id
        - card_definition_id
        - card_type
        - type
        - details
        - status
        - created_at
        - updated_at
        - 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
    CardTransactionDetails:
      type: object
      description: >-
        Card transaction details. Variant-dependent fields are not present on
        all variants.
      properties:
        reason:
          type:
            - string
            - 'null'
          description: >-
            Reason for the transaction. For example, the reason provided in a
            manual adjustment request, Voucherify-generated message, or program
            name and earning rule triggered.
        rejection:
          description: Rejection details when the transaction was rejected, or `null`.
          oneOf:
            - type: object
              properties:
                reason:
                  type: string
                  description: Rejection reason.
                details:
                  type: string
                  description: Detailed rejection description.
            - type: 'null'
        metadata:
          type: object
          description: >-
            Transaction metadata. Empty object when none. Known keys depend on
            the transaction `type` and source:


            - Earning (`POINTS_EARNED`, `PENDING_POINTS_ADDED`):
            `earning_rule_id`, `earning_item_id`, `program_id`, `member_id`,
            `event_id`.

            - Event-based pending activation (`PENDING_POINTS_ACTIVATED`):
            `custom_event`.

            - Referral (`REFERRER_POINTS_EARNED`, `REFEREE_POINTS_EARNED`):
            pass-through award metadata, typically `reward_id`, `assignment_id`,
            `campaign_id`.

            - Many other types omit metadata and return `{}`.


            Additional keys may appear; this object is open.
          properties:
            earning_rule_id:
              type: string
              pattern: ^lern_[a-f0-9]+$
              description: >-
                Earning rule that produced the points. Format `lern_[a-f0-9]+`.
                Present on earning transactions.
            earning_item_id:
              type:
                - string
                - 'null'
              pattern: ^lernei_[a-f0-9]+$
              description: >-
                Earning rule item that produced the points, or `null` when none
                applies. Format `lernei_[a-f0-9]+`.
            program_id:
              type: string
              pattern: ^lprg_[a-f0-9]+$
              description: >-
                Loyalty program ID from the earning context. Format
                `lprg_[a-f0-9]+`.
            member_id:
              type: string
              pattern: ^lmbr_[a-f0-9]+$
              description: Member ID from the earning context. Format `lmbr_[a-f0-9]+`.
            event_id:
              type: string
              description: >-
                Source event ID that triggered the earning. Custom events
                commonly use the `evcus_` prefix; other triggers use their own
                ID formats.
            custom_event:
              type: object
              description: >-
                Custom event that activated pending points
                (`PENDING_POINTS_ACTIVATED` event-based path).
              additionalProperties: true
            reward_id:
              type: string
              pattern: ^rew_[a-zA-Z0-9]+$
              description: >-
                Classic reward ID from referral award metadata
                (`REFERRER_POINTS_EARNED` / `REFEREE_POINTS_EARNED`). Format
                `rew_[a-zA-Z0-9]+`.
            assignment_id:
              type: string
              pattern: ^rewa_[a-zA-Z0-9]+$
              description: >-
                Classic reward assignment ID from referral award metadata.
                Format `rewa_[a-zA-Z0-9]+`.
            campaign_id:
              type:
                - string
                - 'null'
              pattern: ^camp_[a-zA-Z0-9]+$
              description: >-
                Campaign ID from referral award metadata, or `null` when the
                award source has no campaign. Format `camp_[a-zA-Z0-9]+`.
          additionalProperties: true
        points:
          type: object
          description: >-
            Points affected by the transaction (variant-dependent fields;
            pending points don't return `expiration_date` and
            `expiration_type`.).
          properties:
            total:
              type: number
              description: Number of points. Negative for debits.
            expiration_date:
              type:
                - string
                - 'null'
              format: date
              description: >-
                Expiration date of the affected points (`YYYY-MM-DD`), or
                `null`.
            expiration_type:
              type:
                - string
                - 'null'
              enum:
                - NO_EXPIRATION
                - ROLLING_EXPIRATION
                - CALENDAR_EXPIRATION
                - SLIDING_EXPIRATION
                - null
              description: Points expiration type of the affected points, or `null`.
            date:
              type: string
              format: date
              description: >-
                Activation date of the pending points (`YYYY-MM-DD`). Pending
                points variants only.
            type:
              type: string
              enum:
                - IMMEDIATE
                - PERIOD_BASED
                - FIXED_DATES
                - EVENT_BASED
              description: Pending points activation type. Pending points variants only.
        bucket:
          $ref: '#/components/schemas/LoyaltyV2CardPointsBucketSimple'
          description: The points bucket being expired (`ADMIN_POINTS_EXPIRATION` only).
        buckets:
          type: array
          description: The points buckets that expired (`POINTS_EXPIRED` only).
          items:
            $ref: '#/components/schemas/LoyaltyV2CardPointsBucketSimple'
        date:
          type: string
          format: date
          description: Expiration date (`POINTS_EXPIRED` only, `YYYY-MM-DD`).
        reward:
          description: Reference to the reward involved, or `null`.
          oneOf:
            - type: object
              properties:
                id:
                  type: string
                  description: Reward ID (`lrew_[a-f0-9]+`) assigned by Voucherify.
            - type: 'null'
        reward_transaction:
          description: Reference to the related reward transaction, or `null`.
          oneOf:
            - type: object
              properties:
                id:
                  type: string
                  description: >-
                    Reward transaction ID (`lrtx_[a-f0-9]+`) assigned by
                    Voucherify.
            - type: 'null'
        card_transaction:
          description: >-
            Reference to the linked card transaction (e.g. the spend side of a
            points purchase), or `null`.
          oneOf:
            - type: object
              properties:
                id:
                  type: string
                  description: >-
                    Card transaction ID (`lctx_[a-f0-9]+`) assigned by
                    Voucherify.
            - type: 'null'
        purchase:
          description: >-
            References to the original purchase transactions (reversal/return
            variants), or `null`.
          oneOf:
            - type: object
              properties:
                card_transaction:
                  oneOf:
                    - type: object
                      properties:
                        id:
                          type: string
                          description: >-
                            Card transaction ID (`lctx_[a-f0-9]+`) assigned by
                            Voucherify.
                    - type: 'null'
                reward_transaction:
                  oneOf:
                    - type: object
                      properties:
                        id:
                          type: string
                          description: >-
                            Reward transaction ID (`lrtx_[a-f0-9]+`) assigned by
                            Voucherify.
                    - type: 'null'
            - type: 'null'
        order:
          description: >-
            Reference to the order paid with points (`POINTS_SPENT_ON_ORDER`
            only), or `null`.
          oneOf:
            - type: object
              properties:
                id:
                  type: string
                  description: Order ID assigned by Voucherify.
            - type: 'null'
        order_transaction:
          description: >-
            Reference to the related order transaction (`POINTS_SPENT_ON_ORDER`
            only), or `null`.
          oneOf:
            - type: object
              properties:
                id:
                  type: string
                  description: >-
                    Order transaction ID (`lotx_[a-f0-9]+`) assigned by
                    Voucherify.
            - type: 'null'
        target_card:
          description: >-
            Reference to the target card credited by a points purchase
            (`POINTS_SPENT_ON_REWARD` only), or `null`.
          oneOf:
            - type: object
              properties:
                id:
                  type: string
                  description: Card ID (`lcrd_[a-f0-9]+`) assigned by Voucherify.
            - type: 'null'
        purchase_transaction:
          description: >-
            Reference to the linked purchase card transaction
            (`POINTS_SPENT_ON_REWARD` only), or `null`.
          oneOf:
            - type: object
              properties:
                id:
                  type: string
                  description: >-
                    Card transaction ID (`lctx_[a-f0-9]+`) assigned by
                    Voucherify.
            - type: 'null'
    LoyaltyV2CardPointsBucketSimple:
      title: Loyalty Card Points Bucket
      type: object
      description: |-
        Simple representation of a points expiration bucket, embedded in card
        transaction details.
      properties:
        id:
          type: string
          pattern: ^lcpeb_[a-f0-9]+$
          description: Point expiration bucket ID.
        points:
          type: object
          description: Points affected by the transaction.
          properties:
            total:
              type: number
              description: Number of points affected.
          required:
            - total
        expiration_date:
          type: string
          format: date
          description: Date when the points expire.
        expiration_type:
          type: string
          enum:
            - NO_EXPIRATION
            - ROLLING_EXPIRATION
            - CALENDAR_EXPIRATION
            - SLIDING_EXPIRATION
          description: Expiration type of the points.
      required:
        - id
        - points
        - expiration_date
        - expiration_type
  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.