{
  "x402Version": 2,
  "id": 40817,
  "slug": "40817",
  "resource": "https://euroref.dev/v1/answers/working-days",
  "description": "Working days / next working day in a date range: weekends + gazetted public holidays",
  "type": "http",
  "resourceType": "Market Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x1F0409ccD20A2fb497d4DeCeF4E17e9d0688FeA6",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "20000",
      "amountUsd": 0.02,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "caveats": {
            "type": "array"
          },
          "disclaimer": {
            "type": "string"
          },
          "next_working_day": {
            "format": "date",
            "type": "string"
          },
          "provenance": {
            "description": "The statutory instrument the answer rests on: effective_from, last_confirmed, official source URL, notes",
            "type": "object"
          },
          "public_holidays": {
            "description": "Statutory holidays falling on weekdays in the range",
            "type": "array"
          },
          "receipt": {
            "description": "Only when receipt=true on a paid 200. kind answer_receipt. Verify at /certified/public-key.",
            "type": "object"
          },
          "status": {
            "type": "string"
          },
          "subdivision": {
            "description": "The sub-national calendar applied (code, name, source, the region's added days), or null when the national calendar was used",
            "type": [
              "object",
              "null"
            ]
          },
          "total_days": {
            "type": "integer"
          },
          "weekend": {
            "description": "This country's weekly rest days (Egypt: Fri–Sat)",
            "type": "array"
          },
          "weekend_days": {
            "type": "integer"
          },
          "working_days": {
            "type": "integer"
          }
        },
        "required": [
          "status",
          "total_days",
          "working_days",
          "next_working_day"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "country": "at",
            "from": "2026-08-01",
            "to": "2026-08-31"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "country": {
                    "description": "ISO country code",
                    "enum": [
                      "at",
                      "be",
                      "bg",
                      "ch",
                      "cy",
                      "cz",
                      "de",
                      "dk",
                      "ee",
                      "es",
                      "eu",
                      "fi",
                      "fr",
                      "gb",
                      "gr",
                      "hr",
                      "hu",
                      "ie",
                      "is",
                      "it",
                      "lt",
                      "lu",
                      "lv",
                      "mt",
                      "nl",
                      "no",
                      "pl",
                      "pt",
                      "ro",
                      "rs",
                      "se",
                      "si",
                      "sk",
                      "tr",
                      "ua"
                    ],
                    "type": "string"
                  },
                  "from": {
                    "description": "Range start, inclusive",
                    "format": "date",
                    "type": "string"
                  },
                  "receipt": {
                    "description": "Optional. true adds an Ed25519 answer receipt on a paid 200, incluedd in this price. Not a certified extract.",
                    "type": "boolean"
                  },
                  "subdivision": {
                    "description": "Optional. Apply a sub-national statutory holiday calendar (national + that region's days) instead of national-only. ISO 3166-2 code, e.g. 'DE-BY'. Countries that offer regions expose them as `subdivisions` on GET /:country/public-holidays. Unknown code is refused free with the list.",
                    "type": "string"
                  },
                  "to": {
                    "description": "Range end, inclusive (max 366 days)",
                    "format": "date",
                    "type": "string"
                  }
                },
                "required": [
                  "country",
                  "from",
                  "to"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "caveats": {
                    "type": "array"
                  },
                  "disclaimer": {
                    "type": "string"
                  },
                  "next_working_day": {
                    "format": "date",
                    "type": "string"
                  },
                  "provenance": {
                    "description": "The statutory instrument the answer rests on: effective_from, last_confirmed, official source URL, notes",
                    "type": "object"
                  },
                  "public_holidays": {
                    "description": "Statutory holidays falling on weekdays in the range",
                    "type": "array"
                  },
                  "receipt": {
                    "description": "Only when receipt=true on a paid 200. kind answer_receipt. Verify at /certified/public-key.",
                    "type": "object"
                  },
                  "status": {
                    "type": "string"
                  },
                  "subdivision": {
                    "description": "The sub-national calendar applied (code, name, source, the region's added days), or null when the national calendar was used",
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "total_days": {
                    "type": "integer"
                  },
                  "weekend": {
                    "description": "This country's weekly rest days (Egypt: Fri–Sat)",
                    "type": "array"
                  },
                  "weekend_days": {
                    "type": "integer"
                  },
                  "working_days": {
                    "type": "integer"
                  }
                },
                "required": [
                  "status",
                  "total_days",
                  "working_days",
                  "next_working_day"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "working-days",
    "public-holidays",
    "calendar",
    "europe",
    "bazaar"
  ],
  "sourceHost": "euroref.dev",
  "lastUpdated": "2026-10-08T11:11:56.975Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-08T11:11:55.88Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "country": "at",
              "from": "2026-08-01",
              "to": "2026-08-31"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "country": {
                      "description": "ISO country code",
                      "enum": [
                        "at",
                        "be",
                        "bg",
                        "ch",
                        "cy",
                        "cz",
                        "de",
                        "dk",
                        "ee",
                        "es",
                        "eu",
                        "fi",
                        "fr",
                        "gb",
                        "gr",
                        "hr",
                        "hu",
                        "ie",
                        "is",
                        "it",
                        "lt",
                        "lu",
                        "lv",
                        "mt",
                        "nl",
                        "no",
                        "pl",
                        "pt",
                        "ro",
                        "rs",
                        "se",
                        "si",
                        "sk",
                        "tr",
                        "ua"
                      ],
                      "type": "string"
                    },
                    "from": {
                      "description": "Range start, inclusive",
                      "format": "date",
                      "type": "string"
                    },
                    "receipt": {
                      "description": "Optional. true adds an Ed25519 answer receipt on a paid 200, incluedd in this price. Not a certified extract.",
                      "type": "boolean"
                    },
                    "subdivision": {
                      "description": "Optional. Apply a sub-national statutory holiday calendar (national + that region's days) instead of national-only. ISO 3166-2 code, e.g. 'DE-BY'. Countries that offer regions expose them as `subdivisions` on GET /:country/public-holidays. Unknown code is refused free with the list.",
                      "type": "string"
                    },
                    "to": {
                      "description": "Range end, inclusive (max 366 days)",
                      "format": "date",
                      "type": "string"
                    }
                  },
                  "required": [
                    "country",
                    "from",
                    "to"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "caveats": {
                      "type": "array"
                    },
                    "disclaimer": {
                      "type": "string"
                    },
                    "next_working_day": {
                      "format": "date",
                      "type": "string"
                    },
                    "provenance": {
                      "description": "The statutory instrument the answer rests on: effective_from, last_confirmed, official source URL, notes",
                      "type": "object"
                    },
                    "public_holidays": {
                      "description": "Statutory holidays falling on weekdays in the range",
                      "type": "array"
                    },
                    "receipt": {
                      "description": "Only when receipt=true on a paid 200. kind answer_receipt. Verify at /certified/public-key.",
                      "type": "object"
                    },
                    "status": {
                      "type": "string"
                    },
                    "subdivision": {
                      "description": "The sub-national calendar applied (code, name, source, the region's added days), or null when the national calendar was used",
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "total_days": {
                      "type": "integer"
                    },
                    "weekend": {
                      "description": "This country's weekly rest days (Egypt: Fri–Sat)",
                      "type": "array"
                    },
                    "weekend_days": {
                      "type": "integer"
                    },
                    "working_days": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "status",
                    "total_days",
                    "working_days",
                    "next_working_day"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "euroref.dev",
    "manifest_name": "euroref.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": {
      "caveats": [
        "value"
      ],
      "disclaimer": "string",
      "next_working_day": "string",
      "provenance": {},
      "public_holidays": [
        "value"
      ],
      "receipt": {},
      "status": "string",
      "subdivision": {},
      "total_days": 0,
      "weekend": [
        "value"
      ],
      "weekend_days": 0,
      "working_days": 0
    },
    "type": "string"
  }
}