# Delx Commerce JSON Validate

> Delx Commerce JSON Validate 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 the structure and schema of a JSON HTTP request body against an expected output example, returning a validation result

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/json-validate?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-validate-79abb3a7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CwmT-GAM1j6Dsj6VCIyrq

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-validate-79abb3a7 -d '<json body>'
```

Example prompt: Can you validate this JSON body I'm about to POST — it's a plain JSON object with fields 'name' and 'email' — and check it against an expected output that looks like {"status": "ok", "id": 123}?

## When to prefer this

Use this endpoint when an AI agent needs to verify that a JSON HTTP request body is correctly structured before dispatching it to a downstream API — especially in automated pipelines where malformed payloads would cause downstream failures. It is particularly useful as a low-cost ($0.001 USDC) pre-flight check. Prefer it over generic JSON linting tools when you need verifiable, pay-per-result delivery with crypto payment via x402 on Base or Solana.

## Known failure modes

- Missing required fields ('input' or 'output') returns a validation error
- Incorrect bodyType enum value (not 'json', 'form-data', or 'text') causes rejection
- Body object that cannot be parsed as JSON results in an error
- Network or payment failure (x402 USDC payment not completed) blocks the request
- Empty or malformed example output object may produce inconclusive results

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

A JSON object containing the validation outcome — indicating whether the provided request body conforms to the expected structure and output schema. The response is a JSON object (exact shape depends on the validation result).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

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