{"info":{"title":"Warranty","version":"1.0.0"},"openapi":"3.1.0","paths":{"/api/call":{"post":{"responses":{"200":{"description":"Successful response"},"402":{"description":"Payment Required"}},"x-payment-info":{"offers":[{"amount":"5000","currency":"0x20c0000000000000000000006a37DA5C996874BE","description":"Warranty covered call (minimum; exact quote in the 402)","intent":"charge","method":"tempo","recipient":"0x0b68Ed668A1634f1D605fC83210e0397D5bE74bA"},{"amount":"5000","currency":"0x20c0000000000000000000000000000000000000","description":"Warranty covered call (minimum; exact quote in the 402)","intent":"charge","method":"tempo","recipient":"0x0b68Ed668A1634f1D605fC83210e0397D5bE74bA"}]},"summary":"Covered call to another MPP service. Price = the target's price + a premium; this is the minimum. Refunded automatically if the result fails your contract.","requestBody":{"required":true,"content":{"application/json":{"example":{"url":"https://warranty-mpp.vercel.app/api/flaky?mode=ok","method":"GET","contract":{"status":200,"content_type":"application/json","max_latency_ms":10000}},"schema":{"type":"object","required":["url"],"example":{"url":"https://warranty-mpp.vercel.app/api/flaky?mode=ok","method":"GET","contract":{"status":200,"content_type":"application/json","max_latency_ms":10000}},"properties":{"url":{"type":"string","description":"The MPP endpoint to buy from.","default":"https://warranty-mpp.vercel.app/api/flaky?mode=ok","example":"https://warranty-mpp.vercel.app/api/flaky?mode=ok"},"method":{"type":"string","enum":["GET","POST"],"default":"GET"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"body":{"description":"Request body for POST targets."},"contract":{"type":"object","properties":{"status":{"type":"integer","default":200},"content_type":{"type":"string"},"json_schema":{"type":"object"},"min_bytes":{"type":"integer"},"max_latency_ms":{"type":"integer","default":10000},"max_price":{"type":"string"}}}}}}}}}},"/api/flaky":{"get":{"responses":{"200":{"description":"Successful response"},"402":{"description":"Payment Required"}},"x-payment-info":{"offers":[{"amount":"10000","currency":"0x20c0000000000000000000006a37DA5C996874BE","description":"Flaky Weather: one forecast","intent":"charge","method":"tempo","recipient":"0x00C4969Fd38b59675fec9B89D7E89eb8D21338ad"},{"amount":"10000","currency":"0x20c0000000000000000000000000000000000000","description":"Flaky Weather: one forecast","intent":"charge","method":"tempo","recipient":"0x00C4969Fd38b59675fec9B89D7E89eb8D21338ad"}]},"summary":"Demo weather service that breaks on request (?mode=ok|garbage|slow|error). Use it to see Warranty refund a failed purchase."}}},"x-service-info":{"categories":["payments","reliability","developer-tools"],"docs":{"homepage":"https://warranty-mpp.vercel.app","llms":"https://warranty-mpp.vercel.app/llms.txt","apiReference":"https://warranty-mpp.vercel.app/openapi.json"}}}