{"uid":"cap_uk89BaqLQHQHZj12TZfyM","slug":"x402-settlement-amount-check-d0fcc12a","name":"X402 Settlement Amount Check","description":"X402 Settlement Amount Check: X402 Settlement Amount Check compares settled raw amount with the accepted challenge amount from bounded caller-supplied values without an external provider. Call X402 Settlement Amount Check before paying for or accepting an x402 or agent delivery assembled from caller-supplied challenge and result metadata. Returns contract-specific checks, normalized evidence, mismatch reasons, and an explicit acceptance or rejection status for X402 Settlement Amount Check as ve…","url":"https://api.delx.ai/api/v1/x402/x402-settlement-amount-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"settled_raw":{"type":"string","maxLength":8192,"description":"Settled Raw supplied to X402 Settlement Amount Check; used only for this bounded calculation and processed in memory without retention."},"accepted_raw":{"type":"string","maxLength":8192,"description":"Accepted Raw supplied to X402 Settlement Amount Check; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"drift_raw":"0","actual_raw":"1000","expected_raw":"1000","within_tolerance":true},"schema":"delx/util-x402-settlement-amount-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"7a76b790f88a7769934e943afa794eaf1387220dd60021c92aba4d959a6a1cff","external_calls":0},"operation":"delivery_contract:x402_settlement_amount_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_okvfBP3mNWUlLBSvxoF_o","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":"Compares a settled raw payment amount against an accepted challenge amount to validate x402 payment settlement correctness","exampleAgentPrompt":"Before I accept this x402 agent delivery, check whether the settled raw amount '1000000' actually matches the accepted challenge amount '1000000' — tell me if there's a mismatch and whether I should accept or reject it.","exampleUseCases":[{"title":"Validate x402 payment before content release","prompt":"I received an x402 payment with a settled raw value of '500000' and the original accepted challenge was '500000' — can you verify those match and confirm it's safe to release the content?"},{"title":"Detect underpayment in agent delivery","prompt":"An agent just delivered a result and claims to have settled '750000' raw, but the challenge I issued was for '1000000' — run an x402 settlement amount check and tell me if I should reject it."},{"title":"Audit x402 settlement integrity in automated pipeline","prompt":"In my automated x402 payment pipeline, for each settlement compare the settled raw amount '2000000' against the accepted raw amount '2000000' and return any mismatch reasons or acceptance status so I can decide whether to proceed."}],"resultDescription":"Returns a structured response including: an explicit accept or reject status, contract-specific validation checks, normalized evidence derived from the two input amounts, and detailed mismatch reasons if the settled amount does not equal the accepted challenge amount.","failureModes":["Invalid or non-numeric settled_raw value causes parsing failure","Malformed accepted_raw string exceeding 8192 characters rejected","Missing required fields returns validation error","Amounts that are structurally valid but semantically mismatched result in explicit rejection status with mismatch reasons"],"whenToPreferThis":"Use this endpoint when operating an x402 payment flow and needing a fast, in-memory, no-external-dependency check that a settled payment amount exactly matches the originally accepted challenge amount before releasing content, fulfilling agent deliveries, or advancing a pipeline step. Prefer this over manual comparison logic when you need normalized evidence and structured mismatch reasoning rather than a simple boolean.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T06:59:02.232Z","isFirstParty":false,"canonicalSlug":"x402-settlement-amount-check-d0fcc12a"}