{"uid":"cap_5aOuaaL6YCHXKWruHpilG","slug":"delx-commerce-json-merge-patch-rfc-7396-9b2aff4b","name":"Delx Commerce — JSON Merge Patch (RFC 7396)","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-merge-patch?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"patch":{"type":"object","description":"Input field: patch."},"target":{"type":"object","description":"Input field: target."}}},"responseSchema":{"type":"json","example":{"scope":"RFC 7396 top-level merge semantics","result":{"ready":true},"schema":"delx/util-json-merge-patch/v1","changed_fields":["legacy","ready"]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Z3wa044oZdVnJmS2Va560","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Applies a JSON Merge Patch (RFC 7396) to a target JSON object, returning the merged result and a list of changed fields.","exampleAgentPrompt":"Merge this patch {\"ready\": true, \"legacy\": null} into my target object {\"legacy\": \"old\", \"ready\": false, \"name\": \"app\"} using RFC 7396 merge semantics and tell me which fields changed.","exampleUseCases":[{"title":"Config patching in agent pipeline","prompt":"I have a base config object {\"debug\": false, \"timeout\": 30, \"retries\": 3} and I want to apply the patch {\"debug\": true, \"retries\": null} to it — can you merge them and tell me what changed?"},{"title":"Incremental API response update","prompt":"Take my existing user profile {\"name\": \"Alice\", \"role\": \"admin\", \"active\": true} and apply the update patch {\"active\": false, \"role\": null} to it using RFC 7396 merge rules, and show me the resulting object."},{"title":"Detecting state changes between versions","prompt":"I need to know which fields changed when I apply the patch {\"status\": \"closed\", \"assignee\": null} to the ticket object {\"status\": \"open\", \"assignee\": \"bob\", \"priority\": \"high\"} — can you do the merge and list the changed fields?"}],"resultDescription":"Returns the merged JSON object after applying the patch to the target using RFC 7396 top-level merge semantics, along with a list of field names that were changed or deleted, a schema identifier (delx/util-json-merge-patch/v1), and a scope description.","failureModes":["Invalid JSON in target or patch fields causes a 400 error","Missing required 'target' or 'patch' fields returns a validation error","Payment failure via x402 protocol causes a 402 response before processing","Non-object values (e.g. arrays at root) may not be supported under strict RFC 7396 top-level semantics"],"whenToPreferThis":"Choose this endpoint when you need a simple, pay-per-call, no-signup RFC 7396 JSON merge patch operation with verifiable delivery and crypto micropayment (USDC on Base or Solana). Prefer this over building your own merge logic when you want a standardized, auditable result with changed-field tracking included.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:40.822Z","isFirstParty":false,"canonicalSlug":"delx-commerce-json-merge-patch-rfc-7396-9b2aff4b"}