# Delx Commerce — JSON Array Difference

> Delx Commerce — JSON Array Difference 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 set difference between two integer arrays (elements in left but not in right), returning the count and items.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/json-array-difference?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-array-difference-8a2fee3f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_E7eYpbluxI5jmuBuyzlLk

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-array-difference-8a2fee3f -d '<json body>'
```

Example prompt: What integers are in [1, 2, 3, 4] but not in [2, 4]? Give me the set difference between those two arrays.

## When to prefer this

Use this endpoint when you need a simple, verifiable, pay-per-call set difference computation on integer arrays without requiring any account setup. Ideal for AI agents that need on-demand, auditable arithmetic operations with cryptographic proof of non-retention, especially in cost-sensitive or trustless contexts where USDC micropayments per result are acceptable.

## Known failure modes

- Array exceeds 256-item maxItems limit — request rejected
- Non-integer values in arrays — schema validation failure
- Missing 'left' or 'right' fields — malformed request error
- Payment not provided or insufficient USDC — 402 payment required response

## 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 the set difference result: an array of integers present in 'left' but not in 'right', along with a count of those items, the operation schema identifier, a pass/fail status, and an evidence block containing a SHA-256 hash of the input and confirmation that no data was retained or external calls were made.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "left": {
   "type": "array",
   "items": {
    "type": "integer"
   },
   "maxItems": 256,
   "description": "Left supplied to JSON Array Difference; used only for this bounded calculation and processed in memory without retention."
  },
  "right": {
   "type": "array",
   "items": {
    "type": "integer"
   },
   "maxItems": 256,
   "description": "Right supplied to JSON Array Difference; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "count": 2,
   "items": [
    1,
    3
   ]
  },
  "schema": "delx/util-json-array-difference/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "dfa0bc27e93c4ecbb96000cad1ce90953df1aea4a2be0fa5caddbb32e50aa899",
   "external_calls": 0
  },
  "operation": "data_batch:json_array_difference"
 }
}
```

## More

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