# Availability



Check rental dates and time slots before a guest starts booking.



## Get rental availability

`GET /v1/public/rental-availability`

A shop website reads daily rental availability using its published host or site key; invalid date ranges return 422 and unavailable shops return 404.

### Parameters

- `from` (string · date): First local day, default today
- `to` (string · date): Last local day, default 29 days after from; at most 62 days in all
- `X-Outdoor-Grid-Site-Key` (string): Site key for a shop website server. Optional when the published shop host identifies the shop.

### Body parameters

None.

### Returns

A JSON response with from, products, to.

### Errors

- 404: The shop has no published booking page or online booking is closed.
- 422: A field or parameter failed validation.

### Request

```bash
API_BASE="https://api.outdoorgrid.ai"
curl -X GET "$API_BASE/v1/public/rental-availability" \
  -H "X-Outdoor-Grid-Site-Key: $SITE_KEY"
```

```javascript
const url = "https://api.outdoorgrid.ai" +
  "/v1/public/rental-availability";
const response = await fetch(url, {
  method: "GET",
  headers: {
    "X-Outdoor-Grid-Site-Key": process.env.SITE_KEY,
  },
});
const data = await response.json();
```

```python
import os
import requests

url = (
    "https://api.outdoorgrid.ai"
    "/v1/public/rental-availability"
)
response = requests.get(
    url,
    headers={
        "X-Outdoor-Grid-Site-Key": os.environ["SITE_KEY"],
    },
    timeout=10,
)
response.raise_for_status()
print(response.json())
```

### Response

```json
{
  "from": "2026-07-18",
  "products": [
    {
      "closed_days": [
        "2026-07-18"
      ],
      "id": "79f21745-76f2-47f2-84f2-75f210f972f2",
      "name": {
        "de": "Trailbike Verleih",
        "en": "Trail bike rental",
        "fr": "Location de vélo trail",
        "it": "Bici da trail"
      },
      "options": [
        {
          "days": [
            {
              "day": null,
              "free": null
            }
          ],
          "id": "98ef4278-9bef-4aef-8def-9cef48c49fef",
          "size_label": "M"
        }
      ]
    }
  ],
  "to": "2026-07-18"
}
```

## Get rental slots

`GET /v1/public/rental-slots`

A shop website reads whole day and timed rental slots using its published host or site key; incomplete times return 422 and unavailable shops return 404.

### Parameters

- `day` (string · date, required): The local day
- `starts` (string): A chosen time: local "HH:MM" start, with ends
- `ends` (string): A chosen time: local "HH:MM" end, with starts
- `X-Outdoor-Grid-Site-Key` (string): Site key for a shop website server. Optional when the published shop host identifies the shop.

### Body parameters

None.

### Returns

A JSON response with custom, day, products.

### Errors

- 404: The shop has no published booking page or online booking is closed.
- 422: A field or parameter failed validation.

### Request

```bash
API_BASE="https://api.outdoorgrid.ai"
curl -X GET "$API_BASE/v1/public/rental-slots?day=Trail%20bike%20rental" \
  -H "X-Outdoor-Grid-Site-Key: $SITE_KEY"
```

```javascript
const url = "https://api.outdoorgrid.ai" +
  "/v1/public/rental-slots?day=Trail%20bike%20rental";
const response = await fetch(url, {
  method: "GET",
  headers: {
    "X-Outdoor-Grid-Site-Key": process.env.SITE_KEY,
  },
});
const data = await response.json();
```

```python
import os
import requests

url = (
    "https://api.outdoorgrid.ai"
    "/v1/public/rental-slots?day=Trail%20bike%20rental"
)
response = requests.get(
    url,
    headers={
        "X-Outdoor-Grid-Site-Key": os.environ["SITE_KEY"],
    },
    timeout=10,
)
response.raise_for_status()
print(response.json())
```

### Response

