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

# Poll settlement by payment id

> Primary poll key from the capture receipt. Fulfill only when status is CONFIRMED. Requires x402:settle:read.



## OpenAPI

````yaml /api-reference/openapi.json get /facilitator/settle/status/by-payment/{paymentId}
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/settle/status/by-payment/{paymentId}:
    get:
      tags:
        - Facilitator
      summary: Poll settlement by payment id
      description: >-
        Primary poll key from the capture receipt. Fulfill only when status is
        CONFIRMED. Requires x402:settle:read.
      operationId: getStatusByPayment
      parameters:
        - name: paymentId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Current settlement status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SettlementStatus'
      security:
        - bearerAuth: []
components:
  schemas:
    SettlementStatus:
      type: object
      properties:
        status:
          type: string
          enum:
            - CREATED
            - SUBMITTED
            - CONFIRMED
            - FAILED
            - TIMED_OUT
            - DISPUTED
        txHash:
          type: string
        jobId:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Merchant user JWT or sk_live_ API key.

````