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

> Returns a cursor-paginated list of transactions on the member's card. Filter by `id`, `card_definition_id`, and `created_at`. Order by `id` (default `-id`, newest first). Returns `404` when the program, member, or card doesn't exist. The program is checked first, then the member, then the card. A member of another program, or a card that isn't assigned to this member, is not found.

A successful call records no activity.



## OpenAPI

````yaml /openapi/loyalties-v2.json get /v2/loyalties/programs/{programId}/members/{memberId}/cards/{cardId}/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}/members/{memberId}/cards/{cardId}/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]+$
      - name: memberId
        in: path
        required: true
        description: Identifies the member. Format `lmbr_[a-f0-9]+`.
        schema:
          type: string
          pattern: ^lmbr_[a-f0-9]+$
      - name: cardId
        in: path
        required: true
        description: Identifies the loyalty card. Format `lcrd_[a-f0-9]+`.
        schema:
          type: string
          pattern: ^lcrd_[a-f0-9]+$
    get:
      tags:
        - Programs
      summary: List card transactions
      description: >-
        Returns a cursor-paginated list of transactions on the member's card.
        Filter by `id`, `card_definition_id`, and `created_at`. Order by `id`
        (default `-id`, newest first). Returns `404` when the program, member,
        or card doesn't exist. The program is checked first, then the member,
        then the card. A member of another program, or a card that isn't
        assigned to this member, is not found.


        A successful call records no activity.
      operationId: listCardTransactions
      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[id][conditions][$is]=lctx_0f5d0a8878caa3ee5c`. Fields
            combine through `junction`, which defaults to `AND`. Omit `filters`
            to apply no field filter.
          schema:
            oneOf:
              - $ref: >-
                  #/components/schemas/V2LoyaltiesProgramsMembersCardsTransactionsListRequestQuery
              - type: 'null'
      responses:
        '200':
          description: Cursor-paginated list of card transactions.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/V2LoyaltiesProgramsMembersCardsTransactionsListResponseBody
              examples:
                Card transaction list response:
                  value:
                    data:
                      - id: lctx_1294c0f2ed0e497abc
                        card_id: lcrd_128f962dbd8c4ba5e0
                        program_id: lprg_128f58429f4c4bf7b2
                        member_id: lmbr_128f962dbc8c4ba5dc
                        card_definition_id: lcdef_128f49963c0c4becb7
                        card_type: INDIVIDUAL
                        type: ADMIN_CREDIT
                        details:
                          reason: Sorry points
                          rejection: null
                          metadata: {}
                          points:
                            total: 50
                            expiration_date: '2026-12-23'
                        status: APPROVED
                        created_at: '2026-06-15T16:18:57.588Z'
                        updated_at: '2026-06-15T16:18:58.239Z'
                        object: card_transaction
                      - id: lctx_128f9821b6cfd14efa
                        card_id: lcrd_128f962dbd8c4ba5e0
                        program_id: lprg_128f58429f4c4bf7b2
                        member_id: lmbr_128f962dbc8c4ba5dc
                        card_definition_id: lcdef_128f49963c0c4becb7
                        card_type: INDIVIDUAL
                        type: PENDING_POINTS_ADDED
                        details:
                          reason: AnnualProgram / AutumnPaid
                          rejection: null
                          metadata:
                            event_id: evcus_128f981fced47cbe9b
                            member_id: lmbr_128f962dbc8c4ba5dc
                            program_id: lprg_128f58429f4c4bf7b2
                            earning_item_id: lernei_128f582238cc4bf78e
                            earning_rule_id: lern_128f5822398c4bf78f
                          points:
                            total: 10
                            date: '2026-12-23'
                            type: FIXED_DATES
                        status: APPROVED
                        created_at: '2026-06-11T16:08:13.275Z'
                        updated_at: '2026-06-11T16:08:14.223Z'
                        object: card_transaction
                      - id: lctx_128f97f6b88fd14ea8
                        card_id: lcrd_128f962dbd8c4ba5e0
                        program_id: lprg_128f58429f4c4bf7b2
                        member_id: lmbr_128f962dbc8c4ba5dc
                        card_definition_id: lcdef_128f49963c0c4becb7
                        card_type: INDIVIDUAL
                        type: PENDING_POINTS_ADDED
                        details:
                          reason: AnnualProgram / AutumnPaid
                          rejection: null
                          metadata:
                            event_id: evcus_128f97f4f7d47cbe6a
                            member_id: lmbr_128f962dbc8c4ba5dc
                            program_id: lprg_128f58429f4c4bf7b2
                            earning_item_id: lernei_128f582238cc4bf78e
                            earning_rule_id: lern_128f5822398c4bf78f
                          points:
                            total: 10
                            date: '2026-12-23'
                            type: FIXED_DATES
                        status: APPROVED
                        created_at: '2026-06-11T16:07:29.250Z'
                        updated_at: '2026-06-11T16:07:30.271Z'
                        object: card_transaction
                      - id: lctx_128f97848e4fd14e1d
                        card_id: lcrd_128f962dbd8c4ba5e0
                        program_id: lprg_128f58429f4c4bf7b2
                        member_id: lmbr_128f962dbc8c4ba5dc
                        card_definition_id: lcdef_128f49963c0c4becb7
                        card_type: INDIVIDUAL
                        type: PENDING_POINTS_ADDED
                        details:
                          reason: AnnualProgram / AutumnPaid
                          rejection: null
                          metadata:
                            event_id: evcus_128f9782100c4ba718
                            member_id: lmbr_128f962dbc8c4ba5dc
                            program_id: lprg_128f58429f4c4bf7b2
                            earning_item_id: lernei_128f582238cc4bf78e
                            earning_rule_id: lern_128f5822398c4bf78f
                          points:
                            total: 10
                            date: '2026-12-23'
                            type: FIXED_DATES
                        status: APPROVED
                        created_at: '2026-06-11T16:05:32.345Z'
                        updated_at: '2026-06-11T16:05:33.153Z'
                        object: card_transaction
                      - id: lctx_128f974da3cfd14db7
                        card_id: lcrd_128f962dbd8c4ba5e0
                        program_id: lprg_128f58429f4c4bf7b2
                        member_id: lmbr_128f962dbc8c4ba5dc
                        card_definition_id: lcdef_128f49963c0c4becb7
                        card_type: INDIVIDUAL
                        type: PENDING_POINTS_ADDED
                        details:
                          reason: AnnualProgram / AutumnPaid
                          rejection: null
                          metadata:
                            event_id: evcus_128f974badd47cbddd
                            member_id: lmbr_128f962dbc8c4ba5dc
                            program_id: lprg_128f58429f4c4bf7b2
                            earning_item_id: lernei_128f582238cc4bf78e
                            earning_rule_id: lern_128f5822398c4bf78f
                          points:
                            total: 10
                            date: '2026-12-23'
                            type: FIXED_DATES
                        status: APPROVED
                        created_at: '2026-06-11T16:04:36.111Z'
                        updated_at: '2026-06-11T16:04:37.157Z'
                        object: card_transaction
                    cursor: null
                    object: list
        '400':
          description: >-
            The query failed validation. `order` must be `id` or `-id`, and an
            array can't order by `id` and `-id` together. A cursor that doesn't
            match `^lcrsctx_[a-f0-9]+$` returns `invalid_query_params`. An
            unknown cursor returns `invalid_or_expired_cursor`. A cursor from a
            different `limit` or `order` returns `cursor_and_query_mismatch`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Invalid order:
                  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
                Invalid cursor:
                  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
                Unknown cursor:
                  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 and query mismatch:
                  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
        '404':
          description: >-
            The program doesn't exist (`resource_type` `program`), the member
            doesn't exist in that program (`resource_type` `member`), or the
            card isn't assigned to that member (`resource_type` `card`). The
            program is checked first.
          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
                Member not found:
                  value:
                    code: 404
                    key: not_found
                    message: Resource not found
                    details: Cannot find member with id lmbr_128f962dbc8c4ba5dc
                    request_id: v-12bdef050f2cb1ef75
                    resource_id: lmbr_128f962dbc8c4ba5dc
                    resource_type: member
                Card not found:
                  value:
                    code: 404
                    key: not_found
                    message: Resource not found
                    details: Cannot find card with id lcrd_128f962dbd8c4ba5e0
                    request_id: v-12bdef050f2cb1ef76
                    resource_id: lcrd_128f962dbd8c4ba5e0
                    resource_type: card
        '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:
    V2LoyaltiesProgramsMembersCardsTransactionsListRequestQuery:
      type: object
      description: >-
        Request query schema for **GET**
        `/v2/loyalties/programs/{programId}/members/{memberId}/cards/{cardId}/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
      title: V2 Loyalties Programs Members Cards Transactions List Request Query
    V2LoyaltiesProgramsMembersCardsTransactionsListResponseBody:
      title: V2 Loyalties Programs Members Cards Transactions List Response Body
      type: object
      description: >-
        Response body schema for **GET**
        `/v2/loyalties/programs/{programId}/members/{memberId}/cards/{cardId}/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 (e.g. the reason provided in a manual
            adjustment request).
        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).
        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.