{"openapi":"3.1.0","info":{"title":"FACTOR Agent Extension","version":"1.1.0","description":"Requester-selected bounties, exact monetary strings and invoice-pinned USDC/x402. Base mainnet is disabled by default and requires explicit operator approval/configuration. Native publication is manual; no solution guarantee. Existing Stripe/TRON checkout is separate."},"servers":[{"url":"/"}],"components":{"securitySchemes":{"ClientToken":{"type":"http","scheme":"bearer","description":"Client-scoped token issued once by POST /api/v1/clients."}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]},"RequestInput":{"type":"object","properties":{"numberToFactor":{"type":"string","maxLength":1264,"description":"Current Gateway limits: 231–4,135 bits, positive decimal or 0x hexadecimal. Never a JSON number."},"rewardAmountUSD":{"type":"string","pattern":"^\\d{1,6}(?:\\.\\d{1,2})?$","description":"Requester-selected bounty: $3.00–$900,000.00."},"bountyType":{"type":"string","enum":["rsa","audit","research","custom"]}},"required":["numberToFactor","rewardAmountUSD","bountyType"],"additionalProperties":false},"Client":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"token":{"type":"string","pattern":"^[a-f0-9]{64}$"},"note":{"type":"string"}},"required":["id","token","note"]},"Fees":{"type":"object","properties":{"bountyUSD":{"type":"string","pattern":"^\\d+\\.\\d{2}$","description":"Exact decimal USD; never convert through a binary floating-point number."},"serviceFeeUSD":{"type":"string","pattern":"^\\d+\\.\\d{2}$","description":"Exact decimal USD; never convert through a binary floating-point number."},"processingFeeUSD":{"type":"string","pattern":"^\\d+\\.\\d{2}$","description":"Exact decimal USD; never convert through a binary floating-point number."},"totalUSD":{"type":"string","pattern":"^\\d+\\.\\d{2}$","description":"Exact decimal USD; never convert through a binary floating-point number."},"amountAtomic":{"type":"string","pattern":"^\\d+$","description":"Exact integer string, including USDC atomic amounts (6 decimals)."}},"required":["bountyUSD","serviceFeeUSD","processingFeeUSD","totalUSD","amountAtomic"]},"PaymentConfiguration":{"type":"object","properties":{"version":{"const":1},"network":{"enum":["eip155:84532","eip155:8453"]},"asset":{"type":"string"},"payTo":{"type":"string"},"facilitator":{"enum":["foundation","cdp"]},"amount":{"type":"string","pattern":"^\\d+$","description":"Exact integer string, including USDC atomic amounts (6 decimals)."},"confirmations":{"const":5},"servicePercent":{"const":"4"},"processingUSD":{"const":"0.00"}},"required":["version","network","asset","payTo","facilitator","amount","confirmations","servicePercent","processingUSD"]},"PaymentEvidence":{"type":"object","properties":{"network":{"enum":["eip155:84532","eip155:8453"]},"asset":{"type":"string"},"payer":{"type":"string"},"receiver":{"type":"string"},"amountAtomic":{"type":"string","pattern":"^\\d+$","description":"Exact integer string, including USDC atomic amounts (6 decimals)."},"transaction":{"type":"string"},"blockHash":{"type":"string"},"blockNumber":{"type":"string","pattern":"^\\d+$","description":"Exact integer string, including USDC atomic amounts (6 decimals)."},"confirmations":{"type":"string","pattern":"^\\d+$","description":"Exact integer string, including USDC atomic amounts (6 decimals)."},"source":{"const":"on-chain"},"verifiedAt":{"type":"string","format":"date-time"}},"required":["network","asset","payer","receiver","amountAtomic","transaction","blockHash","blockNumber","confirmations","source","verifiedAt"]},"Request":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"numberToFactor":{"type":"string","maxLength":1264,"description":"Current Gateway limits: 231–4,135 bits, positive decimal or 0x hexadecimal. Never a JSON number."},"rewardAmountUSD":{"type":"string","pattern":"^\\d{1,6}(?:\\.\\d{1,2})?$","description":"Requester-selected bounty: $3.00–$900,000.00."},"bountyType":{"type":"string","enum":["rsa","audit","research","custom"]},"fees":{"$ref":"#/components/schemas/Fees"},"version":{"type":"integer","minimum":1},"paymentMethod":{"const":"usdc_x402"},"paymentConfiguration":{"anyOf":[{"$ref":"#/components/schemas/PaymentConfiguration"},{"type":"null"}]},"paymentStatus":{"enum":["awaiting_payment","settling","manual_review","paid"]},"fulfillmentStatus":{"enum":["awaiting_payment","awaiting_fulfillment","manual_review","failed","published"]},"paymentReference":{"type":["string","null"]},"nativeTransactionId":{"type":["string","null"]},"deadpoolId":{"type":["string","null"]},"nativeFACTAmount":{"type":["string","null"]},"paymentEvidence":{"$ref":"#/components/schemas/PaymentEvidence"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","numberToFactor","rewardAmountUSD","bountyType","fees","version","paymentMethod","paymentStatus","fulfillmentStatus","paymentReference","nativeTransactionId","deadpoolId","nativeFACTAmount","createdAt","updatedAt"]},"PaymentStatus":{"type":"object","properties":{"paymentStatus":{"enum":["awaiting_payment","settling","awaiting_finality","manual_review","paid"]},"paymentReference":{"type":["string","null"]},"network":{"enum":["eip155:84532","eip155:8453"]},"fulfillmentStatus":{"type":"string"},"confirmations":{"type":"string","pattern":"^\\d+$","description":"Exact integer string, including USDC atomic amounts (6 decimals)."},"message":{"type":"string"},"payer":{"type":"string"}},"required":["paymentStatus","paymentReference"]},"PaymentRequirement":{"type":"object","properties":{"scheme":{"const":"exact"},"network":{"enum":["eip155:84532","eip155:8453"]},"asset":{"type":"string"},"amount":{"type":"string","pattern":"^\\d+$","description":"Exact integer string, including USDC atomic amounts (6 decimals)."},"payTo":{"type":"string"},"maxTimeoutSeconds":{"const":300},"extra":{"type":"object","properties":{"name":{"const":"USDC"},"version":{"const":"2"},"invoiceNonce":{"type":"string","pattern":"^0x[a-fA-F0-9]{64}$"},"note":{"type":"string"}},"required":["name","version","invoiceNonce","note"]}},"required":["scheme","network","asset","amount","payTo","maxTimeoutSeconds","extra"]},"PaymentRequired":{"type":"object","properties":{"x402Version":{"const":2},"resource":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"description":{"type":"string"},"mimeType":{"const":"application/json"}},"required":["url","description","mimeType"]},"accepts":{"type":"array","minItems":1,"maxItems":1,"items":{"$ref":"#/components/schemas/PaymentRequirement"}}},"required":["x402Version","resource","accepts"]},"AlreadyPaid":{"type":"object","properties":{"paid":{"const":true},"paymentReference":{"type":"string"}},"required":["paid","paymentReference"]},"Receipt":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"fulfillmentStatus":{"type":"string"},"nativeTransactionId":{"type":["string","null"]},"deadpoolId":{"type":["string","null"]},"nativeFACTAmount":{"type":["string","null"]},"source":{"const":"operator recorded"},"payment":{"anyOf":[{"$ref":"#/components/schemas/PaymentEvidence"},{"type":"null"}]}},"required":["requestId","fulfillmentStatus","nativeTransactionId","deadpoolId","nativeFACTAmount","source","payment"]},"Bounty":{"type":"object","properties":{"id":{"type":"string"},"integer":{"type":["string","null"]},"bountyFACT":{"type":["string","null"]},"claimed":{"type":"boolean"},"solution":{"type":["string","null"]},"entries":{"type":"array","items":{"type":"object","properties":{"txid":{"type":"string"},"claimed":{"type":["boolean","null"]},"solution":{"type":["string","null"]},"claimTransactionId":{"type":["string","null"]}},"required":["txid","claimed","solution","claimTransactionId"]}},"entryTransactionIds":{"type":"array","items":{"type":"string"}},"source":{"type":"string"},"verifiedLive":{"const":false}},"required":["id","integer","bountyFACT","claimed","solution","entries","entryTransactionIds"]},"Bounties":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Bounty"}},"offset":{"type":"integer"},"limit":{"type":"integer"},"total":{"type":"integer"},"source":{"type":"string"},"freshness":{"type":"string"}},"required":["data","offset","limit","total","source","freshness"]},"BountyResult":{"type":"object","properties":{"id":{"type":"string"},"disclosedResult":{"type":["string","null"]},"claimed":{"type":"boolean"},"verifiedLive":{"const":false}},"required":["id","disclosedResult","claimed","verifiedLive"]},"Capabilities":{"type":"object","properties":{"version":{"type":"string"},"integer":{"type":"object","properties":{"formats":{"type":"array","items":{"type":"string"}},"minBits":{"type":"integer"},"maxBits":{"type":"integer"}},"required":["formats","minBits","maxBits"]},"bounty":{"type":"object","properties":{"minimumUSD":{"type":"string","pattern":"^\\d+\\.\\d{2}$","description":"Exact decimal USD; never convert through a binary floating-point number."},"maximumUSD":{"type":"string","pattern":"^\\d+\\.\\d{2}$","description":"Exact decimal USD; never convert through a binary floating-point number."},"categories":{"type":"array","items":{"type":"string"}},"chosenBy":{"const":"requester"}},"required":["minimumUSD","maximumUSD","categories","chosenBy"]},"fees":{"type":"object","properties":{"servicePercent":{"type":"string"},"processingUSD":{"type":"string","pattern":"^\\d+\\.\\d{2}$","description":"Exact decimal USD; never convert through a binary floating-point number."},"policy":{"type":"string"}},"required":["servicePercent","processingUSD","policy"]},"payments":{"type":"array","items":{"type":"object","properties":{"method":{"const":"usdc_x402"},"network":{"type":"string"},"asset":{"type":"string"},"production":{"type":"boolean"},"configured":{"type":"boolean"},"enabled":{"type":"boolean"},"productionEnabled":{"type":"boolean"},"liveSettlementVerified":{"type":"boolean"},"verificationNote":{"type":"string"}},"required":["method","network","asset","production","configured","enabled","productionEnabled","liveSettlementVerified","verificationNote"]}},"existingCheckout":{"type":"object","properties":{"methods":{"type":"array","items":{"type":"string"}},"url":{"type":"string"},"agentRequestIntegration":{"const":false},"note":{"type":"string"}},"required":["methods","url","agentRequestIntegration","note"]},"nativeFACTAccepted":{"const":false},"fulfillment":{"const":"operator-controlled"},"solutionsGuaranteed":{"const":false},"privacy":{"type":"string"},"authentication":{"type":"string"},"endpoints":{"type":"object","properties":{"requests":{"type":"string"},"bounties":{"type":"string"},"mcp":{"type":"string"},"openapi":{"type":"string"},"guide":{"type":"string"}},"required":["requests","bounties","mcp","openapi","guide"]}},"required":["version","integer","bounty","fees","payments","existingCheckout","nativeFACTAccepted","fulfillment","solutionsGuaranteed","privacy","authentication","endpoints"]}}},"paths":{"/api/v1/capabilities":{"get":{"operationId":"discoverCapabilities","responses":{"200":{"description":"Operation succeeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Capabilities"}}}},"400":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/clients":{"post":{"operationId":"createClient","responses":{"201":{"description":"Operation succeeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Client"}}}},"400":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/bounties":{"get":{"operationId":"listBounties","summary":"Read cached blockchain observations, not settlement evidence.","parameters":[{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"maximum":100000,"default":0}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}}],"responses":{"200":{"description":"Operation succeeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bounties"}}}},"400":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/bounties/{id}":{"get":{"operationId":"getBounty","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Operation succeeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bounty"}}}},"400":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/bounties/{id}/result":{"get":{"operationId":"getBountyResult","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Operation succeeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BountyResult"}}}},"400":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/requests":{"post":{"operationId":"createRequest","security":[{"ClientToken":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":16,"maxLength":128,"pattern":"^[A-Za-z0-9_.:-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestInput"}}}},"responses":{"201":{"description":"Operation succeeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Request"}}}},"400":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/requests/{id}":{"get":{"operationId":"getRequest","security":[{"ClientToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Operation succeeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Request"}}}},"400":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/requests/{id}/payment":{"get":{"operationId":"getPaymentStatus","summary":"Reconcile without initiating or retrying settlement.","security":[{"ClientToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Operation succeeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentStatus"}}}},"400":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"payRequest","summary":"Get an invoice, or explicitly authorize one settlement.","security":[{"ClientToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"PAYMENT-SIGNATURE","in":"header","required":false,"schema":{"type":"string","maxLength":20000},"description":"Base64 x402 v2 JSON. EIP-3009 authorization nonce must equal accepts[0].extra.invoiceNonce."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"approvePayment":{"type":"boolean","description":"Explicit wallet-owner consent; must be true with a signature."}},"required":[]}}}},"responses":{"200":{"description":"Previously confirmed payment or successful settlement.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PaymentStatus"},{"$ref":"#/components/schemas/AlreadyPaid"}]}}},"headers":{"PAYMENT-RESPONSE":{"schema":{"type":"string"},"description":"When a signed POST confirms payment: base64 JSON with success, transaction and the pinned network."}}},"202":{"description":"Unconfirmed/indeterminate settlement. Poll GET payment; do not pay again.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PaymentStatus"},{"$ref":"#/components/schemas/Error"}]}}}},"400":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Invoice; no funds moved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"}}},"headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"},"description":"Base64-encoded JSON identical to the response body."}}},"403":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/requests/{id}/receipt":{"get":{"operationId":"getReceipt","security":[{"ClientToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Operation succeeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Receipt"}}}},"400":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Safe error envelope. Retry only idempotent operations; an indeterminate payment must be reconciled, not paid again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}