{"openapi":"3.1.0","info":{"title":"Imxi partner API","version":"4.0.0","description":"Your own systems and Imxi, both ways: tables, sessions, appointments, enquiries and day passes. A key belongs to one business and acts as it. Create keys in the Imxi app under Integrations, API keys. Times are ISO 8601 with an offset; days are Malta dates like 2026-10-24. Money is in cents.","contact":{"email":"hello@imxi.mt","url":"https://imxi.mt/developers"}},"servers":[{"url":"https://api.imxi.mt/v1/partner"}],"security":[{"apiKey":[]}],"tags":[{"name":"Business"},{"name":"Tables"},{"name":"Bookings","description":"Every kind: table, session, appointment, vip, slot, request."},{"name":"Sessions"},{"name":"Appointments"},{"name":"Enquiries"},{"name":"Day passes"},{"name":"Sync","description":"Blocks: times your own system has taken, so Imxi never sells them. Resources: what is booked."}],"paths":{"/venue":{"get":{"summary":"The business this key belongs to","description":"Scope: `any`.","x-scope":"any","tags":["Business"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Venue"}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/resources":{"get":{"summary":"Rooms, lanes, boats, courts, instructors and staff","description":"Scope: `availability:read`.","x-scope":"availability:read","tags":["Business"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Resource"}}},"required":["items"]}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Add a resource (Pro)","description":"Scope: `resources:write`.","x-scope":"resources:write","tags":["Sync"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":60},"kind":{"type":"string","enum":["room","lane","track","boat","court","instructor","staff","table","other"]},"capacityPeople":{"type":"integer","minimum":1,"maximum":500},"minGroup":{"type":"integer","minimum":1},"maxGroup":{"anyOf":[{"type":"integer"},{"type":"null"}]},"minAge":{"anyOf":[{"type":"integer","minimum":0,"maximum":99},{"type":"null"}]},"privateOnly":{"type":"boolean"},"weatherDependent":{"type":"boolean"},"isActive":{"type":"boolean"}},"required":["name","capacityPeople"]}}}},"responses":{"201":{"description":"Made.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Resource"}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Taken, full, or a request with this Idempotency-Key is still running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The Idempotency-Key was used for a different request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 255 characters. The same key with the same request within 24 hours answers what the first one did, with Idempotent-Replayed: true. The same key with a different request is a 422; while the first is still running, a 409.","schema":{"type":"string","maxLength":255}}]}},"/resources/{id}":{"get":{"summary":"One resource","description":"Scope: `availability:read`.","x-scope":"availability:read","tags":["Business"],"parameters":[{"name":"id","in":"path","required":true,"description":"Resource id","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Resource"}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"summary":"Change a resource","description":"Scope: `resources:write`.","x-scope":"resources:write","tags":["Sync"],"parameters":[{"name":"id","in":"path","required":true,"description":"Resource id","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 255 characters. The same key with the same request within 24 hours answers what the first one did, with Idempotent-Replayed: true. The same key with a different request is a 422; while the first is still running, a 409.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":60},"kind":{"type":"string","enum":["room","lane","track","boat","court","instructor","staff","table","other"]},"capacityPeople":{"type":"integer","minimum":1,"maximum":500},"minGroup":{"type":"integer","minimum":1},"maxGroup":{"anyOf":[{"type":"integer"},{"type":"null"}]},"minAge":{"anyOf":[{"type":"integer","minimum":0,"maximum":99},{"type":"null"}]},"privateOnly":{"type":"boolean"},"weatherDependent":{"type":"boolean"},"isActive":{"type":"boolean"}},"required":[]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Resource"}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Taken, full, or a request with this Idempotency-Key is still running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The Idempotency-Key was used for a different request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"summary":"Switch a resource off (its future sessions without bookings go)","description":"Scope: `resources:write`.","x-scope":"resources:write","tags":["Sync"],"parameters":[{"name":"id","in":"path","required":true,"description":"Resource id","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 255 characters. The same key with the same request within 24 hours answers what the first one did, with Idempotent-Replayed: true. The same key with a different request is a 422; while the first is still running, a 409.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Resource"}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Taken, full, or a request with this Idempotency-Key is still running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The Idempotency-Key was used for a different request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/blocks":{"get":{"summary":"Blocks in a range (92 days at most): yours, the business’s own, and copies of its calendars","description":"Scope: `availability:read`.","x-scope":"availability:read","tags":["Sync"],"parameters":[{"name":"from","in":"query","required":false,"description":"A Malta date or an instant. Default now","schema":{"type":"string"}},{"name":"to","in":"query","required":false,"description":"Default 31 days after from","schema":{"type":"string"}},{"name":"source","in":"query","required":false,"description":"","schema":{"type":"string","enum":["api","staff","feed","email"]}},{"name":"externalRef","in":"query","required":false,"description":"Find yours by your id","schema":{"type":"string"}},{"name":"resourceId","in":"query","required":false,"description":"","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Block"}}},"required":["items"]}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Block a time. The same externalRef again moves it (200)","description":"Scope: `availability:write`.","x-scope":"availability:write","tags":["Sync"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":"string","format":"date-time"},"resourceId":{"anyOf":[{"type":"string","format":"uuid","description":"A room, boat or staff member. Leave out with tableIds and area to close the whole business."},{"type":"null"}]},"tableIds":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}]},"area":{"anyOf":[{"type":"string","maxLength":30,"description":"Every table in this area"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string","maxLength":120,"description":"Shown to the business only, never to guests"},{"type":"null"}]},"externalRef":{"anyOf":[{"type":"string","maxLength":120,"description":"Your id for it. Sending the same one again moves that block."},{"type":"null"}]}},"required":["startsAt","endsAt"]}}}},"responses":{"200":{"description":"The same externalRef: that block, moved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Block"}}}},"201":{"description":"Made.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Block"}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Taken, full, or a request with this Idempotency-Key is still running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The Idempotency-Key was used for a different request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 255 characters. The same key with the same request within 24 hours answers what the first one did, with Idempotent-Replayed: true. The same key with a different request is a 422; while the first is still running, a 409.","schema":{"type":"string","maxLength":255}}]}},"/blocks/{id}":{"get":{"summary":"One block, by id or your externalRef","description":"Scope: `availability:read`.","x-scope":"availability:read","tags":["Sync"],"parameters":[{"name":"id","in":"path","required":true,"description":"Block id or externalRef","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Block"}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"summary":"Move or change a block","description":"Scope: `availability:write`.","x-scope":"availability:write","tags":["Sync"],"parameters":[{"name":"id","in":"path","required":true,"description":"Block id or externalRef","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 255 characters. The same key with the same request within 24 hours answers what the first one did, with Idempotent-Replayed: true. The same key with a different request is a 422; while the first is still running, a 409.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":"string","format":"date-time"},"resourceId":{"anyOf":[{"type":"string","format":"uuid","description":"A room, boat or staff member. Leave out with tableIds and area to close the whole business."},{"type":"null"}]},"tableIds":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}]},"area":{"anyOf":[{"type":"string","maxLength":30,"description":"Every table in this area"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string","maxLength":120,"description":"Shown to the business only, never to guests"},{"type":"null"}]},"externalRef":{"anyOf":[{"type":"string","maxLength":120,"description":"Your id for it. Sending the same one again moves that block."},{"type":"null"}]}},"required":[]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Block"}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Taken, full, or a request with this Idempotency-Key is still running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The Idempotency-Key was used for a different request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"summary":"Open the time again","description":"Scope: `availability:write`.","x-scope":"availability:write","tags":["Sync"],"parameters":[{"name":"id","in":"path","required":true,"description":"Block id or externalRef","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 255 characters. The same key with the same request within 24 hours answers what the first one did, with Idempotent-Replayed: true. The same key with a different request is a 422; while the first is still running, a 409.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"id":{"type":"string"}}}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Taken, full, or a request with this Idempotency-Key is still running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The Idempotency-Key was used for a different request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/options":{"get":{"summary":"Services, who gives them, day passes and whether enquiries are taken","description":"Scope: `availability:read`.","x-scope":"availability:read","tags":["Business"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/availability":{"get":{"summary":"Free table times on a day","description":"Scope: `availability:read`.","x-scope":"availability:read","tags":["Tables"],"parameters":[{"name":"date","in":"query","required":true,"description":"Malta date","schema":{"type":"string","format":"date"}},{"name":"partySize","in":"query","required":false,"description":"Default 2","schema":{"type":"integer","minimum":1,"maximum":60}},{"name":"area","in":"query","required":false,"description":"inside, terrace, bar or the business’s own word","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/availability/days":{"get":{"summary":"Which days have tables free","description":"Scope: `availability:read`.","x-scope":"availability:read","tags":["Tables"],"parameters":[{"name":"from","in":"query","required":false,"description":"Default today","schema":{"type":"string","format":"date"}},{"name":"days","in":"query","required":false,"description":"Default 14","schema":{"type":"integer","minimum":1,"maximum":31}},{"name":"partySize","in":"query","required":false,"description":"Default 2","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object"}}},"required":["items"]}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tables":{"get":{"summary":"The tables","description":"Scope: `availability:read`.","x-scope":"availability:read","tags":["Tables"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object"}}},"required":["items"]}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/waitlist":{"get":{"summary":"The waitlist for a day","description":"Scope: `bookings:read`.","x-scope":"bookings:read","tags":["Tables"],"parameters":[{"name":"date","in":"query","required":false,"description":"Default today","schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object"}}},"required":["items"]}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/bookings":{"get":{"summary":"Bookings in a range, oldest first (31 days at most)","description":"Scope: `bookings:read`.","x-scope":"bookings:read","tags":["Bookings"],"parameters":[{"name":"from","in":"query","required":false,"description":"A Malta date or an instant. Default today","schema":{"type":"string"}},{"name":"to","in":"query","required":false,"description":"Default a week after from","schema":{"type":"string"}},{"name":"status","in":"query","required":false,"description":"","schema":{"type":"string","enum":["requested","confirmed","declined","cancelled","no_show","completed"]}},{"name":"kind","in":"query","required":false,"description":"Default: bookings that hold a time (tables and appointments)","schema":{"type":"string","enum":["table","session","appointment","vip","slot","request","all"]}},{"name":"updatedSince","in":"query","required":false,"description":"Only bookings changed at or after this instant, for a sync that polls","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"description":"nextCursor from the last page","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Booking"}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["items","nextCursor"]}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Book a table","description":"Scope: `bookings:write`.","x-scope":"bookings:write","tags":["Tables"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"startsAt":{"type":"string","format":"date-time"},"partySize":{"type":"integer","minimum":1,"maximum":60},"guest":{"type":"object","properties":{"name":{"type":"string","maxLength":80},"phone":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}]},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}]}},"required":["name"]},"area":{"anyOf":[{"type":"string"},{"type":"null"}]},"occasion":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}]},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"externalRef":{"anyOf":[{"type":"string","maxLength":80,"description":"Your reference. Sending it again returns the same booking."},{"type":"null"}]},"deposit":{"type":"string","enum":["skip","collect"],"description":"collect holds the table and returns a checkout link for the guest"}},"required":["startsAt","partySize","guest"]}}}},"responses":{"200":{"description":"The same externalRef again: the booking it already made.","content":{"application/json":{"schema":{"type":"object","properties":{"booking":{"$ref":"#/components/schemas/Booking"},"checkout":{"anyOf":[{"$ref":"#/components/schemas/Checkout"},{"type":"null"}]}}}}}},"201":{"description":"Made.","content":{"application/json":{"schema":{"type":"object","properties":{"booking":{"$ref":"#/components/schemas/Booking"},"checkout":{"anyOf":[{"$ref":"#/components/schemas/Checkout"},{"type":"null"}]}}}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Full, closed or taken.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The Idempotency-Key was used for a different request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 255 characters. The same key with the same request within 24 hours answers what the first one did, with Idempotent-Replayed: true. The same key with a different request is a 422; while the first is still running, a 409.","schema":{"type":"string","maxLength":255}}]}},"/bookings/{ref}":{"get":{"summary":"One booking, by id or its six character reference","description":"Scope: `bookings:read`.","x-scope":"bookings:read","tags":["Bookings"],"parameters":[{"name":"ref","in":"path","required":true,"description":"Id or reference","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"summary":"Move a table booking, change the party or your note","description":"Scope: `bookings:write`.","x-scope":"bookings:write","tags":["Tables"],"parameters":[{"name":"ref","in":"path","required":true,"description":"Id or reference","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 255 characters. The same key with the same request within 24 hours answers what the first one did, with Idempotent-Replayed: true. The same key with a different request is a 422; while the first is still running, a 409.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"startsAt":{"type":"string","format":"date-time"},"partySize":{"type":"integer"},"tableIds":{"type":"array","items":{"type":"string","format":"uuid"}},"venueNote":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Taken, full, or a request with this Idempotency-Key is still running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The Idempotency-Key was used for a different request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"summary":"Cancel (the same as POST /bookings/{ref}/cancel)","description":"Scope: `bookings:write`.","x-scope":"bookings:write","tags":["Bookings"],"parameters":[{"name":"ref","in":"path","required":true,"description":"Id or reference","schema":{"type":"string"}},{"name":"reason","in":"query","required":false,"description":"","schema":{"type":"string","maxLength":300}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 255 characters. The same key with the same request within 24 hours answers what the first one did, with Idempotent-Replayed: true. The same key with a different request is a 422; while the first is still running, a 409.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Taken, full, or a request with this Idempotency-Key is still running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The Idempotency-Key was used for a different request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/bookings/{ref}/cancel":{"post":{"summary":"Cancel (a paid deposit goes back in full)","description":"Scope: `bookings:write`.","x-scope":"bookings:write","tags":["Bookings"],"parameters":[{"name":"ref","in":"path","required":true,"description":"Id or reference","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 255 characters. The same key with the same request within 24 hours answers what the first one did, with Idempotent-Replayed: true. The same key with a different request is a 422; while the first is still running, a 409.","schema":{"type":"string","maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Taken, full, or a request with this Idempotency-Key is still running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The Idempotency-Key was used for a different request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/bookings/{ref}/status":{"post":{"summary":"Mark arrived, seated, completed, no show or confirmed","description":"Scope: `bookings:write`.","x-scope":"bookings:write","tags":["Bookings"],"parameters":[{"name":"ref","in":"path","required":true,"description":"Id or reference","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 255 characters. The same key with the same request within 24 hours answers what the first one did, with Idempotent-Replayed: true. The same key with a different request is a 422; while the first is still running, a 409.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["arrived","seated","completed","no_show","confirmed"]}},"required":["status"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Taken, full, or a request with this Idempotency-Key is still running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The Idempotency-Key was used for a different request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/sessions":{"get":{"summary":"Sessions with places left, by day","description":"Scope: `availability:read`.","x-scope":"availability:read","tags":["Sessions"],"parameters":[{"name":"from","in":"query","required":false,"description":"Default today","schema":{"type":"string","format":"date"}},{"name":"days","in":"query","required":false,"description":"Default 7","schema":{"type":"integer","minimum":1,"maximum":14}},{"name":"partySize","in":"query","required":false,"description":"Default 1","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/sessions/{id}":{"get":{"summary":"One session and the bookings on it","description":"Scope: `bookings:read`.","x-scope":"bookings:read","tags":["Sessions"],"parameters":[{"name":"id","in":"path","required":true,"description":"Session id","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionDetail"}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/sessions/{id}/bookings":{"post":{"summary":"Book places on a session","description":"Scope: `bookings:write`.","x-scope":"bookings:write","tags":["Sessions"],"parameters":[{"name":"id","in":"path","required":true,"description":"Session id","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 255 characters. The same key with the same request within 24 hours answers what the first one did, with Idempotent-Replayed: true. The same key with a different request is a 422; while the first is still running, a 409.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"partySize":{"type":"integer","minimum":1},"guest":{"type":"object","properties":{"name":{"type":"string","maxLength":80},"phone":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}]},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}]}},"required":["name"]},"addOns":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"qty":{"type":"integer"}},"required":["id"]}},"answers":{"type":"object","additionalProperties":{"type":"string"}},"waiverAccepted":{"type":"boolean"},"ageConfirmed":{"type":"boolean"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"externalRef":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}]}},"required":["partySize","guest"]}}}},"responses":{"200":{"description":"The same externalRef again: the booking it already made.","content":{"application/json":{"schema":{"type":"object","properties":{"booking":{"$ref":"#/components/schemas/Booking"},"checkout":{"anyOf":[{"$ref":"#/components/schemas/Checkout"},{"type":"null"}]}}}}}},"201":{"description":"Made.","content":{"application/json":{"schema":{"type":"object","properties":{"booking":{"$ref":"#/components/schemas/Booking"},"checkout":{"anyOf":[{"$ref":"#/components/schemas/Checkout"},{"type":"null"}]}}}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Full, closed or taken.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The Idempotency-Key was used for a different request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/appointments/availability":{"get":{"summary":"Free start times for a service on a day","description":"Scope: `availability:read`.","x-scope":"availability:read","tags":["Appointments"],"parameters":[{"name":"serviceId","in":"query","required":true,"description":"","schema":{"type":"string","format":"uuid"}},{"name":"date","in":"query","required":true,"description":"","schema":{"type":"string","format":"date"}},{"name":"people","in":"query","required":false,"description":"2 for a couples service","schema":{"type":"integer","minimum":1,"maximum":2}},{"name":"resourceId","in":"query","required":false,"description":"A staff member or room","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/appointments":{"post":{"summary":"Book an appointment","description":"Scope: `bookings:write`.","x-scope":"bookings:write","tags":["Appointments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"serviceId":{"type":"string","format":"uuid"},"startsAt":{"type":"string","format":"date-time"},"people":{"type":"integer","minimum":1,"maximum":2},"resourceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"guest":{"type":"object","properties":{"name":{"type":"string","maxLength":80},"phone":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}]},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}]}},"required":["name"]},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalRef":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["serviceId","startsAt","guest"]}}}},"responses":{"200":{"description":"The same externalRef again: the booking it already made.","content":{"application/json":{"schema":{"type":"object","properties":{"booking":{"$ref":"#/components/schemas/Booking"},"checkout":{"anyOf":[{"$ref":"#/components/schemas/Checkout"},{"type":"null"}]}}}}}},"201":{"description":"Made.","content":{"application/json":{"schema":{"type":"object","properties":{"booking":{"$ref":"#/components/schemas/Booking"},"checkout":{"anyOf":[{"$ref":"#/components/schemas/Checkout"},{"type":"null"}]}}}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Full, closed or taken.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The Idempotency-Key was used for a different request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 255 characters. The same key with the same request within 24 hours answers what the first one did, with Idempotent-Replayed: true. The same key with a different request is a 422; while the first is still running, a 409.","schema":{"type":"string","maxLength":255}}]}},"/enquiries":{"get":{"summary":"Group and private hire enquiries, newest first","description":"Scope: `bookings:read`.","x-scope":"bookings:read","tags":["Enquiries"],"parameters":[{"name":"status","in":"query","required":false,"description":"","schema":{"type":"string","enum":["open","quoted","booked","closed"]}},{"name":"limit","in":"query","required":false,"description":"Default 50","schema":{"type":"integer","maximum":200}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Enquiry"}}},"required":["items"]}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Send an enquiry from your own website form","description":"Scope: `bookings:write`.","x-scope":"bookings:write","tags":["Enquiries"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string","format":"date"},"time":{"anyOf":[{"type":"string","pattern":"^\\d{2}:\\d{2}$"},{"type":"null"}]},"headcount":{"type":"integer","minimum":1,"maximum":2000},"occasion":{"anyOf":[{"type":"string"},{"type":"null"}]},"budgetCents":{"anyOf":[{"type":"integer"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"guest":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string","format":"email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","email"]}},"required":["date","headcount","guest"]}}}},"responses":{"201":{"description":"In the Enquiries inbox.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Enquiry"}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/enquiries/{id}":{"get":{"summary":"One enquiry","description":"Scope: `bookings:read`.","x-scope":"bookings:read","tags":["Enquiries"],"parameters":[{"name":"id","in":"path","required":true,"description":"Enquiry id","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Enquiry"}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/enquiries/{id}/quote":{"post":{"summary":"Send a quote: the total, a deposit (0 for none), a note and how many days it holds. The guest is told.","description":"Scope: `bookings:write`.","x-scope":"bookings:write","tags":["Enquiries"],"parameters":[{"name":"id","in":"path","required":true,"description":"Enquiry id","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"totalCents":{"type":"integer","minimum":0},"depositCents":{"type":"integer","minimum":0},"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"validDays":{"type":"integer","minimum":1,"maximum":60}},"required":["totalCents"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Enquiry"}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/enquiries/{id}/decline":{"post":{"summary":"Decline an enquiry, with an optional note for the guest. The guest is told.","description":"Scope: `bookings:write`.","x-scope":"bookings:write","tags":["Enquiries"],"parameters":[{"name":"id","in":"path","required":true,"description":"Enquiry id","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Enquiry"}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/day-passes":{"get":{"summary":"Day passes on sale","description":"Scope: `availability:read`.","x-scope":"availability:read","tags":["Day passes"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object"}}},"required":["items"]}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/day-passes/orders":{"get":{"summary":"Day passes sold for a date","description":"Scope: `bookings:read`.","x-scope":"bookings:read","tags":["Day passes"],"parameters":[{"name":"date","in":"query","required":false,"description":"Default today","schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string"},"items":{"type":"array","items":{"$ref":"#/components/schemas/DayPassOrder"}}}}}}},"400":{"description":"The request is not right. The message says what to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key does not have the scope this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"120 requests a minute per key. x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset say where you are; retry-after says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"webhooks":{"booking.created":{"post":{"summary":"A booking is made","description":"Signed: Imxi-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the webhook secret>. Answer 2xx within 8 seconds. Retried after 1, 5 and 15 minutes, then 1, 3, 6 and 12 hours.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Received."}}}},"booking.updated":{"post":{"summary":"A booking changes","description":"Signed: Imxi-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the webhook secret>. Answer 2xx within 8 seconds. Retried after 1, 5 and 15 minutes, then 1, 3, 6 and 12 hours.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Received."}}}},"booking.cancelled":{"post":{"summary":"A booking is cancelled","description":"Signed: Imxi-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the webhook secret>. Answer 2xx within 8 seconds. Retried after 1, 5 and 15 minutes, then 1, 3, 6 and 12 hours.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Received."}}}},"booking.seated":{"post":{"summary":"A party is seated","description":"Signed: Imxi-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the webhook secret>. Answer 2xx within 8 seconds. Retried after 1, 5 and 15 minutes, then 1, 3, 6 and 12 hours.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Received."}}}},"booking.completed":{"post":{"summary":"A booking is finished","description":"Signed: Imxi-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the webhook secret>. Answer 2xx within 8 seconds. Retried after 1, 5 and 15 minutes, then 1, 3, 6 and 12 hours.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Received."}}}},"booking.no_show":{"post":{"summary":"A party does not turn up","description":"Signed: Imxi-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the webhook secret>. Answer 2xx within 8 seconds. Retried after 1, 5 and 15 minutes, then 1, 3, 6 and 12 hours.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Received."}}}},"deposit.paid":{"post":{"summary":"A deposit is paid","description":"Signed: Imxi-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the webhook secret>. Answer 2xx within 8 seconds. Retried after 1, 5 and 15 minutes, then 1, 3, 6 and 12 hours.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Received."}}}},"deposit.refunded":{"post":{"summary":"A deposit is refunded","description":"Signed: Imxi-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the webhook secret>. Answer 2xx within 8 seconds. Retried after 1, 5 and 15 minutes, then 1, 3, 6 and 12 hours.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Received."}}}},"waitlist.joined":{"post":{"summary":"Someone joins the waitlist","description":"Signed: Imxi-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the webhook secret>. Answer 2xx within 8 seconds. Retried after 1, 5 and 15 minutes, then 1, 3, 6 and 12 hours.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Received."}}}},"booking.confirmed":{"post":{"summary":"A booking is confirmed","description":"Signed: Imxi-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the webhook secret>. Answer 2xx within 8 seconds. Retried after 1, 5 and 15 minutes, then 1, 3, 6 and 12 hours.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Received."}}}},"guarantee.held":{"post":{"summary":"A card guarantee is held","description":"Signed: Imxi-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the webhook secret>. Answer 2xx within 8 seconds. Retried after 1, 5 and 15 minutes, then 1, 3, 6 and 12 hours.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Received."}}}},"guarantee.charged":{"post":{"summary":"A card guarantee is charged","description":"Signed: Imxi-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the webhook secret>. Answer 2xx within 8 seconds. Retried after 1, 5 and 15 minutes, then 1, 3, 6 and 12 hours.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Received."}}}},"guarantee.released":{"post":{"summary":"A card guarantee is released","description":"Signed: Imxi-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the webhook secret>. Answer 2xx within 8 seconds. Retried after 1, 5 and 15 minutes, then 1, 3, 6 and 12 hours.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Received."}}}},"session.cancelled":{"post":{"summary":"A session is cancelled","description":"Signed: Imxi-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the webhook secret>. Answer 2xx within 8 seconds. Retried after 1, 5 and 15 minutes, then 1, 3, 6 and 12 hours.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Received."}}}},"enquiry.received":{"post":{"summary":"An enquiry comes in","description":"Signed: Imxi-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the webhook secret>. Answer 2xx within 8 seconds. Retried after 1, 5 and 15 minutes, then 1, 3, 6 and 12 hours.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Received."}}}},"enquiry.quoted":{"post":{"summary":"You send a quote","description":"Signed: Imxi-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the webhook secret>. Answer 2xx within 8 seconds. Retried after 1, 5 and 15 minutes, then 1, 3, 6 and 12 hours.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Received."}}}},"enquiry.accepted":{"post":{"summary":"A quote is accepted","description":"Signed: Imxi-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the webhook secret>. Answer 2xx within 8 seconds. Retried after 1, 5 and 15 minutes, then 1, 3, 6 and 12 hours.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Received."}}}},"enquiry.declined":{"post":{"summary":"An enquiry is declined","description":"Signed: Imxi-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the webhook secret>. Answer 2xx within 8 seconds. Retried after 1, 5 and 15 minutes, then 1, 3, 6 and 12 hours.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Received."}}}},"enquiry.expired":{"post":{"summary":"A quote runs out","description":"Signed: Imxi-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the webhook secret>. Answer 2xx within 8 seconds. Retried after 1, 5 and 15 minutes, then 1, 3, 6 and 12 hours.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Received."}}}},"ticket.purchased":{"post":{"summary":"Tickets are bought","description":"Signed: Imxi-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the webhook secret>. Answer 2xx within 8 seconds. Retried after 1, 5 and 15 minutes, then 1, 3, 6 and 12 hours.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Received."}}}},"ticket.refunded":{"post":{"summary":"A ticket is refunded","description":"Signed: Imxi-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the webhook secret>. Answer 2xx within 8 seconds. Retried after 1, 5 and 15 minutes, then 1, 3, 6 and 12 hours.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Received."}}}},"ticket.checked_in":{"post":{"summary":"A ticket is scanned in","description":"Signed: Imxi-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the webhook secret>. Answer 2xx within 8 seconds. Retried after 1, 5 and 15 minutes, then 1, 3, 6 and 12 hours.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Received."}}}},"guest_list.added":{"post":{"summary":"A name is added to a guest list","description":"Signed: Imxi-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the webhook secret>. Answer 2xx within 8 seconds. Retried after 1, 5 and 15 minutes, then 1, 3, 6 and 12 hours.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Received."}}}},"guest_list.checked_in":{"post":{"summary":"A guest list name is ticked","description":"Signed: Imxi-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the webhook secret>. Answer 2xx within 8 seconds. Retried after 1, 5 and 15 minutes, then 1, 3, 6 and 12 hours.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Received."}}}},"day_pass.purchased":{"post":{"summary":"A day pass is bought","description":"Signed: Imxi-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the webhook secret>. Answer 2xx within 8 seconds. Retried after 1, 5 and 15 minutes, then 1, 3, 6 and 12 hours.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Received."}}}},"day_pass.redeemed":{"post":{"summary":"A day pass is used","description":"Signed: Imxi-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the webhook secret>. Answer 2xx within 8 seconds. Retried after 1, 5 and 15 minutes, then 1, 3, 6 and 12 hours.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Received."}}}},"day_pass.refunded":{"post":{"summary":"A day pass is refunded","description":"Signed: Imxi-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with the webhook secret>. Answer 2xx within 8 seconds. Retried after 1, 5 and 15 minutes, then 1, 3, 6 and 12 hours.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Received."}}}}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","bearerFormat":"imxi_live_…","description":"Scopes: availability:read, bookings:read, bookings:write, guests:read, availability:write, resources:write."}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]},"Venue":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"address":{"anyOf":[{"type":"string"},{"type":"null"}]},"locality":{"anyOf":[{"type":"string"},{"type":"null"}]},"phone":{"anyOf":[{"type":"string"},{"type":"null"}]},"timezone":{"type":"string"},"key":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}}}}}},"Resource":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string"},"capacityPeople":{"type":"integer"},"minGroup":{"type":"integer"},"maxGroup":{"anyOf":[{"type":"integer"},{"type":"null"}]},"minAge":{"anyOf":[{"type":"integer"},{"type":"null"}]},"privateOnly":{"type":"boolean"},"weatherDependent":{"type":"boolean"},"isActive":{"type":"boolean"}}},"Block":{"type":"object","properties":{"id":{"type":"string"},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":"string","format":"date-time"},"resourceId":{"anyOf":[{"type":"string"},{"type":"null"}]},"tableIds":{"type":"array","items":{"type":"string"}},"area":{"anyOf":[{"type":"string"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"source":{"type":"string","enum":["api","staff","feed","email"],"description":"feed: a copy of a calendar the business links, read only. email: read from a booking email the business forwards"},"feedId":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","startsAt","endsAt","source"]},"Checkout":{"type":"object","properties":{"checkoutUrl":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"amountCents":{"type":"integer"},"currency":{"type":"string"}}},"Booking":{"type":"object","properties":{"id":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string","enum":["table","session","appointment","vip","slot","request"]},"status":{"type":"string"},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"durationMinutes":{"anyOf":[{"type":"integer"},{"type":"null"}]},"partySize":{"type":"integer"},"area":{"anyOf":[{"type":"string"},{"type":"null"}]},"tables":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"area":{"type":"string"}}}},"session":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"startsAt":{"type":"string"},"endsAt":{"type":"string"}}},{"type":"null"}]},"service":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}},{"type":"null"}]},"resource":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}},{"type":"null"}]},"priceCents":{"anyOf":[{"type":"integer"},{"type":"null"}]},"paidCents":{"type":"integer"},"addOns":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"qty":{"type":"integer"},"unitPriceCents":{"type":"integer"}}}},"occasion":{"anyOf":[{"type":"string"},{"type":"null"}]},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"venueNote":{"anyOf":[{"type":"string"},{"type":"null"}]},"source":{"type":"string"},"externalRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"guest":{"type":"object","properties":{"name":{"type":"string"},"phone":{"anyOf":[{"type":"string","description":"Needs guests:read"},{"type":"null"}]},"email":{"anyOf":[{"type":"string","description":"Needs guests:read"},{"type":"null"}]}}},"deposit":{"anyOf":[{"type":"object"},{"type":"null"}]},"arrivedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"seatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelledAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","kind","status","startsAt","partySize","guest"]},"SessionDetail":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"resource":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"startsAt":{"type":"string"},"endsAt":{"type":"string"},"capacityPeople":{"type":"integer"},"bookedPeople":{"type":"integer"},"status":{"type":"string","enum":["open","full","closed","cancelled"]},"priceCents":{"type":"integer"},"priceMode":{"type":"string"},"payMode":{"type":"string"},"depositCents":{"type":"integer"},"bookings":{"type":"array","items":{"$ref":"#/components/schemas/Booking"}}}},"Enquiry":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["new","quoted","accepted","declined","expired"]},"date":{"type":"string","format":"date"},"time":{"anyOf":[{"type":"string"},{"type":"null"}]},"headcount":{"type":"integer"},"occasion":{"anyOf":[{"type":"string"},{"type":"null"}]},"budgetCents":{"anyOf":[{"type":"integer"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}]},"guest":{"type":"object","properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"phone":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"quote":{"anyOf":[{"type":"object","properties":{"totalCents":{"type":"integer"},"depositCents":{"anyOf":[{"type":"integer"},{"type":"null"}]},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"quotedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"bookingId":{"anyOf":[{"type":"string"},{"type":"null"}]},"source":{"type":"string"},"fromWorkplace":{"type":"boolean"},"createdAt":{"type":"string"},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"DayPassOrder":{"type":"object","properties":{"id":{"type":"string"},"passId":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"qty":{"type":"integer"},"totalCents":{"type":"integer"},"currency":{"type":"string"},"status":{"type":"string"},"guest":{"type":"object","properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"phone":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"paidAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"redeemedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"refundedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"WebhookEnvelope":{"type":"object","properties":{"id":{"type":"string","description":"Unique per delivery, the same as the Imxi-Delivery header."},"event":{"type":"string","enum":["booking.created","booking.updated","booking.cancelled","booking.seated","booking.completed","booking.no_show","deposit.paid","deposit.refunded","waitlist.joined","booking.confirmed","guarantee.held","guarantee.charged","guarantee.released","session.cancelled","enquiry.received","enquiry.quoted","enquiry.accepted","enquiry.declined","enquiry.expired","ticket.purchased","ticket.refunded","ticket.checked_in","guest_list.added","guest_list.checked_in","day_pass.purchased","day_pass.redeemed","day_pass.refunded"]},"ref":{"type":"string","description":"Set on session, enquiry, ticket, guest list and day pass events: the same change always has the same ref."},"createdAt":{"type":"string","format":"date-time"},"venue":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"}}},"data":{"type":"object","description":"booking (a Booking), session, enquiry, order, ticket, guest, dayPass, or guarantee with its booking"}},"required":["id","event","createdAt","venue","data"]}}}}