# Delx Payout If Yes

> Delx Payout If Yes is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

Conditionally returns a payout value equal to the number of shares provided, acting as a governed yes-branch payout calculator for agent decision workflows.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/payout-if-yes?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-payout-if-yes-b8788c39
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uLpgQp9BC5WGmSr5ceam5

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-payout-if-yes-b8788c39 -d '<json body>'
```

Example prompt: Calculate the payout for 200 shares assuming the condition is yes.

## When to prefer this

Choose this endpoint when an agent workflow needs to compute or verify a conditional payout amount based on a shares count in a governed, auditable way — especially within Delx infrastructure pipelines where x402 micropayment rails are already in use. Prefer this over custom logic when you need a versioned schema output for downstream validation.

## Known failure modes

- Missing or non-integer 'shares' field returns a validation error
- Zero or negative shares may return a zero payout or an error depending on server logic
- Malformed request body causes a 400 Bad Request
- x402 payment not included or insufficient funds results in a 402 Payment Required response

## How this service works

Payout if YES resolves given shares held (\$1/share style). Call when estimating gross payout on a YES position at resolution. Returns gross payout as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.

## Output

Returns a JSON object containing the computed payout value (equal to shares input), an echo of the shares count, and a schema identifier string ('delx/util-payout-if-yes/v1') confirming the endpoint version used.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "shares": {
   "type": "integer",
   "description": "Input field: shares."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "payout": 200,
  "schema": "delx/util-payout-if-yes/v1",
  "shares": 200
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-payout-if-yes-b8788c39/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
