# Delx Commerce — JSON Cross-Field Order Comparison

> Delx Commerce — JSON Cross-Field Order Comparison 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).

Compares two numeric fields within a JSON object using a specified relational operator and returns whether the comparison passed, with verifiable evidence.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/json-cross-field-order?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-cross-field-order-comparison-db8839ed
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2EI4Rrit52nsGFy3qPXSR

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

Example prompt: Check whether the 'score' field is less than or equal to the 'max_score' field in this JSON object: {"score": 1, "max_score": 10} — use the 'lte' relation and tell me if it passes.

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-use, verifiable cross-field numeric comparison on a JSON object without standing up custom validation logic. It is ideal for AI agents that need auditable evidence (SHA-256 hash, no-retention proof) that a comparison was performed correctly. Prefer it over custom code when you need an immutable, tamper-evident record of the validation result, or when operating in a zero-signup, micropayment (USDC on Base/Solana) context with exact per-call pricing.

## Known failure modes

- Missing required fields (object, relation, left_field, or right_field) returns a validation error
- Specified field names not found in the provided object may return an error or null comparison
- Unsupported relation operator string may cause a processing error
- Object exceeds maxProperties limit of 128 and is rejected
- Payment via x402 fails or is insufficient, blocking the request

## 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 containing the left and right field values, the relation used, and a boolean 'passed' flag indicating whether the comparison holds. Also includes a status string ('pass' or 'fail'), a schema identifier, and an evidence block with the input SHA-256 hash, a flag confirming no data was retained, and a count of zero external calls made — allowing verifiable, auditable confirmation of the comparison.

## 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/delx-commerce-json-cross-field-order-comparison-db8839ed/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)
