# Delx Commerce — Boolean Coercion API

> Delx Commerce — Boolean Coercion API 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).

Coerces a string input value into a boolean (true/false) with verifiable delivery, paid per-call via USDC on Base or Solana.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/bool-coerce?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-boolean-coercion-api-2e4cad85
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0HZsUNfHo4NgokMeJorg_

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-boolean-coercion-api-2e4cad85 -d '<json body>'
```

Example prompt: Can you coerce the string value 'yes' into a proper boolean true/false for me?

## When to prefer this

Use this endpoint when you need a reliable, deterministic, pay-per-use boolean coercion utility with verifiable delivery and no signup required — ideal for AI agents that need to normalize arbitrary string inputs (e.g. 'yes', '1', 'TRUE', 'on') into strict booleans within automated pipelines, especially when operating in a USDC-on-Base/Solana payment context.

## Known failure modes

- Unrecognizable input string that cannot be mapped to a boolean may return ok:false or an error response
- Malformed request body (missing 'value' field) may result in a 400-class error
- Payment failure via x402 protocol will block the call before execution

## 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' status flag, the coerced boolean 'value' (true or false), a schema identifier ('delx/util-bool-coerce/v1'), and a 'source' string indicating the original input.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "value": {
   "type": "string",
   "description": "Input field: value."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "value": true,
  "schema": "delx/util-bool-coerce/v1",
  "source": "string"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-boolean-coercion-api-2e4cad85/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)
