{"uid":"cap_bUieApzjrxGktNE0dVyqW","slug":"x402-payment-failure-doctor-get-cdb7e788","name":"x402 Payment Failure Doctor (GET)","description":"","url":"https://gpt55.558686.xyz/v1/tools/x402-payment-failure-doctor?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"minLength":1},"body":{"type":"object","additionalProperties":true},"method":{"enum":["GET","POST","PUT","PATCH","DELETE"],"type":"string"},"status":{"type":"integer","maximum":599,"minimum":0},"endpoint":{"type":"string","maxLength":2048,"minLength":1},"resource":{"type":"string","maxLength":2048,"minLength":1},"timeout_ms":{"type":"integer","maximum":15000,"minimum":1000},"errorMessage":{"type":"string","maxLength":4000},"settleStatus":{"type":"integer","maximum":599,"minimum":0},"verifyStatus":{"type":"integer","maximum":599,"minimum":0},"error_message":{"type":"string","maxLength":4000},"expectedPayTo":{"type":"string","maxLength":80},"settle_status":{"type":"integer","maximum":599,"minimum":0},"verify_status":{"type":"integer","maximum":599,"minimum":0},"facilitatorUrl":{"type":"string","maxLength":2048},"expectedNetwork":{"type":"string","maxLength":80},"expected_pay_to":{"type":"string","maxLength":80},"facilitator_url":{"type":"string","maxLength":2048},"expected_network":{"type":"string","maxLength":80},"hasPaymentHeader":{"type":["boolean","string"]},"has_payment_header":{"type":["boolean","string"]},"quoteHeaderPresent":{"type":["boolean","string"]},"expectedAmountAtomic":{"type":"string","maxLength":80},"paymentHeaderPresent":{"type":["boolean","string"]},"quote_header_present":{"type":["boolean","string"]},"paymentRequiredHeader":{"type":"string","maxLength":12000},"xPaymentHeaderPresent":{"type":["boolean","string"]},"expected_amount_atomic":{"type":"string","maxLength":80},"payment_header_present":{"type":["boolean","string"]},"paymentSignaturePresent":{"type":["boolean","string"]},"payment_required_header":{"type":"string","maxLength":12000},"x_payment_header_present":{"type":["boolean","string"]},"payment_signature_present":{"type":["boolean","string"]},"paymentRequiredHeaderPresent":{"type":["boolean","string"]},"paymentResponseHeaderPresent":{"type":["boolean","string"]},"xPaymentResponseHeaderPresent":{"type":["boolean","string"]},"payment_required_header_present":{"type":["boolean","string"]},"payment_response_header_present":{"type":["boolean","string"]},"x_payment_response_header_present":{"type":["boolean","string"]}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"ok":{"type":"boolean"},"tool":{"type":"string"},"fetchedAt":{"type":"string"}},"additionalProperties":true}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.006","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.006/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Mgb9XpKUSY68EQcNKxiuY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.006","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Diagnoses why an x402 payment failed to convert from quote to settled response, identifying issues like missing payment headers, amount mismatches, wallet spend-cap blocks, verify/settle failures, or post-payment delivery problems.","exampleAgentPrompt":"My x402 payment to https://api.example.com/data kept failing — can you diagnose what went wrong? The method was GET, I got a 402 back, the payment header was present, verify status was 200 but settle status was 500, expected payTo is 0xAbC123, network is base, and the error message was 'settle timeout'.","exampleUseCases":null,"resultDescription":"Returns a structured diagnosis of the x402 payment failure, identifying which stage failed (e.g. missing header, verify, settle, or delivery), what the specific mismatch or error was, and actionable recommendations to resolve the issue. Does not send any payment to the target endpoint.","failureModes":["Missing or malformed required 'input' parameter returns validation error","URL or endpoint field exceeds 2048 character limit returns schema error","Invalid status code values (outside 0-599) rejected","Timeout values outside 1000-15000ms range rejected","x402 payment of up to $0.006 USDC required; unpaid requests return 402","Truncated or malformed paymentRequiredHeader may reduce diagnostic accuracy"],"whenToPreferThis":"Use this endpoint when an x402 payment integration is not working and you need to pinpoint exactly which stage of the payment flow failed — especially when you want to inspect a live quote without actually paying the target. Prefer this over generic HTTP debuggers when the failure is specific to x402 protocol stages like verify, settle, or payment header construction. The GET variant is ideal for agents, crawlers, and wallets that cannot send JSON request bodies.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T11:26:15.150Z","isFirstParty":false,"canonicalSlug":"x402-payment-failure-doctor-get-cdb7e788"}