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

# x402 Complete

> x402 payment completion. Public: the PAYMENT-SIGNATURE header is the auth boundary. Without it, returns 402 with a PAYMENT-REQUIRED header.



## OpenAPI

````yaml https://api.coinvoyage.io/v3/openapi.json post /orders/{order_id}/x402/complete
openapi: 3.1.0
info:
  title: CoinVoyage API (v3)
  description: >-
    CoinVoyage v3 payment API. Unified Intent envelope, snake_case money via the
    Amount shape, and a single SHA-256 signature scheme.
  version: 3.0.0
servers:
  - url: https://api.coinvoyage.io/v3
security: []
paths:
  /orders/{order_id}/x402/complete:
    post:
      tags:
        - x402
      summary: x402 Complete
      description: >-
        x402 payment completion. Public: the PAYMENT-SIGNATURE header is the
        auth boundary. Without it, returns 402 with a PAYMENT-REQUIRED header.
      operationId: v3X402Complete
      parameters:
        - in: path
          name: order_id
          required: true
          schema:
            type: string
        - description: x402 payment signature. Absent → 402 with payment requirement.
          in: header
          name: PAYMENT-SIGNATURE
          required: false
          schema:
            type: string
      responses:
        '202':
          description: Payment verified and settling
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Invalid order id
        '402':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Payment required or invalid
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Order not found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Invalid order status
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
components:
  schemas:
    ErrorResponse:
      example:
        code: 400
        error: Bad Request
        message: Invalid request parameters
      properties:
        error:
          example: Bad Request
          type: string
        message:
          example: Invalid request parameters
          type: string
        code:
          example: 400
          format: int64
          type: integer
        details:
          anyOf:
            - type: string
            - type: number
            - type: object
      required:
        - error
        - message
        - code
      type: object

````