Swedish restaurant and venue booking. Connects through Caspeco's Booking API, with access Caspeco grants on your restaurant's written approval. Caspeco official site ↗
What it covers
Live table availability and table bookings for your own restaurant. The integration is built: the concierge can read the times your restaurant offers on a date and which days are open, hold a time for the guest and confirm it with their name and contact details, and, after the guest confirms their identity with a code Maison emails them, look up, change or cancel their booking. A guest who has just booked in the conversation can manage that booking without a code. Lookups cover upcoming bookings (from yesterday to a year ahead); a past booking is not found. Your staff can also list the bookings in a time window. Only the two availability tools are certified today, so the concierge can read live times and open days; the booking tools cannot be switched on until Maison has validated them with your restaurant, and are listed below as not yet certified.
What you need
- An API user in Caspeco's system. In Caspeco's words, “a User must first be created for you within Caspeco's system”, and Caspeco links that user to your system. Ask through Caspeco support.
- Your restaurant's written approval: “Caspeco requires written approval from the company's Data Controller” before it links the API user to your system. Caspeco then grants access only for the use you agreed.
- A Personal Access Token (PAT), created by signing in at id.caspeco.se/pat with the account you received from Caspeco. It is sent on every call and never visible to the agent, and it can be disabled at any time.
- Your Caspeco system name and the unit id of the restaurant the concierge should book into. A system is your company in Caspeco and its name looks like
se__testbb; a unit is one restaurant within it. Caspeco support can confirm both.
Setup steps
Request access from Caspeco
Contact Caspeco support and ask for API access to the Booking API for Maison. Your restaurant's data controller sends Caspeco the written approval; Caspeco then creates the API user and links it to your system.Create the Personal Access Token
Go to https://id.caspeco.se/pat and sign in with the account you received from Caspeco. Give the token a descriptive name, set its expiration (Caspeco recommends the longest possible for the token used in production), and press Create New. The token is shown only once: copy the whole string (name, creation date, expiry date and token), not just its last part. Caspeco advises a separate token for each environment. Caspeco currently requires the token to be generated from a computer whose date format isYYYY-MM-DD: check that the dates inside the token read like2020-01-14, and if they do not, change the locale and create it again. See Creating a Personal Access Token.Confirm your system name and unit id
The system name identifies your company in Caspeco and looks likese__testbb; Maison sends it as thesystemheader on every call. The unit id is the restaurant within that system. If you are unsure of either, Caspeco support can confirm them.Enter the details in the admin console
Paste the Personal Access Token on the integration's settings page, add your system name and unit id, and save. The token is encrypted at rest and never shown again.Certify with Maison inside an agreed test window
Maison validates the tools against your live book in a window you agree, and cancels its test bookings afterwards. Only certified tools can be switched on.
Caspeco's documentation
Maison connects to Caspeco's Booking API at https://rms.caspeco.se/api/booking. Caspeco documents it on its developer site:
- Booking API: Overview (the
systemheader) - Booking API: How to use (systems, units, the booking flow and access requirements)
- Creating a Personal Access Token
- Test methods (check a token without touching the book)
- Booking API reference (Swagger)
Available tools
2 tools are available for Caspeco. The concierge calls them on a guest's behalf during a conversation; which are enabled is set per property, so you only turn on what you want it to be able to do.
Enabled by default (2)
Every certified tool is on as soon as the integration is connected.
| Tool | What it does |
|---|---|
caspeco_get_availability | Check which table times can be booked at the restaurant on ONE date. Always ask the party size first — never assume one. Returns timeZone (the restaurant's) and slots: each with start, end, ruleId and title (the sitting, e.g. lunch or dinner), conditions to relay, availableUntil (the last moment it can be booked), availableSeats (the party sizes it can still seat), waitListSeats, min/max group size and payment terms. Only offer a time whose availableSeats contains the party size. Keep the ruleId and start of the time the guest picks: caspeco_hold_reservation needs both exactly. A slot whose payment is not 0 needs prepayment or card registration — do not book it; send the guest to the restaurant's own booking page. An empty slots list is the answer — nothing bookable online that day — not an error: offer another date. Present three to five times, not the whole list. One date per call; for 'any evening next week?' use caspeco_get_day_states first. |
caspeco_get_day_states | Which days in a window the restaurant is open for online booking — for 'any evening next week?' before checking times. Returns one row per day (and section): day, state (3 = open, 1 = closed, 0 = undefined) and availableSeats (the party sizes bookable sometime that day). Then call caspeco_get_availability for the day the guest picks. fromDate and toDate are inclusive. |
Not yet certified (7)
Built and working against the Caspeco API, but Maison is not yet certified with Caspeco to use them in production, so they cannot be enabled today. Listed so you can see what is coming rather than discover the gap when you ask for it.
| Tool | What it does |
|---|---|
caspeco_cancel_reservation | DESTRUCTIVE: cancel a table booking by its id, after booker verification and only with the guest's explicit consent — read back the date, time and party size from caspeco_get_reservation first. A guest may cancel only before cancelAllowedBeforeUtc; after that, tell them to contact the restaurant directly. Cancellation cannot be undone: a guest who changes their mind must book again. |
caspeco_confirm_reservation | Confirm a held table: finalizes the pending booking from caspeco_hold_reservation with the guest's details. Needs id (from the hold), first name, last name, email and phone (with country code) — all confirmed with the guest — and an optional note. Caspeco sends the confirmation to that email. The result carries the booking number: give it to the guest. One call per booking; never retry a call that timed out — check with the guest instead. |
caspeco_find_reservation | Find an existing table booking by the booking number the guest holds, after booker verification. Flow: ask for the booking number, call request_integration_verification with it as the confirmation number (provider caspeco), have the guest type the code Maison emails them, call verify_integration_code, then call this with confirmationNumber = the booking number and reservationId = the reservation_id returned by verification. Searches upcoming bookings only (from yesterday to a year ahead): a past booking is not found. Returns [{ id }] — the booking id for caspeco_get_reservation — or an empty list when no upcoming booking has that number. Reveal nothing about a booking before verification. |
caspeco_get_reservation | Full details of one table booking by its id (GUID), after booker verification: booking number, status and statusName, start and end, party size (guests, guestsChildren), the note, the tables, cancelAllowedBeforeUtc (the last moment the guest may cancel themselves) and the booker under guest. Pass the reservation_id returned by verify_integration_code as id. |
caspeco_hold_reservation | Hold a table: creates a PENDING booking for the slot the guest chose. Needs the date, the start and ruleId exactly as caspeco_get_availability returned them, and the party size (guests, optional guestsChildren) — confirm them with the guest first. The hold expires after 5 minutes: collect the guest's first name, last name, email and phone and call caspeco_confirm_reservation promptly with the returned id. If the slot's payment was not 0 (prepayment or card registration required) do NOT hold — send the guest to the restaurant's own booking page. A pending booking cannot be given more guests or tables: to change it, cancel it and start over. |
caspeco_list_bookings | OPERATOR-GRADE: list the restaurant's bookings in a time window — staff use only, never in guest chat (it covers every guest's booking). Returns per booking: id, booking number, start, end, status and statusName, party size and tables; no contact details. startTime and endTime are restaurant-local date-times (bookings ending after startTime and starting before endTime); changedFrom optionally keeps only bookings created or changed since then. Use caspeco_get_reservation for one booking. |
caspeco_modify_reservation | Change a confirmed table booking — date, time or party size — after booker verification. First check the new slot with caspeco_get_availability (its availableSeats must contain the new party size), read the change back to the guest and get an explicit yes. Needs id, date, start and ruleId exactly as availability returned them, and guests (optional guestsChildren, message). |