{"uid":"cap_4bQW1I142nobsxOijE-7G","slug":"buyer-side-decision-procedure-for-agents-offered-prepaid-credit-f69809b4","name":"Buyer-side Decision Procedure for Agents Offered Prepaid Credit Packages","description":"Decision procedure for agents that are offered prepaid credit packages by x402 merchants (Browser Use + Coinbase style credit purchases, or any merchant selling prepaid balances). Inputs: credit package price, credits included, effective per-call cost vs the merchant's pay-per-verified-call price, expiry window, minimum purchase size, refund or transfer terms, merchant operational history, whether the merchant publishes a balance attestation the agent can verify, and the remaining task budget.","url":"https://k2so-8080.on.ascii.dev/api/services/buyer-side-decision-procedure-for-agents-offered","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":"Buyer-side decision procedure for agents offered prepaid credit packages 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":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_3cYJ7D1UFYC91AkJcMp-z","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 structured decision procedure guiding an AI agent through evaluating whether to purchase a prepaid credit package from an x402 merchant.","exampleAgentPrompt":"I've been offered a prepaid credit package by an x402 merchant: 1000 credits for $5 (so $0.005 per credit), but their pay-per-call price is $0.004, the credits expire in 30 days, minimum purchase is $5, no refunds, and they don't publish a balance attestation — my remaining task budget is $20. Should I buy the prepaid package?","exampleUseCases":[{"title":"Evaluating bulk credit discount offer","prompt":"An x402 API is offering me 5000 credits for $8, which works out to $0.0016 per call, versus their normal pay-per-call rate of $0.002. The credits expire in 60 days, there are no refunds, they've been operating for 2 years, and they do publish a verifiable balance attestation. My remaining budget is $15. Walk me through whether I should buy the prepaid package."},{"title":"Assessing risky merchant with no attestation","prompt":"A merchant wants me to prepay $10 for 2000 credits at $0.005 each — slightly cheaper than their $0.006 per-call rate — but the credits expire in 7 days, minimum purchase is $10, they have no refund or transfer policy, and I can't find any balance attestation I can verify. They've only been around for 3 months. My task budget is $12. Should I go ahead and buy?"},{"title":"Deciding between credit tiers","prompt":"I'm looking at two prepaid credit tiers from an x402 merchant: a $2 pack of 400 credits ($0.005/credit) expiring in 14 days, or a $10 pack of 2500 credits ($0.004/credit) expiring in 90 days. Pay-per-call is $0.006. They publish a balance attestation and have a clean operational history. My remaining budget is $8. Which tier makes more sense, or should I just pay per call?"}],"resultDescription":"A prose decision procedure brief tailored for the agent, including a recommendation on whether to purchase the prepaid credit package, key evaluation factors, risk flags (e.g. no balance attestation, short expiry, no refund terms), break-even analysis versus pay-per-call pricing, and metadata such as the model used, generation timestamp, and generation source (llm, reasoning, or deterministic).","failureModes":["Payment not received — returns 402 if x402 payment header is missing or invalid","Malformed query parameters may result in a generic or off-topic procedure","No topic override provided and service derives topic from endpoint slug, which may be imprecise","LLM generation failure could result in empty or truncated brief field","Merchant data inputs are caller-supplied and not independently verified, so output quality depends on input accuracy"],"whenToPreferThis":"Use this endpoint when an AI agent has been offered a prepaid credit bundle by an x402 merchant and needs a structured, reasoned decision procedure before committing funds. It is especially valuable when the agent must weigh bulk discount pricing against expiry risk, lack of refund terms, or unverified merchant balance attestations — and when the agent's remaining task budget is a binding constraint. Prefer this over generic LLM reasoning when you want a consistent, service-specific decision framework that accounts for x402-specific risk factors like balance attestation verifiability and merchant operational history.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:01:47.164Z","isFirstParty":false}