Skip to content
API reference menu
API endpoint stable

Ask the shop for a booking

View as Markdown
POST/v1/public/booking-requests

A shop website sends a guest's booking request with its published host or site key; the shop and the guest get an email and nothing is booked. Works whether the shop books online or takes requests.

Parameters

Header

X-Outdoor-Grid-Site-Keystring

Site key for a shop website server. Optional when the published shop host identifies the shop.

Body parameters

bike_product_idsstring · uuid[]

Rental products the guest liked; others are dropped

emailstring · emailrequired
first_daystring · daterequired
languagestringrequired
enitdefr
last_daystring · daterequired

On or after first_day, at most 60 days after it

namestringrequired
notestring
phonestring

E.164, for example +41793106078

ridersintegerrequired
tourobject
Show child attributes
lengthstring
fullhalf
privateboolean
product_idstring · uuid

A tour product of the shop; another shop's or an unknown one is dropped

wantsstring[]required

At least one, each once

websitestring

Leave empty

Returns

A JSON response with ref.

Errors

404booking_unavailable: no shop on this host; online_booking_closed: the shop takes nothing online
413too_large: the body is over 16 KB
422invalid_request (context.field)
429too_many_requests: from this guest address (5 a minute, 20 an hour) for this email (5 an hour) or for the shop (60 an hour)
Request
API_BASE="https://api.outdoorgrid.ai"
curl -X POST "$API_BASE/v1/public/booking-requests" \
  -H "X-Outdoor-Grid-Site-Key: $SITE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "email": "guest@example.com",
  "first_day": "2026-07-18",
  "language": "en",
  "last_day": "2026-07-18",
  "name": "Trail bike rental",
  "riders": 2,
  "wants": [
    "rent"
  ]
}'
Response
{
  "ref": "Trail bike rental"
}
API endpoint stable

Get a booking view

View as Markdown
GET/v1/public/booking-view

A confirmation page reads booking details with X-Booking-View; a missing or invalid view token returns 404.

Parameters

Header

X-Booking-Viewstring

The view token from the confirmation link

X-Outdoor-Grid-Site-Keystring

Site key for a shop website server. Optional when the published shop host identifies the shop.

Returns

A JSON response with currency, days, first_day.

Errors

404The view token or booking was not found.
422A field or parameter failed validation.
Request
API_BASE="https://api.outdoorgrid.ai"
curl -X GET "$API_BASE/v1/public/booking-view" \
  -H "X-Booking-View: $BOOKING_VIEW"
Response
{
  "currency": "EUR",
  "days": 2,
  "first_day": "2026-07-18",
  "lines": [
    {
      "label": {
        "de": "Trailbike Verleih",
        "en": "Trail bike rental",
        "fr": "Location de vélo trail",
        "it": "Bici da trail"
      },
      "quantity": 2,
      "size": "M",
      "total_minor": 4500
    }
  ],
  "locale": "en",
  "money": {
    "due_minor": 4500,
    "paid_minor": 0,
    "status": "not_paid",
    "total_minor": 4500
  },
  "pickup_at": "2026-07-18T09:00:00Z",
  "reference": "OG-7K2P9",
  "return_by_at": "2026-07-18T09:00:00Z",
  "riders": [
    {
      "height_cm": 2,
      "level": "Trail bike rental",
      "line": 2,
      "name": "Trail bike rental",
      "weight_kg": 2
    }
  ],
  "shop": {
    "address": "Trail bike rental",
    "cancellation_text": {
      "de": "Trailbike Verleih",
      "en": "Trail bike rental",
      "fr": "Location de vélo trail",
      "it": "Bici da trail"
    },
    "email": "guest@example.com",
    "name": "Trail bike rental",
    "phone": "+CC 000 000 0000"
  },
  "stage": "booked"
}
API endpoint stable

Create a booking

View as Markdown
POST/v1/public/bookings

A guest books rentals or tour seats with Authorization: Booking and a published shop host; unavailable lines return 409 and unfinished shapes return 501.

Parameters

Header

Authorizationstringrequired

Guest booking capability in the Booking authorization scheme.

X-Outdoor-Grid-Site-Keystring

Site key for a shop website server. Optional when the published shop host identifies the shop.

Body parameters

answersobject[]

Questions the shop asks once per booking for rented products, based on their categories.

Show child attributes
item_type_idstring · uuidrequired
keystringrequired

height_cm, weight_kg, shoe_eu, level or the shop's own key

valueanyrequired
daysinteger

Number of whole rental days; optional when each line supplies its own dates.

first_daystring · date

First local rental day.

guestobjectrequired

Contact details for the person making the booking.

Show child attributes
emailstring · emailrequired

Guest or shop email address.

first_namestring

Guest's given name when the request uses split name fields.

