{"uid":"cap_h6JSWIdVZQg9MaJIDJELw","slug":"delx-commerce-shallow-object-merge-260c69ab","name":"Delx Commerce — Shallow Object Merge","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/merge-shallow?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"object","description":"Input field: a."},"b":{"type":"object","description":"Input field: b."}}},"responseSchema":{"type":"json","example":{"size":2,"object":{"x":1,"y":2},"schema":"delx/util-merge-shallow/v1"}},"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_flKZQfvdgmEkeLerZhiOn","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":"Performs a shallow merge of two JSON objects, returning the combined key-value pairs from both inputs","exampleAgentPrompt":"Merge these two objects shallowly into one: {\"x\": 1} and {\"y\": 2} — I just need the combined top-level keys.","exampleUseCases":[{"title":"Merging configuration objects","prompt":"I have two config objects — {\"theme\": \"dark\", \"lang\": \"en\"} and {\"timeout\": 30, \"retries\": 3} — can you merge them into a single flat object?"},{"title":"Combining API response payloads","prompt":"Take these two API response bodies and combine them into one object: {\"userId\": 42, \"name\": \"Alice\"} and {\"role\": \"admin\", \"active\": true}."},{"title":"Merging default and custom settings","prompt":"I have a defaults object {\"fontSize\": 14, \"color\": \"black\"} and an overrides object {\"color\": \"blue\"} — merge them shallowly so overrides win on conflicts."}],"resultDescription":"Returns a JSON object with a 'schema' identifier ('delx/util-merge-shallow/v1'), the merged 'object' containing all top-level keys from both inputs (with keys from object b overwriting object a on conflicts), and a 'size' integer indicating the number of keys in the result.","failureModes":["Non-object inputs (arrays, primitives) may cause validation errors","Missing both 'a' and 'b' fields returns an error","Deeply nested values are not recursively merged — only top-level keys are combined","Network or payment failure returns HTTP 402 if USDC payment is not included"],"whenToPreferThis":"Use this endpoint when you need a simple, fast, pay-per-use shallow merge of two JSON objects without setting up a library or running code. Ideal for AI agents operating in environments without JavaScript/Python runtimes, or when you want verifiable, auditable data transformation billed in USDC via x402 with no signup required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:54.915Z","isFirstParty":false,"canonicalSlug":"delx-commerce-shallow-object-merge-260c69ab"}