# Delx Commerce — Shallow Object Merge

> Delx Commerce — Shallow Object Merge is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Performs a shallow merge of two JSON objects, returning the combined key-value pairs from both inputs

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/merge-shallow?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-shallow-object-merge-260c69ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_h6JSWIdVZQg9MaJIDJELw

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability delx-commerce-shallow-object-merge-260c69ab -d '<json body>'
```

Example prompt: Merge these two objects shallowly into one: {"x": 1} and {"y": 2} — I just need the combined top-level keys.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "a": {
   "type": "object",
   "description": "Input field: a."
  },
  "b": {
   "type": "object",
   "description": "Input field: b."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "size": 2,
  "object": {
   "x": 1,
   "y": 2
  },
  "schema": "delx/util-merge-shallow/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-shallow-object-merge-260c69ab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
