# Delx Commerce Date Add API

> Delx Commerce Date Add API 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).

Adds a specified number of time units (days, hours, etc.) to a given date/timestamp and returns the resulting date

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/date-add?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-date-add-api-c443d805
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XP7iVKYimJwtepFAxPJyZ

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-date-add-api-c443d805 -d '<json body>'
```

Example prompt: What date is 45 days after August 4, 2026? Just add 45 days to that date and tell me the result.

## When to prefer this

Choose this endpoint when you need a simple, trustless, pay-per-use date arithmetic computation with no signup or API key — especially useful for AI agents operating autonomously that need verifiable, on-chain micro-payment billing via x402 on Base or Solana.

## Known failure modes

- Invalid or malformed ISO-8601 date input returns an error
- Out-of-range integer value for n may be rejected
- Missing required fields (n or date) result in a 4xx error
- Payment not submitted or insufficient USDC balance causes 402 response

## 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 the computed resulting date (ISO-8601 with timezone), the total days offset, and the total hours offset, along with a schema identifier (delx/date-add/v1).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "n": {
   "type": "integer",
   "description": "Integer input (see tool summary for allowed range)."
  },
  "date": {
   "type": "string",
   "format": "date-time",
   "description": "ISO-8601 date or timestamp (e.g. 2026-08-04 or 2026-08-04T12:00:00Z)."
  },
  "unit": {
   "description": "Optional unit input."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "date": "2026-08-04T12:00:00+00:00",
  "days": 0,
  "hours": 0,
  "schema": "delx/date-add/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-date-add-api-c443d805/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)
