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

# Settle

> Verify proof on-chain and settle PaymentIntent.



## OpenAPI

````yaml POST /settle
openapi: 3.1.0
info:
  title: Flow402 - x402 Facilitator for USDC
  version: 1.0.0
  license:
    name: MIT
servers:
  - url: https://api.flow402.net
security: []
tags:
  - name: health
    description: Facilitator status & monitoring.
  - name: x402
    description: X402 endpoints.
paths:
  /settle:
    post:
      tags:
        - x402
      summary: Flow402 Settle
      description: Verify proof on-chain and settle PaymentIntent.
      operationId: flow402_settle_settle_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SettleSimpleRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SettleResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SettleSimpleRequest:
      properties:
        nonce:
          type: string
          title: Nonce
          examples:
            - uniq-generated-string-from-flow402
        txHash:
          type: string
          title: Txhash
          example:
            - 0x...merchantTx
        feeTxHash:
          anyOf:
            - type: string
            - type: 'null'
          title: FeeTxhash
          example:
            - 0x...feeTx
        intentId:
          type: string
          title: Intentid
          examples:
            - pi_...
      type: object
      required:
        - nonce
        - txHash
        - intentId
      title: SettleSimpleRequest
    SettleResponse:
      properties:
        settled:
          type: boolean
          title: Settled
          examples:
            - true
        txHash:
          type: string
          title: Txhash
          examples:
            - 0x...merchantTx
        receipt:
          additionalProperties: true
          type: object
          title: Receipt
          examples:
            - amount: '0.50'
              currency: USDC
              facilitatorRecipient: 0x...facilitator
              fee: '0.005'
              feeTxHash: 0x...feeTx
              intentId: pi_...
              merchant: 0x...merchantAddress
              network: base-sepolia
      type: object
      title: SettleResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````