```json
{
  "custom": {
    "ends": "Trail bike rental",
    "starts": "Trail bike rental"
  },
  "day": "2026-07-18",
  "products": [
    {
      "closed": true,
      "id": "79f21745-76f2-47f2-84f2-75f210f972f2",
      "name": {
        "de": "Trailbike Verleih",
        "en": "Trail bike rental",
        "fr": "Location de vélo trail",
        "it": "Bici da trail"
      },
      "options": [
        {
          "afternoon": {
            "level": "plenty"
          },
          "custom": {
            "level": "plenty"
          },
          "day": {
            "level": "plenty"
          },
          "id": "98ef4278-9bef-4aef-8def-9cef48c49fef",
          "morning": {
            "level": "plenty"
          },
          "size_label": "M"
        }
      ],
      "periods": {
        "half_day": {
          "from_minor": 4500
        },
        "hourly": {
          "from_minor": 4500
        }
      }
    }
  ],
  "rental_day": {
    "closes": "18:00",
    "opens": "09:00"
  },
  "slots": {
    "afternoon": {
      "ends": "Trail bike rental",
      "starts": "Trail bike rental"
    },
    "morning": {
      "ends": "Trail bike rental",
      "starts": "Trail bike rental"
    }
  }
}
```

## The Availability object



- `asks` (object[]): What a guest booking it answers; answers name the ask's item_type_id
  - `builtin` (boolean, required): True: the answer goes to the rider's own height, weight, shoe or level
  - `help` (object): The line under the question
    - `de` (string, required): 
    - `en` (string, required): 
    - `fr` (string, required): 
    - `it` (string, required): 
  - `item_type_id` (string · uuid, required): The category that asks it: an answer names it back
  - `key` (string, required): A built-in (height_cm, weight_kg, shoe_eu, level) or the shop's own key
  - `kind` (string): Built-ins: number, or choice for level Values: `text`, `number`, `choice`, `multi_choice`, `boolean`, `date`.
  - `label` (object, required): Translated words in English, Italian, German and French, with fallback to another available language.
    - `de` (string, required): 
    - `en` (string, required): 
    - `fr` (string, required): 
    - `it` (string, required): 
  - `maximum` (number): 
  - `minimum` (number): 
  - `options` (object[]): Choice kinds only
    - `hint` (object): Translated words in English, Italian, German and French, with fallback to another available language.
      - `de` (string, required): 
      - `en` (string, required): 
      - `fr` (string, required): 
      - `it` (string, required): 
    - `key` (string, required): 
    - `label` (object, required): Translated words in English, Italian, German and French, with fallback to another available language.
      - `de` (string, required): 
      - `en` (string, required): 
      - `fr` (string, required): 
      - `it` (string, required): 
  - `per` (string): rider: each person on a line of this category; booking: once. Built-ins are rider Values: `rider`, `booking`.
  - `required` (boolean): 
  - `unit` (string): Number kinds: cm, kg, EU or the shop's own unit
- `blurb` (object): The longer words of the product
  - `de` (string, required): 
  - `en` (string, required): 
  - `fr` (string, required): 
  - `it` (string, required): 
- `charts` (object[]): One per part with a size chart
  - `item_type_id` (string · uuid, required): Identifier of the product part this size chart describes.
  - `measure` (string, required): What the ranges measure; null when the chart has no ranges Values: `height_cm`, `weight_kg`, `shoe_eu`, `mondopoint`, `age_years`, `head_cm`.
  - `sizes` (object[], required): Smallest first
    - `fits` (string): Who the size fits, in the chart's words; null when it has none
    - `label` (string, required): Size label displayed to the guest for this fit range.
    - `max` (number, required): Not included; null: open above
    - `min` (number, required): Included; null: open below
- `closed_days` (string · date[], required): Days a closure of the product's place covers
- `facts` (object[]): The guest visible fields of its item types with its values, in part order then field order, at most 24
  - `item_type_id` (string · uuid, required): Identifier of the product part that owns this fact.
  - `key` (string, required): The field's key in its item type
  - `kind` (string, required): Value type: text, number, choice, multi_choice, boolean or date. Values: `text`, `number`, `choice`, `multi_choice`, `boolean`, `date`.
  - `label` (object, required): The field's label
    - `de` (string, required): 
    - `en` (string, required): 
    - `fr` (string, required): 
    - `it` (string, required): 
  - `text` (object, required): The value in plain words: '800 Wh', '1,5 kg', the option's label, Yes or No
    - `de` (string, required): 
    - `en` (string, required): 
    - `fr` (string, required): 
    - `it` (string, required): 
  - `unit` (string): Number fields: the unit (Wh, mm, kg); else null
  - `value` (any, required): As stored: a number, an option key, a list of option keys, true or false, text, YYYY-MM-DD