last_namestring

Guest's family name when the request uses split name fields.

localestringrequired

Language for this guest's booking and messages: en, it, de or fr.

enitdefr
namestring

Name shown to guests.

phonestring

Guest or shop telephone number.

idempotency_keystring · uuidrequired

Unique UUID for a safe retry of this request.

linesobject[]required

Items in the booking.

Show child attributes
askedboolean

True to ask the shop for a rental instead of reserving it immediately.

bikesobject

For each rider on a tour line, own means their bike or line:<key> names a rental line.

daysobject[]

This line's dates and parts of day; omit to use the booking's whole date range.

Show child attributes
datestring · daterequired

Local calendar date.

periodstringrequired

Part of the day covered by this item.

fullmorningafternoon
departure_idstring · uuid

Departure ID from the tour departures read for a tour seat.

fit_at_shopboolean

True when a kit size will be chosen at the shop instead of by option ID.

groupstring

Tour request type: new_group or private.

new_groupprivate
keystring

Client-assigned line key, stable across edits to the booking.

kindstring

Line to book: rental, extra, tour_seat, kit, guide_pick or tour_request.

rentalextratour_seatkitguide_picktour_request
kit_item_idstring · uuid

Identifier of the kit item shown in availability.

notestring

Optional note for a guide choice or tour request.

option_idstring · uuid

Public rental option identifier.

or_optionsstring · uuid[]

Other rental option IDs the guest would accept if the first is unavailable.

parent_line_keystring

Key of the rental or tour line this extra or kit item belongs with.

parent_line_nointeger

One-based number of the rental or tour line this extra follows.

periodobject

Part of the day covered by this item.

Show child attributes
endsstring

Local end time.

kindstringrequired

Rental period: morning, afternoon or custom hours.

morningafternooncustom
startsstring

Local start time.

product_idstring · uuid

Public product identifier.

quantityintegerrequired

Number of units requested.

ridersstring[]

Person keys assigned to this line; each appears once and the count matches quantity.

modestring

Choose book to reserve now or request to ask the shop to confirm.

bookrequest
originobject

Where the booking came from: the store product the guest pressed Rent this on. Kept on a new booking of the same shop only; an unknown id books the same and keeps nothing; a replay changes nothing

Show child attributes
idstring · uuidrequired

The store product's id

kindstringrequired
payment_choicestring

How the guest pays: deposit, full or at_shop.

depositfullat_shop
promo_codestring

Guest's promotion code, three to 32 letters, digits, underscores or hyphens; surrounding spaces are removed.

ridersobject[]

People taking part in the booked lines.

Show child attributes
answersobject[]

Questions the shop asks about this rider for the category of their booked line.

Show child attributes
item_type_idstring · uuidrequired
keystringrequired

height_cm, weight_kg, shoe_eu, level or the shop's own key

valueanyrequired
detailsobject

Equipment choices and measurements supplied by the rider.

Show child attributes
brakesstring

The lever that works the front brake

front_leftfront_right
first_visitboolean

First time riding with this shop

own_bikeboolean

The rider brings their own bike

pedalsstring

Pedal choice: flat, clipless or own_pedals; null when not supplied.

flatcliplessown_pedals
wheel_sizestring

Of the bike the rider brings

20242627.529mixed
first_timeboolean

Whether this is the rider's first time riding at this shop's place.

head_cminteger

Rider's head circumference in centimetres for a helmet.

height_cminteger

Rider height in centimetres, used to choose a suitable size.

keystring

Client-assigned key that identifies this rider within the booking request.

kit_ownstring · uuid[]

Identifiers of kit items the rider is bringing rather than renting.

levelstring

Rider's skill level as supplied by the guest.

lineinteger

One-based number of the booking line this rider joins.

namestring

Name shown to guests.

notestring

Optional note about this rider for the shop.

own_bikeobject

Kind and make of the bike the rider is bringing.

Show child attributes
kindanyrequired

One of the shop's kinds of ride (booking.kinds), or other

makestring

Brand of the bike the rider brings; null when not supplied.

shoe_euany

Rider's European shoe size in half-size steps.

stancestring

Snowboard lines only: regular, goofy or unsure (dropped on other lines)

regulargoofyunsure
weight_kginteger

Rider weight in kilograms when needed to prepare equipment.

Returns

A JSON response with asked, at_shop_minor, currency.

Errors

