nisebookings docs

Booking integration (nisebookings)

This project integrates nisebookings — a hosted booking service (appointments, group sessions, recurring series, prepaid packages, waiting lists, event tickets) at https://app.nisebookings.com, reached with the account's public key. Customer-facing text is Dutch, English and German; the API is JSON.

Decide the path first

Situation Path
Normal web app/site, standard flow Embed the widget — two lines of HTML, no build step
WordPress the nisebookings plugin (listed as nise booking), shortcodes [nise_booking] / [nise_events]
Custom UI, mobile app, server-side flows, cart/series/tickets logic Public REST API
Create/configure services, staff, schedules, opening hours from code Management API with a scoped key (admin → Settings → API; a real account needs the Pro or Agency plan for this, a sandbox always has it): POST /api/v1/services, PUT /api/v1/staff/{id}/schedule, PATCH /api/v1/settings, … Start with https://guide.nisebookings.com/api/ ; spec at https://guide.nisebookings.com/api/openapi.yaml. Ask the human for the key — it is shown once at creation.
React to bookings, cancellations, tickets or payments in your own system Webhooks: POST /api/v1/webhooks {url, events} (scope settings:write) → signed JSON per event (Standard Webhooks headers; secret whsec_… shown once). Verify the signature on the raw body, dedupe on webhook-id, answer 2xx within 10 s. https://guide.nisebookings.com/10-webhooks.html
Operate the account conversationally (plan appointments, look up customers, change settings) the hosted MCP server https://app.nisebookings.com/api/mcp with the same key as Authorization: Bearer nk_…; setup per agent: https://guide.nisebookings.com/api/mcp.html
Give a colleague or the client their own login Settings → Team in the admin (instellingen → team), by a human: invite by e-mail with owner / admin / front_desk / staff, change a role, resend the link, remove access; an owner hands the account over by promoting the client to owner and then removing their own access. The API and MCP cannot create members. A staff login is tied to its staff member under Staff → Eigen agenda (inlog), so it sees only that agenda. https://guide.nisebookings.com/05-admin-guide.html#team-who-can-sign-in
Give a client their own account from code (agency) POST /api/v1/projects {name, slug?, timeZone?} with a key of the paying account (scope projects:write) → 201 with the new account's id, slug and publicKey; it starts on Free and belongs to that account's first owner. One extra project on Agency is € 9 a month and the allowance is enforced (402 plan_limit). Then invite the client in the admin. MCP: create_project.

Check fit before building: day-based rentals (a boat, a room, a holiday home) are supported — durationDays 1–365 on the service, the widget asks for a start date and prices per day — but one rate per day (no seasons or minimum stays) and a booking's span is fixed once made. Not supported: two-way staff calendar sync, SMS, branching intake forms (per-service questions, file attachments and one show-if condition per question are supported), and customer-facing texts beyond Dutch, English and German (the widget, the customer pages and the mails ship all three; the account language is the default, data-lang overrides it per embed, and a customer's mails and pages follow the language they booked in). See https://guide.nisebookings.com/09-when-to-use.html.

Embed

<script src="https://app.nisebookings.com/widget.js" defer></script>
<nise-booking data-key="<account public key>"></nise-booking>

Optional attributes: data-api (only if the script is hosted elsewhere), data-service, data-staff="<id|any>", data-package="<token>" (plan a bought package), data-lang="nl|en|de" (default: the account's language; the widget ships Dutch, English and German), data-picker="list" (service list instead of the default category and service selects). Events: <script src="https://app.nisebookings.com/events.js" defer></script> + <nise-events data-key="…">. The element renders in a shadow DOM; theme it with --nb-* CSS custom properties and ::part() (heading, service, day, slot, primary, input, … — list in the widget reference). It has no methods, but it fires nise:ready, nise:step, nise:booked and nise:error (bubbling, no personal data) — listen for nise:booked to record a conversion or show your own thank-you message. Both scripts log nisebookings@<version> on load; ?v=<version> on the script URL is a supported cache-bust.

API essentials

Base: https://app.nisebookings.com/api/public/<public key>

Call Purpose
GET /services account config + catalogue (ids, prices, extras, staff per service)
GET /slots?service=&staff=&from=YYYY-MM-DD&days=7&persons=1 free times
POST /slots {items[], hold[], from, days} chain search, cart holds
POST /recurrence {item, rule, hold} plan a repeating series
POST /quote {items[], coupon?, payFull?, gateway?} authoritative price
POST /bookings {items[], series?, name, email, phone, notes, gateway, coupon?, payFull?, returnUrl?} create the order
GET /payments/<token> payment status (poll after a Mollie redirect)
GET /packages/<token> package overview for a personal link
POST /bookings/<token>/reschedule {start, staff?} move the customer's own booking (magic-link token) to another offered time
GET /events · POST /events/<id>/tickets ticket shop

https://guide.nisebookings.com/openapi.yaml is the machine-readable version of this table.

Non-negotiables

Verify before reporting success

Test against a sandbox first, not the real account: curl -s -X POST https://app.nisebookings.com/api/sandbox (no auth) returns a 24-hour test account {publicKey, apiKey, expiresAt, endpoints} — sample staff and services, an all-scopes nk_ key, no mail ever delivered, a fake Mollie checkout. Details: https://guide.nisebookings.com/08-sandbox.html

  1. Fetch the catalogue and one slot list inside this project's real runtime (sandbox publicKey).
  2. Create one real booking end to end (payload as in the headless example, https://guide.nisebookings.com/examples/); a gateway: "local" booking needs no payment keys. With gateway: "mollie" the sandbox's checkoutUrl is a test page with Betalen / Mislukt buttons.
  3. Check the mails it would have sent: GET /api/v1/outbox?to=<email> with the sandbox apiKey (status suppressed). On a real account, confirm the booking in the admin agenda and cancel it if it was only a test.
  4. DELETE /api/v1/sandbox with the sandbox key when done (it also expires by itself).

Documentation: https://guide.nisebookings.com/ — public API 04-public-api.html, widget 03-widget-reference.html, webhooks 10-webhooks.html, fit check 09-when-to-use.html, admin 05-admin-guide.html; index for agents: https://guide.nisebookings.com/llms.txt.