# Delx Commerce — X402 Payment Preflight

> Delx Commerce — X402 Payment Preflight is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-01).

Validates and selects an eligible x402 payment option from a set of requirements before executing a micropayment

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/payment-preflight?utm_source=zero.xyz
- Price: $0.002/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-x402-payment-preflight-c41e2242
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2Kumg11OhhmZKg1VvuzJ-

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-x402-payment-preflight-c41e2242 -d '<json body>'
```

Example prompt: Before paying for the Delx API call, run a preflight check against the Base network (eip155:8453) with a max of 0.002 USDC, at least 30 seconds of expiry, and 6 decimal precision to confirm the payment is valid and select the right option.

## When to prefer this

Use this endpoint when your agent needs to pre-validate an x402 micropayment before committing funds — especially when multiple payment options exist across networks (Base, Solana) and you need to select the safest, cheapest eligible one. Prefer this over direct payment when you need to verify expiry, network compatibility, or amount constraints without side effects.

## Known failure modes

- No eligible payment options found (approved: false, eligible_count: 0)
- Payment option expiry is too short relative to min_expiry_seconds
- Requested network not in allowed_networks list
- Amount exceeds max_amount_usdc threshold
- Invalid asset_decimals value outside 0-18 range
- Malformed requirements object causes validation error

## How this service works

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

## Output

Returns an 'approved' boolean, the policy used for evaluation, the selected payment option (index, network, scheme, pay-to address, amount in USDC, expiry status), and a list of evaluations for each candidate payment option including any blockers and eligibility count.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "requirements": {
   "type": "object"
  },
  "asset_decimals": {
   "type": "integer",
   "default": 6,
   "maximum": 18,
   "minimum": 0
  },
  "max_amount_usdc": {
   "type": "number",
   "minimum": 0
  },
  "allowed_networks": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "maxItems": 20,
   "minItems": 1
  },
  "now_epoch_seconds": {
   "type": "integer",
   "minimum": 0
  },
  "min_expiry_seconds": {
   "type": "integer",
   "default": 30,
   "maximum": 86400,
   "minimum": 0
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "policy": {
   "asset_decimals": 6,
   "expiry_checked": true,
   "max_amount_usdc": "0.002",
   "allowed_networks": [
    "eip155:8453"
   ],
   "min_expiry_seconds": 30
  },
  "schema": "delx/util-x402-payment-preflight/v1",
  "approved": true,
  "selected": {
   "index": 0,
   "pay_to": "0x1111111111111111111111111111111111111111",
   "scheme": "exact",
   "network": "eip155:8453",
   "amount_usdc": "0.001",
   "expiry_status": "ok"
  },
  "evaluations": [
   {
    "index": 0,
    "scheme": "exact",
    "network": "eip155:8453",
    "blockers": [],
    "amount_usdc": "0.001",
    "expiry_status": "ok",
    "pay_to_present": true
   }
  ],
  "eligible_count": 1,
  "evaluated_count": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-x402-payment-preflight-c41e2242/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)
