{"uid":"cap_aU35FDssWQYuJpxNXt0ah","slug":"delx-commerce-x402-price-drift-check-035aba3e","name":"Delx Commerce X402 Price Drift 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-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_VN7vVg9wWPhJFvZUxqjy5","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 the actual price of an x402 payment differs from the advertised price within an acceptable tolerance threshold","exampleAgentPrompt":"Check whether this x402 payment price drifted too much — the advertised raw price was 1000, the actual charged amount was 1050, and my maximum allowed drift is 100.","exampleUseCases":[{"title":"Pre-settlement payment integrity check","prompt":"Before I finalize this x402 agent payment, verify the price didn't drift: the quoted raw amount was 2000, the actual amount being charged is 2005, and I'll tolerate a drift of up to 50."},{"title":"Detecting overcharge in agent micropayment","prompt":"An AI agent just paid an x402 API and I want to make sure it wasn't overcharged — the advertised raw price was 500, the challenged raw is 600, and my maximum allowed drift is 10. Did it drift too far?"},{"title":"Validating price consistency across USDC transactions","prompt":"I'm auditing a batch of x402 USDC calls and need to check one: advertised raw was 1000, actual raw was 1000, max drift raw is 0 — confirm these are exactly equal with no drift."}],"resultDescription":"Returns a JSON object containing the computed drift amount (drift_raw), the actual price (actual_raw), the expected price (expected_raw), and a boolean (within_tolerance) indicating whether the drift is within the specified maximum. Also includes evidence metadata confirming no data was retained and no external calls were made, plus a status field ('pass' or otherwise).","failureModes":["Missing required fields (advertised_raw, challenged_raw, or maximum_drift_raw) may cause validation errors","Non-numeric string values in raw fields may result in parse errors or unexpected behavior","Values exceeding maxLength of 8192 characters will be rejected","Payment failure (HTTP 402) if the $0.001 USDC micropayment is not successfully completed via x402 protocol"],"whenToPreferThis":"Use this endpoint when you need a fast, verifiable, stateless check that an x402 micropayment's actual price did not drift beyond an acceptable tolerance from the advertised price. It is ideal for agent-to-agent commerce pipelines where price integrity must be confirmed before or after settlement, and where auditability (input hash, no retention) matters. Prefer this over custom logic when working within the x402/USDC-on-Base or Solana ecosystem.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:50.006Z","isFirstParty":false,"canonicalSlug":"delx-commerce-x402-price-drift-check-035aba3e"}