# Delx Commerce X402 Refund Deadline Check

> Delx Commerce X402 Refund Deadline 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).

Checks whether a payment settlement falls within the allowable refund window by comparing timestamps against a specified window duration.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/x402-refund-deadline-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-deadline-check-dd7594d2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fMSHUC7TZLgEeX53Q6Xrb

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-deadline-check-dd7594d2 -d '<json body>'
```

Example prompt: Check if the payment that was requested at epoch 1720000000 and settled at epoch 1720003600 is still within the 7200-second refund window — I need to know how many seconds have elapsed and whether I can still refund it.

## When to prefer this

Use this endpoint when building x402-protocol payment flows that require deterministic, verifiable refund-window enforcement without storing sensitive data. It is ideal for AI agents that need a tamper-evident, in-memory-only calculation with an auditable SHA-256 input hash — suitable for compliance checks, automated dispute resolution gates, or settlement audits within the x402 ecosystem.

## Known failure modes

- Missing required fields (window_seconds, settled_at_epoch, requested_at_epoch) return validation errors
- Invalid epoch values (negative, non-integer, or future settled_at before requested_at) may produce unexpected results
- settled_at_epoch earlier than requested_at_epoch could produce negative elapsed times
- Network or payment gateway failures preventing the $0.001 USDC fee from being processed block the request

## 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 settlement falls within the refund window (within_window boolean), the number of elapsed seconds between request and settlement, a pass/fail status, and a verifiable evidence object containing the SHA-256 hash of the inputs and confirmation that no data was retained or external calls were made.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "window_seconds": {
   "type": "integer",
   "description": "Window Seconds supplied to X402 Refund Deadline Check; used only for this bounded calculation and processed in memory without retention."
  },
  "settled_at_epoch": {
   "type": "integer",
   "description": "Settled At Epoch supplied to X402 Refund Deadline Check; used only for this bounded calculation and processed in memory without retention."
  },
  "requested_at_epoch": {
   "type": "integer",
   "description": "Requested At Epoch supplied to X402 Refund Deadline Check; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "within_window": true,
   "elapsed_seconds": 3600
  },
  "schema": "delx/util-x402-refund-deadline-check/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "75b029c9b2e724be9e810d27a39f2fd8a936b5f84bafd8c79078d3272448753c",
   "external_calls": 0
  },
  "operation": "delivery_contract:x402_refund_deadline_check"
 }
}
```

## More

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