{"uid":"cap_2_JmtVZDR6PEJUVQtqJ_M","slug":"halowerk-x402-payment-policy-checker-b8a1b663","name":"HALOWERK x402 Payment Policy Checker","description":"HALOWERK x402werk — bezahlte Endpunkte nach x402. Preise in USDC auf Base Mainnet.","url":"https://x402.netzhandwerker.de/policy/check","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"policy":{"type":"object","properties":{"max_per_day":{"type":"string","pattern":"^[0-9]+(\\.[0-9]+)?$","description":"Largest allowed sum per day, in whole tokens."},"max_per_call":{"type":"string","pattern":"^[0-9]+(\\.[0-9]+)?$","description":"Largest allowed single payment, in whole tokens of the proposed asset, for example \"0.05\"."},"max_per_hour":{"type":"string","pattern":"^[0-9]+(\\.[0-9]+)?$","description":"Largest allowed sum per hour, in whole tokens."},"allowed_assets":{"type":"array","items":{"type":"string"},"description":"Token addresses you accept. Omit to allow any."},"allowed_chains":{"type":"array","items":{"type":"string"},"description":"Chains you accept, as CAIP-2 or short names. Omit to allow any."},"require_schema":{"type":"boolean","description":"Whether the offer must declare an inputSchema."},"allowed_recipients":{"type":"array","items":{"type":"string"},"description":"Recipient addresses you accept. Omit to allow any; the recipient is then flagged as unverified."},"blocked_recipients":{"type":"array","items":{"type":"string"},"description":"Recipient addresses you refuse. Beats allowed_recipients on conflict."}},"additionalProperties":false},"spent_so_far":{"type":"object","properties":{"day":{"type":"string","pattern":"^[0-9]+(\\.[0-9]+)?$","description":"Already spent in the current day, in whole tokens."},"hour":{"type":"string","pattern":"^[0-9]+(\\.[0-9]+)?$","description":"Already spent in the current hour, in whole tokens."}},"additionalProperties":false},"proposed_payment":{"type":"object","required":["amount_units"],"properties":{"asset":{"type":"string","description":"Token contract address, or \"native\" for the chain coin."},"chain":{"type":"string","description":"Chain as CAIP-2 (\"eip155:8453\"), short name (\"base\") or chain id."},"pay_to":{"type":"string","description":"Recipient address of the proposed payment."},"resource":{"type":"string","maxLength":2048,"description":"URL of the resource being bought. Nothing is fetched; it is only checked for shape."},"amount_units":{"type":"string","pattern":"^[0-9]{1,78}$","description":"Amount of the proposed payment as an integer in the smallest unit of the token."},"input_schema_present":{"type":"boolean","description":"Whether the offer declares an inputSchema. Use Nr. 83 to find out if you do not know."}},"additionalProperties":false}}},"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_kbydmpLesDBDqQUEeK6hk","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":"Validates a proposed x402 micropayment against configurable policy rules (spending limits, allowed assets/chains, recipient filters) before executing it","exampleAgentPrompt":"Before you pay for that API call, check if the proposed payment of 0.002 USDC on Base to recipient 0xAbC...123 complies with my policy — max $0.05 per call, max $1.00 per day, and I've already spent $0.30 today.","exampleUseCases":[{"title":"Agent budget enforcement before API call","prompt":"I want you to check whether a proposed payment of 0.002 USDC on Base to address 0xDEF...456 is within my policy before proceeding — my limits are $0.05 per call, $0.20 per hour, and $1.00 per day, and I've spent $0.15 this hour already."},{"title":"Restrict payments to approved token addresses","prompt":"Can you validate this proposed payment — it's 0.01 USDC on the Base chain — against a policy that only allows payments to these three approved recipient addresses: 0xAAA...1, 0xBBB...2, 0xCCC...3, and blocks everything else?"},{"title":"Autonomous agent spending compliance check","prompt":"My agent is about to make a micropayment call. Check if 0.003 USDC going to 0xFEE...999 on eip155:8453 is allowed given my policy requires an inputSchema declaration and only permits USDC on Base, with a max of 0.01 per call and $0.50 per day — today's spend so far is $0.44."}],"resultDescription":"Returns a validation outcome indicating whether the proposed payment passes or fails the configured policy, including which specific rule was violated (e.g. per-call limit exceeded, recipient blocked, asset not allowed, daily budget exhausted), and flags the recipient as unverified if no allowed_recipients list was provided.","failureModes":["Payment amount exceeds max_per_call threshold — returns policy violation with the exceeded limit","Hourly spend plus proposed amount exceeds max_per_hour — returns budget exceeded error","Daily spend cap reached — returns daily limit exhausted response","Recipient address is in blocked_recipients list — returns recipient blocked error","Proposed asset token address not in allowed_assets — returns asset not permitted error","Chain not in allowed_chains — returns chain not permitted error","Missing required amount_units in proposed_payment — returns schema validation error","Malformed numeric strings in policy fields — returns pattern validation error"],"whenToPreferThis":"Use this endpoint when an AI agent needs to autonomously make x402 micropayments and requires a pre-flight policy gate to enforce spending controls, asset whitelisting, chain restrictions, or recipient filtering before committing a payment. It is especially valuable for agentic workflows where the agent has a budget ceiling and must avoid overspending across calls. Prefer this over manual limit-checking logic when you need a stateless, structured policy evaluation that accounts for accumulated hourly and daily spend.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:46:43.150Z","isFirstParty":false}