> ## 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.

# Approve pending point transactions



## OpenAPI

````yaml /loyalty/admin-api-swagger.json put /api/external/approve-pending-transactions
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/approve-pending-transactions:
    put:
      tags:
        - Points & Earn Rules
      summary: Approve pending point transactions
      operationId: approvePendingTransaction
      parameters:
        - description: API key for authentication
          in: header
          name: X-API-Key
          required: true
          schema:
            type: string
        - description: >-
            Set to true to approve all pending transactions (ignores
            pendingPointsApprovalList)
          in: query
          name: approveAllPendingTransactions
          required: false
          schema:
            type: boolean
      requestBody:
        content:
          application/json:
            schema:
              description: >-
                List of specific pending transactions to approve (ignored if
                approveAllPendingTransactions=true)
              items:
                $ref: '#/components/schemas/PendingPointsApprovalRequest'
              type: array
      responses:
        '204':
          description: >-
            Approval process started successfully (asynchronous operation).
            Points will be added to customer accounts within a few seconds.
        '400':
          content:
            application/json:
              schema:
                example:
                  details: >-
                    Must provide either approveAllPendingTransactions=true or a
                    list of pending transactions to approve
                  error: Invalid request
                type: string
          description: >-
            Invalid request - Must provide either
            approveAllPendingTransactions=true OR a valid
            pendingPointsApprovalList
        '401':
          content:
            application/json:
              schema:
                example:
                  error: Invalid API key
                type: string
          description: Unauthorized - Invalid or missing X-API-Key
      security:
        - X-API-Key: []
components:
  schemas:
    PendingPointsApprovalRequest:
      properties:
        customerId:
          format: int64
          type: integer
        transactionId:
          format: int64
          type: integer
      type: object

````