- `fit` (object): The product's build, geometry and fit ranges, when the catalog has them; null when no fit data is available.
  - `build` (object[], required): 
    - `key` (string, required): 
    - `label` (object, required): Translated words in English, Italian, German and French, with fallback to another available language.
      - `de` (string, required): 
      - `en` (string, required): 
      - `fr` (string, required): 
      - `it` (string, required): 
    - `more` (string, required): 
    - `value` (string, required): 
  - `geometry` (object[], required): 
    - `key` (string, required): 
    - `label` (object, required): Translated words in English, Italian, German and French, with fallback to another available language.
      - `de` (string, required): 
      - `en` (string, required): 
      - `fr` (string, required): 
      - `it` (string, required): 
    - `unit` (string, required): 
    - `values` (object, required): 
  - `ranges` (object[], required): 
    - `best_max` (integer, required): 
    - `best_min` (integer, required): 
    - `fits_max` (integer, required): 
    - `fits_min` (integer, required): 
    - `option_id` (string · uuid, required): 
    - `size` (string, required): 
- `gear` (string): What the product rents: bike or ski (its kind, else its words), other for anything else; the guest flow names its tabs and offers extras by it. Null from a read that does not say Values: `ski`, `bike`, `other`.
- `id` (string · uuid, required): Identifier of the rental product whose availability is shown.
- `image` (object): The product's photo for the Bikes step (the one the fleet shows as its model's): its cover, else its first; null when it has none or the link cannot be made
  - `alt` (object): Alternative text for this photo, by language.
    - `de` (string, required): 
    - `en` (string, required): 
    - `fr` (string, required): 
    - `it` (string, required): 
  - `height` (integer): Image height in pixels.
  - `url` (string, required): Link to the guest-facing image rendition; the link remains usable for several days.
  - `width` (integer): Image width in pixels.
- `line` (object): The short line under the name: what is included
  - `de` (string, required): 
  - `en` (string, required): 
  - `fr` (string, required): 
  - `it` (string, required): 
- `model` (object): 'Allround, 2026 model': the model the product rents
  - `de` (string, required): 
  - `en` (string, required): 
  - `fr` (string, required): 
  - `it` (string, required): 
- `name` (object, required): Name shown to guests.
  - `de` (string, required): 
  - `en` (string, required): 
  - `fr` (string, required): 
  - `it` (string, required): 
