# Delx Commerce — JSON Numeric Range Check

> Delx Commerce — JSON Numeric Range Check 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).

Validates that specified numeric fields within a JSON object fall within a given minimum and maximum range, returning a pass/fail result with a list of invalid fields.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/json-numeric-range-check?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-numeric-range-check-8a3472c7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0u7FZup9jFU0EusAAU16l

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-numeric-range-check-8a3472c7 -d '<json body>'
```

Example prompt: Check whether the numeric fields 'price', 'quantity', and 'discount' in this JSON object all fall between 0 and 1000: {"price": 450, "quantity": 5, "discount": 1200}.

## When to prefer this

Choose this endpoint when you need a lightweight, verifiable, pay-per-call check that specific numeric fields in a JSON object satisfy a bounded range constraint — especially in automated agent workflows where auditability (via SHA-256 evidence) and no data retention are important. It is preferable to custom validation logic when you need an external, trustless attestation of range compliance, or when integrating with x402-compatible micropayment flows on Base or Solana.

## Known failure modes

- Missing or malformed JSON object input returns a validation error
- Specifying field names that do not exist in the object may return them as invalid or be silently skipped
- Providing non-numeric values in fields listed for range checking may cause those fields to be flagged as invalid
- Exceeding maxProperties (128) or maxItems (256 fields) limits may result in a rejection error
- Missing minimum or maximum parameters may cause undefined range behavior

## 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 result object indicating whether all checked fields passed (passed: true/false), a list of invalid_fields that were out of range, an overall status ('pass' or 'fail'), and evidence metadata including a SHA-256 hash of the input, a flag confirming no data was retained, and a count of external calls made (always 0).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "fields": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 8192
   },
   "maxItems": 256,
   "description": "Fields supplied to JSON Numeric Range Check; used only for this bounded calculation and processed in memory without retention."
  },
  "object": {
   "type": "object",
   "description": "Object supplied to JSON Numeric Range Check; used only for this bounded calculation and processed in memory without retention.",
   "maxProperties": 128,
   "additionalProperties": true
  },
  "maximum": {
   "type": "number",
   "description": "Maximum supplied to JSON Numeric Range Check; used only for this bounded calculation and processed in memory without retention."
  },
  "minimum": {
   "type": "number",
   "description": "Minimum supplied to JSON Numeric Range Check; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "passed": true,
   "invalid_fields": []
  },
  "schema": "delx/util-json-numeric-range-check/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "4c4a3da6026b44f2496b41463f74706930eaa5acc0a60d89ef6d4e9c805dbac5",
   "external_calls": 0
  },
  "operation": "data_batch:json_numeric_range_check"
 }
}
```

## More

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