{"uid":"cap_YfHCoSihTAlUEjwcmJ6h3","slug":"x402-agent-payment-hook-configuration-verification-pre-payment-c0617894","name":"x402 Agent Payment Hook Configuration Verification: Pre-Payment Procedure","description":"Paid agent-facing procedure on x402 agent payment hook configuration verification: pre-payment checklist for agents to verify what lifecycle hooks a merchant exposes (pre-payment hook, on-settlement hook, on-failure/refund hook, receipt delivery hook), the execution semantics of each hook (synchronous vs async, retry count, timeout, idempotency, side-effect surface like wallet debits or data writes), and the blast radius of misconfigured hooks before sending USDC. Blunt decision procedure, not","url":"https://k2so.wrong.systems/api/services/x402-agent-payment-hook-configuration-verificati?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","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"meta":{"enum":["0","1"],"type":"string","description":"Set to 1 for free metadata JSON (no payment required)"},"topic":{"type":"string","description":"Optional topic override for the decision procedure"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","title":"x402 agent payment hook configuration verification: pre-payment 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"},"brief":{"type":"string","description":"Decision procedure prose for agents"},"model":{"type":"string"},"topic":{"type":"string"},"service":{"type":"string","description":"Service slug"},"procedure":{"type":"string"},"generatedAt":{"type":"string","description":"ISO-8601 timestamp"},"generationSource":{"enum":["llm","reasoning","deterministic"],"type":"string"}}},"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":{"type":"json","example":{"ok":true,"paid":true,"result":{"ok":true,"brief":"plain prose decision procedure (120+ words)","model":"deepseek/deepseek-v4-flash-0731","topic":"string topic","service":"x402-agent-payment-hook-configuration-verificati","procedure":"same as brief","generatedAt":"2026-01-01T00:00:00.000Z","generationSource":"deterministic"},"service":"x402-agent-payment-hook-configuration-verificati","provider":"K-2SO"}},"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":"down","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_xrw5iVzoGuy6vmvLcxEEh","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":"Returns a decision procedure for agents to audit which lifecycle hooks a merchant exposes and their execution semantics before sending USDC payment.","exampleAgentPrompt":"Before I send USDC to this merchant, can you run the x402 pre-payment hook verification procedure to check what lifecycle hooks they expose — especially whether the pre-payment and settlement hooks are synchronous or async, how many retries they do, and what the blast radius would be if something is misconfigured?","exampleUseCases":[{"title":"Pre-payment merchant hook safety audit","prompt":"I'm about to send USDC to a new merchant via x402 — can you first check what payment lifecycle hooks they expose and tell me if any of them have risky side effects like wallet debits or data writes I should know about before I proceed?"},{"title":"Settlement hook timing verification","prompt":"For this x402 merchant, can you verify whether their on-settlement hook runs synchronously or asynchronously, and what the timeout and retry count is? I need to know if my agent will block waiting for it."},{"title":"Idempotency check before retry logic","prompt":"Can you pull the pre-payment hook configuration for this merchant and confirm whether their hooks are idempotent? I'm building retry logic into my agent and need to know if re-triggering a hook could cause duplicate charges or writes."}],"resultDescription":"A structured decision procedure response containing: which lifecycle hooks the merchant exposes (pre-payment, on-settlement, on-failure/refund, receipt delivery), execution semantics per hook (sync/async, retry count, timeout, idempotency), side-effect surface (wallet debits, data writes), blast radius assessment for misconfigured hooks, and a prose brief summarizing agent-actionable conclusions. Also includes metadata: service slug, generation source (llm/reasoning/deterministic), ISO-8601 timestamp, and payment confirmation fields.","failureModes":["Merchant endpoint does not expose hook metadata — returns ok:false with no hook details","Payment of $0.002 USDC fails or is rejected — no result returned","Topic override is invalid or unrecognized — procedure may return generic output","Merchant hook configuration is unavailable or undocumented — brief may be incomplete","Network timeout contacting k2so.wrong.systems — request fails with no response"],"whenToPreferThis":"Use this endpoint when an agent is about to make an x402 USDC payment to a merchant and needs to audit the merchant's payment lifecycle hooks before committing funds. Prefer this over generic payment validation when you specifically need to understand hook execution semantics (sync/async, retries, timeouts, idempotency) and potential side-effect blast radius. Ideal for risk-averse agent payment flows where hook misconfiguration could cause unintended wallet debits or data mutations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T05:25:43.143Z","isFirstParty":false,"canonicalSlug":"x402-agent-payment-hook-configuration-verification-pre-payment-c0617894"}