- `notice` (object): The notice rules its quote uses (its own booking rules, else the shop's), in its place's time zone; days before first_day are too_soon. Null from a read that does not say
  - `cutoff_today` (string): HH:MM: a rental starting today can be booked until then; null when today is already too soon or closed
  - `first_day` (string · date, required): The first local day a whole-day rental can start (today or later)
  - `max_booking_lead_days` (integer): The latest start is today plus this many days; null when the shop sets no limit
  - `max_rental_days` (integer): The longest rental in days; null when the shop sets none
  - `min_notice_minutes` (integer, required): The least notice before a start
  - `timezone` (string, required): The shop's time zone
  - `today` (string · date, required): The shop's local date now
- `options` (object[], required): Bookable sizes or options.
  - `days` (object[], required): Availability for each requested local day, expressed in words.
    - `afternoon` (object): Afternoon availability in words; null when the product does not offer afternoons.
      - `left` (integer): Only when level is few
      - `level` (string, required): Availability: plenty means at least five free, few means one to four, and full means none. Values: `plenty`, `few`, `full`.
    - `day` (string · date, required): Local calendar day.
    - `free` (object, required): Free for a one day rental of that day, in words
      - `left` (integer): Only when level is few
      - `level` (string, required): Availability: plenty means at least five free, few means one to four, and full means none. Values: `plenty`, `few`, `full`.
    - `hours` (object): Local pickup, return and half-day times at the product's place, when available.
      - `afternoon` (object): That day's afternoon; null when the day has none
        - `ends` (string, required): Local end time.
        - `starts` (string, required): Local start time.
      - `closes` (string, required): and brought back by this
      - `morning` (object): That day's morning; null when the day has none
        - `ends` (string, required): Local end time.
        - `starts` (string, required): Local start time.
      - `opens` (string, required): Rentals that day are picked up from this
    - `morning` (object): Morning availability in words; null when the product does not offer mornings.
      - `left` (integer): Only when level is few
      - `level` (string, required): Availability: plenty means at least five free, few means one to four, and full means none. Values: `plenty`, `few`, `full`.
    - `periods` (string[]): Parts of this day the product offers: full, morning or afternoon.
  - `id` (string · uuid, required): The option_id a rental line books
  - `max_cm` (number): The highest rider height it fits, in cm; null: open or unknown
  - `min_cm` (number): The lowest rider height it fits, in cm: from rider_hint, else the size of the same label on a height chart of the product's parts; null: open or unknown
  - `rider_hint` (string): Who the size fits, in the shop's words ('180 to 193 cm')
  - `size_label` (string, required): Guest-visible size name.
- `parts` (object[]): Product parts and their guest-visible labels.
  - `asks` (object[]): The category's booking questions (its effective guest_fields)
    - `builtin` (boolean, required): True: the answer goes to the rider's own height, weight, shoe or level
    - `help` (object): The line under the question
      - `de` (string, required): 
      - `en` (string, required): 
      - `fr` (string, required): 
      - `it` (string, required): 
    - `item_type_id` (string · uuid, required): The category that asks it: an answer names it back
    - `key` (string, required): A built-in (height_cm, weight_kg, shoe_eu, level) or the shop's own key
    - `kind` (string): Built-ins: number, or choice for level Values: `text`, `number`, `choice`, `multi_choice`, `boolean`, `date`.
    - `label` (object, required): Translated words in English, Italian, German and French, with fallback to another available language.
      - `de` (string, required): 
      - `en` (string, required): 
      - `fr` (string, required): 
      - `it` (string, required): 
    - `maximum` (number): 
    - `minimum` (number): 
    - `options` (object[]): Choice kinds only
      - `hint` (object): Translated words in English, Italian, German and French, with fallback to another available language.
        - `de` (string, required): 
        - `en` (string, required): 
        - `fr` (string, required): 
        - `it` (string, required): 
      - `key` (string, required): 
      - `label` (object, required): Translated words in English, Italian, German and French, with fallback to another available language.
        - `de` (string, required): 
        - `en` (string, required): 
        - `fr` (string, required): 
        - `it` (string, required): 
    - `per` (string): rider: each person on a line of this category; booking: once. Built-ins are rider Values: `rider`, `booking`.
    - `required` (boolean): 
    - `unit` (string): Number kinds: cm, kg, EU or the shop's own unit
  - `glyph` (string, required): A key of the frontend glyph catalogue; null when the category has none
  - `item_type_id` (string · uuid, required): Identifier of this type of product part.
  - `label` (object, required): Guest-visible name of the product part, by language.
    - `de` (string, required): 
    - `en` (string, required): 
    - `fr` (string, required): 
    - `it` (string, required): 
  - `pick_size` (boolean): The guest picks a size of this part: the category lets guests pick and has a chart
- `pick_size` (boolean): The guest picks the size of at least one part



```json

{
  "closed_days": [
    "2026-07-18"
  ],
  "id": "e99e2500-ec9e-4b9e-8e9e-ed9e2b4cf09e",
  "name": {
    "de": "Trailbike Verleih",
    "en": "Trail bike rental",
    "fr": "Location de vélo trail",
    "it": "Bici da trail"
  },
  "options": [
    {
      "days": [
        {
          "day": "2026-07-18",
          "free": {
            "level": "plenty"
          }
        }
      ],
      "id": "77d556ab-78d5-49d5-8ad5-7bd55cf77cd5",
      "size_label": "M"
    }
  ]
}

```