@sutempo/booking-flow
v1.0.0
Published
Headless Sutempo booking flow: state and commands (slots, hold, confirmation) on top of @sutempo/sdk, without HTML or CSS.
Downloads
177
Maintainers
Readme
@sutempo/booking-flow
Headless booking flow for Sutempo: the state and the commands of
a booking (catalogue, people, available days, slots, hold, confirmation, payment
return) without any HTML or CSS, on top of @sutempo/sdk.
Use it when a site needs its own booking design; the embeddable widget is the ready-made
alternative. Availability, holds, timezones and concurrency stay on the server.
npm install @sutempo/booking-flowimport {BookingFlow} from "@sutempo/booking-flow";
const flow = new BookingFlow({baseUrl: "https://sutempo.com", apiKey: "<widget:book key>", tenantId});
flow.subscribe((state) => render(state));
await flow.initialize();Use a public widget:book key: it can only read the public catalogue and book.
