Booking parameters
The hosted Booking Engine accepts a range of GET parameters. Use them to open the Booking Engine with the right dates, number of persons, accommodation type and more already selected. This page describes each one.
You can try them out on the demo: https://booking.camping.care/demo
GET parameters
Section titled “GET parameters”Send parameters to the Booking Engine in this format:
https://booking.camping.care/demo?arrival=2022-07-31&departure=2022-08-06&category=rent&guests=Replace demo in the URL with your own campsite slug.
These are the parameters you can use:
arrivaldepartureaccommodationguestsbirthdatescategoryadmin_id(for OTAs only)channel_id(for OTAs only)hide_filtermodesviewshow_camping_namediscountcardshow_discount_cardpersonswebsite_urlback_urlobject_idlangdefault_days_gl
arrival
Section titled “arrival”Sets the arrival date in the Booking Engine, in the format YYYY-MM-DD.
departure
Section titled “departure”Sets the departure date in the Booking Engine, in the format YYYY-MM-DD.
guests
Section titled “guests”Sets the guests using the age table IDs from your system. The value is a JSON string, URL-encoded. It looks like this:
[{"id": 12345, "count": 2}, {"id": 12346, "count": 1}]birthdates
Section titled “birthdates”If you don’t have the age table information above, you can send the guests’ birth dates instead. We convert them to the right age tables. The value is a URL-encoded JSON object, like this:
[{"birthdate":"2015-01-01","amount":1}, {"birthdate":"2004-02-01","amount":2}]In this case there is one child born on 2020-01-01 and one adult born on 2004-02-01.
accommodation
Section titled “accommodation”The ID of the accommodation to select by default. Required if you open the accommodation or cart view.
category
Section titled “category”The accommodation category: rent or camp.
admin_id
Section titled “admin_id”If you’re an OTA, you can send the admin_id with the request to say which campsite you want to book.
hide_filter
Section titled “hide_filter”Hides the rent / camp category filter if you don’t need it.
Either production (default) or test.
One of filter (default), accommodation, cart or map.
show_camping_name
Section titled “show_camping_name”Whether to show the campsite name. By default we don’t.
discountcard
Section titled “discountcard”The ID of the discount card to preselect.
show_discount_card
Section titled “show_discount_card”Shows the option to select a discount card on the filter page.
persons
Section titled “persons”The number of persons selected by default.
website_url
Section titled “website_url”The URL we send the guest to when they click the back button on the home or filter page.
back_url
Section titled “back_url”We always send the guest to this URL when they click the back button.
object_id
Section titled “object_id”Preselects an object ID (a place or room ID). This only works if the object belongs to the selected accommodation.
Forces a specific language (ISO 639-1 code). By default we use the guest’s browser language, and if that isn’t available we fall back to en.
default_days
Section titled “default_days”By default, 7 days are selected. You can change this by sending a different number of days. This is overridden if you use the arrival or departure parameter.
The code for Google Analytics cross-domain tracking.
Example form
Section titled “Example form”<form action="https://booking.camping.care/demo" method="get">
<label for="category">Rent or Camp?</label> <select id="category" name="category"> <option value="" selected>Select your category</option> <option value="rent">Rental Accommodations</option> <option value="camp">Camping</option> </select><br><br> <label for="arrival">Arrival:</label> <input type="date" id="arrival" name="arrival"><br><br> <label for="departure">Departure:</label> <input type="date" id="departure" name="departure"><br><br> <input type="submit" value="Search and Book">
</form>Change the form action to your own booking URL, which you’ll find on the website integration page: https://app.camping.care/settings/onlinebooking/integration
Choose the hosted booking site option.