API
Embed widget
One-line script. Renders a Book-now button → iframe modal with the booking flow.
<script
src="https://orkestr.in/embed.js"
data-tenant="acme"
data-offering-slug="airport-transfer"
async
></script>The script appends a styled button to its parent. Clicking opens an iframe modal pointed at the offering's booking flow on the tenant subdomain. CORS + CSP frame-ancestors are open for embed origins. The widget posts a {type:"orkestr:booking:confirmed",bookingId} message to the host on confirmation.
Listening for confirmation
window.addEventListener('message', (e) => {
if (e.origin !== 'https://acme.orkestr.in') return;
if (e.data?.type === 'orkestr:booking:confirmed') {
console.log('Booking', e.data.bookingId);
}
});