{"uid":"cap_O5uoyVLtV_qi41NqT-xT7","slug":"delx-commerce-x402-amount-budget-check-648ea816","name":"Delx Commerce X402 Amount 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/x402-amount-budget-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"amount_raw":{"type":"string","maxLength":8192,"description":"Amount Raw supplied to X402 Amount Budget Check; used only for this bounded calculation and processed in memory without retention."},"maximum_raw":{"type":"string","maxLength":8192,"description":"Maximum Raw supplied to X402 Amount Budget Check; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"amount_raw":"1000","maximum_raw":"2000","within_budget":true},"schema":"delx/util-x402-amount-budget-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"95ec59ab3108f4c8d18b157c563dcdebd3f620f744be1691dbc78948f24b6667","external_calls":0},"operation":"delivery_contract:x402_amount_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_bkldSNK8utJ04aagkdME4","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 given raw payment amount falls within a specified maximum budget limit for x402 micropayment flows","exampleAgentPrompt":"Before making this x402 payment, check whether the raw amount of 1000 is within my maximum budget of 2000 raw units — I want to make sure we're not overspending.","exampleUseCases":[{"title":"Pre-flight spend guard for AI agents","prompt":"Before my agent pays for any x402 API call, check if the raw amount of 500 is within my cap of 1500 raw units — only proceed if it's within budget."},{"title":"Spending limit enforcement on micropayments","prompt":"I have a maximum spend of 5000 raw units per transaction — can you verify that a payment of 3200 raw units is within that limit?"},{"title":"Budget validation in automated payment pipeline","prompt":"My automated pipeline needs to validate that each x402 charge of 999 raw units stays under a hard ceiling of 1000 raw units before it gets processed."}],"resultDescription":"Returns a JSON object confirming whether the provided amount_raw is within the maximum_raw budget, including the original inputs, a boolean within_budget flag, a pass/fail status, and a verifiable evidence block containing an input SHA256 hash, a retained=false flag confirming no data retention, and an external_calls count of 0.","failureModes":["Missing or malformed amount_raw or maximum_raw strings may cause a validation error","Non-numeric string values may result in computation failure","Payment failure via x402 if USDC balance is insufficient to cover the $0.001 call fee","Network or service unavailability returning a non-200 response"],"whenToPreferThis":"Use this endpoint when an AI agent needs a lightweight, privacy-preserving, verifiable budget guard before executing an x402 micropayment — particularly when you need cryptographic evidence (SHA256 of inputs) that no data was retained and no external calls were made. Prefer this over custom logic when operating in x402-native payment pipelines on Base or Solana where auditability and verifiability matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:53.949Z","isFirstParty":false,"canonicalSlug":"delx-commerce-x402-amount-budget-check-648ea816"}