{"uid":"cap_uyVi9Zq7BpM_wWj1D9Td7","slug":"delx-commerce-json-patch-preview-94929a72","name":"Delx Commerce JSON Patch Preview","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/json-patch-preview?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"document":{"type":"object","description":"Document supplied to JSON Patch Preview; used only for this bounded calculation and processed in memory without retention.","maxProperties":128,"additionalProperties":true},"operations":{"type":"array","items":{"type":"object","maxProperties":128,"additionalProperties":true},"maxItems":256,"description":"Operations supplied to JSON Patch Preview; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"applied":[{"op":"replace","path":"/a"}],"document":{"a":3,"b":2}},"schema":"delx/util-json-patch-preview/v1","status":"pass","evidence":{"retained":false,"input_sha256":"78f7a2a56a7bfe0eec5560ff1927abdda80d4fa011949f01969dc425b5d568a8","external_calls":0},"operation":"data_batch:json_patch_preview"}},"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_yBlg3u6E67gj69z39TFgG","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":"Applies a sequence of RFC 6902 JSON Patch operations to a document in-memory and returns the patched result with verifiable evidence, without persisting any data.","exampleAgentPrompt":"Preview the result of applying these JSON Patch operations — replace /a with 3 — to this document: {\"a\": 1, \"b\": 2}, and show me what the document looks like after patching.","exampleUseCases":[{"title":"Validate config patch before deployment","prompt":"Before I push this config update, apply these JSON Patch operations to my current settings document {\"timeout\": 30, \"retries\": 3, \"debug\": false} — specifically replace /timeout with 60 and add /verbose as true — and show me what the patched config will look like."},{"title":"Dry-run API response transformation","prompt":"I want to preview what my API response object will look like after these patch operations: remove /deprecated_field and replace /version with 2. Here's the document: {\"version\": 1, \"deprecated_field\": \"old\", \"name\": \"myService\"}."},{"title":"Verify patch correctness in agent pipeline","prompt":"Check whether these JSON Patch ops — add /metadata/author with value 'alice' and replace /status with 'published' — applied to this document {\"status\": \"draft\", \"metadata\": {}} produce the right result, and give me the SHA-256 of the input so I can verify integrity."}],"resultDescription":"Returns the patched JSON document, a list of operations that were applied, a pass/fail status, the SHA-256 hash of the input for verifiability, a confirmation that no data was retained, and a count of external calls made (always 0). The schema identifier 'delx/util-json-patch-preview/v1' is included for auditability.","failureModes":["Invalid or malformed JSON Patch operation format returns an error status","Document exceeds 128 properties (maxProperties) causing rejection","Operations array exceeds 256 items (maxItems) causing rejection","Invalid JSON path in a patch operation leading to a failed apply","Payment not included or insufficient USDC causing 402 response before processing"],"whenToPreferThis":"Choose this endpoint when you need a stateless, verifiable, pay-per-call JSON Patch preview with cryptographic evidence of the input (SHA-256) and a guarantee of no data retention — ideal for agents that need auditability or operate in zero-trust pipelines. Prefer it over rolling your own patch logic when you want a hosted, deterministic result with an immutable evidence trail and no signup friction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:44.313Z","isFirstParty":false,"canonicalSlug":"delx-commerce-json-patch-preview-94929a72"}