404The booking page or Booking capability is unavailable.
409Some lines are no longer free (lines_unavailable), the shop's prices or rules refuse a line (quote_refused), a business cannot take online payments yet (payment_account_missing), the promo code does not apply (promo_refused), or a coded conflict: departure_full, departure_closed, payment_choice_unavailable, promo_used_up
422A field or parameter failed validation.
429too_many_codes: too many promo codes were refused from this client or shop
501not_built: this booking shape is not available yet
Request
API_BASE="https://api.outdoorgrid.ai"
curl -X POST "$API_BASE/v1/public/bookings" \
  -H "Authorization: Booking $BOOKING_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "idempotency_key":
    "7a6f9780-7d6f-4c6f-8f6f-7e6f9dcc816f",
  "first_day": "2027-07-18",
  "days": 1,
  "lines": [
    {
      "kind": "rental",
      "option_id":
        "98ef4278-9bef-4aef-8def-9cef48c49fef",
      "quantity": 1
    }
  ],
  "guest": {
    "name": "Alex Rivera",
    "email": "alex@example.com",
    "locale": "en"
  }
}'
Response
{
  "at_shop_minor": 4500,
  "currency": "EUR",
  "days": 1,
  "deposit_minor": 0,
  "first_day": "2027-07-18",
  "hold_expires_at": null,
  "next": "done",
  "paid_minor": 0,
  "reference": "OG-7K2P9",
  "stage": "booked",
  "total_minor": 4500
}
API endpoint stable

Get the current booking

View as Markdown
GET/v1/public/bookings/current

A guest reads the current booking with Authorization: Booking; a missing or invalid booking returns 404.

Parameters

Header

Authorizationstringrequired

Guest booking capability in the Booking authorization scheme.

X-Outdoor-Grid-Site-Keystring

Site key for a shop website server. Optional when the published shop host identifies the shop.

Returns

A JSON response with asked, at_shop_minor, currency.

Errors

404The Booking capability or current booking was not found.
422A field or parameter failed validation.
Request
API_BASE="https://api.outdoorgrid.ai"
curl -X GET "$API_BASE/v1/public/bookings/current" \
  -H "Authorization: Booking $BOOKING_TOKEN"
Response
{
  "at_shop_minor": 4500,
  "currency": "EUR",
  "days": 2,
  "deposit_minor": 0,
  "first_day": "2026-07-18",
  "hold_expires_at": null,
  "next": "done",
  "paid_minor": 0,
  "reference": "OG-7K2P9",
  "stage": "booked",
  "total_minor": 4500
}
Object

The Booking object

The fields returned by this resource.

askedobject[]

Lines the guest has asked the shop to supply and each line's current state. They are not charged until assigned.

Show child attributes
answer_bystring · date-timerequired

The shop answers by then (the running short settings)

daysobject[]required

Dates and parts of day requested by the guest.

Show child attributes
datestring · daterequired

Local calendar date.

periodstringrequired

Part of the day covered by this item.

fullmorningafternoon
difference_minorinteger

offered: what the guest pays more (0: the same)

keystringrequired

Client key of the line the guest asked the shop to supply.

labelobjectrequired

Guest-visible name of the requested item.

Show child attributes
destringrequired
enstringrequired
frstringrequired
itstringrequired
lineintegerrequired

The 1-based line of the request

ridersstring[]required

Person keys

sizesstring[]required

The size asked first, then the other sizes that would do

statusstringrequired

State of the request: asked, offered, assigned, declined, expired or withdrawn.

askedofferedassigneddeclinedexpiredwithdrawn
at_shop_minorintegerrequired

Amount due at the shop, in minor currency units.

currencystringrequired

ISO currency code for all money amounts in this answer.

daysintegerrequired

Number of days covered by the booking.

deposit_minorintegerrequired

What is paid online: the deposit, or the total for full; 0 at the shop or for a request

first_daystring · daterequired

First local rental day.

hold_expires_atstring · date-timerequired

Null once confirmed

nextstringrequired

Next action: done, pay_deposit, pay_full or requested.

donepay_depositpay_fullrequested
paid_minorintegerrequired

Amount already paid, in minor currency units.

payment_choicestring

Null for a request

depositfullat_shop
promoobject

Promotion code applied to the booking, when available.

Show child attributes
cappedbooleanrequired

The shop's most discount per booking limited the basket

codestringrequired

Promotion code that reduced the booking total.

discount_minorintegerrequired

What the code took off the total, VAT included

referencestringrequired

Guest-facing booking reference.

stagestringrequired

Current booking stage.

requestlapsedwaiting_paymentnot_finishedneeds_youbookednot_collectedoutlatebackcancelled
total_minorintegerrequired

Total price in minor currency units.

view_tokenstring

Confirmation view token, returned when a booking is confirmed immediately for payment at the shop.

Response
{
  "at_shop_minor": 4500,
  "currency": "EUR",
  "days": 2,
  "deposit_minor": 0,
  "first_day": "2026-07-18",
  "hold_expires_at": null,
  "next": "done",
  "paid_minor": 0,
  "reference": "OG-7K2P9",
  "stage": "booked",
  "total_minor": 4500
}