# Delx Commerce — Agent Delivery Fallback Gate

> Delx Commerce — Agent Delivery Fallback Gate 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).

Evaluates whether a delivery failure code is permitted and whether a fallback delivery path is allowed for an agent workflow.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/agent-delivery-fallback-gate?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-agent-delivery-fallback-gate-7eb47f92
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jiqUqJ5BTHfhqoflsfJXq

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-agent-delivery-fallback-gate-7eb47f92 -d '<json body>'
```

Example prompt: Check if the failure code 'TIMEOUT_503' with primary status 'failed' is allowed and whether fallback is permitted, given that fallback is available and my allowed failure codes are ['TIMEOUT_503', 'NETWORK_ERR'].

## When to prefer this

Use this endpoint when your agent workflow needs a verifiable, pay-per-use gate to decide whether a delivery failure is within policy and whether a fallback path is safe to take. It is ideal for agentic pipelines that need cryptographic proof of the decision (via input hash and zero-retention evidence) without standing up their own gating infrastructure. Prefer it over custom logic when you need an auditable, tamper-evident record of the fallback decision.

## Known failure modes

- Missing or malformed failure_code or primary_status fields may produce unexpected gate results
- If allowed_failure_codes list is empty, most failure codes will likely be rejected
- Payment failure via x402 protocol will prevent the call from completing
- Exceeding maxItems (256) on allowed_failure_codes will cause a schema 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 a JSON object indicating whether the failure code is allowed (failure_allowed boolean), whether fallback delivery is permitted (fallback_permitted boolean), an overall pass/fail status, and a verifiable evidence block including a SHA-256 hash of the input, a flag confirming no data was retained, and a count of external calls made (always 0).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "failure_code": {
   "type": "string",
   "maxLength": 8192,
   "description": "Failure Code supplied to Agent Delivery Fallback Gate; used only for this bounded calculation and processed in memory without retention."
  },
  "primary_status": {
   "type": "string",
   "maxLength": 8192,
   "description": "Primary Status supplied to Agent Delivery Fallback Gate; used only for this bounded calculation and processed in memory without retention."
  },
  "fallback_available": {
   "type": "boolean",
   "description": "Fallback Available supplied to Agent Delivery Fallback Gate; used only for this bounded calculation and processed in memory without retention."
  },
  "allowed_failure_codes": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 8192
   },
   "maxItems": 256,
   "description": "Allowed Failure Codes supplied to Agent Delivery Fallback Gate; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "failure_allowed": true,
   "fallback_permitted": true
  },
  "schema": "delx/util-agent-delivery-fallback-gate/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "90bc182d30b20aad9cdbf98c44d1452bf8205f8ad59c3d598c333e1fd05badaf",
   "external_calls": 0
  },
  "operation": "delivery_contract:agent_delivery_fallback_gate"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-agent-delivery-fallback-gate-7eb47f92/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)
