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

# Get customer point transaction history



## OpenAPI

````yaml /loyalty/admin-api-swagger.json get /api/external/point-transaction-history/{customer_id}
openapi: 3.0.1
info:
  description: ''
  title: Admin APIs
  version: 0.0.1
servers:
  - url: https://loyalty-admin.appstle.com
security: []
tags:
  - description: >-
      Admin APIs for enrolling customers into the loyalty program, retrieving
      customer loyalty details, and updating profile information such as birth
      date.
    name: Customer Enrollment & Profile
  - description: >-
      Admin APIs for managing customer point balances, transaction history,
      point earning rules, top customers leaderboard, and approving pending
      transactions.
    name: Points & Earn Rules
  - description: >-
      Admin APIs for redeeming customer points, managing redemption rules, and
      validating or updating discount codes generated through loyalty
      redemptions.
    name: Redemptions & Discount Codes
  - description: >-
      Admin APIs for retrieving storefront widget label translations consumed by
      the loyalty widget on the merchant's storefront.
    name: Storefront Widgets & Labels
paths:
  /api/external/point-transaction-history/{customer_id}:
    get:
      tags:
        - Points & Earn Rules
      summary: Get customer point transaction history
      operationId: getAllPointTransactionHistoryByCustomer
      parameters:
        - description: API key for authentication
          in: header
          name: X-API-Key
          required: true
          schema:
            type: string
        - description: Shopify customer ID to retrieve transaction history for
          in: path
          name: customer_id
          required: true
          schema:
            format: int64
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PointTransaction'
          description: Successfully retrieved point transaction history
        '401':
          description: Unauthorized - Invalid or missing X-API-Key
      security:
        - X-API-Key: []
components:
  schemas:
    PointTransaction:
      properties:
        autoApprovalDays:
          format: int32
          type: integer
        contractId:
          type: string
        createAt:
          format: date-time
          type: string
        customerId:
          format: int64
          type: integer
        displayName:
          type: string
        earnRuleId:
          format: int64
          type: integer
        earnRuleName:
          type: string
        id:
          format: int64
          type: integer
        imported:
          type: boolean
        note:
          type: string
        orderFinancialStatus:
          type: string
        orderFulfillmentStatus:
          type: string
        orderId:
          format: int64
          type: integer
        orderLineItemId:
          format: int64
          type: integer
        orderName:
          type: string
        pointType:
          enum:
            - DEBIT
            - CREDIT
          type: string
        points:
          format: double
          type: number
        reason:
          type: string
        redeemRuleName:
          type: string
        redeemRuleRuleId:
          format: int64
          type: integer
        rewardType:
          enum:
            - STORE_CREDIT
            - DISCOUNT_CODE
            - POINTS
          type: string
        shop:
          type: string
        spentAmount:
          format: double
          type: number
        status:
          enum:
            - APPROVED
            - PENDING
            - REJECTED
          type: string
        transactionRule:
          enum:
            - ADJUSTMENT
            - EARN_RULE
            - REDEEM_RULE
            - REFERRAL
          type: string
      required:
        - customerId
        - pointType
        - points
      type: object

````