# X402 Refund Eligibility Check

> X402 Refund Eligibility Check 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-19).

Evaluates caller-supplied delivery outcome metadata against explicit refund reason codes to determine whether a refund is warranted for an x402 or agent delivery payment.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/x402-refund-eligibility-check?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-refund-eligibility-check-2e18cccf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LHQyTh0dguTwrEEuql2Bs

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 x402-refund-eligibility-check-2e18cccf -d '<json body>'
```

Example prompt: Check if this x402 delivery qualifies for a refund: the payment was settled (settled=true), the item was not delivered (delivered=false), the failure code is 'TIMEOUT_408', and the eligible refund codes are ['TIMEOUT_408', 'NOT_DELIVERED_503'].

## When to prefer this

Use this endpoint when you need a deterministic, in-memory, stateless check of whether a specific x402 payment or agent delivery outcome meets predefined refund criteria — particularly when you want normalized evidence and explicit accept/reject decisions without retaining data or calling an external oracle. Prefer this over manual logic when dealing with multiple eligible refund codes that must be matched against a single failure code in an x402 payment flow.

## Known failure modes

- Missing required fields (settled, delivered) may cause validation errors
- Overly long failure_code or eligible_codes strings may be truncated or rejected
- An empty eligible_codes array will likely result in automatic rejection status
- Ambiguous or unrecognized failure codes may yield an indeterminate or rejection result

## How this service works

X402 Refund Eligibility Check: X402 Refund Eligibility Check evaluates caller-supplied delivery outcome against explicit refund reasons from bounded caller-supplied values without an external provider. Call X402 Refund Eligibility Check before paying for or accepting an x402 or agent delivery assembled from caller-supplied challenge and result metadata. Returns contract-specific checks, normalized evidence, mismatch reasons, and an explicit acceptance or rejection status for X402 Refund Eligibi…

## Output

Returns a structured response containing an explicit acceptance or rejection status for the refund claim, contract-specific eligibility checks, normalized evidence derived from the supplied metadata, and a list of mismatch reasons explaining why the failure code does or does not align with the eligible refund codes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "settled": {
   "type": "boolean",
   "description": "Settled supplied to X402 Refund Eligibility Check; used only for this bounded calculation and processed in memory without retention."
  },
  "delivered": {
   "type": "boolean",
   "description": "Delivered supplied to X402 Refund Eligibility Check; used only for this bounded calculation and processed in memory without retention."
  },
  "failure_code": {
   "type": "string",
   "maxLength": 8192,
   "description": "Failure Code supplied to X402 Refund Eligibility Check; used only for this bounded calculation and processed in memory without retention."
  },
  "eligible_codes": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 8192
   },
   "maxItems": 256,
   "description": "Eligible Codes supplied to X402 Refund Eligibility Check; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "eligible": true,
   "failure_code": "post_settlement_delivery_failed"
  },
  "schema": "delx/util-x402-refund-eligibility-check/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "c7ff113147f00d1cbabc89249c1c35e396554cac50edbc709fcefae782738ef1",
   "external_calls": 0
  },
  "operation": "delivery_contract:x402_refund_eligibility_check"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-refund-eligibility-check-2e18cccf/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)
