{"uid":"cap_nehDvutbOhIN9WuWBKjWR","slug":"delx-commerce-x402-payment-header-shape-validator-2376b351","name":"Delx Commerce — X402 Payment Header Shape Validator","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-payment-header-shape?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"header":{"type":"string","maxLength":8192,"description":"Header supplied to X402 Payment Header Shape; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"encoding":"base64_json","shape_valid":true},"schema":"delx/util-x402-payment-header-shape/v1","status":"pass","evidence":{"retained":false,"input_sha256":"d2df40bf50f271956773fe4254a5de1a334515afca29fda6e60cd96f1ec08c63","external_calls":0},"operation":"delivery_contract:x402_payment_header_shape"}},"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_bB9uHqUVx46hMKfylXzP5","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":"Validates the structural shape and encoding of an X402 payment header, returning a pass/fail result with verifiable evidence of in-memory-only processing.","exampleAgentPrompt":"Can you check whether this x402 payment header is correctly shaped and has valid base64_json encoding? Here's the header string: 'eyJ0eXBlIjoieDQwMiIsInBheW1lbnQiOnsidG9rZW4iOiJVU0RDIn19'","exampleUseCases":[{"title":"Pre-submission x402 header check","prompt":"Before I submit this payment, can you validate that my x402 payment header is correctly structured? The header is: 'eyJ0eXBlIjoieDQwMiIsInBheW1lbnQiOnsidG9rZW4iOiJVU0RDIn19'"},{"title":"Debugging malformed payment header","prompt":"My x402 payment is being rejected and I think the header is malformed. Can you run this header through a shape validator so I can see if it passes? Here it is: 'eyJlcnJvciI6ImJhZGhlYWRlciJ9'"},{"title":"Agent payment pipeline integrity check","prompt":"In my automated payment pipeline, I need to verify each x402 payment header shape before processing. Can you validate this header and confirm it's properly base64_json encoded with no external calls made: 'eyJ0eXBlIjoieDQwMiJ9'"}],"resultDescription":"Returns a JSON object indicating whether the x402 payment header shape is valid (shape_valid boolean), the encoding type detected (e.g. base64_json), a pass/fail status, and a verifiable evidence block containing the SHA-256 hash of the input, confirmation that no data was retained, and the count of external calls made (always 0). Also includes the schema version and operation identifier.","failureModes":["Header string exceeds 8192 character limit — request rejected","Malformed or non-base64 header returns shape_valid: false rather than an error","Missing or empty header field causes validation failure","Invalid JSON structure in request body returns HTTP 400","Network timeout on the Delx Commerce endpoint"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, privacy-preserving, verifiable check of an x402 payment header's structural validity before submitting a payment. It is ideal for agent payment pipelines that need cryptographic evidence (SHA-256 of input, zero external calls, no data retention) that validation was performed correctly. Prefer this over manual parsing when auditability and verifiable delivery matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:21.654Z","isFirstParty":false,"canonicalSlug":"delx-commerce-x402-payment-header-shape-validator-2376b351"}