---
updatedAt: 2026-04-23T11:54:50.000Z
---

Fetch the complete documentation index at: https://developers.pismo.io/pismo-docs/llms.txt. Use this file to discover all available pages before exploring further.

# Get non-business days

Get non-business days (weekends and holidays) for a specific holiday calendar within a date range. Non-business days include weekends based on the holiday calendar's working days configuration and holidays associated with the group.


# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Platform setup - Holidays",
    "description": "Manage business and non-business days by organization",
    "version": "v1.0",
    "contact": {
      "name": "Pismo Support",
      "url": "https://developers.pismo.io/support/"
    },
    "license": {
      "name": "Copyright Pismo"
    }
  },
  "servers": [
    {
      "url": "https://sandbox.pismolabs.io/holidays-core",
      "description": "API sandbox server for testing"
    }
  ],
  "security": [
    {
      "S2SAuthentication": []
    }
  ],
  "tags": [
    {
      "name": "Holiday calendar data"
    }
  ],
  "components": {
    "parameters": {
      "BeginDateQuery": {
        "name": "beginDate",
        "in": "query",
        "description": "Get results on or after this date. \n\nThis field indicates what part of the year to start searching for holidays, not when the holiday was created at Pismo.\n\nFormat = yyyy-mm-dd. Must be less than or equal to `endDate`.\n",
        "schema": {
          "type": "string",
          "example": "2025-12-24"
        }
      },
      "EndDateQuery": {
        "name": "endDate",
        "in": "query",
        "description": "Get holidays on or before this date. \n\nThis field indicates what part of the year to end searching for holidays, not when the holiday was created at Pismo.\n\nFormat: yyyy-mm-dd. Must be greater than or equal to `beginDate`.\"\n",
        "schema": {
          "type": "string",
          "example": "2025-11-02"
        }
      },
      "HolidayCalendarIdPath2": {
        "name": "holiday_calendar_id",
        "in": "path",
        "description": "Holiday calendar ID",
        "required": true,
        "schema": {
          "type": "string",
          "example": "8675309"
        }
      }
    },
    "schemas": {
      "handler.HTTPError": {
        "description": "Error",
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code"
          },
          "message": {
            "type": "string",
            "description": "Error message"
          }
        }
      },
      "IsHoliday": {
        "type": "boolean",
        "description": "Is this a holiday?",
        "example": true
      },
      "IsWeekend": {
        "type": "boolean",
        "description": "Is this a weekend day?",
        "example": true
      },
      "Metadata": {
        "type": "object",
        "description": "A valid JSON schema as specified in https://json-schema.org/specification.html. Used to register rules used to authorize the transaction.\n\n**Note**: This field must not be used to send Personally Identifiable Information (PII), Payment Card Industry (PCI) data, or any sensitive/regulated information. Metadata fields are intended for operational, non-sensitive data only. For sensitive data, use the specific parameters designed for that purpose. For more information, refer to [Get started with Pismo APIs](https://developers.pismo.io/pismo-docs/reference/get-started-with-pismo-apis#metadata).\n"
      },
      "presenter.HolidayCalendarNonBusinessDaysResponse": {
        "type": "object",
        "properties": {
          "dates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/presenter.NonBusinessDay"
            }
          },
          "holiday_calendar_metadata": {
            "$ref": "#/components/schemas/Metadata"
          }
        }
      },
      "presenter.NonBusinessDay": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date",
            "description": "Non-business day date. Format = yyyy-mm-dd.",
            "example": "2023-01-20"
          },
          "is_holiday": {
            "$ref": "#/components/schemas/IsHoliday"
          },
          "is_weekend": {
            "$ref": "#/components/schemas/IsWeekend"
          },
          "holiday_metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            },
            "description": "A valid JSON schema as specified in https://json-schema.org/specification.html. Used to register rules used for transaction authorization.\n\n**Note**: This field must not be used to send Personally Identifiable Information (PII), Payment Card Industry (PCI) data, or any sensitive/regulated information. Metadata fields are intended for operational, non-sensitive data only. For sensitive data, use the specific parameters designed for that purpose. For more information, refer to [Get started with Pismo APIs](https://developers.pismo.io/pismo-docs/reference/get-started-with-pismo-apis#metadata).\n"
          }
        }
      }
    },
    "responses": {
      "400BadRequest": {
        "description": "Bad request",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/handler.HTTPError"
            },
            "examples": {
              "missing-x-tenant-header": {
                "$ref": "#/components/examples/BadRequestResponseMissingHeader"
              },
              "invalid-id-params": {
                "$ref": "#/components/examples/BadRequestResponseInvalidParams"
              }
            }
          }
        }
      },
      "404NotFound": {
        "description": "Not found",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/handler.HTTPError"
            },
            "examples": {
              "response-missing-tenant": {
                "$ref": "#/components/examples/NotFoundResponse"
              }
            }
          }
        }
      },
      "500InternalServerError": {
        "description": "Internal server error",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/handler.HTTPError"
            },
            "examples": {
              "generic-internal-error": {
                "$ref": "#/components/examples/InternalServerErrorResponse"
              }
            }
          }
        }
      }
    },
    "securitySchemes": {
      "S2SAuthentication": {
        "type": "http",
        "scheme": "bearer",
        "description": "All requests must pass an [account-specific token](https://developers.pismo.io/pismo-docs/docs/account-specific-access-tokens).\n"
      }
    },
    "examples": {
      "InternalServerErrorResponse": {
        "value": {
          "code": "EHLD0001",
          "message": "Something went wrong - please try again"
        }
      },
      "BadRequestResponseMissingHeader": {
        "value": {
          "code": "EHLD0016",
          "message": "Missing x-tenant header"
        }
      },
      "BadRequestResponseInvalidParams": {
        "value": {
          "code": "400",
          "message": "Invalid parameter value: {parameter name}"
        }
      },
      "NotFoundResponse": {
        "value": {
          "code": "404",
          "message": "{target name} not found"
        }
      }
    }
  },
  "paths": {
    "/v1/holiday-calendar/{holiday_calendar_id}/non-business-days": {
      "get": {
        "summary": "Get non-business days",
        "description": "Get non-business days (weekends and holidays) for a specific holiday calendar within a date range. Non-business days include weekends based on the holiday calendar's working days configuration and holidays associated with the group.\n",
        "operationId": "get-non-business-days",
        "tags": [
          "Holiday calendar data"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/HolidayCalendarIdPath2"
          },
          {
            "$ref": "#/components/parameters/BeginDateQuery"
          },
          {
            "$ref": "#/components/parameters/EndDateQuery"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/presenter.HolidayCalendarNonBusinessDaysResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/404NotFound"
          },
          "500": {
            "$ref": "#/components/responses/500InternalServerError"
          }
        }
      }
    }
  }
}
```