# Business Days and Holidays

> Business Days and Holidays is a paid API for AI agents from api.stablecoingateways.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-28).

Check if a date is a business day, add/subtract business days, count business days between dates, or list public holidays for 250 countries, 630 subdivisions, and 31 stock exchanges (2025–2030).

## Facts

- Endpoint: GET https://api.stablecoingateways.com/v1/business-days?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/business-days-and-holidays-9ea17d93
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DGywesVnvM8nXJowvUoH3

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 business-days-and-holidays-9ea17d93
```

Example prompt: Can you add 3 business days to December 23 2026 using the US-NY calendar and tell me what date the payment is due?

## When to prefer this

Choose this endpoint when you need authoritative, multi-jurisdiction business day calculations covering 250 countries, regional subdivisions (e.g. US-NY, GB-ENG), and 31 stock exchanges with coverage through 2030. Ideal for financial settlement (T+N), SLA tracking, and due date computation where a signed audit receipt is required. Prefer over generic date libraries when jurisdiction-specific public holiday awareness and verifiable receipts are mandatory.

## Known failure modes

- Invalid date format (not YYYY-MM-DD) returns a validation error
- Unsupported calendar code returns an error (only 250 countries, 630 subdivisions, 31 exchanges supported)
- Year out of supported range (outside 2025–2030) for op=list returns an error
- Missing required 'op' parameter defaults to 'check'; missing 'end' for op=between returns an error
- days value out of range (|days|>1000) for op=add returns a validation error
- Payment failure (insufficient USDC balance) results in 402 response with no data

## How this service works

Business days and public holidays: check if a date is a business day, add or subtract N business days, count business days between dates, or list holidays, for 250 countries, 630 subdivisions (e.g. US-NY, GB-ENG) and 31 stock exchanges, 2025-2030. Use for payment due dates, T+N settlement, delivery estimates and SLAs. Data: python-holidays (MIT). Signed receipt.

## Output

A JSON object with the operation result (e.g. is_business_day boolean, computed result date, business day count, or list of holidays), along with metadata including the calendar used, weekend days, holidays skipped, and coverage years. An Ed25519-signed receipt with price, transaction hash, and request/response hashes is also returned for auditability.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "op": {
       "enum": [
        "check",
        "add",
        "between",
        "list"
       ],
       "type": "string",
       "description": "Operation; default check"
      },
      "end": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "description": "End date for op=between"
      },
      "date": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "description": "YYYY-MM-DD; default today"
      },
      "days": {
       "type": "string",
       "pattern": "^-?\\d{1,4}$",
       "description": "Business days to add (op=add), integer, |days|<=1000"
      },
      "year": {
       "type": "string",
       "pattern": "^20(2[5-9]|30)$",
       "description": "Year for op=list, 2025-2030"
      },
      "calendar": {
       "type": "string",
       "description": "ISO country (US), country-subdivision (US-NY) or exchange (FIN-XNYS); default US"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "data",
      "receipt"
     ],
     "properties": {
      "data": {
       "type": "object",
       "$schema": "https://json-schema.org/draft/2020-12/schema",
       "properties": {
        "op": {
         "type": "string"
        },
        "days": {
         "type": "integer"
        },
        "start": {
         "type": "string"
        },
        "result": {
         "type": "string"
        },
        "source": {
         "type": "string"
        },
        "calendar": {
         "type": "string"
        },
        "coverage": {
         "type": "array",
         "items": {
          "type": "string"
         }
        },
        "provenance": {
         "type": "object",
         "description": "Additive evidence 
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "op": "add",
   "days": 3,
   "start": "2026-12-23",
   "result": "2026-12-29",
   "source": "python-holidays (MIT) public/financial holiday data; observed-day rules as implemented ...",
   "calendar": "US-NY",
   "coverage": [
    "2025-01-01"
   ],
   "weekend_days": [
    "Sun"
   ],
   "holidays_skipped": [
    {
     "date": "2026-12-25",
     "holiday": "Christmas Day"
    }
   ]
  },
  "receipt": {
   "v": 1,
   "ts": "2026-10-22T09:00:00Z",
   "sig": "hex",
   "price": {
    "asset": "USDC",
    "amount": "1000",
    "network": "eip155:84532"
   },
   "log_seq": 1,
   "tx_hash": "0x..",
   "endpoint_id": "business-days-v1",
   "request_hash": "hex",
   "response_hash": "hex"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/business-days-and-holidays-9ea17d93/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.stablecoingateways.com](https://www.zero.xyz/host/api.stablecoingateways.com/llms.txt)
