> ## 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 /consumers/{id}/loyalty-transactions

> Get consumer loyalty point transaction history with pagination



## OpenAPI

````yaml /api/openapi/admin-api.json get /consumers/{id}/loyalty-transactions
openapi: 3.1.0
info:
  description: Admin API for Fanfare
  title: Fanfare Admin API
  version: 1.0.0
servers:
  - description: Production
    url: https://admin.fanfare.io/api
  - description: Local development
    url: http://localhost:4800
security:
  - SecretKeyAuth: []
paths:
  /consumers/{id}/loyalty-transactions:
    get:
      tags:
        - Consumers
      description: Get consumer loyalty point transaction history with pagination
      operationId: getConsumersByIdLoyaltyTransactions
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  expiringBuckets:
                    items:
                      properties:
                        earnedOn:
                          type: string
                        expiresOn:
                          type: string
                        pointsRemaining:
                          type: number
                      required:
                        - earnedOn
                        - expiresOn
                        - pointsRemaining
                      type: object
                    type: array
                  nextCursor:
                    anyOf:
                      - type: string
                      - type: 'null'
                  transactions:
                    items:
                      properties:
                        bucketExpiresOn:
                          anyOf:
                            - type: string
                            - type: 'null'
                        id:
                          type: string
                        metadata:
                          anyOf:
                            - additionalProperties: {}
                              propertyNames:
                                type: string
                              type: object
                            - type: 'null'
                        occurredAt:
                          type: string
                        pointsDelta:
                          type: number
                        sourceDescription:
                          anyOf:
                            - type: string
                            - type: 'null'
                        sourceType:
                          anyOf:
                            - type: string
                            - type: 'null'
                        txnType:
                          enum:
                            - earn
                            - redeem
                            - expire
                            - adjust
                            - migration
                            - reversal
                      required:
                        - id
                        - txnType
                        - pointsDelta
                        - occurredAt
                        - sourceType
                        - sourceDescription
                        - bucketExpiresOn
                        - metadata
                      type: object
                    type: array
                required:
                  - transactions
                  - nextCursor
                  - expiringBuckets
                type: object
          description: Loyalty transactions 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
components:
  securitySchemes:
    SecretKeyAuth:
      description: Fanfare secret key. Keep secret credentials on your server.
      scheme: bearer
      type: http

````