# Delx Commerce — Batch Idempotency Keys

> Delx Commerce — Batch Idempotency Keys 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).

Generates deterministic, namespaced idempotency keys in bulk for a batch of items, with no data retention and cryptographic auditability.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/batch-idempotency-keys?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-batch-idempotency-keys-6b0dc97c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cvDZM6Nq_MTSiTYW1-IuF

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-batch-idempotency-keys-6b0dc97c -d '<json body>'
```

Example prompt: Generate idempotency keys for these 5 order items under the namespace 'order-processing-v2' so I can safely retry them without duplicates.

## When to prefer this

Choose this endpoint when you need to generate multiple idempotency keys in a single call without storing data server-side, when auditability via input SHA-256 evidence is required, or when operating in an agent context that pays per-result with no signup overhead. Prefer it over custom hashing logic when you need verifiable, namespace-scoped deterministic keys for batches up to 256 items.

## Known failure modes

- Exceeds 256 items in the batch — array capped at maxItems 256
- Namespace string exceeds 8192 characters — rejected with validation error
- Malformed or non-object items in the array — may produce unexpected keys or errors
- Payment failure via x402 — request not processed if USDC payment cannot be settled

## How this service works

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

## Output

Returns an array of objects each containing a deterministic hex idempotency key and its corresponding index in the input array, along with the SHA-256 hash of the input for auditability, a flag confirming no cryptographic secret was used, and evidence that no data was retained and no external calls were made.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "items": {
   "type": "array",
   "items": {
    "type": "object",
    "maxProperties": 128,
    "additionalProperties": true
   },
   "maxItems": 256,
   "description": "Items supplied to Batch Idempotency Keys; used only for this bounded calculation and processed in memory without retention."
  },
  "namespace": {
   "type": "string",
   "maxLength": 8192,
   "description": "Namespace supplied to Batch Idempotency Keys; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "keys": [
    {
     "key": "a7b59420f6ae73743bb81f97fe5222c4b3db261381bd9d0d85c9bd08996d04b7",
     "index": 0
    },
    {
     "key": "884e051ec6969bb1bc6dfd28dc6b13d09cab07dc71f656acd2a398e9c5473587",
     "index": 1
    }
   ],
   "cryptographic_secret": false
  },
  "schema": "delx/util-batch-idempotency-keys/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "375be9a5b0dc421b8588d162f162af2105b72820be462c39a74f3ceab5fd0343",
   "external_calls": 0
  },
  "operation": "data_batch:batch_idempotency_keys"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-batch-idempotency-keys-6b0dc97c/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)
