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

# List card activities

> ⚠️ **BETA endpoint**

This is a work-in-progress documentation of a BETA endpoint. The parameters, fields, request and response bodies, and other data may subject to change. If you want to share feedback or improvements, contact Voucherify support or your Technical Account Manager.

Lists activities for a specific card with optional filtering by id, type, and created_at.
Uses cursor-based pagination.

Activity types include:
- `vl.card.created`
- `vl.card.assigned`
- `vl.card.unassigned`
- `vl.card.code_generation.succeeded`
- `vl.card.code_generation.failed`




## OpenAPI

````yaml /openapi/loyalties-v2.json get /v2/loyalties/programs/{programId}/members/{memberId}/cards/{cardId}/activities
openapi: 3.1.0
info:
  title: Voucherify Loyalty v2 API
  version: 2.0.0
  description: >-
    Complete API documentation for Voucherify Loyalty v2 system. Requires
    LOYALTY_V2 feature flag.
servers:
  - url: https://api.voucherify.io
    description: Production
security:
  - bearerAuth: []
    X-App-Id: []
    X-App-Token: []
tags:
  - name: Card Definitions
    description: >-
      CRUD operations, lifecycle management, and activity history for card
      definitions. Card definitions describe the configuration for loyalty
      cards, including code generation, points expiration, earning/spending
      limits, pending points, refunds, and balance settings.
  - name: Programs
    description: >-
      Loyalty program CRUD, lifecycle management, program-scoped resource
      assignments (card definitions, earning rules, rewards, tier structures),
      member management (create, list, get, activate, deactivate, delete), card
      operations (points adjustment, pending points, expiring points,
      transactions), reward purchases, and activity history.
  - name: Earning Rules
    description: >-
      Manage earning rules that define how customers earn points or receive
      incentives based on triggers (events, segments, custom events). Includes
      CRUD, lifecycle, and activity history.
  - name: Tier Structures
    description: >-
      CRUD operations, lifecycle management, and activity history for tier
      structures. Includes nested tier definitions (create, list, update,
      delete) within tier structures. Tier structures define the tiering model
      for loyalty programs — how members qualify for and move between tiers.
  - name: Incentives
    description: >-
      Manage incentive definitions (fixed points, proportional points, material,
      digital). Includes CRUD, lifecycle transitions, and activity history.
  - name: Rewards
    description: >-
      CRUD, lifecycle operations, and activity history for reward definitions.
      Rewards can be material (product/SKU) or digital (discount coupons, gift
      vouchers).
  - name: Examine
    description: Examines the earning of loyalty points for a loyalty program member.
