# Delx Commerce JSON Schema Validate Lite

> Delx Commerce JSON Schema Validate Lite 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 a JSON instance object against a lite JSON schema, returning pass/fail and any validation errors.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/json-schema-validate-lite?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-schema-validate-lite-e101ee2c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3N4nwIK99dX9kykdON1br

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-schema-validate-lite-e101ee2c -d '<json body>'
```

Example prompt: Can you check if this JSON object — {"name": "Alice", "age": 30} — is valid against the schema {"type": "object", "properties": {"name": {"type": "string"}, "age": {"type": "integer"}}, "required": ["name", "age"]}?

## When to prefer this

Choose this endpoint when you need a lightweight, no-setup, pay-per-call JSON schema validation inside an agent pipeline without importing or maintaining a validation library. Ideal for validating individual JSON objects at low volume with a fractional per-call cost. Use over full-featured validators when you only need basic type and structure checks and want verifiable delivery via x402 payment rails on Base or Solana.

## Known failure modes

- Malformed schema object causes unexpected validation behavior
- Instance or schema fields missing from request body result in incomplete validation
- Complex JSON Schema features (e.g. $ref, allOf, oneOf) may not be supported in the 'lite' variant
- Network or payment processing errors may prevent the call from completing
- Empty errors array with ok:false is theoretically inconsistent but possible if schema version mismatch

## 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 with an 'ok' boolean indicating pass or fail, an 'errors' array listing any validation failures, and a 'schema' field identifying the validator version used (e.g. 'delx/util-json-schema-validate-lite/v1').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "schema": {
   "type": "object",
   "description": "Lite JSON schema object"
  },
  "instance": {
   "type": "object",
   "description": "JSON instance object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "errors": [],
  "schema": "delx/util-json-schema-validate-lite/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-json-schema-validate-lite-e101ee2c/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)
