{"openapi":"3.1.0","info":{"title":"Invoice Chaser","version":"1.0.0","description":"USDC invoices on Sui mainnet. Each invoice is payable by an agent over MPP or x402; every payment is verified on Sui through Tatum's gRPC gateway and remembered in Walrus Memory."},"servers":[{"url":"https://invoice-chaser-sigma.vercel.app"}],"x-service-info":{"categories":["payments","invoicing","developer-tools"],"docs":{"homepage":"https://invoice-chaser-sigma.vercel.app","llms":"https://invoice-chaser-sigma.vercel.app/llms.txt","apiReference":"https://github.com/PugarHuda/invoice-chaser#readme"}},"paths":{"/api/chaser/mpp/{id}":{"get":{"operationId":"pay_invoice_mpp_","summary":"Pay invoice (MPP)","description":"Machine Payments Protocol charge. 402 carries WWW-Authenticate: Payment method=\"sui\"; retry with Authorization: Payment <credential> for a Payment-Receipt.","parameters":[{"name":"id","in":"path","required":true,"description":"Invoice id, e.g. inv-mw1iflmeba52e5","schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}}],"x-payment-info":{"intent":"charge","method":"sui","amount":null,"currency":"0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC","description":"Exact unique USDC amount of the invoice, paid to the payee on Sui","offers":[{"intent":"charge","method":"sui","amount":null,"currency":"0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC","description":"Exact unique USDC amount of the invoice, paid to the payee on Sui"}]},"responses":{"200":{"description":"Paid: receipt for the settled invoice","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"invoice":{"type":"string"},"digest":{"type":"string"},"explorer":{"type":"string"}}}}}},"402":{"description":"Payment Required: challenge for the exact amount still owed"},"404":{"description":"Unknown invoice","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"409":{"description":"Already paid, or the payment was already used","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}}}},"/api/chaser/x402/{id}":{"get":{"operationId":"pay_invoice_x402_","summary":"Pay invoice (x402)","description":"x402 exact scheme on sui:mainnet. v1: pay, then retry with X-PAYMENT: <digest>. v2: send PAYMENT-SIGNATURE with a signed, unexecuted Sui Payment Kit transaction (nonce = invoice id); the server simulates and broadcasts it through Tatum.","parameters":[{"name":"id","in":"path","required":true,"description":"Invoice id, e.g. inv-mw1iflmeba52e5","schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}}],"x-payment-info":{"intent":"charge","method":"x402","amount":null,"currency":"0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC","description":"x402 v1/v2 exact scheme, Sui Payment Kit nonce = invoice id","network":"sui:mainnet","offers":[{"intent":"charge","method":"x402","amount":null,"currency":"0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC","description":"x402 v1/v2 exact scheme, Sui Payment Kit nonce = invoice id","network":"sui:mainnet"}]},"responses":{"200":{"description":"Paid: receipt for the settled invoice","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"invoice":{"type":"string"},"digest":{"type":"string"},"explorer":{"type":"string"}}}}}},"402":{"description":"Payment Required: challenge for the exact amount still owed"},"404":{"description":"Unknown invoice","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"409":{"description":"Already paid, or the payment was already used","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}}}},"/api/chaser/pay/{id}":{"get":{"operationId":"invoice_terms","summary":"Public invoice terms","parameters":[{"name":"id","in":"path","required":true,"description":"Invoice id, e.g. inv-mw1iflmeba52e5","schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}}],"responses":{"200":{"description":"Amount, payee, Payment Kit URI and status"},"404":{"description":"Unknown invoice","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}}}},"/api/chaser/pay/{id}/live":{"get":{"operationId":"invoice_live","summary":"Live payment stream (SSE)","description":"Server-Sent Events fed by Tatum's Sui gRPC SubscribeCheckpoints: watching, checkpoint, seen, paid, timeout.","parameters":[{"name":"id","in":"path","required":true,"description":"Invoice id, e.g. inv-mw1iflmeba52e5","schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}}],"responses":{"200":{"description":"text/event-stream"}}}},"/api/chaser/mcp":{"post":{"operationId":"mcp","summary":"MCP server (Streamable HTTP)","description":"Read-only tools over the learned memory: list_open_invoices, client_profile, plan_reminder, search_client_memory, payment_terms, learning_summary.","responses":{"200":{"description":"JSON-RPC response"}}}}}}