Api Endpoint

Japan Business Day API

Japanese payment terms calculator (shimebi/shiharaibi): e.g. 'month-end close, paid end of next month', shifted to the previous/next business day when the due date is a weekend or Japanese holiday. Supports bank calendar (Dec 31 - Jan 3). 日本の請求書の締め日と支払期日を計算。

Open interactive test console

Offering

Provider
japan-business-day-api.matchan962.workers.dev
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Financial Analysis
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://japan-business-day-api.matchan962.workers.dev/v1/payment-due-date
MIME type
application/json
First seen
2026-10-16T01:50:38.788Z
Last seen
Tags
japan, business-day, holiday, fintech, logistics

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.01 USDC
Atomic price: 10000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.01 USDC
Atomic price: 10000 · Network: eip155:137 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "10000",
    "payTo": "0x1d813e4e4C7B0ae7900a6d2b6bcA560941102859"
  },
  {
    "scheme": "exact",
    "network": "eip155:137",
    "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
    "amount": "10000",
    "payTo": "0x1d813e4e4C7B0ae7900a6d2b6bcA560941102859"
  }
]

Observed health

Status
Healthy
Latest latency
419 ms
Average latency
535 ms
HTTP status
402
Last checked
Reachability
100% over 14 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "date": {
          "type": "string",
          "format": "date",
          "description": "Transaction or invoice date"
        },
        "closing": {
          "type": "string",
          "description": "Closing day of month: 1-31 or 'end'"
        },
        "monthOffset": {
          "type": "integer",
          "minimum": 0,
          "maximum": 3,
          "description": "Months after closing (1 = next month)"
        },
        "payDay": {
          "type": "string",
          "description": "Payment day of month: 1-31 or 'end'"
        },
        "adjust": {
          "type": "string",
          "enum": [
            "previous",
            "next",
            "none"
          ]
        },
        "calendar": {
          "type": "string",
          "enum": [
            "national",
            "bank"
          ],
          "description": "national = weekends + Japanese national holidays; bank = also Dec 31 - Jan 3 (bank holidays)"
        }
      },
      "required": [
        "date",
        "closing",
        "payDay"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "adjust": {
              "enum": [
                "previous",
                "next",
                "none"
              ],
              "type": "string"
            },
            "calendar": {
              "description": "national = weekends + Japanese national holidays; bank = also Dec 31 - Jan 3 (bank holidays)",
              "enum": [
                "national",
                "bank"
              ],
              "type": "string"
            },
            "closing": {
              "description": "Closing day of month: 1-31 or 'end'",
              "type": "string"
            },
            "date": {
              "description": "Transaction or invoice date",
              "format": "date",
              "type": "string"
            },
            "monthOffset": {
              "description": "Months after closing (1 = next month)",
              "maximum": 3,
              "minimum": 0,
              "type": "integer"
            },
            "payDay": {
              "description": "Payment day of month: 1-31 or 'end'",
              "type": "string"
            }
          },
          "required": [
            "date",
            "closing",
            "payDay"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}