# Delx Commerce — X402 Payment Deadline Check

> Delx Commerce — X402 Payment 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-01).

Validates whether a given payment timestamp falls within an acceptable lead-time window relative to a deadline, returning pass/fail and the computed lead seconds.

## Facts

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

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

Example prompt: Check if a payment with a deadline epoch of 1720000600 is within the valid window, given the current time is epoch 1720000300, a minimum lead of 30 seconds, and a maximum lead of 3600 seconds.

## When to prefer this

Choose this endpoint when you need a lightweight, stateless, verifiable computation to confirm that an x402 payment timestamp is within a protocol-compliant timing window. It is ideal for AI agents operating in x402-payment ecosystems who must validate payment deadline constraints before submitting or relaying transactions, without any data retention or side effects.

## Known failure modes

- Missing required fields (now_epoch, deadline_epoch, minimum_lead_seconds, maximum_lead_seconds) result in validation error
- Invalid integer types for epoch or lead second fields cause parsing failures
- now_epoch greater than deadline_epoch may result in negative lead_seconds and a fail status
- Payment required (402) response if USDC payment header is not included or is 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 with a 'result' containing lead_seconds (computed difference), within_window (boolean), and the echoed minimum/maximum lead seconds; plus a 'status' of pass/fail, an 'operation' identifier, and an 'evidence' block confirming no data was retained and no external calls were made, along with an input SHA256 hash for auditability.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "now_epoch": {
   "type": "integer",
   "description": "Now Epoch supplied to X402 Payment Deadline Check; used only for this bounded calculation and processed in memory without retention."
  },
  "deadline_epoch": {
   "type": "integer",
   "description": "Deadline Epoch supplied to X402 Payment Deadline Check; used only for this bounded calculation and processed in memory without retention."
  },
  "maximum_lead_seconds": {
   "type": "integer",
   "description": "Maximum Lead Seconds supplied to X402 Payment Deadline Check; used only for this bounded calculation and processed in memory without retention."
  },
  "minimum_lead_seconds": {
   "type": "integer",
   "description": "Minimum Lead Seconds supplied to X402 Payment Deadline Check; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "lead_seconds": 300,
   "within_window": true,
   "maximum_lead_seconds": 3600,
   "minimum_lead_seconds": 30
  },
  "schema": "delx/util-x402-payment-deadline-check/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "59c678732bd73042e4f51cbf240f3f49ced22b5675207daf3f54360d261c4acb",
   "external_calls": 0
  },
  "operation": "delivery_contract:x402_payment_deadline_check"
 }
}
```

## More

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