paths:
  /v2/loyalties/programs/{programId}/members/{memberId}/cards/{cardId}/activities:
    get:
      tags:
        - Programs
      summary: List card activities
      description: >
        ⚠️ **BETA endpoint**


        This is a work-in-progress documentation of a BETA endpoint. The
        parameters, fields, request and response bodies, and other data may
        subject to change. If you want to share feedback or improvements,
        contact Voucherify support or your Technical Account Manager.


        Lists activities for a specific card with optional filtering by id,
        type, and created_at.

        Uses cursor-based pagination.


        Activity types include:

        - `vl.card.created`

        - `vl.card.assigned`

        - `vl.card.unassigned`

        - `vl.card.code_generation.succeeded`

        - `vl.card.code_generation.failed`
      operationId: listCardActivities
      parameters:
        - $ref: '#/components/parameters/MemberProgramId'
        - $ref: '#/components/parameters/MemberId'
        - $ref: '#/components/parameters/CardId'
        - name: limit
          in: query
          description: Number of results to return (1-100, default 10)
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 10
        - name: order
          in: query
          description: Sort order for results
          schema:
            type: string
            enum:
              - created_at
              - '-created_at'
        - name: cursor
          in: query
          description: Cursor token for pagination
          schema:
            type: string
        - name: filters[junction]
          in: query
          schema:
            type: string
            enum:
              - AND
              - OR
        - name: filters[id][conditions][$is]
          in: query
          schema:
            type: string
        - name: filters[id][conditions][$in]
          in: query
          schema:
            type: array
            items:
              type: string
            maxItems: 100
        - name: filters[type][conditions][$is]
          in: query
          schema:
            type: string
            enum:
              - vl.card.created
              - vl.card.assigned
              - vl.card.unassigned
              - vl.card.code_generation.succeeded
              - vl.card.code_generation.failed
        - name: filters[type][conditions][$in]
          in: query
          schema:
            type: array
            items:
              type: string
        - name: filters[created_at][conditions][$before]
          in: query
          schema:
            type: string
            format: date
        - name: filters[created_at][conditions][$after]
          in: query
          schema:
            type: string
            format: date
      responses:
        '200':
          description: List of card activities
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActivityListResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  parameters:
    MemberProgramId:
      name: programId
      in: path
      required: true
      description: Unique program identifier
      schema:
        type: string
    MemberId:
      name: memberId
      in: path
      required: true
      description: Unique member identifier
      schema:
        type: string
    CardId:
      name: cardId
      in: path
      required: true
      description: Unique card identifier
      schema:
        type: string
  schemas:
    ActivityListResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Activity'
        cursor:
          oneOf:
            - $ref: '#/components/schemas/PaginationCursor'
            - type: 'null'
        object:
          type: string
          const: list
    Activity:
      type: object
      description: An activity log entry
      properties:
        id:
          type: string
          description: Unique activity identifier
        type:
          type: string
          description: >
            Activity type. Member types: vl.member.created, vl.member.deleted,

            vl.member.activated, vl.member.deactivated, vl.member.card.assigned,

            vl.member.card.unassigned. Card types: vl.card.created,
            vl.card.assigned,

            vl.card.unassigned, vl.card.code_generation.succeeded,
            vl.card.code_generation.failed.
        data:
          type: object
          description: Activity-specific data payload
          additionalProperties: true
        created_at:
          type: string
          format: date-time
          description: ISO 8601 timestamp when the activity occurred
        group_id:
          type:
            - string
            - 'null'
          description: Group identifier linking related activities
        source:
          oneOf:
            - $ref: '#/components/schemas/ActivitySource'
            - type: 'null'
    PaginationCursor:
      type: object
      description: Cursor for fetching the next page of results.
      properties:
        next:
          type: string
          description: >-
            Cursor token to pass as the `cursor` query parameter for the next
            page.
        expires_at:
          type: string
          format: date-time
          description: ISO 8601 timestamp when this cursor expires.
      required:
        - next
        - expires_at
    ErrorResponse:
      type: object
      description: Standard error response.
      properties:
        code:
          type: integer
          description: HTTP status code.
        key:
          type: string
          description: Machine-readable error key.
        message:
          type: string
          description: Human-readable error message.
        details:
          type: string
          description: Additional error details.
        request_id:
          type:
            - string
            - 'null'
          description: Request identifier for tracing.
        resource_id:
          type: string
          description: Related resource identifier (when applicable).
        resource_type:
          type: string
          description: Related resource type (when applicable).
      required:
        - code
        - key
        - message
    ActivitySource:
      type: object
      description: Source information for an activity.
      properties:
        channel:
          type: string
          enum:
            - USER_PORTAL
            - API
            - CLIENT_API
            - INTERNAL
          description: Channel through which the activity was triggered.
        user:
          type: object
          properties:
            id:
              type: string
              description: User identifier.
        api_key:
          type: object
          properties:
            name:
              type: string
            app_id:
              type: string
            client_app_id:
              type: string
  responses:
    BadRequest:
      description: Validation error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    X-App-Id:
      type: apiKey
      name: X-App-Id
      in: header
    X-App-Token:
      type: apiKey
      name: X-App-Token
      in: header

````