{"uid":"cap_Nfl3DEWFzsa5GGQZuOPjc","slug":"x402-price-drift-check-3edeb8aa","name":"X402 Price Drift Check","description":"X402 Price Drift Check: X402 Price Drift Check compares advertised and challenged raw prices against a tolerance from bounded caller-supplied values without an external provider. Call X402 Price Drift 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 Price Drift Check as versioned deterministic…","url":"https://api.delx.ai/api/v1/x402/x402-price-drift-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"advertised_raw":{"type":"string","maxLength":8192,"description":"Advertised Raw supplied to X402 Price Drift Check; used only for this bounded calculation and processed in memory without retention."},"challenged_raw":{"type":"string","maxLength":8192,"description":"Challenged Raw supplied to X402 Price Drift Check; used only for this bounded calculation and processed in memory without retention."},"maximum_drift_raw":{"type":"string","maxLength":8192,"description":"Maximum Drift Raw supplied to X402 Price Drift 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-price-drift-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"5f37133d31b2d093bb549e808c67f9a515cc5ce68e1a0cd15a614b31b5894fdf","external_calls":0},"operation":"delivery_contract:x402_price_drift_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_P4wJoYPRhNBc6ec9ghhWY","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 an advertised x402 price against a challenged price and accepts or rejects the result if the drift exceeds a caller-supplied tolerance, returning a deterministic verdict with mismatch reasons.","exampleAgentPrompt":"Before we pay this x402 invoice, check the price drift: the advertised price is '1000000' raw units, the challenged price is '1050000' raw units, and our maximum allowed drift is '20000' raw units — tell me if this is safe to accept.","exampleUseCases":[{"title":"Pre-payment price sanity check","prompt":"Before approving this agent delivery payment, compare the advertised price '500000' raw against the challenged price '520000' raw and make sure the drift is within '25000' raw — accept or reject it."},{"title":"Detecting price manipulation in agent pipeline","prompt":"An agent is trying to charge us a different amount than what was advertised. Advertised raw is '2000000', challenged raw is '2400000', and we only allow a maximum drift of '50000' raw — is this within tolerance?"},{"title":"Automated x402 invoice guard in payment loop","prompt":"We're receiving x402 micropayments in bulk — for this one, the advertised raw is '750000', the challenged raw is '748000', and our drift cap is '10000' raw. Run the price drift check and tell me if we should accept or reject it."}],"resultDescription":"Returns a structured response with an explicit acceptance or rejection status, contract-specific validation checks, normalized price evidence, and a list of mismatch reasons if the drift between the advertised and challenged raw prices exceeds the supplied maximum drift tolerance. All processing is in-memory with no data retention.","failureModes":["Malformed or non-numeric raw price strings cause a validation error","Missing required fields (advertised_raw, challenged_raw, maximum_drift_raw) return an error","Values exceeding the 8192-character maxLength are rejected","Ambiguous or non-comparable raw formats may produce inconclusive results"],"whenToPreferThis":"Use this endpoint when operating in an x402 or agentic payment flow and you need a fast, deterministic, serverless drift check between an advertised price and a challenged price before committing to a payment or accepting a delivery. It is preferable over manual comparison logic when you need a versioned, auditable verdict with mismatch reasons and normalized evidence, and when no external oracle or live price feed is involved.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T18:55:08.168Z","isFirstParty":false,"canonicalSlug":"x402-price-drift-check-3edeb8aa"}