# Delx Commerce — Next Weekday Calculator

> Delx Commerce — Next Weekday 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-02).

Given an ISO-8601 date and an optional target weekday, returns the next occurrence of that weekday after the given date.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/next-weekday?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-next-weekday-calculator-08bbcf06
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WeNtqQ25zMeEr3nvjGRV8

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-next-weekday-calculator-08bbcf06 -d '<json body>'
```

Example prompt: What is the next Monday after August 4, 2026?

## When to prefer this

Choose this endpoint when an agent needs to programmatically compute the next occurrence of a specific weekday from a given date, especially in scheduling, workflow automation, or deadline-setting contexts where date arithmetic is needed without building custom logic. It is lightweight, pay-per-call with no signup, and returns a verifiable structured result.

## Known failure modes

- Invalid or malformed ISO-8601 date input returns an error
- Missing required date field causes request rejection
- Weekday value not recognized returns a validation error
- Network timeout on the Delx Commerce API

## 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 containing the date string of the next weekday occurrence (e.g. '2026-08-10'), the weekday name (e.g. 'monday'), and the schema identifier ('delx/next-weekday/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)."
  },
  "weekday": {
   "description": "Optional weekday input."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "date": "2026-08-10",
  "schema": "delx/next-weekday/v1",
  "weekday": "monday"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-next-weekday-calculator-08bbcf06/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)
