Developer Tools

Integration Designer

Generate a ready-to-use code snippet to add the reservation widget to any website.

Configuration

Used throughout the reservation form.

Optional color for the floating Reserve button. Defaults to the accent color.

Website preview

Enter your website URL to see the floating widget injected into a safe preview copy.

Preview

Embed code

Add this script tag to your site's header or footer (e.g. a "custom code" or "tracking scripts" setting). The widget mounts itself — a floating reservation button appears in the bottom-right corner.

<script
  src="https://reservier.at/widget/v1/widget.js"
  data-business-id="demo"
  data-locale="de"
  data-primary-color="#4f46e5"
></script>

Widget attributes

These attributes configure the widget and script embeds. On the script-only snippet, prefix each name with data-.

Widget attributes
AttributeTypeDescription
business-idstringYour public business identifier. Required.
localestringInitial language: de, en, fr, it, or ru.
primary-colorstringAccent color used throughout the reservation form.
button-colorstringColor of the floating Reserve button. If omitted, the button uses primary-color.

button-color applies to the widget and script embeds only — the iframe has no floating button.

Reservier JavaScript API

window.Reservier

The widget script installs a global Reservier object. Use it to open or close the reservation panel from your own buttons, menus, or application code.

Methods

Methods
MethodCallDescription
open(options?)Reservier.open({ locale })Opens the reservation panel. You can pass an options object with locale to set the language. Safe to call when the panel is already open.
close()Reservier.close()Closes the reservation panel.
openCoupons(options?)Reservier.openCoupons({ locale })Opens the gift-voucher panel if coupon sales are enabled. Accepts the same options as open().

Options

Options
OptionTypeDescription
locale string Optional UI language: de, en, fr, it, or ru. If omitted, the widget keeps its current language. Unknown values fall back to an enabled language.

All methods return void.

HTML attribute

No JavaScript required: any element with open-widget="reservier.at" or open-widget="reservier.net" opens the panel.

<button type="button" open-widget="reservier.at">
  Reserve now
</button>

Custom element

If you used the <reservier-widget> tag, the same methods are also available on the element after it upgrades.

const widget = document.querySelector('reservier-widget');
widget?.open({ locale: 'de' });
widget?.close();
widget?.openCoupons();

Example

<button type="button" id="book-table">
  Reserve now
</button>
<script>
  document.getElementById('book-table').addEventListener('click', function () {
    window.Reservier.open({ locale: 'de' });
  });
</script>

TypeScript

interface ReservierOpenOptions {
  locale?: string;
}

interface ReservierApi {
  open: (options?: ReservierOpenOptions) => void;
  close: () => void;
  openCoupons: (options?: ReservierOpenOptions) => void;
}

declare global {
  interface Window {
    Reservier: ReservierApi;
  }
}

Notes

  • Calls made before the widget mounts are queued and run as soon as it is ready.
  • This API is available with the widget or script-only embed — not with the iframe.
  • Prefer calling methods from a user action such as a click. Immediate calls on page load only work after widget.js has executed.
  • locale is optional. The widget only switches to languages enabled for that business.

We use essential cookies for the website to function properly. With your consent, we also use analytics cookies to improve your experience. Privacy Policy