# Delx Commerce X402 Refund Eligibility Check

> Delx Commerce X402 Refund Eligibility Check 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-02).

Determines whether a failed X402 payment delivery is eligible for a refund based on settlement status, delivery outcome, and failure code.

## Facts

- Endpoint: POST https://commerce.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-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-x402-refund-eligibility-check-1564d930
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GjmTa2rhQ0-WUwTieJNTp

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-refund-eligibility-check-1564d930 -d '<json body>'
```

Example prompt: Check whether a settled but undelivered x402 payment with failure code 'post_settlement_delivery_failed' is eligible for a refund, given the eligible codes list includes 'post_settlement_delivery_failed' and 'timeout'.

## When to prefer this

Use this endpoint when an AI agent needs a fast, verifiable, auditable in-memory computation to determine x402 refund eligibility without any data retention or external side effects. Prefer this over custom logic when operating within the x402 payment protocol ecosystem on Base or Solana, especially when you need cryptographic evidence of the computation via input hash for dispute resolution.

## Known failure modes

- Missing or invalid 'settled' or 'delivered' boolean fields causing validation error
- Failure code not present in eligible_codes list resulting in eligible=false
- eligible_codes array exceeding 256 items causing rejection
- Malformed failure_code string exceeding 8192 characters
- Payment protocol error (HTTP 402) if USDC payment is not included or insufficient

## 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 payment is eligible for a refund (true/false), the matched failure code, the operation name, processing status, and a SHA-256 hash of the input for auditability — with a guarantee of no external calls or data retention.

## 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/delx-commerce-x402-refund-eligibility-check-1564d930/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)
