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

> Returns a cursor-paginated list of activities recorded for the given reward (created, updated, deleted, assigned, unassigned, activated, deactivated, drafted).

Returns `404` when the reward does not exist or was deleted. Activities for a deleted reward are not listed.

A successful call records no activity.

<Note>The activities listed by this endpoint are the same activities listed in the [Loyalty activity events](/api-reference/rewards-activity-overview). These activities can be sent as webhooks configured with [Workflows](/integrations/workflows)</Note>



## OpenAPI

````yaml /openapi/loyalties-v2.json get /v2/loyalties/rewards/{rewardId}/activities
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/rewards/{rewardId}/activities:
    parameters:
      - name: rewardId
        in: path
        required: true
        description: Identifies the reward. Format `lrew_[a-f0-9]+`.
        schema:
          type: string
          pattern: ^lrew_[a-f0-9]+$
    get:
      tags:
        - Rewards
      summary: List reward activities
      description: >-
        Returns a cursor-paginated list of activities recorded for the given
        reward (created, updated, deleted, assigned, unassigned, activated,
        deactivated, drafted).


        Returns `404` when the reward does not exist or was deleted. Activities
        for a deleted reward are not listed.


        A successful call records no activity.


        <Note>The activities listed by this endpoint are the same activities
        listed in the [Loyalty activity
        events](/api-reference/rewards-activity-overview). These activities can
        be sent as webhooks configured with
        [Workflows](/integrations/workflows)</Note>
      operationId: listRewardActivities
      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:
              - number
              - string
              - '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 `-created_at`. The same
            field cannot be used in both directions. Rows with the same sort
            value are then ordered by `id` ascending.
          schema:
            oneOf:
              - type: array
                items:
                  type: string
                  enum:
                    - created_at
                    - '-created_at'
              - type: string
                enum:
                  - created_at
                  - '-created_at'
              - type: 'null'
        - name: cursor
          in: query
          required: false
          description: >-
            Continues pagination. Pass the `cursor.next` value from a previous
            response. Format `lcrsarew_[a-f0-9]+`. The cursor matches the
            filters and order of that response.
          schema:
            type:
              - string
              - 'null'
            pattern: ^lcrsarew_[a-f0-9]+$
        - name: filters
          in: query
          required: false
          style: deepObject
          explode: true
          description: >-
            Filters the results. Pass a deep object, for example
            `filters[type][conditions][$is]=vl.reward.created`. Fields combine
            through `junction`, which defaults to `AND`. Omit `filters` to apply
            no field filter.
          schema:
            oneOf:
              - $ref: >-
                  #/components/schemas/LoyaltiesRewardsActivitiesListRequestQuery
              - type: 'null'
      responses:
        '200':
          description: Cursor-paginated list of reward activities.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/LoyaltiesRewardsActivitiesListResponseBody
              examples:
                List of reward activities:
                  value:
                    data:
                      - id: larew_128f95d0b1147cbc88
                        type: vl.reward.assigned
                        data:
                          reward:
                            id: lrew_128f4c6710947c85d1
                            name: Minas Gerais 500
                            type: MATERIAL
                            costs:
                              - id: lrcst_128f95d0690c4ba538
                                spending:
                                  - points: 150
                                    card_definition_id: lcdef_128f4a88414c4bed69
                              - id: lrcst_128f95d0690c4ba539
                                spending:
                                  - points: 100
                                    card_definition_id: lcdef_128f495f720c4bec8c
                              - id: lrcst_128f95d0690c4ba53a
                                spending:
                                  - points: 100
                                    card_definition_id: lcdef_128f49963c0c4becb7
                            object: reward
                            status: ACTIVE
                            refunds:
                              type: NONE
                            end_date: null
                            material:
                              type: PRODUCT
                              product:
                                id: prod_128f4c2edf547c859e
                            metadata: {}
                            created_at: '2026-06-11T10:37:21.345Z'
                            start_date: null
                            updated_at: '2026-06-11T15:58:05.751Z'
                            validity_hours:
                              type: ANY_TIME
                            purchase_limits:
                              cooldown:
                                type: NO_COOLDOWN
                              frequency:
                                type: NO_LIMIT
                                limits: []
                          program:
                            id: lprg_128f58429f4c4bf7b2
                            name: AnnualProgram
                            object: program
                            status: DRAFT
                            end_date: null
                            metadata: {}
                            created_at: '2026-06-11T11:29:09.756Z'
                            start_date: null
                            updated_at: null
                            validity_hours:
                              type: ANY_TIME
                          program_reward:
                            stock:
                              type: LIMITED
                              limited:
                                quantity: 1000
                            object: program_reward
                            redeemed: 0
                            reward_id: lrew_128f4c6710947c85d1
                            created_at: '2026-06-11T15:58:06.017Z'
                            updated_at: null
                        created_at: '2026-06-11T15:58:06.017Z'
                        group_id: v-128f95d0a7ee32aa57
                        source:
                          channel: USER_PORTAL
                          user:
                            id: user_ypzfEcSAphSONMGJRlj6trzXKsh7FGX7
                        reward_id: lrew_128f4c6710947c85d1
                      - id: larew_128f95d06e4c4ba53b
                        type: vl.reward.updated
                        data:
                          reward:
                            id: lrew_128f4c6710947c85d1
                            name: Minas Gerais 500
                            type: MATERIAL
                            costs:
                              - id: lrcst_128f95d0690c4ba538
                                spending:
                                  - points: 150
                                    card_definition_id: lcdef_128f4a88414c4bed69
                              - id: lrcst_128f95d0690c4ba539
                                spending:
                                  - points: 100
                                    card_definition_id: lcdef_128f495f720c4bec8c
                              - id: lrcst_128f95d0690c4ba53a
                                spending:
                                  - points: 100
                                    card_definition_id: lcdef_128f49963c0c4becb7
                            object: reward
                            status: ACTIVE
                            refunds:
                              type: NONE
                            end_date: null
                            material:
                              type: PRODUCT
                              product:
                                id: prod_128f4c2edf547c859e
                            metadata: {}
                            created_at: '2026-06-11T10:37:21.345Z'
                            start_date: null
                            updated_at: '2026-06-11T15:58:05.751Z'
                            validity_hours:
                              type: ANY_TIME
                        created_at: '2026-06-11T15:58:05.751Z'
                        group_id: v-128f95d0625cae01b6
                        source:
                          channel: USER_PORTAL
                          user:
                            id: user_ypzfEcSAphSONMGJRlj6trzXKsh7FGX7
                        reward_id: lrew_128f4c6710947c85d1
                    cursor:
                      next: lcrsarew_136e5bdc1e8f055cb9
                      expires_at: '2026-12-01T16:56:10.042Z'
                    object: list
        '400':
          description: >-
            Query parameters failed validation, or the cursor is invalid,
            expired, or does not match the query.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                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-12f9006245061134c1
                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-12f9006245061134c2
                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
                      [ -created_at, created_at ]
                    request_id: v-12f9006245061134c3
                Conflicting order values:
                  value:
                    code: 400
                    key: invalid_query_params
                    message: Invalid query params
                    details: >-
                      Query cannot be ordered by 'created_at' and '-created_at'
                      at the same time
                    request_id: v-12f9006245061134c4
                Invalid cursor format:
                  value:
                    code: 400
                    key: invalid_query_params
                    message: Invalid query params
                    details: Property .cursor must match pattern "^lcrsarew_[a-f0-9]+$"
                    request_id: v-12f9006245061134c5
                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-12f9006245061134c6
                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-12f9006245061134c7
        '404':
          description: >-
            Reward not found. Returned for any unknown reward id, including a
            value that does not match `lrew_[a-f0-9]+`, and for a deleted
            reward.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Unknown reward:
                  value:
                    code: 404
                    key: not_found
                    message: Resource not found
                    details: Cannot find reward with id lrew_0a1b2c3d4e5f60718a
                    request_id: v-12f9006245061134c8
                    resource_id: lrew_0a1b2c3d4e5f60718a
                    resource_type: reward
                Malformed reward id:
                  value:
                    code: 404
                    key: not_found
                    message: Resource not found
                    details: Cannot find reward with id reward-1
                    request_id: v-12f9006245061134c9
                    resource_id: reward-1
                    resource_type: reward
        '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:
    LoyaltiesRewardsActivitiesListRequestQuery:
      type: object
      description: >-
        Request query schema for **GET**
        `/v2/loyalties/rewards/{rewardId}/activities`.
      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:
          oneOf:
            - $ref: >-
                #/components/schemas/LoyaltiesRewardsActivitiesListRequestQueryId
            - type: 'null'
        type:
          oneOf:
            - $ref: >-
                #/components/schemas/LoyaltiesRewardsActivitiesListRequestQueryType
            - type: 'null'
        created_at:
          oneOf:
            - $ref: '#/components/schemas/RewardDateFilter'
            - type: 'null'
      additionalProperties: false
      title: Loyalties Rewards Activities List Request Query
    LoyaltiesRewardsActivitiesListResponseBody:
      title: Loyalties Rewards Activities List Response Body
      type: object
      description: >-
        Response body schema for **GET**
        `/v2/loyalties/rewards/{rewardId}/activities`.
      allOf:
        - $ref: '#/components/schemas/RewardActivityListResponse'
    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.
    LoyaltiesRewardsActivitiesListRequestQueryId:
      type: object
      description: >-
        ID filter conditions for reward activities. `$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. All values must match the activity
        ID pattern `^larew_[a-f0-9]+$`.
      properties:
        conditions:
          type: object
          minProperties: 1
          additionalProperties: false
          properties:
            $is:
              description: >-
                Matches one value. A string or a one-element array. Format
                `larew_[a-f0-9]+`.
              oneOf:
                - type: string
                  pattern: ^larew_[a-f0-9]+$
                - type: array
                  minItems: 1
                  maxItems: 1
                  items:
                    type: string
                    pattern: ^larew_[a-f0-9]+$
                - type: 'null'
            $is_not:
              description: >-
                Excludes one value. A string or a one-element array. Format
                `larew_[a-f0-9]+`.
              oneOf:
                - type: string
                  pattern: ^larew_[a-f0-9]+$
                - type: array
                  minItems: 1
                  maxItems: 1
                  items:
                    type: string
                    pattern: ^larew_[a-f0-9]+$
                - type: 'null'
            $in:
              description: >-
                Matches any of the values. A string or an array of 1 to 100
                values. Format `larew_[a-f0-9]+`.
              oneOf:
                - type: string
                  pattern: ^larew_[a-f0-9]+$
                - type: array
                  minItems: 1
                  maxItems: 100
                  items:
                    type: string
                    pattern: ^larew_[a-f0-9]+$
                - type: 'null'
            $not_in:
              description: >-
                Excludes any of the values. A string or an array of 1 to 100
                values. Format `larew_[a-f0-9]+`.
              oneOf:
                - type: string
                  pattern: ^larew_[a-f0-9]+$
                - type: array
                  minItems: 1
                  maxItems: 100
                  items:
                    type: string
                    pattern: ^larew_[a-f0-9]+$
                - type: 'null'
      required:
        - conditions
      additionalProperties: false
    LoyaltiesRewardsActivitiesListRequestQueryType:
      type: object
      description: >-
        Enum filter conditions for the activity `type` field. `$is`/`$is_not`
        accept a single value (string or 1-element array); `$in`/`$not_in`
        accept a string or an array of 1-10 values.
      properties:
        conditions:
          type: object
          minProperties: 1
          additionalProperties: false
          properties:
            $is:
              description: Matches one value. A string or a one-element array.
              oneOf:
                - $ref: '#/components/schemas/RewardActivityType'
                - type: array
                  minItems: 1
                  maxItems: 1
                  items:
                    $ref: '#/components/schemas/RewardActivityType'
                - type: 'null'
            $is_not:
              description: Excludes one value. A string or a one-element array.
              oneOf:
                - $ref: '#/components/schemas/RewardActivityType'
                - type: array
                  minItems: 1
                  maxItems: 1
                  items:
                    $ref: '#/components/schemas/RewardActivityType'
                - type: 'null'
            $in:
              description: >-
                Matches any of the values. A string or an array of 1 to 10
                values.
              oneOf:
                - $ref: '#/components/schemas/RewardActivityType'
                - type: array
                  minItems: 1
                  maxItems: 10
                  items:
                    $ref: '#/components/schemas/RewardActivityType'
                - type: 'null'
            $not_in:
              description: >-
                Excludes any of the values. A string or an array of 1 to 10
                values.
              oneOf:
                - $ref: '#/components/schemas/RewardActivityType'
                - type: array
                  minItems: 1
                  maxItems: 10
                  items:
                    $ref: '#/components/schemas/RewardActivityType'
                - type: 'null'
      required:
        - conditions
      additionalProperties: false
    RewardDateFilter:
      type: object
      description: >-
        Date filter conditions. `$before`/`$after` accept an ISO-8601 date
        string (or a 1-element array of one); `$is`, `$more_than` and
        `$less_than` accept a non-negative integer value passed as a string;
        `$has_value` and `$is_unknown` take no meaningful value.
      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
    RewardActivityListResponse:
      type: object
      description: Cursor-paginated list of reward activities.
      properties:
        data:
          type: array
          description: The activities on the current page.
          items:
            $ref: '#/components/schemas/RewardActivity'
        cursor:
          description: Pagination cursor, or `null` when there are no more results.
          oneOf:
            - $ref: '#/components/schemas/RewardListCursor'
            - type: 'null'
        object:
          type: string
          const: list
          description: Object type marker; always `list`.
      required:
        - data
        - cursor
        - object
    RewardActivityType:
      type: string
      description: Reward activity type.
      enum:
        - vl.reward.created
        - vl.reward.updated
        - vl.reward.deleted
        - vl.reward.assigned
        - vl.reward.unassigned
        - vl.reward.activated
        - vl.reward.deactivated
        - vl.reward.drafted
    RewardActivity:
      type: object
      description: A reward activity entry.
      properties:
        id:
          type: string
          pattern: ^larew_[a-f0-9]+$
          description: Unique activity identifier, prefixed with `larew_`.
        type:
          $ref: '#/components/schemas/RewardActivityType'
          description: Type of the activity.
        data:
          $ref: '#/components/schemas/RewardActivityData'
        created_at:
          type: string
          format: date-time
          description: Timestamp when the activity occurred (ISO-8601).
        group_id:
          type:
            - string
            - 'null'
          description: >-
            Unique identifier grouping related activities recorded together.
            Omitted or `null` when the activity is not part of a group.
        source:
          $ref: '#/components/schemas/ActivitySource'
          description: Origin of the activity. Omitted when not recorded.
        reward_id:
          type: string
          pattern: ^lrew_[a-f0-9]+$
          description: >-
            Unique identifier of the reward the activity belongs to, prefixed
            with `lrew_`.
      required:
        - id
        - type
        - data
        - created_at
        - reward_id
    RewardListCursor:
      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
    RewardActivityData:
      type: object
      description: >-
        Activity payload. `reward` is always present and contains a full
        snapshot of the reward at the time of the activity. For
        `vl.reward.assigned` and `vl.reward.unassigned` activities, `program` (a
        snapshot of the program) and `program_reward` (a snapshot of the
        program-reward assignment) are also present.
      properties:
        reward:
          $ref: '#/components/schemas/RewardResponse'
          description: Snapshot of the reward at the time of the activity.
        program:
          $ref: '#/components/schemas/Program'
          description: >-
            Snapshot of the program. Present only for `vl.reward.assigned` and
            `vl.reward.unassigned` activities.
        program_reward:
          $ref: '#/components/schemas/ProgramRewardAssignment'
          description: >-
            Snapshot of the program-reward assignment. Present only for
            `vl.reward.assigned` and `vl.reward.unassigned` activities.
      required:
        - reward
    ActivitySource:
      type: object
      description: Origin of an activity.
      properties:
        channel:
          type: string
          enum:
            - USER_PORTAL
            - API
            - CLIENT_API
            - INTERNAL
          description: Channel through which the activity was triggered.
        user:
          $ref: '#/components/schemas/ActivitySourceUser'
          description: >-
            Dashboard user who triggered the activity. Omitted when not
            applicable.
        api_key:
          $ref: '#/components/schemas/ActivitySourceApiKey'
          description: API key used to trigger the activity. Omitted when not applicable.
      required:
        - channel
      additionalProperties: false
    RewardResponse:
      type: object
      description: A reward, as returned by the API.
      properties:
        id:
          type: string
          pattern: ^lrew_[a-f0-9]+$
          description: Unique reward identifier, prefixed with `lrew_`.
        name:
          type: string
          description: Display name of the reward.
        type:
          type: string
          enum:
            - MATERIAL
            - DIGITAL
          description: Reward type.
        status:
          type: string
          enum:
            - ACTIVE
            - DRAFT
            - INACTIVE
            - DELETED
          description: Current lifecycle status of the reward.
        start_date:
          type:
            - string
            - 'null'
          format: date-time
          description: Date from which the reward is available, or `null` when not set.
        end_date:
          type:
            - string
            - 'null'
          format: date-time
          description: Date until which the reward is available, or `null` when not set.
        validity_hours:
          $ref: '#/components/schemas/RewardValidityHoursResponse'
          description: >-
            Hours during which the reward can be purchased. Always present.
            Defaults to `{"type": "ANY_TIME"}`.
        material:
          $ref: '#/components/schemas/RewardMaterialResponse'
          description: >-
            Material reward definition. Present only when `type` is `MATERIAL`.
            Omitted otherwise.
        digital:
          $ref: '#/components/schemas/RewardDigitalResponse'
          description: >-
            Digital reward definition. Present only when `type` is `DIGITAL`.
            Omitted otherwise.
        refunds:
          $ref: '#/components/schemas/LoyaltyV2ActivityRewardRefunds'
          description: 'Refund policy. Always present. Defaults to `{ "type": "NONE" }`.'
        costs:
          type: array
          description: Point costs of the reward. Empty array when no costs are defined.
          items:
            $ref: '#/components/schemas/RewardCostResponse'
        purchase_limits:
          $ref: '#/components/schemas/RewardPurchaseLimits'
          description: >-
            Purchase limits. Always present. Defaults to `{"cooldown": { "type":
            "NO_COOLDOWN"}, "frequency": {"type": "NO_LIMIT", "limits": []}}`.
        metadata:
          type: object
          description: >-
            Arbitrary key-value metadata attached to the reward. Empty object
            when not set.
        created_at:
          type: string
          format: date-time
          description: Timestamp when the reward was created (ISO-8601).
        updated_at:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            Timestamp when the reward was last updated (ISO-8601), or `null`
            when never updated.
        object:
          type: string
          const: reward
          description: Object type marker; always `reward`.
      required:
        - id
        - name
        - type
        - status
        - start_date
        - end_date
        - validity_hours
        - refunds
        - costs
        - purchase_limits
        - metadata
        - created_at
        - updated_at
        - object
    Program:
      type: object
      description: A loyalty program.
      properties:
        id:
          type: string
          description: Unique program identifier.
          pattern: ^lprg_[a-f0-9]+$
        name:
          type: string
          description: Program name.
        status:
          type: string
          description: Program status.
          enum:
            - DRAFT
            - ACTIVE
            - INACTIVE
            - DELETED
        start_date:
          type:
            - string
            - 'null'
          format: date-time
          description: Program validity start date (ISO 8601), or `null` when not set.
        end_date:
          type:
            - string
            - 'null'
          format: date-time
          description: Program validity end date (ISO 8601), or `null` when not set.
        validity_hours:
          $ref: '#/components/schemas/ProgramValidityHours'
          description: Validity hours configuration. Defaults to type `ANY_TIME`.
        metadata:
          type: object
          description: Arbitrary key-value metadata. Defaults to `{}`.
        created_at:
          type: string
          format: date-time
          description: Creation timestamp (ISO 8601).
        updated_at:
          type:
            - string
            - 'null'
          format: date-time
          description: Last update timestamp (ISO 8601), or `null` when never updated.
        object:
          type: string
          description: Object type marker.
          const: program
    ProgramRewardAssignment:
      type: object
      description: >-
        A reward assigned to a program, with stock configuration and redemption
        counter.
      properties:
        reward_id:
          type: string
          description: Unique reward identifier.
          pattern: ^lrew_[a-f0-9]+$
        stock:
          $ref: '#/components/schemas/ProgramRewardAssignmentStock'
          description: Stock configuration of the assignment.
        redeemed:
          type: number
          description: >-
            Number of times the reward has been redeemed within the program.
            Defaults to 0.
        created_at:
          type: string
          format: date-time
          description: Assignment creation timestamp (ISO 8601).
        updated_at:
          type:
            - string
            - 'null'
          format: date-time
          description: Last update timestamp (ISO 8601), or `null` when never updated.
        object:
          type: string
          description: Object type marker. Always `program_reward`.
          const: program_reward
      required:
        - reward_id
        - stock
        - redeemed
        - created_at
        - updated_at
        - object
    ActivitySourceUser:
      type: object
      description: Dashboard user who triggered an activity.
      properties:
        id:
          type: string
          description: Identifies the user.
      required:
        - id
      additionalProperties: false
    ActivitySourceApiKey:
      type: object
      description: API key used to trigger an activity.
      properties:
        name:
          type: string
          description: API key name.
        app_id:
          type: string
          description: Application ID of the API key.
        client_app_id:
          type: string
          description: Client application ID of the API key.
      additionalProperties: false
    RewardValidityHoursResponse:
      type: object
      description: >-
        Validity hours. `daily` is present only when `type` is DAILY. Omitted
        otherwise.
      properties:
        type:
          type: string
          enum:
            - DAILY
            - ANY_TIME
          description: >-
            Whether the reward is purchasable at any time or only during
            specific daily windows.
        daily:
          type: array
          description: Daily time windows. Present only when `type` is DAILY.
          items:
            $ref: >-
              #/components/schemas/LoyaltyV2ActivityRewardValidityDailyHoursResponse
      required:
        - type
    RewardMaterialResponse:
      type: object
      description: Material reward definition.
      properties:
        type:
          type: string
          enum:
            - PRODUCT
            - SKU
          description: Kind of material reward.
        product:
          $ref: '#/components/schemas/LoyaltyV2ActivityRewardMaterialProduct'
          description: >-
            Product delivered by the reward. Present only when `type` is
            `PRODUCT`. Omitted otherwise.
        sku:
          $ref: '#/components/schemas/LoyaltyV2ActivityRewardMaterialSKU'
          description: >-
            SKU delivered by the reward. Present only when `type` is `SKU`.
            Omitted otherwise.
      required:
        - type
    RewardDigitalResponse:
      type: object
      description: >-
        Digital reward definition. Only the object matching `type` is present;
        the others are omitted.
      properties:
        type:
          type: string
          enum:
            - DISCOUNT_COUPONS
            - GIFT_VOUCHERS
            - LOYALTY_CARD_POINTS
          description: Kind of digital reward.
        discount_coupons:
          $ref: '#/components/schemas/LoyaltyV2ActivityRewardDigitalDiscountCoupons'
          description: >-
            Discount coupons configuration. Present only when `type` is
            `DISCOUNT_COUPONS`.
        gift_vouchers:
          $ref: >-
            #/components/schemas/LoyaltyV2ActivityRewardDigitalGiftVouchersResponse
          description: >-
            Gift vouchers configuration. Present only when `type` is
            `GIFT_VOUCHERS`.
        loyalty_card_points:
          $ref: >-
            #/components/schemas/LoyaltyV2ActivityRewardDigitalLoyaltyCardPointsResponse
          description: >-
            Loyalty card points configuration. Present only when `type` is
            `LOYALTY_CARD_POINTS`.
      required:
        - type
    LoyaltyV2ActivityRewardRefunds:
      type: object
      description: Refund policy for the reward.
      properties:
        type:
          type: string
          enum:
            - NONE
            - REFUNDABLE
          description: Whether reward purchases can be refunded.
      required:
        - type
      additionalProperties: false
    RewardCostResponse:
      type: object
      description: >-
        A reward cost. `rules` is omitted when the cost has no rule definitions;
        `spending` is `null` when no spending is defined. `tier_rules` is always
        present and defaults to `NO_REQUIREMENTS`.
      properties:
        id:
          type: string
          pattern: ^lrcst_[a-f0-9]+$
          description: Unique cost identifier, prefixed with `lrcst_`.
        name:
          type:
            - string
            - 'null'
          maxLength: 200
          description: Display name of the cost. Omitted when not set. `null` when cleared.
        rules:
          $ref: '#/components/schemas/RewardCostRuleGroupResponse'
          description: >-
            Rules guarding this cost. Omitted when the cost has no rule
            definitions.
        spending:
          type:
            - array
            - 'null'
          description: Points spending definitions, or `null` when none are defined.
          items:
            $ref: '#/components/schemas/LoyaltyV2ActivityRewardCostSpendingResponse'
        tier_rules:
          $ref: '#/components/schemas/RewardCostTierRulesResponse'
          description: >-
            Defines which tiers can use this cost. Always present. Defaults to
            `NO_REQUIREMENTS`.
      required:
        - id
        - tier_rules
    RewardPurchaseLimits:
      type: object
      description: >-
        Limits on how often a member can purchase the reward. Always present on
        reward responses. Defaults to no cooldown and no frequency limit.
      properties:
        cooldown:
          $ref: '#/components/schemas/RewardPurchaseLimitsCooldown'
          description: Cooldown after a purchase.
        frequency:
          $ref: '#/components/schemas/RewardPurchaseLimitsFrequency'
          description: How many times the reward can be purchased in a period.
      required:
        - cooldown
        - frequency
    ProgramValidityHours:
      type: object
      description: Validity hours configuration of the program.
      properties:
        type:
          type: string
          description: Validity hours mode.
          enum:
            - DAILY
            - ANY_TIME
        daily:
          type: array
          description: Daily validity windows. Present only when `type` is `DAILY`.
          items:
            $ref: '#/components/schemas/ProgramValidityDailyHours'
    ProgramRewardAssignmentStock:
      type: object
      description: >-
        Reward stock configuration. When `type` is `UNLIMITED`, `limited` must
        not be provided. When `type` is `LIMITED`, `limited` is required.
      properties:
        type:
          type: string
          description: Stock type.
          enum:
            - UNLIMITED
            - LIMITED
        limited:
          $ref: '#/components/schemas/ProgramRewardAssignmentStockLimited'
          description: >-
            Limited stock details. Required when `type` is `LIMITED`. Absent
            when `type` is `UNLIMITED`.
      required:
        - type
      additionalProperties: false
      allOf:
        - if:
            properties:
              type:
                const: UNLIMITED
          then:
            not:
              required:
                - limited
        - if:
            properties:
              type:
                const: LIMITED
          then:
            required:
              - limited
            properties:
              limited:
                $ref: '#/components/schemas/ProgramRewardAssignmentStockLimited'
    LoyaltyV2ActivityRewardValidityDailyHoursResponse:
      type: object
      description: A single daily validity window.
      properties:
        days_of_week:
          type: array
          description: >-
            Days of the week the window applies to, as integers 0-6 (0 =
            Sunday).
          items:
            type: integer
            minimum: 0
            maximum: 6
        start_time:
          type: string
          description: Window start time in `HH:mm` format.
          example: '09:00'
        end_time:
          type: string
          description: Window end time in `HH:mm` format. Omitted when unset.
          example: '17:00'
      required:
        - days_of_week
        - start_time
    LoyaltyV2ActivityRewardMaterialProduct:
      type: object
      description: Product reference for a material reward.
      properties:
        id:
          type: string
          pattern: ^prod_[a-f0-9]+
          description: Product identifier, prefixed with `prod_`.
      required:
        - id
      additionalProperties: false
    LoyaltyV2ActivityRewardMaterialSKU:
      type: object
      description: SKU reference for a material reward.
      properties:
        product_id:
          type: string
          pattern: ^prod_[a-f0-9]+
          description: >-
            Unique identifier of the product the SKU belongs to, prefixed with
            `prod_`.
        id:
          type: string
          pattern: ^sku_[a-f0-9]+
          description: SKU identifier, prefixed with `sku_`.
      required:
        - product_id
        - id
      additionalProperties: false
    LoyaltyV2ActivityRewardDigitalDiscountCoupons:
      type: object
      description: Discount coupons digital reward configuration.
      properties:
        campaign_id:
          type: string
          pattern: ^camp_[a-zA-Z0-9]+
          description: >-
            Unique identifier of the discount coupons campaign to publish a
            coupon from, prefixed with `camp_`.
      required:
        - campaign_id
      additionalProperties: false
    LoyaltyV2ActivityRewardDigitalGiftVouchersResponse:
      type: object
      description: Gift vouchers configuration.
      properties:
        campaign_id:
          type: string
          pattern: ^camp_[a-zA-Z0-9]+
          description: >-
            Unique identifier of the gift vouchers campaign, prefixed with
            `camp_`.
        balance:
          type: number
          description: >-
            Gift card balance credited when the reward is delivered. Value
            present as a positive integer in the smallest currency unit (e.g.
            100 cents for $1.00). Added to the initial gift card balance when
            the gift card is first published.
      required:
        - campaign_id
        - balance
    LoyaltyV2ActivityRewardDigitalLoyaltyCardPointsResponse:
      type: object
      description: Loyalty card points configuration.
      properties:
        points:
          type: integer
          description: Number of points credited when the reward is delivered.
        card_definition_id:
          type: string
          pattern: ^lcdef_[a-f0-9]+$
          description: >-
            Unique identifier of the card definition points are credited to,
            prefixed with `lcdef_`.
      required:
        - points
        - card_definition_id
    RewardCostRuleGroupResponse:
      type: object
      description: >-
        Rules group. Contains a `logic` formula string plus numbered rule
        definition properties (positive-integer keys).
      properties:
        logic:
          type: string
          description: >-
            Logical formula combining the numbered rule definitions, e.g. `"1
            AND 2"`.
      additionalProperties:
        $ref: '#/components/schemas/RewardCostRuleDefinitionResponse'
        description: >-
          A numbered rule definition. Property names must be positive integers
          matching `^[1-9]\d*$` (for example `1`, `2`).
    LoyaltyV2ActivityRewardCostSpendingResponse:
      type: object
      description: Points spending definition.
      properties:
        id:
          type: string
          pattern: ^lrspn_[a-f0-9]+$
          description: >-
            Unique spending identifier, prefixed with `lrspn_`. Assigned by the
            API when omitted on create/update.
        name:
          type:
            - string
            - 'null'
          maxLength: 200
          description: Optional display name of the spending definition, or `null`.
        points:
          type: integer
          description: Number of points the member must spend.
        card_definition_id:
          type: string
          pattern: ^lcdef_[a-f0-9]+$
          description: >-
            Unique identifier of the card definition the points are spent from,
            prefixed with `lcdef_`.
      required:
        - id
        - points
        - card_definition_id
    RewardCostTierRulesResponse:
      type: object
      description: >-
        Tier requirements for a reward cost. `any_of` is omitted when `type` is
        `NO_REQUIREMENTS`.
      properties:
        type:
          type: string
          enum:
            - NO_REQUIREMENTS
            - ANY_OF
          description: Tier requirement type.
        any_of:
          type: array
          minItems: 1
          description: >-
            Lists tier combinations that qualify. Present when `type` is
            `ANY_OF`.
          items:
            $ref: '#/components/schemas/RewardCostTierRulesAnyOfEntryResponse'
      required:
        - type
      additionalProperties: false
      allOf:
        - if:
            properties:
              type:
                const: ANY_OF
          then:
            required:
              - any_of
    RewardPurchaseLimitsCooldown:
      type: object
      description: Purchase cooldown limits for a reward.
      properties:
        type:
          type: string
          enum:
            - NO_COOLDOWN
            - FIXED_COOLDOWN
          description: >-
            Cooldown type. `NO_COOLDOWN` - no cooldown. `FIXED_COOLDOWN` - wait
            a fixed period after each purchase.
        fixed_cooldown:
          $ref: '#/components/schemas/RewardPurchaseLimitsCooldownFixedCooldown'
          description: >-
            Fixed cooldown details. Present when `type` is `FIXED_COOLDOWN`.
            Omitted when `type` is `NO_COOLDOWN`.
      required:
        - type
    RewardPurchaseLimitsFrequency:
      type: object
      description: Purchase frequency limits for a reward.
      properties:
        type:
          type: string
          enum:
            - NO_LIMIT
            - LIMITED
          description: >-
            Frequency limit type. `NO_LIMIT` - unlimited purchases. `LIMITED` -
            limited by the `limits` array.
        limits:
          type: array
          description: >-
            Frequency limit definitions. Empty array when `type` is `NO_LIMIT`;
            one entry when `type` is `LIMITED`.
          items:
            $ref: '#/components/schemas/RewardPurchaseLimitsFrequencyLimit'
      required:
        - type
        - limits
    ProgramValidityDailyHours:
      type: object
      description: A single daily validity-hours window.
      properties:
        days_of_week:
          type: array
          description: Days of week the window applies to. 0 = Sunday through 6 = Saturday.
          items:
            type: integer
            minimum: 0
            maximum: 6
        start_time:
          type: string
          description: Window start time in `HH:mm` format.
        end_time:
          type: string
          description: Window end time in `HH:mm` format.
    ProgramRewardAssignmentStockLimited:
      type: object
      description: Limited stock configuration.
      properties:
        quantity:
          type: integer
          description: >-
            Available stock quantity. For responses, updates with each reward
            purchase.
          minimum: 0
          maximum: 9007199254740991
      required:
        - quantity
      additionalProperties: false
    RewardCostRuleDefinitionResponse:
      type: object
      description: >-
        A single rule definition. `conditions`, `rules` and `error` are omitted
        when not set.
      properties:
        name:
          type: string
          enum:
            - customer.segment
            - customer.metadata
            - member.metadata
          description: Rule kind.
        property:
          type:
            - string
            - 'null'
          description: Metadata property name the rule applies to (for metadata rules).
        conditions:
          type: object
          description: >-
            Operator conditions for the rule (keys are operators such as `$is`,
            `$in`; values are arrays of condition values). Omitted when not set.
        rules:
          $ref: '#/components/schemas/RewardCostRuleGroupResponse'
          description: Nested rules group. Omitted when not set.
        error:
          type: object
          description: >-
            Custom rule error definition with a `message` property. Omitted when
            not set.
          properties:
            message:
              type: string
              description: Error message returned when the rule is not satisfied.
    RewardCostTierRulesAnyOfEntryResponse:
      type: object
      description: Tier structure with the tiers that qualify for this cost.
      properties:
        tier_structure_id:
          type: string
          pattern: ^lts_[a-f0-9]+$
          description: Identifies the tier structure.
        tier_ids:
          type: array
          minItems: 1
          description: Lists the qualifying tier IDs.
          items:
            type: string
            pattern: ^lt_[a-f0-9]+$
      required:
        - tier_structure_id
        - tier_ids
      additionalProperties: false
    RewardPurchaseLimitsCooldownFixedCooldown:
      type: object
      description: Fixed cooldown configuration.
      properties:
        period:
          $ref: >-
            #/components/schemas/LoyaltyV2ActivityRewardPurchaseLimitsCooldownFixedCooldownPeriod
          description: Cooldown period.
      required:
        - period
    RewardPurchaseLimitsFrequencyLimit:
      type: object
      description: A frequency limit. Currently only `TIME_BASED` is supported.
      properties:
        type:
          type: string
          const: TIME_BASED
          description: Limit type. Always `TIME_BASED`.
        period:
          $ref: >-
            #/components/schemas/LoyaltyV2ActivityCardDefinitionLimitTimeBasedPeriod
          description: >-
            Time period that resets the purchase counter. Reuses the
            card-definition time-based period shape.
        triggers:
          $ref: >-
            #/components/schemas/LoyaltyV2ActivityRewardPurchaseLimitsFrequencyLimitTriggers
          description: Purchase count limit within the period.
      required:
        - type
        - period
        - triggers
    LoyaltyV2ActivityRewardPurchaseLimitsCooldownFixedCooldownPeriod:
      type: object
      description: Fixed cooldown period after a reward purchase.
      properties:
        value:
          type: integer
          description: Length of the cooldown period.
          minimum: 1
        unit:
          type: string
          enum:
            - HOUR
            - DAY
            - WEEK
            - MONTH
            - YEAR
          description: Unit of the cooldown period.
      required:
        - value
        - unit
    LoyaltyV2ActivityCardDefinitionLimitTimeBasedPeriod:
      type: object
      description: Time-based limit period.
      properties:
        type:
          type: string
          enum:
            - CURRENT_PERIOD
          description: Period type.
        current_period:
          type: object
          description: >-
            Current-period configuration. Present when `type` is
            `CURRENT_PERIOD`.
          properties:
            unit:
              type: string
              enum:
                - DAY
                - WEEK
                - MONTH
                - QUARTER
                - YEAR
              description: Calendar period unit.
          required:
            - unit
      required:
        - type
    LoyaltyV2ActivityRewardPurchaseLimitsFrequencyLimitTriggers:
      type: object
      description: Maximum number of purchases allowed in the period.
      properties:
        max:
          type: integer
          minimum: 1
          description: Maximum number of purchases in the configured period.
      required:
        - max
  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.