# Delx Commerce — Quarter of Year Calculator

> Delx Commerce — Quarter of Year Calculator 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).

Returns the fiscal/calendar quarter number (Q1–Q4) and year for a given ISO-8601 date or timestamp.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/quarter-of-year?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-quarter-of-year-calculator-853c3dad
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_L0pegDjIFyxADrVTkZCgj

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-quarter-of-year-calculator-853c3dad -d '<json body>'
```

Example prompt: What quarter of the year does August 4, 2026 fall in?

## When to prefer this

Choose this endpoint when you need a lightweight, no-signup, pay-per-call API to derive the calendar quarter from any ISO-8601 date or timestamp, especially in agentic workflows that process arbitrary dates at runtime without wanting to implement date-math logic locally.

## Known failure modes

- Invalid or malformed date string returns an error — date must conform to ISO-8601 format
- Missing date field results in a bad request response
- Dates outside supported range may return unexpected results
- Network or payment failure (USDC/x402) prevents the call from completing

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

A JSON object containing the year (integer), month (integer), quarter number (1–4), and a schema version string (e.g. delx/quarter-of-year/v1).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "date": {
   "type": "string",
   "format": "date-time",
   "description": "ISO-8601 date or timestamp (e.g. 2026-08-04 or 2026-08-04T12:00:00Z)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "year": 2026,
  "month": 8,
  "schema": "delx/quarter-of-year/v1",
  "quarter": 3
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-quarter-of-year-calculator-853c3dad/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)
