# Refund Policy Preflight

> Refund Policy Preflight is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Evaluates refund eligibility flags by checking purchase facts against a policy JSON definition, returning a deterministic eligible/reasons result.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/refund-policy-preflight
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/refund-policy-preflight-9390bfe1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ay0-T8DMY8sWHOWN41E19

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 refund-policy-preflight-9390bfe1 -d '<json body>'
```

Example prompt: Before I open a dispute for this purchase, check our refund policy — it allows refunds within 30 days for unused items — against this purchase: ordered 2025-03-01, unused, and today is 2025-03-20. Is it eligible?

## When to prefer this

Use this endpoint when an AI agent needs a fast, deterministic, zero-side-effect preflight check of refund eligibility before opening a dispute or taking action. Prefer it over manual policy parsing or heavyweight rule engines when the policy is expressible as JSON and the purchase facts are structured. Ideal for agentic workflows where a lightweight advisory check is needed before committing to a dispute or refund action.

## Known failure modes

- Missing or malformed policy JSON results in an error response
- Missing or malformed purchase facts JSON causes validation failure
- Policy fields that don't match expected schema structure may yield unexpected results
- Edge cases in date/time logic (e.g. timezone ambiguity) may affect window calculations

## How this service works

Evaluate simple refund eligibility flags against policy JSON. Call when agents checking refund windows before opening disputes. Returns eligible and reasons 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 deterministic JSON object containing an 'eligible' boolean indicating whether the purchase qualifies for a refund, along with a 'reasons' array explaining which policy conditions were met or failed. No external calls are made; all logic is local policy math.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "policy": {
   "type": "object",
   "description": "Refund policy JSON"
  },
  "purchase": {
   "type": "object",
   "description": "Purchase facts JSON"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "schema": "delx/util-refund-policy-preflight/v1",
  "reasons": [],
  "eligible": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/refund-policy-preflight-9390bfe1/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)
