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

# Capture a signed voucher

> Queues the payment for settleBatch and returns a signed receipt. Requires Idempotency-Key (UUID v4) and x402:settle:create. A 200 is not CONFIRMED.



## OpenAPI

````yaml /api-reference/openapi.json post /facilitator/capture
openapi: 3.1.0
info:
  title: SohoPay Facilitator API
  version: 2.0.0
  description: >-
    Merchant facilitator for x402 Protocol V2. Staging is the supported
    environment. Agents use hosted MCP and are not described by this document.
    There is no POST /settle.
servers:
  - url: https://staging.api.sohopay.ai/api/v1
    description: Staging (Base Sepolia, Protocol V2)
  - url: https://api.sohopay.ai/api/v1
    description: >-
      Production (Base mainnet). Protocol V2 settlement is not enabled for
      general integrators until cutover.
security: []
tags:
  - name: Facilitator
    description: Verify, capture, and poll x402 credit payments.
paths:
  /facilitator/capture:
    post:
      tags:
        - Facilitator
      summary: Capture a signed voucher
      description: >-
        Queues the payment for settleBatch and returns a signed receipt.
        Requires Idempotency-Key (UUID v4) and x402:settle:create. A 200 is not
        CONFIRMED.
      operationId: capturePayment
      parameters:
        - name: Idempotency-Key
          in: header
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CaptureRequest'
      responses:
        '200':
          description: Signed capture receipt
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CaptureResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    CaptureRequest:
      type: object
      required:
        - x402Version
        - paymentPayload
      properties:
        x402Version:
          type: integer
          const: 2
        paymentPayload:
          type: object
          description: >-
            x402 version-2 credit-scheme envelope (voucher plus agent
            signature).
        paymentRequirements:
          type: object
          description: Optional echo of the 402 payment requirements.
    CaptureResponse:
      type: object
      properties:
        success:
          type: boolean
        replayed:
          type: boolean
        receipt:
          $ref: '#/components/schemas/CaptureReceipt'
    CaptureReceipt:
      type: object
      properties:
        paymentId:
          type: string
          description: bytes32 poll key.
        orderRef:
          type: string
        agentId:
          type: string
        merchantId:
          type: string
        amount:
          type: string
          description: Asset base units, decimal string.
        capturedAt:
          type: string
        expiresAt:
          type: string
        signature:
          type: string
        signer:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Merchant user JWT or sk_live_ API key.

````