Okidooki API
A REST API for partners to read the public nightlife catalog and manage their own venues, events and promotions programmatically.
Base URL
https://okidooki.app/v1
Auth
Bearer API key, created in your Business dashboard.
Introduction
Two developer products live here. Agent APIs (APP v0): one signed REST protocol that lets your software (an AI agent or any backend) buy on behalf of your users from three networks: Okidooki Night (nightlife), NowTrust (security) and MakeItFun (merch). Business API (below): REST for venues, hotels, organizers and DJs to run their business on Okidooki, including the Oki Business tools as API and MCP (81 tools: operations, marketing, content, hotel desk, pictures, plus NowTrust security and MakeItFun merchandise).
Agent APIs (APP v0)
Same protocol on every network: POST {gateway}/a2a/v0/{route}, JSON body, Authorization: Bearer <key> + X-Timestamp + X-Signature (HMAC-SHA256 over timestamp.rawBody), Idempotency-Key on order. Flow: discover → quote (firm 30 min) → order → status; the user links their account once (Connect with Okidooki) and sets limits (mandate) your calls must respect. Every network also speaks Google A2A and MCP.
Portal (keys, sandbox users, webhooks, usage, billing) · Quickstart · Full API reference (every route per network, generated from the spec) · OpenAPI · Postman · SDK JavaScript / Python · conformance test · network registry · status. Pricing: test and sandbox free; live traffic 2,000 calls/month free, then CHF 0.01 per call and CHF 0.50 per paid order.
Okidooki Night API
Venues (table reservations, free entry with a reservation at partner venues) and events (tickets) across cities; the user confirms and pays in the Okidooki app. Gateway https://europe-west1-okidooki-nightlife.cloudfunctions.net/a2aGateway, A2A okidooki.app/.well-known/agent.json, MCP okidooki.app/mcp.
| Route | What it does |
|---|---|
discover | Venues and events by cityName / cityId / near {lat,lng}, type venue | event, date. |
quote | Table (date, time, partySize) or tickets (tierId, quantity) for the linked user; firm 30 minutes. |
order / orders / status / cancel | Reservation requested (venue confirms) or tickets ready to pay in the app; cancellation per venue/event policy. |
link/status · link/confirm · link/revoke | Account link of your user to an Okidooki account; link/status returns the mandate the user set for you. |
connect/start · connect/status | Universal consent: one page where the user approves your agent on all networks and sets limits (reference). |
venues/menu · offerings · drinks/cheapest | Drink/food menus with item ids and prices; ticket tiers of an event; cheapest drinks across the city. |
menu/quote | Price a drinks/food basket for the user's table; the user pays it on the venue page in the app (confirmUrl). |
venues/live | Live city pulse: venues ranked by people checked in right now, tonight's events, live promotions, friends out. |
guestlist/join · guestlist/leave | RSVP on an event's guest list with plus-ones (mandate capability guestlist). |
promotions · promotions/claim | Free-of-charge offers in the city; claim one for the user (the venue approves, QR in the app). |
checkin | Check the user in at a venue (crowd counter, check-in perks). |
djs · djs/book · djs/bookings · djs/cancel | Bookable DJs and artists; booking requests with date, duration, event type, budget; the DJ answers with a price in the app. |
tickets · reservations · reservations/cancel | The user's tickets and table reservations. |
reviews | Reviews and average rating of a venue. |
friends/nearby · profile · gifts/send | Friends out right now, the user's profile and gifts to other users, each behind its own mandate capability (social, profile). |
hotels/offers · hotels/bookings · hotels/cancel · sandbox/pay | Hotel offers per room type and rate plan, the user's stays, cancellation by the plan's policy; sandbox settlement for test keys (quickstart 4a). |
venues/details · purchases · events/share | Everything about one venue (hours, contact, what it sells); the user's drink gifts and food orders; a share link for an event (added 2026-11-10). |
pulses · pulses/create · pulses/cancel | Free community events the user hosts (mandate capability guestlist). |
security/link · security/options · security/book · security/status · security/cancel · security/sos (+ /status, /cancel) | Licensed guards from NowTrust booked through Okidooki for the linked user; the user links NowTrust once with a code and pays there. Mandate capabilities security, sos (a dispatch is a spend). |
merch/link · merch/options · merch/suggest · merch/preview · merch/preview/status · merch/designs · merch/quote · merch/create · merch/status · merch/cancel | Merchandise from MakeItFun through Okidooki: curated looks, AI designs with mockups, firm quotes with shipping, orders paid in the MakeItFun app. Mandate capability merch. |
transport/search · plans/share · registerEvery route above is also a tool on the Okidooki MCP server https://okidooki.app/mcp (63 tools, Bearer agent key). Businesses have their own MCP for the owner side: https://okidooki.app/v1/mcp with a Business API key.
NowTrust API
Licensed private security in Switzerland: guards and company teams for events, nightclubs, bodyguard, property and escort; SOS dispatch of the nearest guards; spending mandates so bookings can settle without a tap. Gateway https://nowtrust.app (card /a2a/v0/card), A2A nowtrust.app/.well-known/agent.json (RPC /a2a/v0/rpc), MCP nowtrust.app/mcp.
| Route | What it does |
|---|---|
discover | Guards or companies near near {lat,lng}; kind guard | company, securityType (event_security, bodyguard, nightclub_security, private_property, escort_security) or intent (birthday, party, corporate, event, wedding…), partySize, now. |
quote | sellerId guard:<id> | company:<id>, when (ISO 8601), durationHours 1-24, location {lat,lng,address}; returns the price, card-on-file and mandate state. |
order / orders / status / cancel | Booking: settles at once within a mandate, otherwise the user approves and pays in NowTrust; cancellation free before acceptance, 50 % within 2 h of start. |
sos · sos/status · sos/cancel | Dispatch the nearest guards to the user's location now; status and cancellation (fee once a guard is en route). |
link/start · link/status | 8-character code the user enters in NowTrust (Settings, Connected apps); status includes ID verification, card on file, mandate and partnerMandate. |
sellers · availability · reviews | Guard or company profile (rating, jobs, rate, specializations, languages, bio); day-by-day availability of a guard for up to 30 days; reviews with average rating. |
series/quote · series/order | Multi-day or recurring bookings: up to 12 firm quotes from occurrences or when + repeat {every: day|week, count}, booked in one call; each settles within the mandate or waits for approval. |
bookings · bookings/status | Every booking of the user (made in the app or by any agent) with guard, payment, arrival, completion, incident report, review state. |
messages · messages/send | Chat with the guard of an active booking on the user's behalf (capability message). |
reviews/create · incidents · receipt | Review a completed booking (capability review); the guards' incident reports on the user's bookings and SOS calls; Stripe receipt of a paid order or booking. |
MakeItFun API
Print-on-demand merch (Printful): t-shirts, hoodies, caps, mugs, posters, bags, patches and more, designed by AI, from an image, from exact text, or from the Design Curator's looks; mockups, firm quotes with real shipping, orders paid by the user in MakeItFun (30 minutes), crew orders with per-person sizes. Gateway https://europe-west1-make-it-fun-app.cloudfunctions.net/a2aGateway, A2A make-it-fun-app.web.app/.well-known/agent.json, MCP make-it-fun-app.web.app/mcp.
| Route | What it does |
|---|---|
discover | Products by productType (tshirt, hoodie, cap, mug, poster, bag, phone_case, sticker, bottle, blanket, patch, tank, polo, tote, pillow, mousepad) or query; one product with sellerId (variants, CHF prices, placements, surcharges); occasions:true templates; styles:true or suggest {productType, occasion, vibe, city, event} curated looks with preview pictures and a recommended product. |
preview · preview/status | Render a design on a variant: design.kind prompt | imageUrl | text (font, colour, outline, arc) | savedDesignId | style (styleId + slots); placements, position modes, multi-placement via baseDesignId; poll the job (30-120 s) for mockups, designId and the print spec. |
designs | The user's saved designs (free to reuse) with the ids quote/order accept. |
quote | Units × unit price + real shipping to the user's saved address (options returned); team: [{name, number, size}] prints names and prices each member's own size. |
order / orders / status / cancel | Order with confirmUrl (Stripe Checkout in the app, 30 minutes); statuses paid, in_production, shipped (tracking), cancelled, refunded, expired, failed; cancel free until production starts. |
styles/feedback | Thumbs up / down on a curated look (ranking signal, per city). |
link/start · link/status · link/revoke | Code the user enters in MakeItFun (Profile, Connected apps); status includes the shipping address state and the mandate. |
sandbox/pay | Test keys only: settle a sandbox order as if the user paid. |
categories · products · sizes | Browse the whole Printful catalog by category for a country, products with price from (CHF) and placements, size charts in cm or inches. |
shipping | Shipping options and prices for variants to a country/zip or to the user's saved address, before any quote. |
upload | Upload the user's own picture (base64 or URL) and use it as a design (design.kind imageUrl). |
mockups · mockups/status | Extra views (lifestyle, flat, folded, hanger) of a saved design; ready in about 45 s or polled by task. |
receipt | Stripe receipt and invoice link of a paid order. |
Webhooks (order.status, sos.status, connect.approved, link.revoked) replace polling on every network; set them in the portal. Full request/response fields for all routes above: API reference.
Business API (Okidooki venues and organizers)
The Okidooki API is organised around REST. It has predictable resource-oriented URLs, accepts JSON request bodies, returns JSON responses and uses standard HTTP verbs and status codes. Every response object carries an object field naming its type.
There are two families of endpoints:
- Catalog (read): public upcoming events and venues across every city, for discovery and listings.
- Your data (read and write): the venues you own, their events, promotions and live analytics. Scoped strictly to the account that owns the key.
Authentication
Authenticate every request with your secret API key in the Authorization header. Keys carry the account and the scopes they are allowed to use. Never expose a live key in client-side code, a mobile app or a public repository.
# All requests use a Bearer key curl https://okidooki.app/v1/ping \ -H "Authorization: Bearer ok_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
Authorization header. The key is a secret: keep it server-side and never put it in a URL, client-side code or a public repo.API keys
Create and revoke keys in the Okidooki app under Business → Developers. A key is shown in full exactly once, at creation. We store only a hash, so if you lose it you must create a new one.
| Prefix | Meaning |
|---|---|
ok_live_ | Live key. Reads and writes real production data. |
ok_test_ | Test key. Same API surface, intended for integration testing. |
Scopes
Each key holds a set of scopes. A request to an endpoint whose scope the key lacks returns 403 permission_error.
| Scope | Grants |
|---|---|
catalog:read | Read the public events and venues catalog. |
events:read | List your own events. |
events:write | Create, update and delete your own events. |
venues:read | List the venues you own. |
venues:write | Update your venue profiles. |
promotions:read | List your promotions. |
promotions:write | Create and update your promotions. |
analytics:read | Read live analytics for your venues. |
hotels:read | Room types, rates, blocks and bookings of the hotels you own. |
hotels:write | Manage room types, rates, blocks, bookings and the hotel webhook. |
tools:read | Run the read-only business tools (tools API and MCP): stats, insights, bookings, menus, guests, reviews. |
tools:write | Run the business tools that change things (confirm requests, menu, events, campaigns, pictures, hotel desk), each with the confirmation step described below. |
Business tools API and MCP (2026-11-10)
Everything the Oki Business assistant can do for an owner inside the app is available to your own agent or back office as plain API calls and as an MCP server: performance and audience insights, pending tasks, confirming reservations and guest lists, accepting orders, QR tables, the venue agent policy, events with tickets, free-of-charge offers and push campaigns, menus and prices, hotels world-wide (search, book with a pay link, cancel), the public profile and opening hours, team management, reviews and replies, Visual Studio pictures (banners, logos, posters), the whole hotel desk, the radar and the organizer and DJ accounts. 62 tools today (39 of them writes, 31 with the confirmation step); GET /v1/me/tools is the catalog with the JSON schema of every tool.
The catalog: {name, description, input_schema, kind: read | write, confirmation, scope, allowed} per tool. allowed tells whether this key may run it.
Body = the tool's input (see its schema) plus optional venue_id (one of your venues; default the active one), language (ISO 639-1, for texts the tool writes), timezone. The answer is {object: "tool_result", tool, venue_id, result, actions?}; result is the tool's own JSON, actions carries deep links or pictures the tool produced.
Confirmation step. Tools that move money or cannot be undone (confirmation: true in the catalog: confirm or reject requests, accept orders, team, menu, profile, events, pictures, agent policy, hotel writes) do not run on the first call. They answer 409 with {object: "confirmation_required", tool, confirmation_token, label, expires_in_seconds: 600, input}. Show the owner what will happen, then repeat the same call with confirmation_token: the server executes exactly the input it showed you, once, within 10 minutes. A used or expired token answers 409 confirmation_invalid. Read actions of those tools (action: "list") and the dry run of send_campaign (execute: false) need no token. This is the same discipline the in-app assistant applies with its Confirm button.
curl -X POST https://okidooki.app/v1/me/tools/manage_menu \
-H "Authorization: Bearer ok_live_..." -H "Content-Type: application/json" \
-d '{"venue_id":"VENUE_ID","menuType":"drinks","action":"add","name":"Spritz Hugo","price":12,"category":"Cocktails"}'
# -> 409 {"object":"confirmation_required","confirmation_token":"…","label":"manage menu add: Spritz Hugo", …}
curl -X POST https://okidooki.app/v1/me/tools/manage_menu \
-H "Authorization: Bearer ok_live_..." -H "Content-Type: application/json" \
-d '{"venue_id":"VENUE_ID","menuType":"drinks","action":"add","name":"Spritz Hugo","price":12,"category":"Cocktails","confirmation_token":"…"}'
# -> 200 {"object":"tool_result","tool":"manage_menu","result":{…}}MCP Streamable HTTP (JSON-RPC 2.0: initialize, ping, tools/list, tools/call). tools/list shows the tools your key's scopes allow; every schema carries the extra venue_id, confirmation_token and language fields. A write that needs confirmation returns the confirmation_required object as a normal (non-error) result so the agent can ask the owner and call again. Mount it in any MCP client: URL https://okidooki.app/v1/mcp, header Authorization: Bearer ok_live_….
Roles follow the account that owns the key: an owner runs everything, a manager (team role) everything but money settings and team changes, invited staff the desk tools. Test keys (ok_test_…) act on your own venues like live keys; sandbox payments exist only for flagged sandbox venues. Rate limits and quotas are those of your plan. Not exposed: chat-only tools (answer buttons, stats cards, "open this screen", pictures attached in a chat).
Through Okidooki to NowTrust and MakeItFun. The same catalog and the guest MCP carry Oki's agent-to-agent tools: security_options, security_book, security_status, security_cancel, security_sos (+ status / cancel) book licensed guards on NowTrust, merch_options, merch_suggest, merch_preview, merch_quote, merch_create, merch_status, merch_cancel order merchandise on MakeItFun; security_link / merch_link connect the user's account on the other network once (an 8-character code). Okidooki acts as the user's agent there with its own partner keys; payment always happens in the NowTrust or MakeItFun app; on the guest MCP the user's mandate needs the capabilities security, sos (an emergency dispatch is a spend) or merch. REST routes: /a2a/v0/security/options, /a2a/v0/merch/preview, … (tool name with slashes).
Hotels world-wide for your agent (2026-11-18). The catalog and the MCP also carry Oki's stay tools: search_stays (city + country, coordinates or a free-text wish, check-in / check-out, adults, children ages, rooms; Okidooki partner hotels come first with live availability, then 3M+ properties with photo galleries, video, facilities, check-in time, the total for the whole stay in your currency and the cancellation terms), stay_details (description, facilities, room types, times, guest pros and cons), book_stay (offerId from the search plus guestName, email, phone: locks the price and answers with payUrl, a Stripe Checkout page valid 35 minutes; the stay is booked right after the payment, the guest gets the confirmation e-mail, my_stays shows the bookingId), my_stays and cancel_stay (two-step 409 confirmation; the hotel's policy decides the refund, which goes back to the card). Partner hotels in a search carry partner: true and bookWith: "reserve_table" with ready bookParams: they are booked as a room request the hotel confirms. Prices already include Okidooki's margin; nothing is added later. Sandbox keys (ok_test_…) book against the hotel sandbox without a payment.
curl -X POST https://okidooki.app/v1/me/tools/search_stays \
-H "Authorization: Bearer ok_live_..." -H "Content-Type: application/json" \
-d '{"city":"Marbella","country":"ES","checkin":"2026-12-20","checkout":"2026-12-22","adults":2}'
# -> {"object":"tool_result","result":{"results":6,"partnerHotels":0,"stays":[{"offerId":"…","hotel":"Hotel El Faro Marbella","total":"148.50 EUR","cancellation":"non-refundable",…}]},"actions":[{"type":"STAY_CARDS",…}]}
curl -X POST https://okidooki.app/v1/me/tools/book_stay \
-H "Authorization: Bearer ok_live_..." -H "Content-Type: application/json" \
-d '{"offerId":"…","guestName":"Ana Prueba","email":"ana@example.com","phone":"+41791234567"}'
# -> {"object":"tool_result","result":{"stayOrderId":"…","total":"148.50 EUR","status":"QUOTED","payUrl":"https://checkout.stripe.com/c/pay/…","payUrlExpiresAt":"…"}}Guest-side agents use the APP v0 gateway and its MCP instead (https://okidooki.app/mcp, agent keys): discovery, quotes and orders, menus, guest lists, promotions, DJs, hotels, and since 2026-11-10 also venues/details, purchases, events/share and community events (pulses, pulses/create, pulses/cancel).
Pricing & limits
Plans are billed monthly in EUR. Each plan includes a monthly call quota and a per-minute burst limit. Paid plans keep serving past the included quota and bill the excess as overage; the Free plan is a hard cap. Every response includes the rate-limit headers below, and a blocked request does not consume quota.
| Plan | Price / month | Included calls / month | Burst / min | Overage |
|---|---|---|---|---|
| Free | €0 | 5,000 | 60 | hard cap |
| Starter | €15 | 50,000 | 120 | €5 / 1,000 |
| Pro | €79 | 500,000 | 600 | €4 / 1,000 |
| Business | €199 | 2,000,000 | 1,200 | €3 / 1,000 |
| Enterprise | Contact us | Custom | Custom | €2 / 1,000 |
Manage your plan and API keys in the Okidooki web app.
| Header | Description |
|---|---|
X-RateLimit-Limit | Your daily quota. |
X-RateLimit-Remaining | Requests left in the current day. |
X-RateLimit-Reset | Unix time (seconds) when the daily window resets. |
Retry-After | Seconds to wait, sent on a per-minute 429. |
Errors
Okidooki uses conventional HTTP status codes. Errors return a JSON body with an error object.
{
"error": {
"type": "invalid_request_error",
"code": "invalid_dates",
"message": "'end_date' must be after 'start_date'."
}
}| Status | Type | Meaning |
|---|---|---|
400 | invalid_request_error | Missing or malformed parameter. |
401 | authentication_error | Missing, invalid or revoked key. |
403 | permission_error | Key lacks the scope, or you do not own the resource. |
404 | not_found_error | No such resource or endpoint. |
409 | confirmation_required / confirmation_invalid / invalid_state | A business tool write waits for its confirmation token, the token is spent or expired, or a booking is not in a state that allows the action. |
429 | rate_limit_error | Rate limit or daily quota exceeded. |
500 | api_error | Something went wrong on our end. |
Pagination
List endpoints return an object with object: "list", a data array, a has_more boolean and a next_cursor. To fetch the next page, pass next_cursor back as the cursor query parameter. Treat the cursor as opaque. limit ranges from 1 to 100 (default 20).
curl "https://okidooki.app/v1/events?limit=20&cursor=eyJvIjoyMH0" \ -H "Authorization: Bearer ok_live_..."
List events
Returns upcoming public events (those whose end_date is in the future), soonest first.
| Query param | Description | |
|---|---|---|
cityId | optional | Restrict to one city. |
type | optional | Event type, e.g. CLUB, CONCERT, FESTIVAL. |
limit | optional | 1 to 100 (default 20). |
cursor | optional | Pagination cursor. |
{
"object": "list",
"data": [
{
"object": "event",
"id": "7Qd2...",
"title": "Saturday Mainroom",
"type": "CLUB",
"venue_id": "vnu_123",
"venue_name": "Club Aurora",
"city_id": "basel",
"start_date": "2026-10-10T22:00:00.000Z",
"end_date": "2026-10-11T05:00:00.000Z",
"image_url": "https://...",
"has_tickets": true,
"latitude": 47.5596,
"longitude": 7.5886
}
],
"has_more": true,
"next_cursor": "MTc2..."
}Get an event
Retrieve a single event by id.
List venues
Returns venues, optionally filtered by cityId. Sensitive owner fields (legal name, registration number, verification documents) are never exposed.
Get a venue
List your events
Lists every event you organise (newest first), including hidden and past ones.
Create an event
Create an event. Provide a location either by referencing a venue you own (venue_id) or by supplying a free-text venue_name with latitude and longitude.
| Field | Description | |
|---|---|---|
title | required | Event title. |
start_date | required | ISO-8601 start. |
end_date | required | ISO-8601 end, after start. |
venue_id | conditional | A venue you own. Fills name, city and coordinates automatically. |
venue_name, latitude, longitude | conditional | Required when no venue_id is given. |
type | optional | Event type (default CLUB). |
description, image_url, genres, external_ticket_url, city_id, show_on_map | optional | Extra fields. |
curl https://okidooki.app/v1/me/events \ -H "Authorization: Bearer ok_live_..." \ -H "Content-Type: application/json" \ -d '{ "title": "Friday Techno", "venue_id": "vnu_123", "type": "CLUB", "start_date": "2026-10-17T22:00:00Z", "end_date": "2026-10-18T05:00:00Z", "genres": ["techno","house"] }'
external_ticket_url to link an external ticket page.Update an event
Update your own event. Patchable: title, description, start_date, end_date, image_url, genres, external_ticket_url, show_on_map, type.
Delete an event
Permanently delete an event you own. Events with sold tickets cannot be deleted through the API.
List your venues
Update a venue
Update a venue you own. Patchable: name, description, phone, website, email, socials, opening_hours, cuisines, amenities, venue_type, currency, accepts_food_orders, reservations_enabled, banner_url, logo_url, address.
Hotels: availability, bookings, channel sync
Hotels registered on Okidooki (type HOTEL) manage room types, nightly rates, seasonal rates and blocked dates in the app or through this API. Guests book in the app (pay at the hotel with an optional first-night card hold, or prepay); the hotel's PMS or booking engine can read availability, push its own bookings so Okidooki never oversells, change booking status and receive a signed webhook for every change. OTA sync (Booking.com, Airbnb, Expedia) runs over iCal links shown in the app under Rooms & rates.
Availability
Every active room type with available, reason (unavailable, min_nights, too_many_guests, closed), nightly prices, total and taxes in minor units, plus payment_mode (pay_at_hotel or prepay).
Body {check_in, check_out, rooms, guests, room_type_id?}: the best available room type (cheapest unless room_type_id is given) with its total, and the alternatives.
Your room types, rates and blocks
Create or replace a room type: {name, description?, inventory, max_guests, base_price, currency?, min_nights?, active?, image_url?}. Prices in minor units (1000 = 10.00).
Full replacement of the seasonal rates: {rates: [{from, to, price?, min_nights?, closed?}]} (date ranges inclusive; the latest matching rate wins; closed blocks the dates).
{from, to, rooms}: rooms taken outside Okidooki (your PMS, walk-ins). DELETE /v1/me/hotels/{id}/rooms/{room_type_id}/blocks/{block_id} removes one.
Bookings
A booking made outside the app (channel booking): {check_in, check_out, rooms, guests, room_type_id?, guest: {name, email?, phone?}, note?, external_ref?, status?: "requested"}. Confirmed at once unless status is requested; it takes inventory like an app booking and comes back priced.
{action} = confirm, reject, cancel, check_in, check_out, no_show. Status rules apply (409 invalid_state otherwise). A prepaid stay is refunded automatically on reject; no_show captures a first-night hold and is accepted from the check-in date on (409 too_early before). POST .../bookings prices the stay at once and answers 409 unavailable when no room fits.
Hotel operations
The front desk sheet of one day (default today): arrivals, departures, stayovers (each with status, room type, rooms, guests, payment, hold), housekeeping tasks (checkout clean / stayover refresh, ready, done) and counts (pending arrivals, rooms in house, to clean, occupancy tonight). Status actions go through PATCH .../bookings/{booking_id}.
Per night: rooms sold, pending (requests), blocked (manual / iCal), available, occupancy_pct, revenue (minor units, gross room revenue of confirmed stays); summary with occupancy_pct, revenue, adr, revpar; room_types breakdown. Default range: 30 nights from today, max 366.
PMS: offers by rate plan, rooms, folios (2026-11-09)
Hotels that run the Okidooki PMS sell rate plans per room type (flexible, non-refundable, breakfast, corporate; own daily prices or derived from a base plan; occupancy surcharges and children bands; cancellation and no-show policies; closed / closed-to-arrival / closed-to-departure, minimum and maximum stay per night), keep rooms as units (room numbers with condition and maintenance windows) and bill every stay on a folio (charges per night, extras, city tax, payments, invoices). Hotels without rate plans keep working: the room type price acts as a synthetic "Flexible" plan.
One offer per (room type, rate plan): available, reason (unavailable, closed, closed_to_arrival, closed_to_departure, min_nights, max_nights, too_many_guests, too_late, too_early), nightly[] with free rooms, rooms / extras / taxes / total, guarantee (none | card | prepay), cancellation, no_show, includes. uses_rate_plans says whether the hotel has real plans.
Create or replace a plan by your code (FLEX, NRF, BB...): {name, room_type_id, description?, channels?, active?, sort_order?, pricing: {mode: "base"} | {mode: "derived", baseRatePlanId, adjustType: "percent"|"absolute", adjustValue}, occupancy: {standardAdults, surcharges: [{adults, cents}], children: [{fromAge, toAge, cents}]}, included_service_ids?, restrictions: {minLos?, maxLos?, minAdvanceHours?, maxAdvanceDays?, bookingFrom?, bookingTo?}, cancellation: {freeUntilDays, penalty: "first_night"|"percent"|"nights", penaltyPercent?, penaltyNights?}, no_show?, guarantee?, city_tax?, vat_percent?}. DELETE removes a plan nothing derives from.
Daily prices and restrictions over a range: {from, to, weekdays?: [0..6], price?, closed?, cta?, ctd?, min_nights?, max_nights?} (null clears a field; derived plans take restrictions only, 409 derived_plan for prices; at most 400 nights per call). GET .../rates?from&to reads them back. This is the ARI surface a channel manager pushes to.
A physical room: {room_type_id, floor?, max_persons?, features?, active?}. PATCH {condition: dirty|pickup|clean|inspected} or {maintenance: {action: "add", type: out_of_service|out_of_order|out_of_inventory, from, to, reason?} | {action: "remove", id}}; out-of-order and out-of-inventory nights leave the sellable inventory. DELETE removes the room.
Bookings v2. POST .../bookings also takes rate_plan_id, adults, children_ages and status: "optional" + release_at (a tentative hold that takes inventory until the release time, then expires). The answer carries rate_plan, adults, children_ages, room (assigned unit), release_at, pricing.extras and payment.balance. PATCH actions now also include amend {check_in?, check_out?, room_type_id?, rate_plan_id?, rooms?, adults?, children_ages?, force?} (re-quoted by the engine, 409 with the reason otherwise; force is for owners / managers), assign_room {room_id?, lock?} (auto picks the best free room), release_room, hold_option {release_at} and waitlist. check_in auto-assigns a room when the hotel has units; check_out posts the open nights to the folio.
Every folio of the stay (the primary one and any split): number, status, recipient, posted, pending (transitory nights not yet posted), payments, balance, projected_balance, charges[] (kind accommodation | service | city_tax | tax | no_show | cancellation_fee | custom | allowance, service_date, qty, unit, gross, net, vat_percent, vat, state pending | posted | invoiced | cancelled) and payments_list[] (method, amount, receipt_number, business_date). Prepayments and refunds made through Okidooki appear as stripe payments automatically.
{description, unit, qty?, vat_percent?, service_date?, service_id?, folio_id?}: an extra (minibar, parking, late check-out) posted at once; service_id takes name, price and VAT from the hotel's extras.
{method: cash | card_terminal | bank_transfer | voucher | invoice_ar | twint | paypal | ota_virtual_card | other, amount, reference?, note?, business_date?, folio_id?}; a negative amount records a refund. Card payments taken through Okidooki are never typed by hand (stripe is refused).
Sandbox payments. A partner's sandbox hotel (flagged by Okidooki: testAccount + hotel.sandboxPayments) runs the prepay flow without Stripe: once a stay is confirmed its payment.status becomes due (payment.sandbox: true) and this call, or the agent route sandbox/pay, marks it paid with a pi_sandbox_… intent; refunds follow the cancellation policy the same way. Live keys and real hotels get 403. Ask us for a sandbox hotel when you integrate.
Folios and invoices (phase B)
{type?: "invoice" | "proforma", folio_id?, recipient?: {name, company?, vatId?, street?, zip?, city?, country?, email?}, language?: en|de|fr|it|es, note?}. A legal invoice takes every posted, not yet invoiced line of the folio, gets the next gap-free number of the hotel's series (F-2026-000001), a SHA-256 record chained to the previous invoice and a PDF (pdf_url). Spanish hotels with VERI*FACTU on also get the AEAT fingerprint and the verification QR on the PDF. GET /v1/me/hotels/{id}/invoices?from&to&status, GET /v1/me/hotels/{id}/invoices/{invoice_id}, POST /v1/me/hotels/{id}/invoices/{invoice_id}/cancel {reason} (cancellation invoice in the FR- series; the lines return to the folio).
Revenue by kind and VAT rate, payments by method, invoices issued / cancelled / open with receivables ageing, occupancy, ADR, RevPAR per night, the closed days' reports (dailyReports), no-shows and cancellations.
Guest registration and legal reporting (phase C)
The registration card of a stay in the shape the Spanish Ministry (SES.Hospedajes) and the Swiss cantons expect: {guests: [{nombre, apellido1, apellido2?, tipoDocumento: NIF|NIE|PAS|OTRO, numeroDocumento, soporteDocumento?, fechaNacimiento, nacionalidad (ISO 3), sexo?: H|M|O, direccion: {direccion, codigoMunicipio? (INE, Spain), nombreMunicipio? (abroad), codigoPostal, pais (ISO 3)}, telefono?, correo?, parentesco? (kinship code for minors)}], notes?, signature_data_url?}. The answer carries status (draft | complete | signed) and problems[], the validation the Ministry would otherwise reject. A complete card releases the waiting traveller report.
The hotel's reporting queue: for Spanish hotels with SES.Hospedajes switched on, a reservation report (RH) is queued at confirmation, a traveller report (PV) at check-in (waiting for the registration card), a cancellation when an accepted reservation is cancelled; each entry shows status (pending, pending_card, pending_credentials, sent, accepted, rejected, error), the Ministry lote and the communication codes. Sending, polling and retries run every 15 minutes; XML and answers are archived for three years.
Booking engine on the hotel's website (public, no key)
Hotels that switch their booking engine on get a public page https://okidooki.app/book/?hotel={id} and an embed snippet <script src="https://okidooki.app/book/embed.js" data-hotel="{id}" data-lang="de"></script>. The page talks to a small public API you can also call directly from your own front end (rate limited per IP):
{hotel, checkIn, checkOut, rooms, adults, childrenAges, roomTypeId, ratePlanId, guest: {firstName, lastName, email, phone?, country?}, note?, lang?, acceptTerms}. The answer carries id, status (confirmed or requested), token, manageUrl and, for prepaid rate plans, checkoutUrl (Stripe Checkout, paid to the hotel's account). GET /book/api/booking/{id}?token= and POST /book/api/booking/{id}/cancel {token} let the guest manage the stay; the cancellation fee follows the rate plan's policy.
Channel manager (SiteMinder pmsXchange / OpenTravel)
The hotel connects one channel manager under Channels & booking engine: Okidooki pushes availability, prices and restrictions per room type and rate plan (OTA_HotelAvailNotifRQ, OTA_HotelRateAmountNotifRQ) within minutes of a change and pulls the channels' bookings (OTA_ReadRQ / OTA_NotifReportRQ) every five minutes; they appear here as confirmed stays with source channel:<ota> and external_ref = the channel manager's id. Room type and rate plan codes are mapped in the dashboard.
Groups and blocks, analytics, portfolio, guest messaging (phase E, 2026-11-10)
A block holds rooms per room type for a group at a contracted rate until a cut-off date. Held rooms leave public availability (offers, occupancy, channel manager, booking engine); the rooming list turns them into confirmed stays with source: "group"; the nightly wash releases what was not picked up after the cut-off. billing: "master" opens a group folio for the organiser (move or post charges on it like on any folio).
{name, code?, status: tentative|definite, from, to, cutoff_date, rate_plan_id?, contract_rate? (cents per room and night), allotment: {room_type_id: rooms}, billing: own|master, contact: {name, company, email, phone}, notes?}. The answer carries pickup (room-nights held / picked, per type remaining).
{action: definite|tentative|cancel|wash} or field changes. Cancelling a block never touches the stays already booked.
{rows: [{name, email?, phone?, room_type_id?, check_in?, check_out?, rooms?, adults?, children_ages?, note?, external_ref?}]}: one confirmed booking per row inside the allotment and the block's dates; rows that do not fit come back with error (allotment_exhausted, outside_block_dates, room_type_not_in_block) and nothing is written for them.
Per stay date: rooms on the books, pending, group rooms, occupancy, revenue, ADR, pickup over 7 / 14 / 30 days, same date last year (STLY) and pace, forecast from the hotel's own booking curve (share of final rooms on the books at each lead time over the last 90 days of arrivals). Plus pickup by creation day, segment mix (desk, app, ibe, channel, api, group, ical), rate plan and room type mix, lead-time and length-of-stay distributions, cancellation and no-show rates.
Every hotel the key's owner runs, with today's arrivals, departures, in-house rooms and occupancy (multi-property view).
{pre_arrival: {enabled, days_before}, post_stay: {enabled}, reply_to?, language?}. The hourly worker mails each confirmed stay once before arrival (stay summary, check-in time, online pre check-in link, manage link) and once after departure. run {dry_run: true} lists today's candidates.
Online pre check-in (public, token): GET|POST /book/api/booking/{id}/registration?token=. Any stay with a manage token qualifies (booking-engine stays have one from the start, the pre-arrival mail issues one for desk, API and channel stays). POST {token, guests: [{firstName, lastName, dateOfBirth, nationality (ISO 3), docType passport|id_card, docNumber, address {street, city, zip, country}, email?, phone?, isHolder?}]} fills the registration card the same way the desk does, including the Spanish SES validation; the guest sees it on the booking page under "Online pre check-in".
Hotel webhook
{url, events?} (https only). The answer carries the secret once. Every change is POSTed as {id, type, created, data: {booking}} with X-Okidooki-Event and X-Okidooki-Signature: t=<unix>,v1=<hex> where v1 = HMAC-SHA256(secret, t + "." + rawBody). Types: booking.requested, booking.confirmed, booking.rejected, booking.cancelled, booking.checked_in, booking.checked_out, booking.no_show, booking.paid, booking.refunded, ping. One retry after 5 s. POST /v1/me/hotels/{id}/webhook/ping sends a test event. An empty url removes the webhook.
Agents on the APP v0 network book rooms with the reserve_room capability (quote with checkIn, checkOut, rooms, guests, optional roomTypeId, then order) and get order.status webhooks as for tables.
List promotions
Optional query venueId narrows to one venue.
Create a promotion
| Field | Description | |
|---|---|---|
venue_id | required | A venue you own. |
title | required | Promotion title. |
starts_at, ends_at | required | ISO-8601 window. |
reward_type | optional | FREE_DRINK, FREE_ENTRY, DISCOUNT, VIP, OTHER. |
limit | optional | Max approved claims, the "first N". 0 means unlimited. |
require_check_in | optional | Require an active venue check-in to claim. |
target | optional | { "gender": "any|female|male", "ageMin": n, "ageMax": n }. |
Update a promotion
Patchable: title, description, limit, ends_at, and status (only to ENDED, to close a promotion early).
Venue analytics
Live, computed metrics for a venue you own.
{
"object": "analytics",
"venue_id": "vnu_123",
"live_check_ins": 42,
"oki_rating": 4.6,
"events": { "total": 31, "upcoming": 4, "tickets_sold": 860 },
"reservations": { "total": 120, "by_status": { "CONFIRMED": 90 } },
"orders": { "drinks": { "total": 540 }, "food": { "total": 120 } },
"promotions": { "total": 6, "active": 2, "claimed_total": 148 }
}