# Delx Commerce — JSON Object Diff

> Delx Commerce — JSON Object Diff 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).

Computes the structural difference between two JSON objects, returning added, changed, and removed fields with before/after values.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/json-object-diff?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-json-object-diff-c1058844
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yQV_1IL70jtCbDDn-Wcrh

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-json-object-diff-c1058844 -d '<json body>'
```

Example prompt: Compare these two JSON objects and tell me exactly what was added, changed, or removed — before is {"a":1,"b":2} and after is {"a":2,"c":3}.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call JSON object diff with no signup, guaranteed in-memory processing (no data retention), and cryptographic evidence of the computation. Ideal for AI agents that need to detect state changes between two JSON snapshots in a verifiable, auditable way without standing up infrastructure. Prefer over custom diffing logic when you want a standardized schema ('delx/util-json-object-diff/v1') and an input hash for audit purposes.

## Known failure modes

- Input objects exceed 128 properties — API enforces maxProperties:128 on both before and after
- Malformed JSON body returns a validation error
- Payment not provided or insufficient USDC — x402 payment required before result is returned
- Network timeout if the x402 payment handshake is slow

## 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 structured diff object with three keys: 'added' (fields present only in the after object), 'changed' (fields in both objects with differing values, showing before and after values), and 'removed' (fields present only in the before object). Also returns a status field ('pass'), operation identifier, evidence metadata including a SHA-256 hash of the input and confirmation that no data is retained after processing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "after": {
   "type": "object",
   "description": "After supplied to JSON Object Diff; used only for this bounded calculation and processed in memory without retention.",
   "maxProperties": 128,
   "additionalProperties": true
  },
  "before": {
   "type": "object",
   "description": "Before supplied to JSON Object Diff; used only for this bounded calculation and processed in memory without retention.",
   "maxProperties": 128,
   "additionalProperties": true
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "added": {
    "c": 3
   },
   "changed": {
    "a": {
     "after": 2,
     "before": 1
    }
   },
   "removed": {
    "b": 2
   }
  },
  "schema": "delx/util-json-object-diff/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "164aa307def42287450ca3e3593d1a42c71383be4ad4b1f0c368f8c66f056f3e",
   "external_calls": 0
  },
  "operation": "data_batch:json_object_diff"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-json-object-diff-c1058844/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)
