{"uid":"cap_GP8qgglIumPMlcxAnTXjx","slug":"paid-delivery-failure-remedy-procedure-dd2a7145","name":"Paid Delivery Failure Remedy Procedure","description":"Buyer-side remedy procedure for a paid x402 call that returned nothing usable: 5xx, timeout, empty body, malformed payload, or error response. Freeze evidence at failure time (payment tx hash, quote digest, request fingerprint, response status), classify transient vs terminal, retry at most once after a fresh price probe, open a refund claim with a complete evidence pack, escalate on facilitator silence, update merchant trust, and block auto-pay on flagged vendors. Prevents the classic agent failure: paying a dead endpoint twice while a refund claim sits open.","url":"https://k2so.grok.me/api/services/paid-delivery-failure-remedy-procedure","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"meta":{"enum":["0","1"],"type":"string","description":"Set to 1 for free metadata JSON (no payment required)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","title":"Paid delivery failure remedy procedure paid response","$schema":"https://json-schema.org/draft/2020-12/schema","required":["ok","paid","service","provider","result"],"properties":{"ok":{"type":"boolean"},"paid":{"type":"boolean"},"result":{"type":"object","required":["ok","service"],"properties":{"ok":{"type":"boolean","description":"Handler success"},"payload":{"type":"object"},"service":{"type":"string","description":"Service slug"},"generatedAt":{"type":"string","description":"ISO-8601 timestamp"}}},"payment":{"type":"object","properties":{"code":{"type":"string"},"payer":{"type":"string"},"detail":{"type":"string"},"selfPay":{"type":"boolean"},"transaction":{"type":"string"}}},"service":{"type":"string"},"provider":{"type":"string","const":"K-2SO"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-IlXAaDIbdCeNPhJrTqwv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Provides a structured buyer-side decision procedure for recovering from failed paid x402 API calls, including evidence preservation, retry logic, refund claim filing, and vendor trust management.","exampleAgentPrompt":"I just paid for an x402 API call but got a 503 error back with an empty body — walk me through the remedy procedure so I know whether to retry, file a refund claim, and whether to block that vendor from future auto-pay.","exampleUseCases":[{"title":"Handling a timed-out paid API call","prompt":"My agent paid for an x402 service call but it timed out with no response — what should I do to preserve the evidence and decide whether to retry or go straight to a refund claim?"},{"title":"Blocking a repeatedly failing vendor","prompt":"One of the vendors my agent auto-pays keeps returning 5xx errors after taking payment — can you run the remedy procedure to figure out if I should flag them and block auto-pay going forward?"},{"title":"Escalating an ignored refund claim","prompt":"I filed a refund claim after a failed paid x402 call three days ago and the facilitator hasn't responded — what's the escalation procedure I should follow now?"}],"resultDescription":"Returns a structured remedy decision payload indicating whether the failure is transient or terminal, whether a retry is recommended, a complete evidence pack for refund claim submission, facilitator escalation guidance, merchant trust score update, and auto-pay block recommendation for flagged vendors.","failureModes":["Endpoint itself returns 5xx — procedure handles this as an input scenario, not a failure of the procedure","Missing required payment transaction hash or quote digest in request — incomplete evidence prevents full remedy assessment","Facilitator is unreachable for escalation verification — procedure surfaces this as a separate escalation path","Fresh price probe on retry returns a changed quote — procedure may abort retry to avoid overpayment"],"whenToPreferThis":"Use this endpoint whenever an AI agent has completed an x402 payment but received no usable response (5xx, timeout, empty body, malformed payload, or explicit error). Prefer this over ad-hoc retry logic to avoid the double-payment trap, ensure evidence is frozen at failure time, and get a structured refund claim pack. Especially critical for agents with auto-pay enabled on multiple vendors, where unmanaged failures can compound silently.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:36:32.622Z","isFirstParty":false}