Payment settlement calendar
GET /api/settlement-calendarExpected settlement date for a payment sent on a given date over ACH, Fedwire, SEPA Credit Transfer, SEPA Instant or CHAPS, from each rail's published operating days and the bank holidays that close it, with the rule and its official source in the answer. ?rail=ach&date=2026-12-24. Send GET /api/settlement-calendar with the required fields rail and date and pay $0.002 per call over x402 or MPP (there is no free tier). It returns a JSON object with rail, name, sendDate, operatingDay, settlementDate and 3 more.
Holiday data by Nager.Date.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
rail | string (one of: ach, fedwire, sepa-sct, sepa-instant, chaps) | yes | payment rail |
date | string | yes | send date, YYYY-MM-DD (the rail's local calendar) |
Example request
curl -i "https://agent402.tools/api/settlement-calendar?rail=ach&date=2026-12-24"
Without payment this returns HTTP 402 Payment Required with the exact price for settlement-calendar; any x402 v2 or MPP client pays it and retries.
Watch a call get paid
GET /api/settlement-calendar$0.002 USDCPAYMENT-SIGNATUREon 14 chains200 OKAgent402-ReceiptEd25519Example response
{
"rail": "ach",
"name": "ACH (FedACH)",
"sendDate": "2026-12-24",
"operatingDay": true,
"settlementDate": "2026-12-24",
"nextDaySettlementDate": "2026-12-28",
"closedDays": [
{
"date": "2026-12-25",
"reason": "holiday",
"name": "Christmas Day"
},
{
"date": "2026-12-26",
"reason": "weekend"
},
{
"date": "2026-12-27",
"reason": "weekend"
}
],
"sources": [
"https://www.frbservices.org/about/holiday-schedules",
"https://www.nacha.org/"
]
}| Field | Type | Always present | In the example |
|---|---|---|---|
rail | string | yes | ach |
name | string | yes | ACH (FedACH) |
sendDate | string | yes | 2026-12-24 |
operatingDay | boolean | yes | true |
settlementDate | string | yes | 2026-12-24 |
nextDaySettlementDate | string | yes | 2026-12-28 |
closedDays | array of objects | yes | 3 items in the example |
sources | array of string | yes | 2 items in the example |
From an MCP client
catalog.call {
"slug": "settlement-calendar",
"params": {
"rail": "ach",
"date": "2026-12-24"
}
}The hosted connector at https://agent402.tools/mcp needs a payment for settlement-calendar; the stdio package pays it from a wallet or from an AGENT402_CREDITS_KEY issued earlier. Local install: npx -y agent402-mcp@0.14.0.
Errors and behavior
railanddateare required. An input the tool rejects returns an HTTP 4xx whose body carrieserror,tool,expected,requiredandexample, so the caller can correct it.- A paid call that ends in any status of 400 or above is not charged over x402, MPP or a prepaid credits key: settlement runs after the tool and only on a successful response. The exception is a Tempo push credential, a transfer the buyer sent before the call: it settles before the tool runs, so if the tool then fails the payment is recorded as a refund owed to the paying wallet.
- Wallet-only: this tool reaches the network or stored state, so it has no proof-of-work tier. A prepaid card-credits key issued earlier (
Authorization: Bearer a402_...) also pays it. - A
POSTwith a JSON body to /api/settlement-calendar is served as this GET, with the body as the input. - An
Idempotency-Keyheader makes a retried paid call replay the first 200 instead of charging again (an answer larger than 1 MB is not replayed).
Paid call (JavaScript agent)
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client();
client.setSpendControls?.({ maxAmountPerPayment: "$0.002" }); // refuse any quote above this tool's price
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);
const res = await payFetch("https://agent402.tools/api/settlement-calendar?rail=ach&date=2026-12-24");Related tools
Business days by country
Holiday-aware business days for a country or region: check whether a date is a business day, add or subtract N business.
Cross-border business-day planner
First dates on or after a start date that are business days in every listed country or region at once (up to 6, e.g.
Business days
Count business days (Mon–Fri) between two dates, inclusive of the start, exclusive of the end.
Exchange trading calendar
Is an exchange open at a given moment, and when does it next open and close: NYSE, London Stock Exchange, Xetra, JPX.
Date arithmetic
Add (or subtract) a duration to a date. duration like "2d", "-3h", "1w 2d", "90m".
Age calculator
Compute a precise age (years, months, days) from a birth date to today (or a given date), plus total days.