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

# Confirm payment link payment

> Payer confirms they have made the payment. The link moves to `payment_pending`. Works for VA-backed and regular payment links. **Replaces `POST /payment-links/va/{link_ref}/confirm`**, which has been removed. To migrate, pass the VA link's `link_ref` as `identifier`. On success, `data` contains `link_id`, `link_ref`, and `status: payment_pending`.




## OpenAPI

````yaml /api-reference/external/openapi.yaml post /payment-links/{identifier}/confirm
openapi: 3.0.3
info:
  title: PCX API
  description: >
    The PCX integration API. Every request requires two headers: `X-Api-Key`
    (your API key — the only supported credential) and `Authorization` (always
    the literal string `NONE`).
  version: '1.0'
servers:
  - url: https://prod-api.pcxpay.com/v1
    description: Production
  - url: https://devs.pcxpay.com/v1
    description: Development
security: []
tags:
  - name: Payment Initiation
    description: Initiate payments and poll for status
  - name: API Keys
    description: Create and manage API keys for programmatic access
  - name: Webhooks
    description: Register endpoints and receive transaction notifications
  - name: Beneficiaries
    description: Manage payment recipients
  - name: Payments
    description: Initiate and track payments
  - name: Bank Validation
    description: Validate bank accounts before initiating a payment
  - name: Transactions
    description: Query the financial transaction ledger
  - name: Virtual Accounts
    description: Multi-currency virtual account provisioning and fund operations
  - name: Payment Links
    description: Generate shareable payment links for customer checkout
  - name: Escrow
    description: Milestone-based escrow projects, parties, contracts, and funding
paths:
  /payment-links/{identifier}/confirm:
    parameters:
      - $ref: '#/components/parameters/AuthorizationHeader'
      - $ref: '#/components/parameters/XApiKeyHeader'
    post:
      tags:
        - Payment Links
      summary: Confirm payment link payment
      description: >
        Payer confirms they have made the payment. The link moves to
        `payment_pending`. Works for VA-backed and regular payment links.
        **Replaces `POST /payment-links/va/{link_ref}/confirm`**, which has been
        removed. To migrate, pass the VA link's `link_ref` as `identifier`. On
        success, `data` contains `link_id`, `link_ref`, and `status:
        payment_pending`.
      operationId: confirmPaymentLink
      parameters:
        - name: identifier
          in: path
          required: true
          description: >
            The payment link's `link_id`, or a VA link's `link_ref` (values
            beginning `PLV-` are treated as a `link_ref`).
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - payer_currency
                - payment_method
              properties:
                payer_currency:
                  type: string
                payment_method:
                  type: string
                payer_reference:
                  type: string
                  nullable: true
      responses:
        '200':
          description: Payment confirmed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    AuthorizationHeader:
      name: Authorization
      in: header
      required: true
      description: >-
        Reserved for PCX-managed applications. External API integrations must
        always send the literal string `NONE` — this is the only accepted value.
      schema:
        type: string
        enum:
          - NONE
        default: NONE
        example: NONE
    XApiKeyHeader:
      name: X-Api-Key
      in: header
      required: true
      description: Your API key. This is the only supported credential.
      schema:
        type: string
        default: NONE
        example: pcx_abc123_xxxx
  schemas:
    StandardResponse:
      type: object
      properties:
        status:
          type: string
          enum:
            - success
            - error
          example: success
        message:
          type: string
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
        status:
          type: string
          enum:
            - error
  responses:
    BadRequest:
      description: Invalid request parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.