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

# Get customer points history

> Get paginated points transaction history for a customer.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v2/customers/{id}/points/history/
openapi: 3.0.3
info:
  title: Zupy API v2
  version: 2.0.0
  description: >-
    Zupy API v2 — versioned, gateway-aware API with envelope responses, RFC 7807
    errors, and multi-auth support (JWT, API Key, Device Key).
servers:
  - url: https://api.zupy.com
    description: Production
security: []
tags:
  - name: Authentication
    description: OTP request and verification endpoints
  - name: Customers
    description: Customer management, points, history, and data operations
  - name: Loyalty Programs
    description: Loyalty program configuration and details
  - name: Rewards
    description: Loyalty reward catalog (definitions redeemed with points)
  - name: Companies
    description: Company information and loyalty configuration
  - name: Coupons
    description: >-
      Issued coupons (RewardRedemption) — both loyalty-reward redemptions and
      marketing claims
  - name: Wallet
    description: Apple Wallet pass generation and notifications
  - name: Webhooks
    description: Partner integration webhook endpoints
  - name: Webhook Management
    description: Configure and test outbound webhook delivery
paths:
  /api/v2/customers/{id}/points/history/:
    get:
      tags:
        - Customers
      summary: Get customer points history
      description: Get paginated points transaction history for a customer.
      operationId: customers_points_history_retrieve
      parameters:
        - in: path
          name: id
          schema:
            type: string
          description: Unique identifier for this customer.
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  count:
                    type: integer
                  next:
                    type: string
                    format: uri
                    nullable: true
                  previous:
                    type: string
                    format: uri
                    nullable: true
                  results:
                    type: array
                    items:
                      $ref: '#/components/schemas/PointsHistory'
                required:
                  - count
                  - next
                  - previous
                  - results
          description: ''
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: ''
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: ''
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: ''
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: ''
      security:
        - apiKeyAuth: []
components:
  schemas:
    PointsHistory:
      type: object
      description: >-
        Individual points transaction record with operation details, amounts,
        and timestamps.
      properties:
        id:
          type: string
          readOnly: true
        activity_type:
          allOf:
            - $ref: '#/components/schemas/ActivityTypeEnum'
          readOnly: true
        activity_type_display:
          type: string
          readOnly: true
        points_amount:
          type: integer
          readOnly: true
          description: Points earned or spent in this activity (negative for spending)
        description:
          type: string
          readOnly: true
          description: Description of the activity
        balance_before:
          type: integer
          readOnly: true
          nullable: true
          description: Points balance before this activity
        balance_after:
          type: integer
          readOnly: true
          nullable: true
          description: Points balance after this activity
        activity_date:
          type: string
          format: date-time
          readOnly: true
          description: When the activity occurred (preserved from legacy system)
        created_at:
          type: string
          format: date-time
          readOnly: true
      required:
        - activity_date
        - activity_type
        - activity_type_display
        - balance_after
        - balance_before
        - created_at
        - description
        - id
        - points_amount
    Error:
      type: object
      description: RFC 7807 Problem Details error response.
      properties:
        type:
          type: string
          format: uri
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        instance:
          type: string
      required:
        - detail
        - instance
        - status
        - title
        - type
    ActivityTypeEnum:
      enum:
        - scan_pass
        - get_offer
        - use_offer
        - change_points
        - referral
        - checkin
        - geofence
        - complete_profile
        - profile_update
        - social_share
        - pass_installation
        - earn_zupys
        - use_zupys
        - points_to_zupys
        - zupys_to_points
        - message_reward
        - social_interaction
        - app_engagement
        - redeem_reward_code
        - redeem_benefit_code
        - rollback
        - secondary_auth
        - delivery
        - balcão
        - dine_in
        - other
      type: string
      description: Activity type classification for loyalty events.
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        Per-company partner API key (zupy_pk_…). Validated by Zupy against the
        company integration key hash (Story 14.x); send it on every request as
        the X-API-Key header. Scoped read-write to the owning company's data.

````