# Delx Commerce — JSON Array Flatten One

> Delx Commerce — JSON Array Flatten One 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).

Flattens a JSON array by one level of nesting, returning the merged items with a count and verifiable audit evidence.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/json-array-flatten-one?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-flatten-one-37af8e3a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DxsBf_LXudnqMh24Sh8NG

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-flatten-one-37af8e3a -d '<json body>'
```

Example prompt: Flatten this nested JSON array by one level: [[1,2],[3,4]] — I need a single flat list of all the items.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-use, verifiable one-level array flatten with no signup and cryptographic proof of non-retention. Ideal for AI agents running automated pipelines that need auditability and deterministic pricing in USDC. Prefer over general-purpose code execution when you want a simple, bounded utility with an immutable audit trail rather than running custom code.

## Known failure modes

- Input array exceeds 256 items — request rejected
- Malformed JSON body — parse error returned
- Non-array value supplied for `items` field — validation error
- Network timeout on the payment layer before execution

## 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 containing the flattened array under `result.items`, the total item count under `result.count`, the operation schema label, a pass/fail status, and an evidence block including the SHA-256 hash of the input, a flag confirming no data was retained, and a count of zero external calls made.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "items": {
   "type": "array",
   "items": {},
   "maxItems": 256,
   "description": "Items supplied to JSON Array Flatten One; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

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