# Delx Commerce — JSON Enum Fields Check

> Delx Commerce — JSON Enum Fields 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 fields in a JSON object match their expected enum values as defined by a supplied enums schema

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/json-enum-fields-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-enum-fields-check-07eb2a53
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_y7wC7e4LbhxZ8_36OirQ8

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-enum-fields-check-07eb2a53 -d '<json body>'
```

Example prompt: Check whether all the enum fields in this JSON object are valid against these enum definitions — enums: {status: ['active','inactive','pending'], role: ['admin','user','guest']}, object: {status: 'active', role: 'superuser', name: 'Alice'}.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call, no-signup enum field validator for JSON objects — particularly in agentic pipelines where you want verifiable, tamper-evident validation with a SHA-256 input hash and a guaranteed no-retention policy. Prefer this over building custom enum validation logic when you need an auditable, external validation step that produces a structured pass/fail result with evidence metadata, especially in USDC-native micropayment workflows via the x402 protocol.

## Known failure modes

- Malformed JSON input causing parse errors
- Object or enums exceeding 128 properties (maxProperties limit)
- Missing or null required fields returning validation errors
- Unexpected enum key mismatches if enums object keys don't match object keys
- Network or payment processing errors returning HTTP 402 or 5xx

## 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 JSON object indicating whether all enum fields passed validation (passed: true/false), a list of invalid_fields (empty array if all pass), a status string ('pass' or 'fail'), an operation identifier, and evidence metadata including whether input was retained (always false), the SHA-256 hash of the input, and the number of external calls made (always 0 — processed in memory).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "enums": {
   "type": "object",
   "description": "Enums supplied to JSON Enum Fields Check; used only for this bounded calculation and processed in memory without retention.",
   "maxProperties": 128,
   "additionalProperties": true
  },
  "object": {
   "type": "object",
   "description": "Object supplied to JSON Enum Fields Check; used only for this bounded calculation and processed in memory without retention.",
   "maxProperties": 128,
   "additionalProperties": true
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "passed": true,
   "invalid_fields": []
  },
  "schema": "delx/util-json-enum-fields-check/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "754b21ec3bf827fca52ae9e586537f3d14e39c664553bd2f27e0638c10c32ba6",
   "external_calls": 0
  },
  "operation": "data_batch:json_enum_fields_check"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-json-enum-fields-check-07eb2a53/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)
