{
  "x402Version": 2,
  "id": 36628,
  "slug": "36628",
  "resource": "https://japan-business-day-api.matchan962.workers.dev/v1/payment-due-date",
  "description": "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).",
  "type": "http",
  "serviceName": "Japan Business Day API",
  "resourceType": "Payments",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x1d813e4e4C7B0ae7900a6d2b6bcA560941102859",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0x1d813e4e4C7B0ae7900a6d2b6bcA560941102859",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "adjust": "previous",
            "calendar": "bank",
            "closing": "end",
            "date": "2026-09-15",
            "monthOffset": 1,
            "payDay": "end"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "adjusted": true,
            "closingDate": "2026-09-30",
            "dueDate": "2026-10-30",
            "unadjustedDueDate": "2026-10-31"
          },
          "type": "json"
        }
      },
      "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"
      }
    }
  },
  "tags": [
    "japan",
    "business-day",
    "holiday",
    "fintech",
    "logistics",
    "bazaar"
  ],
  "sourceHost": "japan-business-day-api.matchan962.workers.dev",
  "lastUpdated": "2026-10-08T06:14:25.934Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-08T06:14:25.827Z"
  },
  "metadata": {
    "serviceName": "Japan Business Day API",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "adjust": "previous",
              "calendar": "bank",
              "closing": "end",
              "date": "2026-09-15",
              "monthOffset": 1,
              "payDay": "end"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "adjusted": true,
              "closingDate": "2026-09-30",
              "dueDate": "2026-10-30",
              "unadjustedDueDate": "2026-10-31"
            },
            "type": "json"
          }
        },
        "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"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "japan-business-day-api.matchan962.workers.dev",
    "manifest_name": "japan-business-day-api.matchan962.workers.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}