# Delx Commerce — JSON Number Coerce

> Delx Commerce — JSON Number Coerce 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).

Coerces an array of string values into JSON numbers, returning successfully parsed numbers and a list of rejected non-numeric strings.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/json-number-coerce?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-number-coerce-8c6542bf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0q-tfZ8yPsB0bFYoxcfjq

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-number-coerce-8c6542bf -d '<json body>'
```

Example prompt: I have a list of strings like ['1', '2.5', 'bad', '3'] and I need them coerced into actual JSON numbers — can you run those through the Delx JSON number coercer and tell me which ones parsed and which got rejected?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call, no-signup utility to batch-coerce string values into JSON numbers with verifiable, auditable evidence (SHA-256 input hash, no data retention). Prefer it over building custom parsing logic when operating in an agentic workflow that already uses the x402 payment protocol on Base or Solana, or when you need a deterministic, isolated computation with a confirmed audit trail. Not suited for full schema validation, deep type inference beyond numbers, or large batches exceeding 256 items.

## Known failure modes

- Array exceeds 256-item limit — request rejected
- Individual string value exceeds 8192 character limit — item rejected or request rejected
- All values are non-numeric — result.values is empty, all in rejected
- Malformed request body — HTTP 400 or equivalent error
- Payment failure via x402 — HTTP 402 returned, no processing occurs

## 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 object with a `result` field containing `values` (array of successfully coerced numbers) and `rejected` (array of strings that could not be parsed as numbers), plus evidence metadata including a SHA-256 hash of the input, confirmation that no data was retained, and the number of external calls made (always 0).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "values": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 8192
   },
   "maxItems": 256,
   "description": "Values supplied to JSON Number Coerce; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "values": [
    1,
    2.5
   ],
   "rejected": [
    "bad"
   ]
  },
  "schema": "delx/util-json-number-coerce/v1",
  "status": "advisory",
  "evidence": {
   "retained": false,
   "input_sha256": "b08932be9b3a6478f77ce565e226057d6faaec761236079792dd3b4913f103be",
   "external_calls": 0
  },
  "operation": "data_batch:json_number_coerce"
 }
}
```

## More

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