{"uid":"cap_hcv5SAbt7VRpEq7OHlcTp","slug":"buyer-spending-policy-check-a00fb343","name":"Buyer Spending Policy Check","description":"Compare up to 64 proposed Base-USDC calls with a declared total budget, per-call cap, allowed payees and human-approval requirement. Returns policy mismatches and exact arithmetic totals. Does not authorize, sign or execute payments; caller approval labels are not verified.","url":"https://www.mahastrategies.com/api/v1/micro/buyer-spending-policy-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["dataClass","budgetBaseUnits","perCallCapBaseUnits","allowedPayees","requireHumanApproval","calls"],"properties":{"calls":{"type":"array","maxItems":64,"minItems":1},"dataClass":{"enum":["public","synthetic"],"type":"string"},"allowedPayees":{"type":"array","maxItems":32,"minItems":1},"budgetBaseUnits":{"type":"string","maxLength":16},"perCallCapBaseUnits":{"type":"string","maxLength":16},"requireHumanApproval":{"type":"boolean"}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["version","offerId","amountBaseUnits","inputDigest","result","boundaries","receiptDigest"],"properties":{"result":{"type":"object"},"offerId":{"enum":["buyer-spending-policy-check"],"type":"string"},"version":{"enum":["maha-microproducts/0.1"],"type":"string"},"boundaries":{"type":"array","maxItems":128,"minItems":0},"inputDigest":{"type":"string","maxLength":71},"receiptDigest":{"type":"string","maxLength":71},"amountBaseUnits":{"enum":["35000"],"type":"string"}},"additionalProperties":false}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.035","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.035/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.035","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.035","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DaIHVLLzPt8owZj4V2fce","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.035","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates up to 64 proposed Base-USDC payment calls against a declared budget, per-call cap, allowed payees, and human-approval flag, returning policy mismatches and arithmetic totals without executing any payments.","exampleAgentPrompt":"Before I send these 12 Base-USDC payment calls, can you check them against my policy — total budget is 5000000 base units, per-call cap is 500000, payees must be in this list [0xABC, 0xDEF], and all calls require human approval?","exampleUseCases":[{"title":"Agent fleet pre-payment audit","prompt":"I have 30 proposed USDC payments my agent wants to make — can you validate them against a total budget of 10000000 base units, a per-call cap of 250000, only allowing payees 0xAAA and 0xBBB, with human approval required on each?"},{"title":"DeFi spending limit enforcement","prompt":"Check these 8 Base-USDC calls against my rules: overall budget 2000000 base units, no single call over 400000, only whitelisted addresses 0x111 and 0x222 allowed, and human approval is not required — flag anything that violates policy."},{"title":"Autonomous agent payment guardrail","prompt":"Before my trading bot executes, validate its 20 planned USDC payment calls against a budget ceiling of 50000000 base units, a 5000000 per-call cap, payees restricted to [0xFEED, 0xBEEF], and require human approval on all of them — give me any mismatches."}],"resultDescription":"Returns a structured result containing identified policy mismatches (budget overruns, per-call cap violations, unauthorized payees, missing human-approval flags), computed arithmetic totals across all calls, boundary violation details, an input digest for auditability, and a receipt digest — all without authorizing or signing any transactions.","failureModes":["More than 64 calls submitted — request rejected with validation error","budgetBaseUnits or perCallCapBaseUnits not parseable as integers — arithmetic error returned","allowedPayees list empty or exceeds 32 entries — schema rejection","dataClass not one of 'public' or 'synthetic' — enum validation failure","Caller-declared human-approval labels are not independently verified — policy check reflects declared values only","Malformed or missing required fields — 400-level error with field-level detail"],"whenToPreferThis":"Choose this endpoint when an AI agent or automated system needs to pre-flight a batch of Base-USDC payment calls against a declared spending policy before any execution occurs. It is ideal for enforcing guardrails on autonomous payment agents, auditing proposed transactions without any side effects, and producing a cryptographically digestible record of the policy check. Prefer this over generic budget calculators when you need payee allowlisting, per-call caps, and human-approval flag checking in a single deterministic call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T06:45:23.249Z","isFirstParty":false,"canonicalSlug":"buyer-spending-policy-check-a00fb343"}