Logo PopinaPopina API

Get availability days for a given date range

By sending a date range, the POS can fetch all the days available within that range in UTC timezone.

GET/v1/availability/days
authorization<token>

To get an API key, please contact us. We'll be happy to help you.

In: header

Query Parameters

fromstring
Formatdate-time
tostring
Formatdate-time
locationId?string
Formatuuid

Response Body

application/json

curl -X GET "http://localhost:4008/v1/availability/days?from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z"
{
  "2025-01-14": [
    {
      "name": "Lunch",
      "id": "c4f7dbe3-dcde-44bc-a3a9-d57ea7423afd",
      "startsAt": "2025-01-14T12:00:00Z",
      "endsAt": "2025-01-14T13:00:00Z"
    }
  ],
  "2025-01-15": [
    {
      "name": "Lunch",
      "id": "c4f7dbe3-dcde-44bc-a3a9-d57ea7423afd",
      "startsAt": "2025-01-15T12:00:00Z",
      "endsAt": "2025-01-15T13:00:00Z"
    }
  ],
  "2025-01-16": [
    {
      "name": "Lunch",
      "id": "c4f7dbe3-dcde-44bc-a3a9-d57ea7423afd",
      "startsAt": "2025-01-16T12:00:00Z",
      "endsAt": "2025-01-16T13:00:00Z"
    }
  ],
  "2025-01-17": [
    {
      "name": "Lunch",
      "id": "c4f7dbe3-dcde-44bc-a3a9-d57ea7423afd",
      "startsAt": "2025-01-17T12:00:00Z",
      "endsAt": "2025-01-17T13:00:00Z"
    },
    {
      "name": "Evening",
      "id": "d8409840-1ec3-4b0d-9026-3d7c60e01398",
      "startsAt": "2025-01-17T18:00:00Z",
      "endsAt": "2025-01-17T22:00:00Z"
    }
  ],
  "2025-01-18": [],
  "2025-01-19": []
}