# JSON Cross Field Order

> JSON Cross Field Order is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Validates or checks the ordering relation (e.g. less-than, greater-than, equal) between two numeric fields within a JSON object, returning a versioned deterministic result.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/json-cross-field-order
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/json-cross-field-order-6a7b3cb1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yVk_2GaGmJLbnOYbq5DQB

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 json-cross-field-order-6a7b3cb1 -d '<json body>'
```

Example prompt: Check if the 'min_price' field is less than the 'max_price' field in this JSON object: {"min_price": 50, "max_price": 120, "item": "widget"} — use the 'lt' relation.

## When to prefer this

Use this endpoint when an agent needs to enforce a cross-field numeric ordering constraint on a JSON object before handing it off to a downstream tool or system with strict data contracts. It is ideal when you need a deterministic, versioned, auditable validation result rather than writing ad-hoc comparison logic. Prefer it over general-purpose code execution when you want a lightweight, pay-per-call, stateless check with a standardized output envelope.

## Known failure modes

- Field names not found in the object — returns an error or failed validation result
- Specified fields are non-numeric — type mismatch error
- Invalid or unrecognized relation string — returns an error indicating unsupported relation
- Object exceeds maxProperties 128 limit — request rejected
- Missing required fields (object, relation, left_field, right_field) — validation error

## How this service works

JSON Cross Field Order: JSON Cross Field Order checks two numeric fields for a caller-selected ordering relation from bounded caller-supplied values without an external provider. Call JSON Cross Field Order before an agent hands structured data or a batch plan to a downstream tool with a stricter contract. Returns the bounded transformation or validation finding with counts, normalized values, and a versioned result contract for JSON Cross Field Order as versioned deterministic JSON. Price: $0.…

## Output

Returns a versioned deterministic JSON result containing the validation outcome (pass/fail), the normalized values of both compared fields, counts, and a versioned result contract indicating whether the specified ordering relation holds between the two fields.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "object": {
   "type": "object",
   "description": "Object supplied to JSON Cross Field Order; used only for this bounded calculation and processed in memory without retention.",
   "maxProperties": 128,
   "additionalProperties": true
  },
  "relation": {
   "type": "string",
   "maxLength": 8192,
   "description": "Relation supplied to JSON Cross Field Order; used only for this bounded calculation and processed in memory without retention."
  },
  "left_field": {
   "type": "string",
   "maxLength": 8192,
   "description": "Left Field supplied to JSON Cross Field Order; used only for this bounded calculation and processed in memory without retention."
  },
  "right_field": {
   "type": "string",
   "maxLength": 8192,
   "description": "Right Field supplied to JSON Cross Field Order; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "left": 1,
   "right": 10,
   "passed": true,
   "relation": "lte"
  },
  "schema": "delx/util-json-cross-field-order/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "0eefc5177112e97ab4f032636f3cff5f82ee8866f4f9bb4e74667c81c8bc5165",
   "external_calls": 0
  },
  "operation": "data_batch:json_cross_field_order"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/json-cross-field-order-6a7b3cb1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
