{"slug":"micro-saas-agent-onrender-com-api-spend-check-655ca5","title":"[Spend policy","host":"micro-saas-agent.onrender.com","method":"POST","resource":"https://micro-saas-agent.onrender.com/api/spend/check","category":"commerce","description":"[Spend policy: agent payment risk check] Before an AI agent pays an invoice or merchant: POST {payment, policy} -> allow / deny / needs_approval plus the rules that fired (per-tx limit, rolling cap, merchant categories, allow/deny lists, hours + timezone, assets/chains, approval threshold) and an Ed","price_listed":0.02,"price_asked":0.02,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":691,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"payment":{"agentId":"ap-agent-7","amount":"420.00","chain":"base","currency":"USDC","memo":"INV-10442","merchantCategory":"office-supplies","recipientDomain":"acme-supplies.com","recipientId":"acct_acme_supplies","timestamp":"2026-10-21T15:30:00Z"},"policy":{"allowList":["acme-supplies.com"],"allowedAssets":["USDC"],"allowedChains":["base"],"allowedHours":{"days":["mon","tue","wed","thu","fri"],"end":"18:00","start":"08:00","timezone":"America/Denver"},"blockedCategories":["gambling","crypto-exchange"],"currency":"USDC","perTxLimit":"1000","requireApprovalAbove":"750","rollingCap":{"limit":"5000","spentSoFar":"1200","windowHours":24}}},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"payment":{"example":{"agentId":"ap-agent-7","amount":"420.00","chain":"base","currency":"USDC","memo":"INV-10442","merchantCategory":"office-supplies","recipientDomain":"acme-supplies.com","recipientId":"acct_acme_supplies","timestamp":"2026-10-21T15:30:00Z"},"type":"object"},"policy":{"example":{"allowList":["acme-supplies.com"],"allowedAssets":["USDC"],"allowedChains":["base"],"allowedHours":{"days":["mon","tue","wed","thu","fri"],"end":"18:00","start":"08:00","timezone":"America/Denver"},"blockedCategories":["gambling","crypto-exchange"],"currency":"USDC","perTxLimit":"1000","requireApprovalAbove":"750","rollingCap":{"limit":"5000","spentSoFar":"1200","windowHours":24}},"type":"object"}},"required":["payment","policy"],"type":"object"},"bodyType":{"enum":["json"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.02,"price_match":true,"latency_ms":691,"error":null}],"description_full":"[Spend policy: agent payment risk check] Before an AI agent pays an invoice or merchant: POST {payment, policy} -> allow / deny / needs_approval plus the rules that fired (per-tx limit, rolling cap, merchant categories, allow/deny lists, hours + timezone, assets/chains, approval threshold) and an Ed25519-signed receipt bound to your request hash. Deterministic, stateless, no custody, moves no money. Bad bodies rejected before payment. $0.02 USDC.","last_updated":"2026-10-21T21:50:16.82Z","schemes":["exact"]}