@odeva/booking-sdk
v0.1.6
Published
Headless booking SDK for Odeva-powered accommodation websites
Maintainers
Readme
Odeva Booking SDK
Headless JavaScript SDK for Odeva-powered accommodation booking.
Install
npm install @odeva/booking-sdkUse from the CDN
For sites that are not using npm or a bundler, load the browser build from the Odeva CDN:
<script src="https://booking.odeva.app/sdk/booking.js" defer></script>
<script>
window.addEventListener("DOMContentLoaded", async () => {
const { OdevaClient } = window.OdevaBooking;
const odeva = new OdevaClient({
organizationSlug: "my-org",
});
const accommodations = await odeva.searchAccommodations({
startDate: "2026-07-01",
endDate: "2026-07-08",
guests: 2,
});
});
</script>Use
import { OdevaClient } from "@odeva/booking-sdk";
const odeva = new OdevaClient({
organizationSlug: "my-org",
});
const accommodations = await odeva.searchAccommodations({
startDate: "2026-07-01",
endDate: "2026-07-08",
guests: 2,
});Use apiUrl or checkoutUrl to point at a custom Odeva backend. Use apiKey only in trusted server-side code.
