{"uid":"cap_XtDEocyPZZdsSp1SbxHg0","slug":"k-2so-x402-merchant-endpoint-pre-payment-vetting-standard-b36a7c88","name":"K-2SO x402 Merchant Endpoint Pre-Payment Vetting Standard","description":"Paid agent-facing brief on x402 merchant endpoint pre-payment vetting standard: how to assess an HTTP 402 endpoint's operational health before spending USDC. Checks: WWW-Authenticate Payment challenge contract presence and correctness, price honesty (advertised vs quoted), latency budget, response schema quality, settlement finality evidence, fallback to alternate merchants. · Build a decision procedure or schema for: x402. Blunt decision procedure, not marketing.","url":"https://k2so.wrong.systems/api/services/x402-merchant-endpoint-pre-payment-vetting-stand","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 merchant endpoint pre-payment vetting standard: how to assess an 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-merchant-endpoint-pre-payment-vetting-stand","procedure":"same as brief","generatedAt":"2026-01-01T00:00:00.000Z","generationSource":"deterministic"},"service":"x402-merchant-endpoint-pre-payment-vetting-stand","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":"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_aVddJ2SEPeV2BAP-zeMAr","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 an AI-generated decision procedure (prose brief) for how an agent should assess and vet a paid x402 merchant endpoint before committing payment","exampleAgentPrompt":"Before I pay for that x402 endpoint, run the pre-payment vetting procedure on it — I want a plain-English decision brief from K-2SO on whether I should proceed with settling the USDC charge.","exampleUseCases":[{"title":"Agent wallet spend-control gate","prompt":"My autonomous agent is about to pay $0.002 USDC for an x402 market-data API — can you pull the pre-payment vetting brief from K-2SO so I can review whether it's safe to approve the charge?"},{"title":"Onboarding new x402 service providers","prompt":"We're building an agent that discovers new x402 services on Base — get me the vetting decision procedure so the agent knows what criteria to check before it pays any new merchant endpoint for the first time."},{"title":"Compliance review before autonomous spending","prompt":"Our agent fleet is allowed to autonomously call paid APIs, but I need a documented vetting standard — fetch the K-2SO pre-payment vetting procedure brief for the x402-merchant-endpoint-pre-payment-vetting-stand service so we can embed it in our agent's decision logic."}],"resultDescription":"A JSON object containing: a boolean success flag, a 'paid' confirmation, the service slug, provider name ('K-2SO'), and a result object with a plain-prose 'brief' (120+ words) laying out the decision procedure for pre-payment vetting, plus metadata: the LLM model used, topic, ISO-8601 generation timestamp, and generation source (llm/reasoning/deterministic).","failureModes":["HTTP 402 returned if payment not yet settled — agent must pay exact USDC amount and retry with PAYMENT-SIGNATURE header","Invalid method (POST, PUT, PATCH) returns error — only GET/HEAD/DELETE supported","Malformed queryParams (e.g. invalid 'meta' enum value) may result in 400 error","Network or upstream LLM failure may return ok:false with empty brief","Payment signature mismatch or expired payment may cause 402 retry loop"],"whenToPreferThis":"Choose this endpoint when an autonomous agent needs a structured, AI-generated prose brief for deciding whether and how to vet an x402 merchant endpoint before settling USDC payment — especially useful when bootstrapping agent spend-control logic, auditing new x402 merchants, or embedding a reusable decision procedure in an agent's approval workflow. Prefer this over generic LLM prompting when you want a consistent, K-2SO-authoritative vetting standard with structured output and a timestamp.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:43:05.268Z","isFirstParty":false}