# Delx Commerce — JSON Type Map Check

> Delx Commerce — JSON Type Map 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 that the values in a JSON object match expected types as defined by a caller-supplied type map, returning pass/fail and detailed failure list.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/json-type-map-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-type-map-check-81ca0e20
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IdRZi6XV5-sjci32oMTN_

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-type-map-check-81ca0e20 -d '<json body>'
```

Example prompt: Check whether this JSON object matches the expected types — 'id' should be a number, 'name' a string, and 'active' a boolean — and tell me which fields fail if any.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call type validation of a JSON object against a caller-defined type map without setting up a full JSON Schema validator or registering for a service. It is ideal for agent pipelines that need verifiable, tamper-evident validation with an input hash in the evidence record, and where no data retention is acceptable. Prefer it over heavier schema validation services when the type structure is simple and auditability (SHA-256 evidence) matters.

## Known failure modes

- Object or types map exceeds 128 properties limit — request rejected
- Malformed input JSON — parse error returned
- Type mismatch detected — 'passed' is false and 'failures' array is populated with offending fields
- Payment not included or insufficient USDC — HTTP 402 returned before processing
- Network timeout or service unavailability — no result returned

## 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 with a 'passed' boolean and a 'failures' array listing any fields whose types did not match expectations. Also includes a status string ('pass'/'fail'), an evidence block with the SHA-256 hash of the input and a flag confirming no data is retained, and the operation name for auditability.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "types": {
   "type": "object",
   "description": "Types supplied to JSON Type Map 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 Type Map 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,
   "failures": []
  },
  "schema": "delx/util-json-type-map-check/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "04b5c6e2b354cdd3fe6afbe27e7ca522e20520811cbe9a470d58c6583a2c9824",
   "external_calls": 0
  },
  "operation": "data_batch:json_type_map_check"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-json-type-map-check-81ca0e20/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)
