# Delx Commerce — JSON Pattern Fields Check

> Delx Commerce — JSON Pattern 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-02).

Validates whether specified fields in a JSON object match a given pattern, returning pass/fail results and a list of any invalid fields.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/json-pattern-fields-check?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-json-pattern-fields-check-762a92fb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KjCnhG4-nnv9a0KYGeF5A

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-pattern-fields-check-762a92fb -d '<json body>'
```

Example prompt: Check this JSON object to see if the fields 'email', 'phone', and 'zipcode' all match the pattern '^[a-zA-Z0-9]+$' — tell me which ones pass and which ones fail.

## When to prefer this

Choose this endpoint when you need a lightweight, no-signup, pay-per-call validation of specific fields within a JSON object against a string pattern, especially in automated agent pipelines that require verifiable, tamper-evident results (SHA256 evidence) and no data retention. Ideal for CI/CD pre-flight checks, form validation pipelines, or API response auditing where cost predictability ($0.001 per call) and proof of execution matter more than a full schema validation framework.

## Known failure modes

- Malformed or missing 'pattern' field returns a validation error
- 'fields' array exceeding 256 items is rejected
- 'object' with more than 128 properties is rejected
- Invalid JSON in the 'object' field causes a parse error
- Pattern string exceeding 8192 characters is rejected
- Field names in 'fields' array not present in 'object' may be treated as failed or skipped — behavior depends on implementation

## 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 containing: a 'result' with a boolean 'passed' flag and an 'invalid_fields' array listing any fields that failed the pattern check; a 'status' field ('pass' or 'fail'); an 'evidence' block with the input SHA256 hash, a 'retained: false' flag confirming no data is stored, and a count of external calls made; plus the operation name and schema version.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "fields": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 8192
   },
   "maxItems": 256,
   "description": "Fields supplied to JSON Pattern Fields Check; used only for this bounded calculation and processed in memory without retention."
  },
  "object": {
   "type": "object",
   "description": "Object supplied to JSON Pattern Fields Check; used only for this bounded calculation and processed in memory without retention.",
   "maxProperties": 128,
   "additionalProperties": true
  },
  "pattern": {
   "type": "string",
   "maxLength": 8192,
   "description": "Pattern supplied to JSON Pattern Fields 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-pattern-fields-check/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "76c212959ee62ae10d1069f1f04a0f1ac36073c0c300552b25ad1c9929a1bd35",
   "external_calls": 0
  },
  "operation": "data_batch:json_pattern_fields_check"
 }
}
```

## More

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