{"uid":"cap_28owKgFrqboPex0I0C8Te","slug":"delx-commerce-agent-result-budget-check-db6e567b","name":"Delx Commerce Agent Result Budget Check","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/agent-result-budget-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"call_usdc":{"type":"string","maxLength":8192,"description":"Call USDC supplied to Agent Result Budget Check; used only for this bounded calculation and processed in memory without retention."},"maximum_day_usdc":{"type":"string","maxLength":8192,"description":"Maximum Day USDC supplied to Agent Result Budget Check; used only for this bounded calculation and processed in memory without retention."},"spent_today_usdc":{"type":"string","maxLength":8192,"description":"Spent Today USDC supplied to Agent Result Budget Check; used only for this bounded calculation and processed in memory without retention."},"maximum_call_usdc":{"type":"string","maxLength":8192,"description":"Maximum Call USDC supplied to Agent Result Budget Check; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"call_usdc":"0.001","within_day_budget":true,"projected_day_usdc":"0.021","within_call_budget":true},"schema":"delx/util-agent-result-budget-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"8ad48af0de0158cceae3022914dbbf4f16ced4ca1f4253475e7371a33188c62b","external_calls":0},"operation":"delivery_contract:agent_result_budget_check"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7ScXDVL3bYj5BQ1sPCJFW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks whether a single API call cost and projected daily spend fall within a configured per-call and per-day USDC budget","exampleAgentPrompt":"Before making the next paid call, check if spending $0.001 USDC is within budget — I've already spent $0.021 today, my daily cap is $0.05, and my per-call limit is $0.005.","exampleUseCases":[{"title":"Pre-flight guard for agent spending","prompt":"Before my agent makes another API call costing $0.001 USDC, check if it's still within budget — it has spent $0.015 today, the daily max is $0.03, and the per-call ceiling is $0.002."},{"title":"Enforce daily USDC cap for agent fleet","prompt":"I need to enforce a $0.10 daily budget across my agent's API calls — it's spent $0.098 so far today and the next call costs $0.001. Will this call exceed the limit?"},{"title":"Budget compliance check before result delivery","prompt":"My agent is about to pay $0.001 for a result. Daily budget is $0.05, spent today is $0.04, max per call is $0.003 — can it proceed without going over?"}],"resultDescription":"Returns a JSON object indicating whether the call is within the per-call budget (within_call_budget), whether it is within the daily budget (within_day_budget), the projected total daily spend after this call (projected_day_usdc), and verifiable evidence including an input SHA-256 hash confirming no data was retained and no external calls were made. Status field reports 'pass' or equivalent.","failureModes":["Missing or malformed numeric string inputs may cause computation errors","If spent_today_usdc plus call_usdc exceeds maximum_day_usdc, within_day_budget returns false (not an error, expected behavior)","If call_usdc exceeds maximum_call_usdc, within_call_budget returns false","Payment of $0.001 USDC required via x402; insufficient funds or wrong chain will block the call","Non-numeric string values in USDC fields will likely result in a 400 error"],"whenToPreferThis":"Use this endpoint when an autonomous agent needs a lightweight, verifiable, in-memory budget gate before executing any pay-per-result API call. It is ideal for enforcing per-call and per-day USDC spending limits without storing sensitive data, particularly within agent orchestration loops on Base or Solana. Prefer this over custom budget logic when you want a tamper-evident SHA-256 evidence receipt confirming no retention.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:02.483Z","isFirstParty":false,"canonicalSlug":"delx-commerce-agent-result-budget-check-db6e567b"}