{"openapi":"3.1.0","info":{"title":"Pandrosion software purchase API","description":"Pandrosion 455 general solver and 601 robotics solver, each 49 USD once, MIT. Set product_id when creating a 601 order; the compatibility default is pandrosion-455. Direct invoices on reviewed mainnets, x402 v2 exact USDC on Base, and Stripe-hosted card checkout when available. Stripe orders use /v1/stripe/orders and a private prepare step; card data is entered only at Stripe. Save the private order token before paying; poll until paid; verify file hashes. Never disclose wallet private keys.","version":"1.4.1"},"servers":[{"url":"https://ivanbesevic.com"}],"paths":{"/api/payments/v1/products/pandrosion-455":{"get":{"summary":"Product","operationId":"getProduct","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid private order credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Verified payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Cross-origin request forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicting payment authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Unpaid quote expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"411":{"description":"Content-Length required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"JSON required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}},"503":{"description":"Provider unavailable; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}}},"tags":["Discovery and documentation"]}},"/api/payments/v1/products/pandrosion-601":{"get":{"summary":"Product","operationId":"getRoboticsProduct","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid private order credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Verified payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Cross-origin request forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicting payment authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Unpaid quote expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"411":{"description":"Content-Length required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"JSON required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}},"503":{"description":"Provider unavailable; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}}},"tags":["Discovery and documentation"]}},"/api/payments/v1/networks":{"get":{"summary":"Networks","operationId":"listNetworks","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Networks"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid private order credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Verified payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Cross-origin request forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicting payment authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Unpaid quote expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"411":{"description":"Content-Length required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"JSON required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}},"503":{"description":"Provider unavailable; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}}},"tags":["Discovery and documentation"]}},"/api/payments/v1/assets":{"get":{"summary":"Assets","operationId":"listAssets","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Assets"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid private order credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Verified payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Cross-origin request forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicting payment authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Unpaid quote expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"411":{"description":"Content-Length required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"JSON required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}},"503":{"description":"Provider unavailable; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}}},"tags":["Discovery and documentation"]}},"/api/payments/v1/orders":{"post":{"summary":"New Order","operationId":"createOrder","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewOrder"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedOrder"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid private order credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Verified payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Cross-origin request forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicting payment authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Unpaid quote expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"411":{"description":"Content-Length required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"JSON required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}},"503":{"description":"Provider unavailable; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}}},"tags":["Orders and private delivery"]}},"/api/payments/v1/stripe":{"get":{"summary":"Stripe Capabilities","operationId":"getStripeCapabilities","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeCapabilities"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid private order credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Verified payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Cross-origin request forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicting payment authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Unpaid quote expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"411":{"description":"Content-Length required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"JSON required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}},"503":{"description":"Provider unavailable; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}}},"tags":["Stripe card purchases"]}},"/api/payments/v1/stripe/orders":{"post":{"summary":"New Stripe Order","description":"Create and privately save a 49 USD card order before preparing Stripe Checkout. No card data is accepted and no payment is made by this call.","operationId":"createStripeOrder","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewStripeOrder"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedOrder"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid private order credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Verified payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Cross-origin request forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicting payment authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Unpaid quote expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"411":{"description":"Content-Length required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"JSON required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}},"503":{"description":"Provider unavailable; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}}},"tags":["Stripe card purchases"]}},"/api/payments/v1/orders/{order_id}/stripe/checkout":{"post":{"summary":"Prepare Stripe Checkout","description":"Requires the saved order Bearer token. Creates or recovers one Stripe-hosted session with a durable idempotency key. Open payment.checkout_url with an authorized payer; poll status_url afterward.","operationId":"prepareStripeCheckout","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeCheckoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid private order credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Verified payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Cross-origin request forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicting payment authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Unpaid quote expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"411":{"description":"Content-Length required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"JSON required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}},"503":{"description":"Provider unavailable; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}}},"tags":["Stripe card purchases"],"security":[{"orderToken":[]}]}},"/api/payments/v1/orders/{order_id}/stripe/cancel":{"post":{"summary":"Cancel Stripe Checkout","description":"Requires the order token. Closes an unprepared order or verifies and expires its unpaid Stripe session before allowing another payment method. A paid order returns its downloads; unresolved payments block switching.","operationId":"cancelUnpaidStripeCheckout","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeCheckoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid private order credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Verified payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Cross-origin request forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicting payment authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Unpaid quote expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"411":{"description":"Content-Length required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"JSON required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}},"503":{"description":"Provider unavailable; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}}},"tags":["Stripe card purchases"],"security":[{"orderToken":[]}]}},"/api/payments/v1/stripe/webhook":{"post":{"summary":"Stripe Webhook","description":"Stripe-only signed event receiver; a browser redirect never grants access.","operationId":"receiveStripeWebhook","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeWebhookResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid private order credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Verified payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Cross-origin request forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicting payment authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Unpaid quote expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"411":{"description":"Content-Length required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"JSON required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}},"503":{"description":"Provider unavailable; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"parameters":[{"name":"Stripe-Signature","in":"header","required":true,"schema":{"type":"string"}}],"tags":["Stripe card purchases"]}},"/api/payments/v1/x402":{"get":{"summary":"X402 Capabilities","operationId":"getX402Capabilities","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/X402Capabilities"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid private order credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Verified payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Cross-origin request forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicting payment authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Unpaid quote expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"411":{"description":"Content-Length required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"JSON required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}},"503":{"description":"Provider unavailable; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}}},"tags":["x402 purchases"]}},"/api/payments/v1/x402/orders":{"post":{"summary":"New X402 Order","description":"Create a private five-minute Base USDC order. Save access_token before sending an authorized x402 payment to payment.x402_url.","operationId":"createX402Order","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewX402Order"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedOrder"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid private order credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Verified payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Cross-origin request forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicting payment authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Unpaid quote expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"411":{"description":"Content-Length required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"JSON required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}},"503":{"description":"Provider unavailable; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}}},"tags":["x402 purchases"]}},"/api/payments/v1/orders/{order_id}/x402":{"get":{"summary":"Complete X402 Order","description":"Requires the saved order Bearer token. An x402 v2 client reads PAYMENT-REQUIRED and retries with PAYMENT-SIGNATURE. PAYMENT-RESPONSE reports settlement; files remain locked until independent finality. Repeating the same authorization does not debit twice.","operationId":"completeX402Order","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"PAYMENT-SIGNATURE","in":"header","required":false,"description":"Base64-encoded x402 v2 PaymentPayload from an authorized SDK client. Never a private key.","schema":{"type":"string","maxLength":12000}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}},"headers":{"PAYMENT-RESPONSE":{"description":"Base64 settlement response, present once the facilitator reports settlement. File access still waits for finalized verification.","schema":{"type":"string"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid private order credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Standard x402 v2 challenge; PAYMENT-REQUIRED contains its base64 encoding.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"}}},"headers":{"PAYMENT-REQUIRED":{"description":"Base64 x402 v2 PaymentRequired JSON.","schema":{"type":"string"}}}},"403":{"description":"Cross-origin request forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicting payment authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Unpaid quote expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"411":{"description":"Content-Length required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"JSON required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}},"503":{"description":"Provider unavailable; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}},"202":{"description":"Authorization retained or settlement submitted. Poll status_url; never initiate another payment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}},"headers":{"PAYMENT-RESPONSE":{"description":"Base64 settlement response, present once the facilitator reports settlement. File access still waits for finalized verification.","schema":{"type":"string"}}}}},"tags":["x402 purchases"],"security":[{"orderToken":[]}]}},"/api/payments/v1/orders/{order_id}":{"get":{"summary":"Order Status","operationId":"getOrder","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid private order credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Verified payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Cross-origin request forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicting payment authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Unpaid quote expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"411":{"description":"Content-Length required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"JSON required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}},"503":{"description":"Provider unavailable; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}}},"tags":["Orders and private delivery"],"security":[{"orderToken":[]}]}},"/api/payments/v1/orders/{order_id}/payment":{"post":{"summary":"Submit Payment","operationId":"submitPayment","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmittedPayment"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid private order credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Verified payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Cross-origin request forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicting payment authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Unpaid quote expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"411":{"description":"Content-Length required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"JSON required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}},"503":{"description":"Provider unavailable; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}}},"tags":["Orders and private delivery"],"security":[{"orderToken":[]}]}},"/api/payments/v1/orders/{order_id}/files/{file_id}":{"get":{"summary":"Download","operationId":"downloadFile","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}}],"responses":{"200":{"description":"Private artifact bytes. Verify X-Content-SHA256 against the product manifest.","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}},"headers":{"X-Content-SHA256":{"schema":{"type":"string"},"description":"SHA-256 of the exact file bytes."}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid private order credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Verified payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Cross-origin request forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicting payment authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Unpaid quote expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"411":{"description":"Content-Length required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"JSON required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}},"503":{"description":"Provider unavailable; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}}},"tags":["Orders and private delivery"],"security":[{"orderToken":[]}]}},"/api/payments/v1/orders/{order_id}/discover":{"post":{"summary":"Discover","operationId":"discoverSolanaPayment","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid private order credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Verified payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Cross-origin request forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicting payment authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Unpaid quote expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"411":{"description":"Content-Length required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"JSON required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}},"503":{"description":"Provider unavailable; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}}},"tags":["Orders and private delivery"],"security":[{"orderToken":[]}]}},"/api/payments/v1/orders/{order_id}/receipt":{"get":{"summary":"Receipt","operationId":"getReceipt","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Receipt"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid private order credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Verified payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Cross-origin request forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicting payment authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Unpaid quote expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"411":{"description":"Content-Length required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"JSON required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}},"503":{"description":"Provider unavailable; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}}},"tags":["Orders and private delivery"],"security":[{"orderToken":[]}]}},"/api/payments/v1/session":{"get":{"summary":"Session","operationId":"getBrowserSession","parameters":[{"name":"product_id","in":"query","required":false,"schema":{"type":"string","default":"pandrosion-455","title":"Product Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid private order credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Verified payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Cross-origin request forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicting payment authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Unpaid quote expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"411":{"description":"Content-Length required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"JSON required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}},"503":{"description":"Provider unavailable; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}}},"tags":["Orders and private delivery"]},"post":{"summary":"Restore","operationId":"restoreBrowserSession","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreAccess"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid private order credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Verified payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Cross-origin request forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicting payment authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Unpaid quote expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"411":{"description":"Content-Length required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"JSON required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}},"503":{"description":"Provider unavailable; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}}},"tags":["Orders and private delivery"]}},"/api/payments/v1/products/pandrosion-455/download":{"get":{"summary":"Payment Required","operationId":"getPurchaseOffer","responses":{"402":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseRequired"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid private order credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Cross-origin request forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicting payment authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Unpaid quote expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"411":{"description":"Content-Length required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"JSON required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}},"503":{"description":"Provider unavailable; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}}},"tags":["Discovery and documentation"]}},"/api/payments/v1/products/pandrosion-601/download":{"get":{"summary":"Payment Required","operationId":"getRoboticsPurchaseOffer","responses":{"402":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseRequired"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid private order credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Cross-origin request forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicting payment authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Unpaid quote expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"411":{"description":"Content-Length required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"JSON required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}},"503":{"description":"Provider unavailable; respect Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}}},"tags":["Discovery and documentation"]}},"/api/payments/agent-guide.md":{"get":{"summary":"Guide","operationId":"getAgentGuide","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}},"400":{"description":"Invalid request","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid private order credential","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Verified payment required","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Cross-origin request forbidden","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicting payment authorization","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Unpaid quote expired","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"411":{"description":"Content-Length required","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request too large","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"JSON required","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit; respect Retry-After","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}},"503":{"description":"Provider unavailable; respect Retry-After","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}}},"tags":["Discovery and documentation"]}},"/api/payments/license.txt":{"get":{"summary":"License Text","operationId":"getLicense","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}},"400":{"description":"Invalid request","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid private order credential","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Verified payment required","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Cross-origin request forbidden","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicting payment authorization","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Unpaid quote expired","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"411":{"description":"Content-Length required","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request too large","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"JSON required","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit; respect Retry-After","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}},"503":{"description":"Provider unavailable; respect Retry-After","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}}},"tags":["Discovery and documentation"]}},"/api/payments/agent-client.py":{"get":{"summary":"Agent Client","description":"Reference Python client. Running it directly performs read-only discovery; payment requires an explicit authorized signer and budget.","operationId":"getAgentClient","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}},"400":{"description":"Invalid request","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid private order credential","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Verified payment required","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Cross-origin request forbidden","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicting payment authorization","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Unpaid quote expired","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"411":{"description":"Content-Length required","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request too large","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"JSON required","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit; respect Retry-After","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}},"503":{"description":"Provider unavailable; respect Retry-After","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}}},"tags":["Discovery and documentation"]}}},"components":{"schemas":{"Artifact":{"properties":{"filename":{"type":"string","title":"Filename"},"media_type":{"type":"string","title":"Media Type"},"bytes":{"type":"integer","minimum":0.0,"title":"Bytes"},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Sha256"}},"additionalProperties":true,"type":"object","required":["filename","media_type","bytes","sha256"],"title":"Artifact"},"Asset":{"properties":{"id":{"type":"string","title":"Id"},"chain":{"type":"string","title":"Chain"},"symbol":{"type":"string","title":"Symbol"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"coin_id":{"type":"string","title":"Coin Id"},"contract":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract"},"decimals":{"type":"integer","title":"Decimals"},"network_id":{"type":"string","title":"Network Id"},"network_name":{"type":"string","title":"Network Name"},"family":{"type":"string","enum":["evm","solana"],"title":"Family"},"available":{"type":"boolean","title":"Available"},"price":{"anyOf":[{"$ref":"#/components/schemas/Price"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"additionalProperties":true,"type":"object","required":["id","chain","symbol","coin_id","contract","decimals","network_id","network_name","family","available"],"title":"Asset"},"AssetPolicy":{"properties":{"min_market_cap_usd":{"type":"string","title":"Min Market Cap Usd"},"min_volume_24h_usd":{"type":"string","title":"Min Volume 24H Usd"},"maximum_price_age_seconds":{"type":"integer","title":"Maximum Price Age Seconds"},"identity":{"type":"string","title":"Identity"},"unsupported":{"type":"string","title":"Unsupported"}},"additionalProperties":true,"type":"object","required":["min_market_cap_usd","min_volume_24h_usd","maximum_price_age_seconds","identity","unsupported"],"title":"AssetPolicy"},"Assets":{"properties":{"assets":{"items":{"$ref":"#/components/schemas/Asset"},"type":"array","title":"Assets"},"networks":{"items":{"$ref":"#/components/schemas/Network"},"type":"array","title":"Networks"},"policy":{"$ref":"#/components/schemas/AssetPolicy"}},"additionalProperties":true,"type":"object","required":["assets","networks","policy"],"title":"Assets"},"CreatedOrder":{"properties":{"order_id":{"type":"string","title":"Order Id"},"product_id":{"type":"string","title":"Product Id"},"protocol":{"type":"string","title":"Protocol","default":"ivanb-invoice-v1"},"state":{"type":"string","enum":["awaiting_payment","confirming","paid","expired","review_required"],"title":"State"},"price_usd":{"type":"string","title":"Price Usd"},"created_at":{"type":"integer","title":"Created At","description":"Unix UTC seconds."},"expires_at":{"type":"integer","title":"Expires At","description":"Crypto inclusion deadline or Stripe session expiration, Unix UTC seconds. Zero before a Stripe session is prepared. Finality/webhook delivery can arrive later."},"quote":{"$ref":"#/components/schemas/Price"},"payment":{"anyOf":[{"$ref":"#/components/schemas/Payment"},{"$ref":"#/components/schemas/StripePayment"}],"title":"Payment"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"evidence":{"anyOf":[{"$ref":"#/components/schemas/PaymentEvidence"},{"type":"null"}]},"paid_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Paid At"},"status_url":{"type":"string","title":"Status Url"},"submit_url":{"type":"string","title":"Submit Url"},"receipt_url":{"type":"string","title":"Receipt Url"},"downloads":{"additionalProperties":{"$ref":"#/components/schemas/Download"},"type":"object","title":"Downloads","description":"Empty until paid; includes standalone, bundle, license and readme."},"support":{"type":"string","title":"Support"},"access_token":{"type":"string","format":"password","title":"Access Token","description":"Secret order credential. Save privately before paying."},"save_access_token":{"type":"string","title":"Save Access Token"}},"additionalProperties":true,"type":"object","required":["order_id","product_id","state","price_usd","created_at","expires_at","quote","payment","message","evidence","paid_at","status_url","submit_url","receipt_url","downloads","support","access_token","save_access_token"],"title":"CreatedOrder"},"Download":{"properties":{"filename":{"type":"string","title":"Filename"},"media_type":{"type":"string","title":"Media Type"},"bytes":{"type":"integer","minimum":0.0,"title":"Bytes"},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Sha256"},"url":{"type":"string","title":"Url","description":"Fetch with the same order Bearer token. Never append the token to the URL."}},"additionalProperties":true,"type":"object","required":["filename","media_type","bytes","sha256","url"],"title":"Download"},"Error":{"properties":{"detail":{"anyOf":[{"type":"string"},{"items":{"$ref":"#/components/schemas/ValidationIssue"},"type":"array"}],"title":"Detail"},"retry_after_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retry After Seconds"}},"additionalProperties":true,"type":"object","required":["detail"],"title":"Error"},"EvmTransaction":{"properties":{"chainId":{"type":"string","title":"Chainid"},"to":{"type":"string","title":"To"},"value":{"type":"string","title":"Value","description":"Native value in hex wei; zero for ERC-20 transfers."},"data":{"type":"string","title":"Data","description":"Exact calldata including the public order reference; must be preserved."}},"additionalProperties":true,"type":"object","required":["chainId","to","value","data"],"title":"EvmTransaction"},"JsonValue":{},"NativeCurrency":{"properties":{"name":{"type":"string","title":"Name"},"symbol":{"type":"string","title":"Symbol"},"decimals":{"type":"integer","title":"Decimals"}},"additionalProperties":true,"type":"object","required":["name","symbol","decimals"],"title":"NativeCurrency"},"Network":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"family":{"type":"string","enum":["evm","solana"],"title":"Family"},"enabled":{"type":"boolean","title":"Enabled"},"network_id":{"type":"string","title":"Network Id","description":"CAIP-2 identity; never infer this from the recipient address."},"finality":{"type":"string","title":"Finality"},"confirmation_note":{"type":"string","title":"Confirmation Note"},"chain_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Chain Id"},"wallet_chain":{"anyOf":[{"$ref":"#/components/schemas/WalletChain"},{"type":"null"}]},"verification_available":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Verification Available"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"additionalProperties":true,"type":"object","required":["key","name","family","enabled","network_id","finality","confirmation_note"],"title":"Network"},"Networks":{"properties":{"networks":{"items":{"$ref":"#/components/schemas/Network"},"type":"array","title":"Networks"},"policy":{"type":"string","title":"Policy"}},"additionalProperties":true,"type":"object","required":["networks","policy"],"title":"Networks"},"NewOrder":{"properties":{"asset_id":{"type":"string","maxLength":64,"minLength":3,"title":"Asset Id"},"browser_session":{"type":"boolean","title":"Browser Session","default":false},"product_id":{"type":"string","maxLength":64,"title":"Product Id","default":"pandrosion-455"}},"additionalProperties":false,"type":"object","required":["asset_id"],"title":"NewOrder"},"NewStripeOrder":{"properties":{"product_id":{"type":"string","maxLength":64,"title":"Product Id","default":"pandrosion-455"},"browser_session":{"type":"boolean","title":"Browser Session","default":false}},"additionalProperties":false,"type":"object","title":"NewStripeOrder"},"NewX402Order":{"properties":{"asset_id":{"type":"string","const":"base:USDC","title":"Asset Id","default":"base:USDC"},"product_id":{"type":"string","maxLength":64,"title":"Product Id","default":"pandrosion-455"}},"additionalProperties":false,"type":"object","title":"NewX402Order"},"Order":{"properties":{"order_id":{"type":"string","title":"Order Id"},"product_id":{"type":"string","title":"Product Id"},"protocol":{"type":"string","title":"Protocol","default":"ivanb-invoice-v1"},"state":{"type":"string","enum":["awaiting_payment","confirming","paid","expired","review_required"],"title":"State"},"price_usd":{"type":"string","title":"Price Usd"},"created_at":{"type":"integer","title":"Created At","description":"Unix UTC seconds."},"expires_at":{"type":"integer","title":"Expires At","description":"Crypto inclusion deadline or Stripe session expiration, Unix UTC seconds. Zero before a Stripe session is prepared. Finality/webhook delivery can arrive later."},"quote":{"$ref":"#/components/schemas/Price"},"payment":{"anyOf":[{"$ref":"#/components/schemas/Payment"},{"$ref":"#/components/schemas/StripePayment"}],"title":"Payment"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"evidence":{"anyOf":[{"$ref":"#/components/schemas/PaymentEvidence"},{"type":"null"}]},"paid_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Paid At"},"status_url":{"type":"string","title":"Status Url"},"submit_url":{"type":"string","title":"Submit Url"},"receipt_url":{"type":"string","title":"Receipt Url"},"downloads":{"additionalProperties":{"$ref":"#/components/schemas/Download"},"type":"object","title":"Downloads","description":"Empty until paid; includes standalone, bundle, license and readme."},"support":{"type":"string","title":"Support"}},"additionalProperties":true,"type":"object","required":["order_id","product_id","state","price_usd","created_at","expires_at","quote","payment","message","evidence","paid_at","status_url","submit_url","receipt_url","downloads","support"],"title":"Order"},"Payment":{"properties":{"chain":{"type":"string","title":"Chain"},"asset_id":{"type":"string","title":"Asset Id"},"symbol":{"type":"string","title":"Symbol"},"contract":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract"},"decimals":{"type":"integer","title":"Decimals"},"amount":{"type":"string","title":"Amount","description":"Human-readable token amount, excluding network fees."},"amount_atomic":{"type":"string","pattern":"^[0-9]+$","title":"Amount Atomic","description":"Exact integer base units. Never convert to float."},"reference":{"type":"string","title":"Reference"},"recipient":{"type":"string","title":"Recipient"},"family":{"type":"string","enum":["evm","solana"],"title":"Family"},"network_id":{"type":"string","title":"Network Id"},"network_name":{"type":"string","title":"Network Name"},"confirmation_note":{"type":"string","title":"Confirmation Note"},"instructions":{"type":"string","title":"Instructions"},"transaction":{"anyOf":[{"$ref":"#/components/schemas/EvmTransaction"},{"type":"null"}]},"wallet_chain":{"anyOf":[{"$ref":"#/components/schemas/WalletChain"},{"type":"null"}]},"payment_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Uri"},"memo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Memo"},"x402_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X402 Url"}},"additionalProperties":true,"type":"object","required":["chain","asset_id","symbol","contract","decimals","amount","amount_atomic","reference","recipient","family","network_id","network_name","confirmation_note","instructions"],"title":"Payment"},"PaymentEvidence":{"properties":{"transaction":{"type":"string","title":"Transaction"},"block_id":{"type":"string","title":"Block Id"},"block_time":{"type":"integer","title":"Block Time"},"amount_atomic":{"type":"integer","title":"Amount Atomic"},"payer":{"type":"string","title":"Payer"}},"additionalProperties":true,"type":"object","required":["transaction","block_id","block_time","amount_atomic","payer"],"title":"PaymentEvidence"},"PaymentRequired":{"properties":{"x402Version":{"type":"integer","title":"X402Version","default":2},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"resource":{"anyOf":[{"$ref":"#/components/schemas/ResourceInfo"},{"type":"null"}]},"accepts":{"items":{"$ref":"#/components/schemas/PaymentRequirements"},"type":"array","title":"Accepts"},"extensions":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extensions"}},"type":"object","required":["accepts"],"title":"PaymentRequired","description":"V2 402 response structure.\n\nAttributes:\n    x402_version: Protocol version (always 2 for V2).\n    error: Optional error message.\n    resource: Optional resource information.\n    accepts: List of accepted payment requirements.\n    extensions: Optional extension data."},"PaymentRequirements":{"properties":{"scheme":{"type":"string","title":"Scheme"},"network":{"type":"string","title":"Network"},"asset":{"type":"string","title":"Asset"},"amount":{"type":"string","title":"Amount"},"payTo":{"type":"string","title":"Payto"},"maxTimeoutSeconds":{"type":"integer","title":"Maxtimeoutseconds"},"extra":{"additionalProperties":true,"type":"object","title":"Extra"}},"type":"object","required":["scheme","network","asset","amount","payTo","maxTimeoutSeconds"],"title":"PaymentRequirements","description":"V2 payment requirements structure.\n\nAttributes:\n    scheme: Payment scheme identifier (e.g., \"exact\").\n    network: CAIP-2 network identifier (e.g., \"eip155:8453\").\n    asset: Asset address/identifier.\n    amount: Amount in smallest unit.\n    pay_to: Recipient address.\n    max_timeout_seconds: Maximum time for payment validity.\n    extra: Additional scheme-specific data."},"Price":{"properties":{"usd":{"type":"string","title":"Usd","description":"Verified USD price per token; parse with decimal arithmetic."},"as_of":{"type":"integer","title":"As Of","description":"Unix UTC seconds of the market observation."},"source":{"type":"string","title":"Source"},"market_cap_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Market Cap Usd"},"volume_24h_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Volume 24H Usd"}},"additionalProperties":true,"type":"object","required":["usd","as_of","source"],"title":"Price"},"Product":{"properties":{"id":{"type":"string","title":"Id"},"price_usd":{"type":"string","title":"Price Usd"},"files":{"additionalProperties":{"$ref":"#/components/schemas/Artifact"},"type":"object","title":"Files"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"payment_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Type"},"license":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"License"},"license_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"License Url"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope"},"supported_networks":{"anyOf":[{"items":{"$ref":"#/components/schemas/Network"},"type":"array"},{"type":"null"}],"title":"Supported Networks"},"payments_enabled":{"type":"boolean","title":"Payments Enabled"},"checkout_url":{"type":"string","title":"Checkout Url"},"create_order_url":{"type":"string","title":"Create Order Url"},"assets_url":{"type":"string","title":"Assets Url"},"networks_url":{"type":"string","title":"Networks Url"},"quote_validity_seconds":{"type":"integer","title":"Quote Validity Seconds"},"confirmation_policy":{"type":"string","title":"Confirmation Policy"},"protocol":{"type":"string","title":"Protocol"},"network_fees":{"type":"string","title":"Network Fees"},"access":{"type":"string","title":"Access"},"x402_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X402 Url"},"stripe_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Url"},"stripe_available":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Stripe Available"}},"additionalProperties":true,"type":"object","required":["id","price_usd","files","payments_enabled","checkout_url","create_order_url","assets_url","networks_url","quote_validity_seconds","confirmation_policy","protocol","network_fees","access"],"title":"Product"},"PurchaseRequired":{"properties":{"error":{"type":"string","const":"payment_required","title":"Error"},"product":{"$ref":"#/components/schemas/Product"},"guide":{"type":"string","title":"Guide"},"openapi":{"type":"string","title":"Openapi"}},"additionalProperties":true,"type":"object","required":["error","product","guide","openapi"],"title":"PurchaseRequired"},"Receipt":{"properties":{"order_id":{"type":"string","title":"Order Id"},"product_id":{"type":"string","title":"Product Id"},"protocol":{"type":"string","title":"Protocol","default":"ivanb-invoice-v1"},"state":{"type":"string","enum":["awaiting_payment","confirming","paid","expired","review_required"],"title":"State"},"price_usd":{"type":"string","title":"Price Usd"},"created_at":{"type":"integer","title":"Created At","description":"Unix UTC seconds."},"expires_at":{"type":"integer","title":"Expires At","description":"Crypto inclusion deadline or Stripe session expiration, Unix UTC seconds. Zero before a Stripe session is prepared. Finality/webhook delivery can arrive later."},"quote":{"$ref":"#/components/schemas/Price"},"payment":{"anyOf":[{"$ref":"#/components/schemas/Payment"},{"$ref":"#/components/schemas/StripePayment"}],"title":"Payment"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"evidence":{"anyOf":[{"$ref":"#/components/schemas/PaymentEvidence"},{"type":"null"}]},"paid_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Paid At"},"status_url":{"type":"string","title":"Status Url"},"submit_url":{"type":"string","title":"Submit Url"},"receipt_url":{"type":"string","title":"Receipt Url"},"downloads":{"additionalProperties":{"$ref":"#/components/schemas/Download"},"type":"object","title":"Downloads","description":"Empty until paid; includes standalone, bundle, license and readme."},"support":{"type":"string","title":"Support"},"access_token":{"type":"string","format":"password","title":"Access Token"},"keep_private":{"type":"boolean","title":"Keep Private"},"restore_url":{"type":"string","title":"Restore Url"},"note":{"type":"string","title":"Note"}},"additionalProperties":true,"type":"object","required":["order_id","product_id","state","price_usd","created_at","expires_at","quote","payment","message","evidence","paid_at","status_url","submit_url","receipt_url","downloads","support","access_token","keep_private","restore_url","note"],"title":"Receipt"},"ResourceInfo":{"properties":{"url":{"type":"string","title":"Url"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"mimeType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mimetype"},"serviceName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Servicename"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"iconUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Iconurl"}},"type":"object","required":["url"],"title":"ResourceInfo","description":"Describes the resource being accessed.\n\nAttributes:\n    url: The URL of the resource.\n    description: Optional human-readable description.\n    mime_type: Optional MIME type of the resource.\n    service_name: Optional human-readable service name (≤ 32 chars).\n    tags: Optional topical tags for the service (≤ 5 entries, each ≤ 32 chars).\n    icon_url: Optional absolute http(s) URL to a service icon (≤ 2048 chars).\n\nSee `specs/extensions/bazaar.md` \"Service Metadata on `resource`\" for\nfacilitator-side validation rules applied to service_name / tags / icon_url."},"RestoreAccess":{"properties":{"order_id":{"type":"string","maxLength":64,"minLength":20,"title":"Order Id"},"access_token":{"type":"string","maxLength":64,"minLength":40,"title":"Access Token"}},"additionalProperties":false,"type":"object","required":["order_id","access_token"],"title":"RestoreAccess"},"Session":{"properties":{"order":{"anyOf":[{"$ref":"#/components/schemas/Order"},{"type":"null"}]}},"additionalProperties":true,"type":"object","required":["order"],"title":"Session"},"StripeCapabilities":{"properties":{"protocol":{"type":"string","const":"stripe-checkout-v1","title":"Protocol"},"provider":{"type":"string","const":"Stripe","title":"Provider"},"currency":{"type":"string","const":"USD","title":"Currency"},"available":{"type":"boolean","title":"Available"},"products":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Products"},"create_order_url":{"type":"string","title":"Create Order Url"},"confirmation_policy":{"type":"string","title":"Confirmation Policy"},"instructions":{"type":"string","title":"Instructions"}},"additionalProperties":true,"type":"object","required":["protocol","provider","currency","available","products","create_order_url","confirmation_policy","instructions"],"title":"StripeCapabilities"},"StripeCheckoutRequest":{"properties":{},"additionalProperties":false,"type":"object","title":"StripeCheckoutRequest"},"StripePayment":{"properties":{"provider":{"type":"string","const":"Stripe","title":"Provider"},"family":{"type":"string","const":"stripe","title":"Family"},"chain":{"type":"string","const":"stripe","title":"Chain"},"asset_id":{"type":"string","const":"stripe:USD","title":"Asset Id"},"symbol":{"type":"string","const":"USD","title":"Symbol"},"currency":{"type":"string","const":"USD","title":"Currency"},"amount":{"type":"string","title":"Amount"},"amount_atomic":{"type":"string","pattern":"^[0-9]+$","title":"Amount Atomic"},"decimals":{"type":"integer","const":2,"title":"Decimals"},"reference":{"type":"string","title":"Reference"},"recipient":{"type":"string","title":"Recipient"},"network_name":{"type":"string","title":"Network Name"},"checkout_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checkout Url"},"prepare_url":{"type":"string","title":"Prepare Url"},"cancel_url":{"type":"string","title":"Cancel Url"},"can_choose_payment":{"type":"boolean","title":"Can Choose Payment","description":"True only after the server safely closes this unpaid Stripe order; elapsed time alone is insufficient."},"confirmation_note":{"type":"string","title":"Confirmation Note"},"instructions":{"type":"string","title":"Instructions"}},"additionalProperties":true,"type":"object","required":["provider","family","chain","asset_id","symbol","currency","amount","amount_atomic","decimals","reference","recipient","network_name","checkout_url","prepare_url","cancel_url","can_choose_payment","confirmation_note","instructions"],"title":"StripePayment"},"StripeWebhookResult":{"properties":{"received":{"type":"boolean","title":"Received"},"outcome":{"type":"string","title":"Outcome"}},"additionalProperties":true,"type":"object","required":["received","outcome"],"title":"StripeWebhookResult"},"SubmittedPayment":{"properties":{"transaction_id":{"type":"string","maxLength":128,"minLength":40,"title":"Transaction Id"}},"additionalProperties":false,"type":"object","required":["transaction_id"],"title":"SubmittedPayment"},"ValidationIssue":{"properties":{"type":{"type":"string","title":"Type"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Loc"},"msg":{"type":"string","title":"Msg"},"input":{"$ref":"#/components/schemas/JsonValue"}},"additionalProperties":true,"type":"object","required":["type","loc","msg"],"title":"ValidationIssue"},"WalletChain":{"properties":{"chainId":{"type":"string","title":"Chainid","description":"Hexadecimal EIP-155 chain ID."},"chainName":{"type":"string","title":"Chainname"},"nativeCurrency":{"$ref":"#/components/schemas/NativeCurrency"},"rpcUrls":{"items":{"type":"string"},"type":"array","title":"Rpcurls"},"blockExplorerUrls":{"items":{"type":"string"},"type":"array","title":"Blockexplorerurls"}},"additionalProperties":true,"type":"object","required":["chainId","chainName","nativeCurrency","rpcUrls","blockExplorerUrls"],"title":"WalletChain"},"X402Capabilities":{"properties":{"protocol":{"type":"string","const":"x402-v2","title":"Protocol"},"enabled":{"type":"boolean","title":"Enabled"},"available":{"type":"boolean","title":"Available"},"network":{"type":"string","title":"Network"},"asset_id":{"type":"string","title":"Asset Id"},"scheme":{"type":"string","title":"Scheme"},"facilitator":{"type":"string","title":"Facilitator"},"create_order_url":{"type":"string","title":"Create Order Url"},"guide_url":{"type":"string","title":"Guide Url"},"settlement_policy":{"type":"string","title":"Settlement Policy"},"provider_policy":{"type":"string","title":"Provider Policy"}},"additionalProperties":true,"type":"object","required":["protocol","enabled","available","network","asset_id","scheme","facilitator","create_order_url","guide_url","settlement_policy","provider_policy"],"title":"X402Capabilities"}},"securitySchemes":{"orderToken":{"type":"http","scheme":"bearer","description":"Secret access_token returned when creating this order. Never use it in a URL or on-chain memo."}}},"externalDocs":{"url":"https://ivanbesevic.com/api/payments/agent-guide.md","description":"Complete agent purchase and recovery guide"}}