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

> Returns a cursor-paginated list of stored `PURCHASE` reward transactions for every member in the program. Purchases rejected before a transaction is stored don't appear. A purchase accepted with `202` that later fails is stored as `REJECTED` with `details.rejection`. `REFUND` transactions are not listed. After a refund, the original purchase remains with `status` `REFUNDED` and purchase-shaped `details`.

Filter by `id`, `reward_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 member reward purchases](/api-reference/programs/list-member-reward-purchases), which scopes the list to one member.

A successful call records no activity.



## OpenAPI

````yaml /openapi/loyalties-v2.json get /v2/loyalties/programs/{programId}/rewards/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}/rewards/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 reward transactions
      description: >-
        Returns a cursor-paginated list of stored `PURCHASE` reward transactions
        for every member in the program. Purchases rejected before a transaction
        is stored don't appear. A purchase accepted with `202` that later fails
        is stored as `REJECTED` with `details.rejection`. `REFUND` transactions
        are not listed. After a refund, the original purchase remains with
        `status` `REFUNDED` and purchase-shaped `details`.


        Filter by `id`, `reward_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 member reward
        purchases](/api-reference/programs/list-member-reward-purchases), which
        scopes the list to one member.


        A successful call records no activity.
      operationId: listProgramRewardTransactions
      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 `lcrstrx_[a-f0-9]+`. The cursor matches the filters
            and order of that response.
          schema:
            type:
              - string
              - 'null'
            pattern: ^lcrstrx_[a-f0-9]+$
        - name: filters
          in: query
          required: false
          style: deepObject
          explode: true
          description: >-
            Filters the results. Pass a deep object, for example
            `filters[reward_id][conditions][$is]=lrew_1294cebb458e4904a0`.
            Fields combine through `junction`, which defaults to `AND`. Omit
            `filters` to apply no field filter.
          schema:
            oneOf:
              - $ref: >-
                  #/components/schemas/LoyaltiesProgramsRewardsTransactionsListRequestQuery
              - type: 'null'
      responses:
        '200':
          description: Cursor-paginated list of persisted reward purchase transactions.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/LoyaltiesProgramsRewardsTransactionsListResponseBody
              examples:
                List of reward transactions:
                  value:
                    data:
                      - id: lrtx_136f5ee4ad097ded8e
                        card_id: lcrd_128f962dbd8c4ba5e1
                        card_definition_id: lcdef_128f4a88414c4bed69
                        card_transaction_id: lctx_136f5ee4ad097ded8d
                        program_id: lprg_128f58429f4c4bf7b2
                        member_id: lmbr_128f962dbc8c4ba5dc
                        reward_id: lrew_128f4cab04147c8608
                        status: APPROVED
                        type: PURCHASE
                        details:
                          reason: Points spent on reward
                          rejection: null
                          metadata: {}
                          points:
                            total: 300
                          result:
                            reward:
                              id: lrew_128f4cab04147c8608
                              type: DIGITAL
                            quantity: 1
                            material: null
                            digital:
                              type: DISCOUNT_COUPONS
                              discount_coupons:
                                - id: v_3DJVoylC23734GZ83zpX9Q2o92tcNKlY
                                  code: tmKdxUMP
                        created_at: '2026-12-02T11:37:54.101Z'
                        updated_at: '2026-12-02T11:37:54.414Z'
                        object: reward_transaction
                      - id: lrtx_132f26b74f5806ed9d
                        card_id: lcrd_128f962dbd8c4ba5e1
                        card_definition_id: lcdef_128f4a88414c4bed69
                        card_transaction_id: lctx_132f26b74f5806ed9c
                        program_id: lprg_128f58429f4c4bf7b2
                        member_id: lmbr_128f962dbc8c4ba5dc
                        reward_id: lrew_1294cebb458e4904a0
                        status: APPROVED
                        type: PURCHASE
                        details:
                          reason: Points spent on reward
                          rejection: null
                          metadata: {}
                          points:
                            total: 500
                          result:
                            reward:
                              id: lrew_1294cebb458e4904a0
                              type: MATERIAL
                            quantity: 1
                            material:
                              type: PRODUCT
                              product:
                                id: prod_1294ce96f66d469498
                            digital: null
                        created_at: '2026-10-13T14:29:40.285Z'
                        updated_at: '2026-10-13T14:29:40.702Z'
                        object: reward_transaction
                    cursor:
                      next: lcrstrx_1371c8bc7edc0168cb
                      expires_at: '2026-12-04T08:47:17.947Z'
                    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 "^lcrstrx_[a-f0-9]+$"
                    request_id: v-130db36510c5e2759a
                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-130db36510c5e2759b
                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-130db36510c5e2759c
                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-130db36510c5e2759d
                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-130db36510c5e2759e
                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-130db36510c5e2759f
                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-130db36510c5e275a0
        '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-130db30e15859652a6
                    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:
    LoyaltiesProgramsRewardsTransactionsListRequestQuery:
      title: Loyalties Programs Rewards Transactions List Request Query
      type: object
      description: >-
        Request query schema for **GET**
        `/v2/loyalties/programs/{programId}/rewards/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 reward transaction ID. Format `lrtx_[a-f0-9]+`.
          oneOf:
            - $ref: >-
                #/components/schemas/LoyaltiesProgramsMembersRewardsPurchasesListRequestQueryId
            - type: 'null'
        reward_id:
          description: Filters by reward ID. Format `lrew_[a-f0-9]+`.
          oneOf:
            - $ref: >-
                #/components/schemas/LoyaltiesProgramsMembersRewardsPurchasesListRequestQueryRewardId
            - type: 'null'
        card_definition_id:
          description: Filters by card definition ID. Format `lcdef_[a-f0-9]+`.
          oneOf:
            - $ref: >-
                #/components/schemas/LoyaltiesProgramsMembersRewardsPurchasesListRequestQueryCardDefinitionId
            - type: 'null'
        created_at:
          description: Filters by creation date.
          oneOf:
            - $ref: '#/components/schemas/TransactionFilterDateConditions'
            - type: 'null'
      additionalProperties: false
    LoyaltiesProgramsRewardsTransactionsListResponseBody:
      title: Loyalties Programs Rewards Transactions List Response Body
      type: object
      description: >-
        Response body schema for **GET**
        `/v2/loyalties/programs/{programId}/rewards/transactions`.
      allOf:
        - $ref: '#/components/schemas/MemberRewardPurchaseListResponse'
    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.
    LoyaltiesProgramsMembersRewardsPurchasesListRequestQueryId:
      type: object
      description: >-
        ID filter conditions for reward transaction ids. Values must match
        pattern `^lrtx_[a-f0-9]+$`. `$is`/`$is_not` accept a single value
        (string or 1-element array); `$in`/`$not_in` accept a string or an array
        of 1-100 values.
      properties:
        conditions:
          type: object
          minProperties: 1
          additionalProperties: false
          properties:
            $is:
              description: >-
                Matches one value. A string or a one-element array. Format
                `lrtx_[a-f0-9]+`.
              oneOf:
                - type: string
                  pattern: ^lrtx_[a-f0-9]+$
                - type: array
                  items:
                    type: string
                    pattern: ^lrtx_[a-f0-9]+$
                  minItems: 1
                  maxItems: 1
                - type: 'null'
            $is_not:
              description: >-
                Excludes one value. A string or a one-element array. Format
                `lrtx_[a-f0-9]+`.
              oneOf:
                - type: string
                  pattern: ^lrtx_[a-f0-9]+$
                - type: array
                  items:
                    type: string
                    pattern: ^lrtx_[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 `lrtx_[a-f0-9]+`.
              oneOf:
                - type: string
                  pattern: ^lrtx_[a-f0-9]+$
                - type: array
                  items:
                    type: string
                    pattern: ^lrtx_[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 `lrtx_[a-f0-9]+`.
              oneOf:
                - type: string
                  pattern: ^lrtx_[a-f0-9]+$
                - type: array
                  items:
                    type: string
                    pattern: ^lrtx_[a-f0-9]+$
                  minItems: 1
                  maxItems: 100
                - type: 'null'
      required:
        - conditions
      additionalProperties: false
      title: Loyalties Programs Members Rewards Purchases List Request Query Id
    LoyaltiesProgramsMembersRewardsPurchasesListRequestQueryRewardId:
      type: object
      description: >-
        ID filter conditions for reward ids. Values must match pattern
        `^lrew_[a-f0-9]+$`. `$is`/`$is_not` accept a single value (string or
        1-element array); `$in`/`$not_in` accept a string or an array of 1-100
        values.
      properties:
        conditions:
          type: object
          minProperties: 1
          additionalProperties: false
          properties:
            $is:
              description: >-
                Matches one value. A string or a one-element array. Format
                `lrew_[a-f0-9]+`.
              oneOf:
                - type: string
                  pattern: ^lrew_[a-f0-9]+$
                - type: array
                  items:
                    type: string
                    pattern: ^lrew_[a-f0-9]+$
                  minItems: 1
                  maxItems: 1
                - type: 'null'
            $is_not:
              description: >-
                Excludes one value. A string or a one-element array. Format
                `lrew_[a-f0-9]+`.
              oneOf:
                - type: string
                  pattern: ^lrew_[a-f0-9]+$
                - type: array
                  items:
                    type: string
                    pattern: ^lrew_[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 `lrew_[a-f0-9]+`.
              oneOf:
                - type: string
                  pattern: ^lrew_[a-f0-9]+$
                - type: array
                  items:
                    type: string
                    pattern: ^lrew_[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 `lrew_[a-f0-9]+`.
              oneOf:
                - type: string
                  pattern: ^lrew_[a-f0-9]+$
                - type: array
                  items:
                    type: string
                    pattern: ^lrew_[a-f0-9]+$
                  minItems: 1
                  maxItems: 100
                - type: 'null'
      required:
        - conditions
      additionalProperties: false
      title: >-
        Loyalties Programs Members Rewards Purchases List Request Query Reward
        Id
    LoyaltiesProgramsMembersRewardsPurchasesListRequestQueryCardDefinitionId:
      type: object
      description: >-
        ID filter conditions for card definition IDs. Values must match pattern
        `^lcdef_[a-f0-9]+$`. `$is`/`$is_not` accept a single value (string or
        1-element array); `$in`/`$not_in` accept a string or an array of 1-100
        values.
      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
      title: >-
        Loyalties Programs Members Rewards Purchases List Request Query Card
        Definition Id
    TransactionFilterDateConditions:
      type: object
      description: >-
        Date filter conditions. `$before`/`$after` accept an ISO date-time
        string. `$is`/`$more_than`/`$less_than` accept a non-negative integer
        number of days ago. `$has_value`/`$is_unknown` accept any single value
        and match rows where the field is set / not set. Single values may also
        be passed as 1-element arrays.
      properties:
        conditions:
          type: object
          minProperties: 1
          additionalProperties: false
          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
                - type: array
                  items:
                    type: string
                  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
                - type: array
                  items:
                    type: string
                  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
                - type: array
                  items:
                    type: string
                  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
                - type: array
                  items:
                    type: string
                  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
                - type: array
                  items:
                    type: string
                  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'
      required:
        - conditions
      additionalProperties: false
    MemberRewardPurchaseListResponse:
      type: object
      description: Cursor-paginated list of reward purchase transactions.
      properties:
        data:
          type: array
          description: Reward purchase transactions (type `PURCHASE` only).
          items:
            $ref: '#/components/schemas/RewardPurchaseTransaction'
        cursor:
          description: Pagination cursor. `null` when there are no more results.
          oneOf:
            - type: object
              properties:
                next:
                  type: string
                  description: >-
                    Cursor to pass as the `cursor` query parameter to fetch the
                    next page (format `lcrstrx_...`).
                expires_at:
                  type: string
                  format: date-time
                  description: Timestamp when the cursor expires.
            - type: 'null'
        object:
          type: string
          description: Object type marker. Always `list`.
          const: list
    RewardPurchaseTransaction:
      description: A reward transaction. Represents a reward purchase or a reward refund.
      allOf:
        - $ref: '#/components/schemas/MemberCardTransactionBase'
        - type: object
          properties:
            id:
              type: string
              description: >-
                Unique reward transaction identifier (format `lrtx_...`). Absent
                for `DRY_RUN` (SIMULATED) transactions, which are never
                persisted.
              pattern: ^lrtx_[a-f0-9]+$
            card_definition_id:
              type:
                - string
                - 'null'
              description: >-
                Unique identifier of the card definition for that card (format
                `lcdef_...`). `null` when none is stored.
              pattern: ^lcdef_[a-f0-9]+$
            card_transaction_id:
              type:
                - string
                - 'null'
              description: >-
                Identifies the underlying card transaction (format `lctx_...`).
                `null` for `DRY_RUN` (SIMULATED) transactions.
              pattern: ^lctx_[a-f0-9]+$
            reward_id:
              type: string
              description: Unique identifier of the purchased reward (format `lrew_...`).
              pattern: ^lrew_[a-f0-9]+$
            status:
              type: string
              enum:
                - PENDING
                - PROCESSING
                - APPROVED
                - REJECTED
                - SIMULATED
                - REFUNDED
              description: |-
                Transaction status:

                - `PENDING`: Created and awaiting processing.

                - `PROCESSING`: Being processed.

                - `APPROVED`: Completed successfully.

                - `REJECTED`: Rejected (see `details.rejection`).

                - `SIMULATED`: Dry-run result that is not persisted.

                - `REFUNDED`: Purchase has been refunded.
            type:
              type: string
              enum:
                - PURCHASE
                - REFUND
              description: Transaction type.
            details:
              description: >-
                Transaction details. Shape depends on `type` - purchase details
                for `PURCHASE`, refund details for `REFUND`.
              oneOf:
                - $ref: >-
                    #/components/schemas/RewardPurchaseTransactionDetailsPurchase
                - $ref: '#/components/schemas/RewardPurchaseTransactionDetailsRefund'
                - type: 'null'
            object:
              type: string
              const: reward_transaction
              description: Object type marker. Always `reward_transaction`.
    MemberCardTransactionBase:
      allOf:
        - $ref: '#/components/schemas/MemberTransactionBase'
        - type: object
          properties:
            card_id:
              type: string
              description: >-
                Unique identifier of the loyalty card the points were spent from
                (format `lcrd_...`).
              pattern: ^lcrd_[a-f0-9]+$
    RewardPurchaseTransactionDetailsPurchase:
      type: object
      title: Purchase details
      description: Details of a `PURCHASE` reward transaction.
      properties:
        reason:
          type: string
          description: 'Human-readable reason. For purchases: "Points spent on reward".'
        rejection:
          description: >-
            Rejection details, present when the transaction was rejected. `null`
            otherwise.
          oneOf:
            - $ref: '#/components/schemas/RewardPurchaseRejection'
            - type: 'null'
        metadata:
          type: object
          description: Transaction metadata. Empty object when not set.
          additionalProperties: true
        points:
          description: Points spent on the purchase.
          oneOf:
            - $ref: '#/components/schemas/RewardPurchasePoints'
            - type: 'null'
        result:
          description: >-
            Fulfillment result, populated once the purchase is processed
            (APPROVED). `null` for `PENDING`/`SIMULATED` transactions.
          oneOf:
            - $ref: '#/components/schemas/RewardPurchaseResult'
            - type: 'null'
      required:
        - reason
        - rejection
        - metadata
        - points
        - result
    RewardPurchaseTransactionDetailsRefund:
      type: object
      title: Refund details
      description: Details of a REFUND reward transaction.
      properties:
        reason:
          type: string
          description: >-
            Sets the refund reason. Always `Manual reward refund` for this
            endpoint.
        rejection:
          description: Rejection details, present when the transaction was rejected.
          oneOf:
            - $ref: '#/components/schemas/RewardPurchaseRejection'
            - type: 'null'
        metadata:
          type: object
          description: Transaction metadata. Empty object when not set.
          additionalProperties: true
        points:
          description: Points returned by the refund.
          oneOf:
            - $ref: '#/components/schemas/RewardPurchasePoints'
            - type: 'null'
        result:
          description: Refunded reward result (what was reverted).
          oneOf:
            - $ref: '#/components/schemas/RewardPurchaseResult'
            - type: 'null'
        purchase:
          description: References to the refunded purchase transactions.
          oneOf:
            - $ref: '#/components/schemas/RewardPurchaseRefundPurchaseReference'
            - type: 'null'
      required:
        - reason
        - rejection
        - metadata
        - points
        - result
        - purchase
    MemberTransactionBase:
      type: object
      properties:
        program_id:
          type: string
          description: Unique identifier of the loyalty program (format `lprg_...`).
          pattern: ^lprg_[a-f0-9]+$
        member_id:
          type: string
          description: Unique identifier of the program member (format `lmbr_...`).
          pattern: ^lmbr_[a-f0-9]+$
        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`.
    RewardPurchaseRejection:
      type: object
      description: Details about a rejected reward purchase transaction.
      properties:
        reason:
          type: string
          description: Machine-readable rejection reason.
        details:
          type: object
          description: >-
            Additional structured context about the rejection. Fields depend on
            the rejection reason.
          additionalProperties: true
      required:
        - reason
    RewardPurchasePoints:
      type: object
      description: Points involved in the transaction.
      properties:
        total:
          type: number
          description: Total number of points.
      required:
        - total
    RewardPurchaseResult:
      type: object
      description: >-
        Reward fulfillment result. Contains the fulfilled reward reference,
        quantity and the material or digital fulfillment payload.
      properties:
        reward:
          description: Reference to the fulfilled reward.
          oneOf:
            - $ref: '#/components/schemas/RewardPurchaseResultReward'
            - type: 'null'
        quantity:
          type:
            - number
            - 'null'
          description: Fulfilled quantity.
        material:
          description: Material reward fulfillment payload. Present for `MATERIAL` rewards.
          oneOf:
            - $ref: '#/components/schemas/RewardPurchaseResultMaterial'
            - type: 'null'
        digital:
          description: Digital reward fulfillment payload. Present for `DIGITAL` rewards.
          oneOf:
            - $ref: '#/components/schemas/RewardPurchaseResultDigital'
            - type: 'null'
    RewardPurchaseRefundPurchaseReference:
      type: object
      description: References to the original purchase transactions being refunded.
      properties:
        card_transaction:
          description: Reference to the original card transaction.
          oneOf:
            - type: object
              properties:
                id:
                  type: string
                  description: Card transaction identifier (format `lctx_...`).
                  pattern: ^lctx_[a-f0-9]+$
            - type: 'null'
        reward_transaction:
          description: Reference to the original reward transaction.
          oneOf:
            - type: object
              properties:
                id:
                  type: string
                  description: Reward transaction identifier (format `lrtx_...`).
                  pattern: ^lrtx_[a-f0-9]+$
            - type: 'null'
    RewardPurchaseResultReward:
      type: object
      description: Reference to the fulfilled reward.
      properties:
        id:
          type: string
          description: Reward identifier (format `lrew_...`).
          pattern: ^lrew_[a-f0-9]+$
        type:
          type: string
          enum:
            - MATERIAL
            - DIGITAL
          description: Reward type.
    RewardPurchaseResultMaterial:
      type: object
      description: Material reward fulfillment.
      properties:
        type:
          type: string
          enum:
            - PRODUCT
            - SKU
          description: Material reward type.
        product:
          type: object
          description: Product payload (present when `type` is `PRODUCT`).
          additionalProperties: true
        sku:
          type: object
          description: SKU payload (present when `type` is `SKU`).
          additionalProperties: true
    RewardPurchaseResultDigital:
      type: object
      description: Digital reward fulfillment.
      properties:
        type:
          type: string
          enum:
            - DISCOUNT_COUPONS
            - GIFT_VOUCHERS
            - LOYALTY_CARD_POINTS
          description: Digital reward type.
        discount_coupons:
          type: array
          description: >-
            Fulfilled discount coupons (present when `type` is
            `DISCOUNT_COUPONS`).
          items:
            $ref: '#/components/schemas/RewardPurchaseDigitalCoupon'
        gift_vouchers:
          type: array
          description: Fulfilled gift vouchers (present when `type` is `GIFT_VOUCHERS`).
          items:
            $ref: '#/components/schemas/RewardPurchaseDigitalGiftVoucher'
        loyalty_card_points:
          description: >-
            Fulfilled loyalty card points (present when `type` is
            `LOYALTY_CARD_POINTS`).
          oneOf:
            - $ref: '#/components/schemas/RewardPurchaseDigitalLoyaltyCardPoints'
            - type: 'null'
    RewardPurchaseDigitalCoupon:
      type: object
      description: Discount coupon fulfillment entry.
      properties:
        id:
          type: string
          description: Voucher identifier of the coupon.
        code:
          type: string
          description: Coupon code.
        result:
          type: string
          enum:
            - SKIPPED
            - DELETED
          description: |-
            Refund handling result for this coupon (present in refund results):

            - `DELETED`: The coupon was deleted.

            - `SKIPPED`: The coupon was left intact.
    RewardPurchaseDigitalGiftVoucher:
      type: object
      description: Gift voucher fulfillment entry.
      properties:
        id:
          type: string
          description: Voucher identifier of the gift voucher.
        code:
          type: string
          description: Gift voucher code.
        amount:
          type: number
          description: >-
            Amount added to (or, for refunds, subtracted from) the gift voucher
            balance.
        balance:
          type: number
          description: Gift voucher balance after the operation.
        result:
          type: string
          enum:
            - SKIPPED
            - CREDITS_SUBTRACTED
          description: >-
            Refund handling result for this gift voucher (present in refund
            results):


            - `CREDITS_SUBTRACTED`: The credited balance was subtracted.


            - `SKIPPED`: The voucher was left intact.
    RewardPurchaseDigitalLoyaltyCardPoints:
      type: object
      description: Loyalty card points fulfillment entry.
      properties:
        points:
          type: number
          description: Number of points credited to the target loyalty card.
        card_definition_id:
          type: string
          description: Target card definition identifier (format `lcdef_...`).
          pattern: ^lcdef_[a-f0-9]+$
        card_id:
          type: string
          description: Target loyalty card identifier (format `lcrd_...`).
          pattern: ^lcrd_[a-f0-9]+$
  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.