{"uid":"cap_mvYsE9IeQKKy4b-EHJDu4","slug":"aiskills402-x402-buyer-payment-decision-skill-4be510c6","name":"aiskills402 x402 Buyer Payment Decision Skill","description":"Pay Safely over x402: Decision rules for an AI agent that holds a wallet and receives an HTTP 402 payment request (x402 v2). Decides SIGN, REFUSE or ASK the human before any money moves, and says how to verify the delivery and retry without paying twice. Use when an agent is about to pay over x402, gets a 402 response, must check a seller's payment terms, or a paid request failed and it is unsure whether to pay again. One-time purchase of the SKILL.md file (Agent Skills format), $0.03 USDC, you…","url":"https://api.aiskills402.com/v1/skills/x402-buyer/file?utm_source=zero.xyz","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"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NmXEyx_zUz_CyavgVdDpw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Downloads a SKILL.md decision-rule file that tells an AI agent holding a wallet when to SIGN, REFUSE, or escalate to a human before making an x402 HTTP payment, and how to verify delivery and avoid double-paying.","exampleAgentPrompt":"Before I let you pay for that x402 resource, download the x402 buyer decision rules so you can check whether you should sign, refuse, or ask me first — and how to confirm delivery without paying twice.","exampleUseCases":[{"title":"Pre-payment safety check for agent","prompt":"I'm building an AI agent that holds a USDC wallet and might encounter x402 paywalls. Fetch the x402 buyer skill so the agent knows exactly when to sign a payment, when to refuse, and when to stop and ask me before any money moves."},{"title":"Avoiding double payment after failed request","prompt":"My agent already sent an x402 payment but the response failed — before it tries again, can you download the x402 buyer rules so it knows how to verify whether the first payment went through and avoid charging me twice?"},{"title":"Checking seller terms before authorizing payment","prompt":"The agent just hit a 402 response from a new API seller it hasn't dealt with before. Grab the x402 buyer decision skill so it can check the seller's payment terms and decide whether to proceed or escalate to me."}],"resultDescription":"A SKILL.md file (Agent Skills format) containing structured decision rules for x402 payment scenarios: conditions under which the agent should SIGN (proceed with payment), REFUSE (reject the payment request), or ASK the human for authorization; instructions for verifying that paid content was actually delivered; and guidance on safe retry logic to avoid duplicate payments.","failureModes":["Payment of $0.03 USDC not completed — returns 402 with payment details rather than the skill file","Network timeout — agent should retry with HEAD first to check idempotency","Malformed input schema (missing required 'type' or 'method' fields) — returns 400 validation error","x402 facilitator unavailable — payment cannot be processed, request fails","Duplicate payment risk if agent retries without checking delivery — covered by the skill file itself once downloaded"],"whenToPreferThis":"Use this endpoint specifically when an AI agent operates with an x402-compatible wallet and needs structured, actionable decision rules for handling HTTP 402 payment challenges. Prefer this over ad-hoc prompting or general payment guides when you need agent-ready SKILL.md format rules that cover the full SIGN/REFUSE/ASK decision tree and retry safety logic. Especially valuable for agents that may encounter unfamiliar sellers or failed paid requests.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-03T12:44:16.911Z","isFirstParty":false,"canonicalSlug":"aiskills402-x402-buyer-payment-decision-skill-4be510c6"}