Bookings
Create a guest booking and read its current state with a booking capability.
Ask the shop for a booking
/v1/public/booking-requestsA 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-KeystringSite 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 · emailrequiredfirst_daystring · daterequiredlanguagestringrequiredenitdefrlast_daystring · daterequiredOn or after first_day, at most 60 days after it
namestringrequirednotestringphonestringE.164, for example +41793106078
ridersintegerrequiredtourobjectShow child attributes
lengthstringfullhalfprivatebooleanproduct_idstring · uuidA tour product of the shop; another shop's or an unknown one is dropped
wantsstring[]requiredAt least one, each once
websitestringLeave empty
Returns
A JSON response with ref.
Errors
404booking_unavailable: no shop on this host; online_booking_closed: the shop takes nothing online413too_large: the body is over 16 KB422invalid_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)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"
]
}'{
"ref": "Trail bike rental"
}Get a booking view
/v1/public/booking-viewA confirmation page reads booking details with X-Booking-View; a missing or invalid view token returns 404.
Parameters
Header
X-Booking-ViewstringThe view token from the confirmation link
X-Outdoor-Grid-Site-KeystringSite 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.API_BASE="https://api.outdoorgrid.ai"
curl -X GET "$API_BASE/v1/public/booking-view" \
-H "X-Booking-View: $BOOKING_VIEW"{
"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"
}Create a booking
/v1/public/bookingsA 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
AuthorizationstringrequiredGuest booking capability in the Booking authorization scheme.
X-Outdoor-Grid-Site-KeystringSite 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 · uuidrequiredkeystringrequiredheight_cm, weight_kg, shoe_eu, level or the shop's own key
valueanyrequireddaysintegerNumber of whole rental days; optional when each line supplies its own dates.
first_daystring · dateFirst local rental day.
guestobjectrequiredContact details for the person making the booking.
Show child attributes
emailstring · emailrequiredGuest or shop email address.
first_namestringGuest's given name when the request uses split name fields.
last_namestringGuest's family name when the request uses split name fields.
localestringrequiredLanguage for this guest's booking and messages: en, it, de or fr.
enitdefrnamestringName shown to guests.
phonestringGuest or shop telephone number.
idempotency_keystring · uuidrequiredUnique UUID for a safe retry of this request.
linesobject[]requiredItems in the booking.
Show child attributes
askedbooleanTrue to ask the shop for a rental instead of reserving it immediately.
bikesobjectFor 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 · daterequiredLocal calendar date.
periodstringrequiredPart of the day covered by this item.
fullmorningafternoondeparture_idstring · uuidDeparture ID from the tour departures read for a tour seat.
fit_at_shopbooleanTrue when a kit size will be chosen at the shop instead of by option ID.
groupstringTour request type: new_group or private.
new_groupprivatekeystringClient-assigned line key, stable across edits to the booking.
kindstringLine to book: rental, extra, tour_seat, kit, guide_pick or tour_request.
rentalextratour_seatkitguide_picktour_requestkit_item_idstring · uuidIdentifier of the kit item shown in availability.
notestringOptional note for a guide choice or tour request.
option_idstring · uuidPublic rental option identifier.
or_optionsstring · uuid[]Other rental option IDs the guest would accept if the first is unavailable.
parent_line_keystringKey of the rental or tour line this extra or kit item belongs with.
parent_line_nointegerOne-based number of the rental or tour line this extra follows.
periodobjectPart of the day covered by this item.
Show child attributes
endsstringLocal end time.
kindstringrequiredRental period: morning, afternoon or custom hours.
morningafternooncustomstartsstringLocal start time.
product_idstring · uuidPublic product identifier.
quantityintegerrequiredNumber of units requested.
ridersstring[]Person keys assigned to this line; each appears once and the count matches quantity.
modestringChoose book to reserve now or request to ask the shop to confirm.
bookrequestoriginobjectWhere 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 · uuidrequiredThe store product's id
kindstringrequiredpayment_choicestringHow the guest pays: deposit, full or at_shop.
depositfullat_shoppromo_codestringGuest'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 · uuidrequiredkeystringrequiredheight_cm, weight_kg, shoe_eu, level or the shop's own key
valueanyrequireddetailsobjectEquipment choices and measurements supplied by the rider.
Show child attributes
brakesstringThe lever that works the front brake
front_leftfront_rightfirst_visitbooleanFirst time riding with this shop
own_bikebooleanThe rider brings their own bike
pedalsstringPedal choice: flat, clipless or own_pedals; null when not supplied.
flatcliplessown_pedalswheel_sizestringOf the bike the rider brings
20242627.529mixedfirst_timebooleanWhether this is the rider's first time riding at this shop's place.
head_cmintegerRider's head circumference in centimetres for a helmet.
height_cmintegerRider height in centimetres, used to choose a suitable size.
keystringClient-assigned key that identifies this rider within the booking request.
kit_ownstring · uuid[]Identifiers of kit items the rider is bringing rather than renting.
levelstringRider's skill level as supplied by the guest.
lineintegerOne-based number of the booking line this rider joins.
namestringName shown to guests.
notestringOptional note about this rider for the shop.
own_bikeobjectKind and make of the bike the rider is bringing.
Show child attributes
kindanyrequiredOne of the shop's kinds of ride (booking.kinds), or other
makestringBrand of the bike the rider brings; null when not supplied.
shoe_euanyRider's European shoe size in half-size steps.
stancestringSnowboard lines only: regular, goofy or unsure (dropped on other lines)
regulargoofyunsureweight_kgintegerRider 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_up422A field or parameter failed validation.429too_many_codes: too many promo codes were refused from this client or shop501not_built: this booking shape is not available yetAPI_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"
}
}'{
"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
}Get the current booking
/v1/public/bookings/currentA guest reads the current booking with Authorization: Booking; a missing or invalid booking returns 404.
Parameters
Header
AuthorizationstringrequiredGuest booking capability in the Booking authorization scheme.
X-Outdoor-Grid-Site-KeystringSite 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.API_BASE="https://api.outdoorgrid.ai"
curl -X GET "$API_BASE/v1/public/bookings/current" \
-H "Authorization: Booking $BOOKING_TOKEN"{
"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
}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-timerequiredThe shop answers by then (the running short settings)
daysobject[]requiredDates and parts of day requested by the guest.
Show child attributes
datestring · daterequiredLocal calendar date.
periodstringrequiredPart of the day covered by this item.
fullmorningafternoondifference_minorintegeroffered: what the guest pays more (0: the same)
keystringrequiredClient key of the line the guest asked the shop to supply.
labelobjectrequiredGuest-visible name of the requested item.
Show child attributes
destringrequiredenstringrequiredfrstringrequireditstringrequiredlineintegerrequiredThe 1-based line of the request
ridersstring[]requiredPerson keys
sizesstring[]requiredThe size asked first, then the other sizes that would do
statusstringrequiredState of the request: asked, offered, assigned, declined, expired or withdrawn.
askedofferedassigneddeclinedexpiredwithdrawnat_shop_minorintegerrequiredAmount due at the shop, in minor currency units.
currencystringrequiredISO currency code for all money amounts in this answer.
daysintegerrequiredNumber of days covered by the booking.
deposit_minorintegerrequiredWhat is paid online: the deposit, or the total for full; 0 at the shop or for a request
first_daystring · daterequiredFirst local rental day.
hold_expires_atstring · date-timerequiredNull once confirmed
nextstringrequiredNext action: done, pay_deposit, pay_full or requested.
donepay_depositpay_fullrequestedpaid_minorintegerrequiredAmount already paid, in minor currency units.
payment_choicestringNull for a request
depositfullat_shoppromoobjectPromotion code applied to the booking, when available.
Show child attributes
cappedbooleanrequiredThe shop's most discount per booking limited the basket
codestringrequiredPromotion code that reduced the booking total.
discount_minorintegerrequiredWhat the code took off the total, VAT included
referencestringrequiredGuest-facing booking reference.
stagestringrequiredCurrent booking stage.
requestlapsedwaiting_paymentnot_finishedneeds_youbookednot_collectedoutlatebackcancelledtotal_minorintegerrequiredTotal price in minor currency units.
view_tokenstringConfirmation view token, returned when a booking is confirmed immediately for payment at the shop.
{
"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
}