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

# GET /loyalty/history

> Get loyalty point transaction history for the consumer



## OpenAPI

````yaml /api/openapi/consumer-api.json get /loyalty/history
openapi: 3.1.0
info:
  description: Consumer API for Fanfare
  title: Fanfare Consumer API
  version: 1.0.0
servers:
  - description: Production
    url: https://consumer.fanfare.io/api
  - description: Local development
    url: http://localhost:4802
security: []
paths:
  /loyalty/history:
    get:
      tags:
        - Loyalty
      description: Get loyalty point transaction history for the consumer
      operationId: getLoyaltyHistory
      parameters:
        - in: query
          name: limit
          required: false
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  properties:
                    actorType:
                      type: string
                    bucketEarnedOn:
                      anyOf:
                        - type: string
                        - type: 'null'
                    bucketExpiresOn:
                      anyOf:
                        - type: string
                        - type: 'null'
                    id:
                      type: string
                    occurredAt:
                      format: date-time
                      type: string
                    pointsDelta:
                      type: number
                    sourceId:
                      anyOf:
                        - type: string
                        - type: 'null'
                    sourceType:
                      anyOf:
                        - type: string
                        - type: 'null'
                    txnType:
                      type: string
                  required:
                    - id
                    - txnType
                    - pointsDelta
                    - occurredAt
                    - actorType
                  type: object
                type: array
          description: Loyalty history retrieved successfully
        '400':
          content:
            application/json:
              schema:
                properties:
                  error:
                    const: validation_error
                  issues:
                    items:
                      properties:
                        expected:
                          type: string
                        kind:
                          type: string
                        message:
                          type: string
                        path:
                          items:
                            properties:
                              input: {}
                              key:
                                type: string
                              origin:
                                type: string
                              type:
                                type: string
                            required:
                              - type
                              - origin
                              - input
                              - key
                            type: object
                          type: array
                        received:
                          type: string
                        type:
                          type: string
                      required:
                        - kind
                        - type
                        - expected
                        - received
                        - message
                        - path
                      type: object
                    type: array
                required:
                  - error
                  - issues
                type: object
          description: Bad Request - Invalid input schema
        '401':
          content:
            application/json:
              schema:
                properties:
                  error:
                    type: string
                required:
                  - error
                type: object
          description: Unauthorized - Authentication required
        '403':
          content:
            application/json:
              schema:
                properties:
                  error:
                    type: string
                required:
                  - error
                type: object
          description: Forbidden - User must be authenticated
        '500':
          content:
            application/json:
              schema:
                properties:
                  error:
                    type: string
                required:
                  - error
                type: object
          description: Internal server error

````