This is the script to for your In-Context booking engine, here you can set the language, currency and components used.

Place this in the <head> section of your website.

				
					<script>
var synxisControllerInstance = null;
function initSynxisController() {
SynxisUIController.init({
environment: 'p1',
apiKey: 'MDAxMjF+dVNKZlBxNkNpazBlb2Q5SkEwL0xmVi9XTlJqbkh4V2t6ZjRONjllRDdKajlhYmtsYSt1RkFucUhwZXZDakJ5aklLNFlBQ3o0YW8zdXpVczBqaENhZ2c9PQ==',
 locale: 'en-US',
 chainId: '28059',
 hotelId: '43479',
 currency: 'CHF',
bookingEngineMode: 'in-context',
sbeLinkAdapter: true,
components: ['book-now', 'search-bar', 'in-context', 'cart','best-price', 'calendar']
}).then(function(controller) {
synxisControllerInstance = controller;
console.log('SynXis UI Controller initializedsuccessfully');
}).catch(function(error) {
console.error('Failed to initialize controller:', error);
});
}
</script>
 
<script src="https://be.synxis.com/sbem/web/ui-controller/1.x/shs-sbem-ui-controller.umd.js" onload="initSynxisController()"></script> 
				
			

In-context component – can be placed anywhere on the page

This is the booking engine and will appear as an overlay when triggered

				
					<shs-sbem-in-context></shs-sbem-in-context>
				
			

SBE Link Adapter

This uses any links on the page that have be.synxis.com to open the In-context overlay (including any parameters in the url)

Cart component

				
					<shs-sbem-cart></shs-sbem-cart>
				
			

Book now component

				
					<shs-sbem-book-now></shs-sbem-book-now>
				
			

Book now component with promo code and additional CSS (applies to component only)

				
					<shs-sbem-book-now
 promo="MEMBER"
 css="
 button{
 align-self: center;
        background: #000;
        color: #fff;
        border: 1px solid #a1baca;
        padding: 0 10px;
        font-size: 16px;
        line-height: 1.5;
        text-decoration: none;
        text-transform: uppercase;
 ">
</shs-sbem-book-now>
				
			

Book now component filtered by room

				
					<shs-sbem-book-now
 room="SUP"
 arrive="2027-02-08"
 depart="2027-02-10"
 redirect-route="/room/SUP"> 
</shs-sbem-book-now>
				
			

Search bar component

				
					 <shs-sbem-search-bar
 sections='["dates", "occupancy", "codes", "submit"]'
	 >
 </shs-sbem-search-bar>
				
			

Calendar component

				
					<shs-sbem-calendar
number-of-months="1"
hide-legend="true"
initial-month="2026-12-01"
    ></shs-sbem-calendar>