{"openapi":"3.1.0","info":{"title":"Bookoosh API","version":"1.0.0","description":"Read and change your Bookoosh bookings, customers, activities and gift vouchers from your website, other tools or your own code. Every request is scoped to the venue that owns the API key. Included free with every Bookoosh venue.","contact":{"name":"Bookoosh","url":"https://bookoosh.com","email":"hello@bookoosh.com"}},"servers":[{"url":"https://app.bookoosh.com/api/v1"}],"security":[{"bearerAuth":[]}],"tags":[{"name":"Account","description":"Check a key and the venue it belongs to."},{"name":"Locations","description":"Your venue's sites."},{"name":"Activities","description":"What customers book, with prices, opening schedules and live availability."},{"name":"Bookings","description":"Create, change, check in and cancel bookings. Bookings made through the API are paid on arrival."},{"name":"Customers","description":"The people who book with you."},{"name":"Gift vouchers","description":"Vouchers, their balances, and issuing new ones."},{"name":"Add-ons","description":"Extras such as food and drink that can be added to a booking."},{"name":"Transactions","description":"Card payments with the Bookoosh fee, its VAT, Stripe's fee, refunds and what was paid out, for your accounts."},{"name":"Payments","description":"Money taken for bookings and refunds given back, the same objects the payment webhooks send."},{"name":"Waivers","description":"Waivers your participants have signed, without signatures, documents or medical notes."},{"name":"Webhooks","description":"Get told the moment something happens, such as a new or cancelled booking."}],"paths":{"/me":{"get":{"tags":["Account"],"operationId":"getMe","summary":"Check your key","description":"Returns the key name, its access and your venue. Use it to test a connection.","responses":{"200":{"description":"The key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKey"},"example":{"object":"api_key","name":"Website","scope":"write","organisation":{"id":"0c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Riverside Axe Throwing"},"rate_limit_per_minute":120}}}},"401":{"$ref":"#/components/responses/E401"},"429":{"$ref":"#/components/responses/E429"}}}},"/locations":{"get":{"tags":["Locations"],"operationId":"listLocations","summary":"List locations","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"description":"Items per page, 1 to 100."},{"name":"starting_after","in":"query","required":false,"schema":{"type":"string","format":"uuid"},"description":"The `next_cursor` from the previous page."}],"responses":{"200":{"description":"Locations, newest first","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","next_cursor"],"properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Location"}},"has_more":{"type":"boolean","description":"true when there are more items after this page."},"next_cursor":{"type":["string","null"],"description":"Pass as `starting_after` to get the next page. null on the last page."}}},"example":{"object":"list","data":[{"id":"3d6f0a52-8b1e-4c4f-9a57-2f1d6b0c9e11","object":"location","name":"Riverside Axe Throwing","slug":"riverside-axe","timezone":"Europe/London","currency":"gbp","address":{"line1":"Unit 4, Mill Lane","line2":null,"city":"Leeds","county":"West Yorkshire","postcode":"LS1 4AB","country":"GB"},"booking_url":"https://app.bookoosh.com/book/riverside-axe","created_at":"2026-09-01T10:00:00.000Z"}],"has_more":false,"next_cursor":null}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"429":{"$ref":"#/components/responses/E429"}}}},"/activities":{"get":{"tags":["Activities"],"operationId":"listActivities","summary":"List activities","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"description":"Items per page, 1 to 100."},{"name":"starting_after","in":"query","required":false,"schema":{"type":"string","format":"uuid"},"description":"The `next_cursor` from the previous page."},{"name":"location_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"},"description":"Only activities at this location."},{"name":"active","in":"query","required":false,"schema":{"type":"string","enum":["true","false"]},"description":"true for bookable activities only, false for hidden ones."}],"responses":{"200":{"description":"Activities, newest first","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","next_cursor"],"properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Activity"}},"has_more":{"type":"boolean","description":"true when there are more items after this page."},"next_cursor":{"type":["string","null"],"description":"Pass as `starting_after` to get the next page. null on the last page."}}},"example":{"object":"list","data":[{"id":"9b2e7c41-5d3a-4e8f-b6a2-1c0d9e8f7a65","object":"activity","location_id":"3d6f0a52-8b1e-4c4f-9a57-2f1d6b0c9e11","name":"Axe Throwing (1 hour)","description":"Coached session for groups.","category":"Throwing","duration_minutes":60,"buffer_minutes":0,"capacity":12,"min_group_size":2,"max_group_size":12,"min_age":12,"images":[],"active":true,"prices":[{"ticket_type":"adult","label":"Adult","amount":2500,"currency":"gbp","peak":false,"peak_days":null,"peak_start_time":null,"peak_end_time":null},{"ticket_type":"adult","label":"Adult","amount":3000,"currency":"gbp","peak":true,"peak_days":[4,5],"peak_start_time":"17:00","peak_end_time":"22:00"}],"schedules":[{"day_of_week":5,"follows_venue_hours":true,"open_time":null,"close_time":null,"slot_interval_minutes":60,"active":true}],"created_at":"2026-09-01T10:05:00.000Z"}],"has_more":false,"next_cursor":null}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"429":{"$ref":"#/components/responses/E429"}}}},"/activities/{id}":{"get":{"tags":["Activities"],"operationId":"getActivity","summary":"Get an activity","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The activity id."}],"responses":{"200":{"description":"The activity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Activity"},"example":{"id":"9b2e7c41-5d3a-4e8f-b6a2-1c0d9e8f7a65","object":"activity","location_id":"3d6f0a52-8b1e-4c4f-9a57-2f1d6b0c9e11","name":"Axe Throwing (1 hour)","description":"Coached session for groups.","category":"Throwing","duration_minutes":60,"buffer_minutes":0,"capacity":12,"min_group_size":2,"max_group_size":12,"min_age":12,"images":[],"active":true,"prices":[{"ticket_type":"adult","label":"Adult","amount":2500,"currency":"gbp","peak":false,"peak_days":null,"peak_start_time":null,"peak_end_time":null},{"ticket_type":"adult","label":"Adult","amount":3000,"currency":"gbp","peak":true,"peak_days":[4,5],"peak_start_time":"17:00","peak_end_time":"22:00"}],"schedules":[{"day_of_week":5,"follows_venue_hours":true,"open_time":null,"close_time":null,"slot_interval_minutes":60,"active":true}],"created_at":"2026-09-01T10:05:00.000Z"}}}},"401":{"$ref":"#/components/responses/E401"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/activities/{id}/availability":{"get":{"tags":["Activities"],"operationId":"getAvailability","summary":"Get availability","description":"Bookable slots day by day, with places left and the price of each ticket type at that time. These are the same slots your booking page shows, so opening hours, closures, lead time and how far ahead customers can book all apply.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The activity id."},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date"},"description":"First day, YYYY-MM-DD."},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date"},"description":"Last day, YYYY-MM-DD. Defaults to `from`. Up to 31 days."}],"responses":{"200":{"description":"Availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Availability"},"example":{"object":"availability","activity_id":"9b2e7c41-5d3a-4e8f-b6a2-1c0d9e8f7a65","location_id":"3d6f0a52-8b1e-4c4f-9a57-2f1d6b0c9e11","from":"2026-11-20","to":"2026-11-20","days":[{"date":"2026-11-20","closed":false,"reason":null,"slots":[{"time":"17:00","start_at":"2026-11-20T17:00:00.000Z","end_at":"2026-11-20T18:00:00.000Z","places_left":12,"capacity":12,"prices":[{"ticket_type":"adult","label":"Adult","amount":3000,"currency":"gbp"}]},{"time":"18:00","start_at":"2026-11-20T18:00:00.000Z","end_at":"2026-11-20T19:00:00.000Z","places_left":8,"capacity":12,"prices":[{"ticket_type":"adult","label":"Adult","amount":3000,"currency":"gbp"}]}]}]}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/bookings":{"get":{"tags":["Bookings"],"operationId":"listBookings","summary":"List bookings","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"description":"Items per page, 1 to 100."},{"name":"starting_after","in":"query","required":false,"schema":{"type":"string","format":"uuid"},"description":"The `next_cursor` from the previous page."},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["pending","confirmed","checked_in","completed","cancelled","no_show","refunded"]},"description":"Only bookings with this status."},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date"},"description":"Only bookings for sessions on or after this date, YYYY-MM-DD."},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date"},"description":"Only bookings for sessions on or before this date, YYYY-MM-DD."},{"name":"updated_since","in":"query","required":false,"schema":{"type":"string","format":"date-time"},"description":"Only bookings changed at or after this time (ISO 8601). Use it to keep another system in sync."},{"name":"customer_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"},"description":"Only this customer's bookings."},{"name":"location_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"},"description":"Only bookings at this location."},{"name":"reference","in":"query","required":false,"schema":{"type":"string"},"description":"The booking reference, such as RAT-7K2M9Q."}],"responses":{"200":{"description":"Bookings, newest first","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","next_cursor"],"properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Booking"}},"has_more":{"type":"boolean","description":"true when there are more items after this page."},"next_cursor":{"type":["string","null"],"description":"Pass as `starting_after` to get the next page. null on the last page."}}},"example":{"object":"list","data":[{"id":"7e5d4c3b-2a19-4f8e-8d7c-6b5a4f3e2d1c","object":"booking","reference":"RAT-7K2M9Q","status":"confirmed","source":"api","location_id":"3d6f0a52-8b1e-4c4f-9a57-2f1d6b0c9e11","customer_id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","customer":{"id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","name":"Sam Taylor","email":"sam@example.com","phone":"07700 900123"},"start_at":"2026-11-20T18:00:00.000Z","end_at":"2026-11-20T19:00:00.000Z","participants":4,"items":[{"id":"1f2e3d4c-5b6a-4798-8a7b-6c5d4e3f2a1b","activity_id":"9b2e7c41-5d3a-4e8f-b6a2-1c0d9e8f7a65","activity_name":"Axe Throwing (1 hour)","ticket_type":"adult","quantity":4,"unit_amount":2500,"amount":10000,"start_at":"2026-11-20T18:00:00.000Z","end_at":"2026-11-20T19:00:00.000Z"}],"add_ons":[],"amount_total":10000,"amount_paid":0,"amount_refunded":0,"amount_due":10000,"deposit":0,"discounts":{"promo":0,"gift_voucher":0,"loyalty":0,"membership":0},"currency":"gbp","notes":"Birthday group","booked_at":"2026-11-14T12:00:00.000Z","checked_in_at":null,"created_at":"2026-11-14T12:00:00.000Z","updated_at":"2026-11-14T12:00:00.000Z"}],"has_more":false,"next_cursor":null}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"429":{"$ref":"#/components/responses/E429"}}},"post":{"tags":["Bookings"],"operationId":"createBooking","summary":"Create a booking","description":"Books a slot from the availability endpoint. The booking is confirmed straight away and paid on arrival, and places are held under the same lock your booking page uses, so it can never overbook. The customer gets your usual confirmation email only if you send `send_confirmation_email` as true. Needs a read and write key.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Any unique string, such as your own order id. Sending the same request again with the same key returns the first answer instead of acting twice. Kept for 24 hours."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingCreate"},"example":{"date":"2026-11-20","time":"18:00","items":[{"activity_id":"9b2e7c41-5d3a-4e8f-b6a2-1c0d9e8f7a65","ticket_type":"adult","quantity":4}],"customer":{"email":"sam@example.com","first_name":"Sam","surname":"Taylor","phone":"07700 900123"},"notes":"Birthday group","send_confirmation_email":false}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"},"example":{"id":"7e5d4c3b-2a19-4f8e-8d7c-6b5a4f3e2d1c","object":"booking","reference":"RAT-7K2M9Q","status":"confirmed","source":"api","location_id":"3d6f0a52-8b1e-4c4f-9a57-2f1d6b0c9e11","customer_id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","customer":{"id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","name":"Sam Taylor","email":"sam@example.com","phone":"07700 900123"},"start_at":"2026-11-20T18:00:00.000Z","end_at":"2026-11-20T19:00:00.000Z","participants":4,"items":[{"id":"1f2e3d4c-5b6a-4798-8a7b-6c5d4e3f2a1b","activity_id":"9b2e7c41-5d3a-4e8f-b6a2-1c0d9e8f7a65","activity_name":"Axe Throwing (1 hour)","ticket_type":"adult","quantity":4,"unit_amount":2500,"amount":10000,"start_at":"2026-11-20T18:00:00.000Z","end_at":"2026-11-20T19:00:00.000Z"}],"add_ons":[],"amount_total":10000,"amount_paid":0,"amount_refunded":0,"amount_due":10000,"deposit":0,"discounts":{"promo":0,"gift_voucher":0,"loyalty":0,"membership":0},"currency":"gbp","notes":"Birthday group","booked_at":"2026-11-14T12:00:00.000Z","checked_in_at":null,"created_at":"2026-11-14T12:00:00.000Z","updated_at":"2026-11-14T12:00:00.000Z"}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}}}},"/bookings/{id}":{"get":{"tags":["Bookings"],"operationId":"getBooking","summary":"Get a booking","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The booking id."}],"responses":{"200":{"description":"The booking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"},"example":{"id":"7e5d4c3b-2a19-4f8e-8d7c-6b5a4f3e2d1c","object":"booking","reference":"RAT-7K2M9Q","status":"confirmed","source":"api","location_id":"3d6f0a52-8b1e-4c4f-9a57-2f1d6b0c9e11","customer_id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","customer":{"id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","name":"Sam Taylor","email":"sam@example.com","phone":"07700 900123"},"start_at":"2026-11-20T18:00:00.000Z","end_at":"2026-11-20T19:00:00.000Z","participants":4,"items":[{"id":"1f2e3d4c-5b6a-4798-8a7b-6c5d4e3f2a1b","activity_id":"9b2e7c41-5d3a-4e8f-b6a2-1c0d9e8f7a65","activity_name":"Axe Throwing (1 hour)","ticket_type":"adult","quantity":4,"unit_amount":2500,"amount":10000,"start_at":"2026-11-20T18:00:00.000Z","end_at":"2026-11-20T19:00:00.000Z"}],"add_ons":[],"amount_total":10000,"amount_paid":0,"amount_refunded":0,"amount_due":10000,"deposit":0,"discounts":{"promo":0,"gift_voucher":0,"loyalty":0,"membership":0},"currency":"gbp","notes":"Birthday group","booked_at":"2026-11-14T12:00:00.000Z","checked_in_at":null,"created_at":"2026-11-14T12:00:00.000Z","updated_at":"2026-11-14T12:00:00.000Z"}}}},"401":{"$ref":"#/components/responses/E401"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}},"patch":{"tags":["Bookings"],"operationId":"updateBooking","summary":"Change a booking","description":"Move a booking to another bookable slot (send `date`, `time` or both), change its notes, or change its tickets (send `items`). Moving works like moving it in your dashboard. Places are checked, the booking timeline records the change, and the customer is emailed the new time. Pending and confirmed bookings can be moved.\n\nTo change the number of people send `items`, the full list of tickets the booking should have from now on (a `quantity` of 0 removes a ticket). Only activities already on the booking can be changed, and confirmed or checked-in bookings. Places are checked with the same lock as a new booking. Tickets already booked keep their price, added ticket types are priced as your booking page prices that time, a package price applies while the tickets still match the package, and the booking's discount code is worked out again. If the total goes up, the difference is due at the venue (`amount_due`). If it goes down on a paid booking, nothing is refunded unless you also send `refund` as true. Change the tickets and the time in separate requests. A `booking.changed` webhook is sent with the old `participants`, `items` and `amount_total` in `previous_attributes`. Needs a read and write key.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The booking id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingUpdate"},"examples":{"move":{"summary":"Move to another time","value":{"date":"2026-11-21","time":"17:00"}},"tickets":{"summary":"Change the number of people","value":{"items":[{"activity_id":"9b2e7c41-5d3a-4e8f-b6a2-1c0d9e8f7a65","ticket_type":"adult","quantity":5}]}},"fewer":{"summary":"Fewer people, refund the difference","value":{"items":[{"activity_id":"9b2e7c41-5d3a-4e8f-b6a2-1c0d9e8f7a65","ticket_type":"adult","quantity":3}],"refund":true}}}}}},"responses":{"200":{"description":"The changed booking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"},"example":{"id":"7e5d4c3b-2a19-4f8e-8d7c-6b5a4f3e2d1c","object":"booking","reference":"RAT-7K2M9Q","status":"confirmed","source":"api","location_id":"3d6f0a52-8b1e-4c4f-9a57-2f1d6b0c9e11","customer_id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","customer":{"id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","name":"Sam Taylor","email":"sam@example.com","phone":"07700 900123"},"start_at":"2026-11-21T17:00:00.000Z","end_at":"2026-11-21T18:00:00.000Z","participants":4,"items":[{"id":"1f2e3d4c-5b6a-4798-8a7b-6c5d4e3f2a1b","activity_id":"9b2e7c41-5d3a-4e8f-b6a2-1c0d9e8f7a65","activity_name":"Axe Throwing (1 hour)","ticket_type":"adult","quantity":4,"unit_amount":2500,"amount":10000,"start_at":"2026-11-20T18:00:00.000Z","end_at":"2026-11-20T19:00:00.000Z"}],"add_ons":[],"amount_total":10000,"amount_paid":0,"amount_refunded":0,"amount_due":10000,"deposit":0,"discounts":{"promo":0,"gift_voucher":0,"loyalty":0,"membership":0},"currency":"gbp","notes":"Birthday group","booked_at":"2026-11-14T12:00:00.000Z","checked_in_at":null,"created_at":"2026-11-14T12:00:00.000Z","updated_at":"2026-11-14T12:00:00.000Z"}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"429":{"$ref":"#/components/responses/E429"}}}},"/bookings/{id}/cancel":{"post":{"tags":["Bookings"],"operationId":"cancelBooking","summary":"Cancel a booking","description":"Cancels the booking and frees its places. Nothing is refunded unless you send `refund` as true, which refunds everything paid, card payments back to the card. Needs a read and write key.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The booking id."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Any unique string, such as your own order id. Sending the same request again with the same key returns the first answer instead of acting twice. Kept for 24 hours."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingCancel"},"example":{"refund":false,"reason":"Customer called to cancel"}}}},"responses":{"200":{"description":"The cancelled booking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"},"example":{"id":"7e5d4c3b-2a19-4f8e-8d7c-6b5a4f3e2d1c","object":"booking","reference":"RAT-7K2M9Q","status":"cancelled","source":"api","location_id":"3d6f0a52-8b1e-4c4f-9a57-2f1d6b0c9e11","customer_id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","customer":{"id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","name":"Sam Taylor","email":"sam@example.com","phone":"07700 900123"},"start_at":"2026-11-20T18:00:00.000Z","end_at":"2026-11-20T19:00:00.000Z","participants":4,"items":[{"id":"1f2e3d4c-5b6a-4798-8a7b-6c5d4e3f2a1b","activity_id":"9b2e7c41-5d3a-4e8f-b6a2-1c0d9e8f7a65","activity_name":"Axe Throwing (1 hour)","ticket_type":"adult","quantity":4,"unit_amount":2500,"amount":10000,"start_at":"2026-11-20T18:00:00.000Z","end_at":"2026-11-20T19:00:00.000Z"}],"add_ons":[],"amount_total":10000,"amount_paid":0,"amount_refunded":0,"amount_due":0,"deposit":0,"discounts":{"promo":0,"gift_voucher":0,"loyalty":0,"membership":0},"currency":"gbp","notes":"Birthday group","booked_at":"2026-11-14T12:00:00.000Z","checked_in_at":null,"created_at":"2026-11-14T12:00:00.000Z","updated_at":"2026-11-14T12:00:00.000Z"}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}}}},"/bookings/{id}/check_in":{"post":{"tags":["Bookings"],"operationId":"checkInBooking","summary":"Check in a booking","description":"Marks the group as arrived and awards loyalty points, the same as checking in at the venue. Needs a read and write key.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The booking id."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Any unique string, such as your own order id. Sending the same request again with the same key returns the first answer instead of acting twice. Kept for 24 hours."}],"responses":{"200":{"description":"The checked-in booking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"},"example":{"id":"7e5d4c3b-2a19-4f8e-8d7c-6b5a4f3e2d1c","object":"booking","reference":"RAT-7K2M9Q","status":"checked_in","source":"api","location_id":"3d6f0a52-8b1e-4c4f-9a57-2f1d6b0c9e11","customer_id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","customer":{"id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","name":"Sam Taylor","email":"sam@example.com","phone":"07700 900123"},"start_at":"2026-11-20T18:00:00.000Z","end_at":"2026-11-20T19:00:00.000Z","participants":4,"items":[{"id":"1f2e3d4c-5b6a-4798-8a7b-6c5d4e3f2a1b","activity_id":"9b2e7c41-5d3a-4e8f-b6a2-1c0d9e8f7a65","activity_name":"Axe Throwing (1 hour)","ticket_type":"adult","quantity":4,"unit_amount":2500,"amount":10000,"start_at":"2026-11-20T18:00:00.000Z","end_at":"2026-11-20T19:00:00.000Z"}],"add_ons":[],"amount_total":10000,"amount_paid":0,"amount_refunded":0,"amount_due":10000,"deposit":0,"discounts":{"promo":0,"gift_voucher":0,"loyalty":0,"membership":0},"currency":"gbp","notes":"Birthday group","booked_at":"2026-11-14T12:00:00.000Z","checked_in_at":"2026-11-20T17:52:10.000Z","created_at":"2026-11-14T12:00:00.000Z","updated_at":"2026-11-14T12:00:00.000Z"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}}}},"/customers":{"get":{"tags":["Customers"],"operationId":"listCustomers","summary":"List customers","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"description":"Items per page, 1 to 100."},{"name":"starting_after","in":"query","required":false,"schema":{"type":"string","format":"uuid"},"description":"The `next_cursor` from the previous page."},{"name":"email","in":"query","required":false,"schema":{"type":"string"},"description":"Exact email address (not case sensitive)."},{"name":"search","in":"query","required":false,"schema":{"type":"string"},"description":"Part of a name, email or phone number."},{"name":"updated_since","in":"query","required":false,"schema":{"type":"string","format":"date-time"},"description":"Only customers changed at or after this time (ISO 8601)."}],"responses":{"200":{"description":"Customers, newest first","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","next_cursor"],"properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Customer"}},"has_more":{"type":"boolean","description":"true when there are more items after this page."},"next_cursor":{"type":["string","null"],"description":"Pass as `starting_after` to get the next page. null on the last page."}}},"example":{"object":"list","data":[{"id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","object":"customer","name":"Sam Taylor","first_name":"Sam","surname":"Taylor","email":"sam@example.com","phone":"07700 900123","marketing_opted_in":false,"total_bookings":3,"total_spend":15000,"currency":"gbp","last_visit_at":"2026-11-01T18:00:00.000Z","created_at":"2026-10-02T09:00:00.000Z","updated_at":"2026-11-01T18:00:00.000Z"}],"has_more":false,"next_cursor":null}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"429":{"$ref":"#/components/responses/E429"}}},"post":{"tags":["Customers"],"operationId":"createCustomer","summary":"Create a customer","description":"Each email can belong to one customer at your venue. Needs a read and write key.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Any unique string, such as your own order id. Sending the same request again with the same key returns the first answer instead of acting twice. Kept for 24 hours."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerCreate"},"example":{"email":"sam@example.com","first_name":"Sam","surname":"Taylor","phone":"07700 900123","marketing_opted_in":false}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Customer"},"example":{"id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","object":"customer","name":"Sam Taylor","first_name":"Sam","surname":"Taylor","email":"sam@example.com","phone":"07700 900123","marketing_opted_in":false,"total_bookings":3,"total_spend":15000,"currency":"gbp","last_visit_at":"2026-11-01T18:00:00.000Z","created_at":"2026-10-02T09:00:00.000Z","updated_at":"2026-11-01T18:00:00.000Z"}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}}}},"/customers/{id}":{"get":{"tags":["Customers"],"operationId":"getCustomer","summary":"Get a customer","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The customer id."}],"responses":{"200":{"description":"The customer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Customer"},"example":{"id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","object":"customer","name":"Sam Taylor","first_name":"Sam","surname":"Taylor","email":"sam@example.com","phone":"07700 900123","marketing_opted_in":false,"total_bookings":3,"total_spend":15000,"currency":"gbp","last_visit_at":"2026-11-01T18:00:00.000Z","created_at":"2026-10-02T09:00:00.000Z","updated_at":"2026-11-01T18:00:00.000Z"}}}},"401":{"$ref":"#/components/responses/E401"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}},"patch":{"tags":["Customers"],"operationId":"updateCustomer","summary":"Update a customer","description":"Send only the fields to change. Needs a read and write key.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The customer id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerUpdate"},"example":{"phone":"07700 900456"}}}},"responses":{"200":{"description":"The customer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Customer"},"example":{"id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","object":"customer","name":"Sam Taylor","first_name":"Sam","surname":"Taylor","email":"sam@example.com","phone":"07700 900456","marketing_opted_in":false,"total_bookings":3,"total_spend":15000,"currency":"gbp","last_visit_at":"2026-11-01T18:00:00.000Z","created_at":"2026-10-02T09:00:00.000Z","updated_at":"2026-11-01T18:00:00.000Z"}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"429":{"$ref":"#/components/responses/E429"}}}},"/vouchers":{"get":{"tags":["Gift vouchers"],"operationId":"listVouchers","summary":"List gift vouchers","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"description":"Items per page, 1 to 100."},{"name":"starting_after","in":"query","required":false,"schema":{"type":"string","format":"uuid"},"description":"The `next_cursor` from the previous page."},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["active","redeemed","expired","voided"]},"description":"Only vouchers with this status."}],"responses":{"200":{"description":"Gift vouchers, newest first","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","next_cursor"],"properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/GiftVoucher"}},"has_more":{"type":"boolean","description":"true when there are more items after this page."},"next_cursor":{"type":["string","null"],"description":"Pass as `starting_after` to get the next page. null on the last page."}}},"example":{"object":"list","data":[{"id":"8d7c6b5a-4f3e-4d2c-9b1a-0f9e8d7c6b5a","object":"gift_voucher","code":"GV-7KQ2-M9XP","status":"active","original_amount":5000,"balance":5000,"currency":"gbp","purchaser_name":"Alex Jones","purchaser_email":"alex@example.com","recipient_name":"Sam Taylor","recipient_email":"sam@example.com","message":"Happy birthday","expires_at":"2027-11-14T12:00:00.000Z","created_at":"2026-11-14T12:00:00.000Z"}],"has_more":false,"next_cursor":null}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"429":{"$ref":"#/components/responses/E429"}}},"post":{"tags":["Gift vouchers"],"operationId":"createVoucher","summary":"Issue a gift voucher","description":"Issues a voucher the way staff do from Vouchers in your dashboard, for example one you've sold in person or given as a goodwill gesture. No payment is taken. Needs a read and write key.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Any unique string, such as your own order id. Sending the same request again with the same key returns the first answer instead of acting twice. Kept for 24 hours."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GiftVoucherCreate"},"example":{"amount":5000,"recipient_name":"Sam Taylor","recipient_email":"sam@example.com","purchaser_name":"Alex Jones","message":"Happy birthday","expiry_months":12}}}},"responses":{"201":{"description":"Issued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GiftVoucher"},"example":{"id":"8d7c6b5a-4f3e-4d2c-9b1a-0f9e8d7c6b5a","object":"gift_voucher","code":"GV-7KQ2-M9XP","status":"active","original_amount":5000,"balance":5000,"currency":"gbp","purchaser_name":"Alex Jones","purchaser_email":"alex@example.com","recipient_name":"Sam Taylor","recipient_email":"sam@example.com","message":"Happy birthday","expires_at":"2027-11-14T12:00:00.000Z","created_at":"2026-11-14T12:00:00.000Z"}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}}}},"/vouchers/lookup":{"get":{"tags":["Gift vouchers"],"operationId":"lookupVoucher","summary":"Look up a voucher by code","description":"Check a code someone gives you and see its balance.","parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string"},"description":"The voucher code, such as GV-7KQ2-M9XP."}],"responses":{"200":{"description":"The voucher","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GiftVoucher"},"example":{"id":"8d7c6b5a-4f3e-4d2c-9b1a-0f9e8d7c6b5a","object":"gift_voucher","code":"GV-7KQ2-M9XP","status":"active","original_amount":5000,"balance":5000,"currency":"gbp","purchaser_name":"Alex Jones","purchaser_email":"alex@example.com","recipient_name":"Sam Taylor","recipient_email":"sam@example.com","message":"Happy birthday","expires_at":"2027-11-14T12:00:00.000Z","created_at":"2026-11-14T12:00:00.000Z"}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/vouchers/{id}":{"get":{"tags":["Gift vouchers"],"operationId":"getVoucher","summary":"Get a gift voucher","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The gift voucher id."}],"responses":{"200":{"description":"The voucher","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GiftVoucher"},"example":{"id":"8d7c6b5a-4f3e-4d2c-9b1a-0f9e8d7c6b5a","object":"gift_voucher","code":"GV-7KQ2-M9XP","status":"active","original_amount":5000,"balance":5000,"currency":"gbp","purchaser_name":"Alex Jones","purchaser_email":"alex@example.com","recipient_name":"Sam Taylor","recipient_email":"sam@example.com","message":"Happy birthday","expires_at":"2027-11-14T12:00:00.000Z","created_at":"2026-11-14T12:00:00.000Z"}}}},"401":{"$ref":"#/components/responses/E401"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/add-ons":{"get":{"tags":["Add-ons"],"operationId":"listAddOns","summary":"List add-ons","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"description":"Items per page, 1 to 100."},{"name":"starting_after","in":"query","required":false,"schema":{"type":"string","format":"uuid"},"description":"The `next_cursor` from the previous page."},{"name":"location_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"},"description":"Only add-ons at this location."},{"name":"active","in":"query","required":false,"schema":{"type":"string","enum":["true","false"]},"description":"true or false."}],"responses":{"200":{"description":"Add-ons, newest first","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","next_cursor"],"properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/AddOn"}},"has_more":{"type":"boolean","description":"true when there are more items after this page."},"next_cursor":{"type":["string","null"],"description":"Pass as `starting_after` to get the next page. null on the last page."}}},"example":{"object":"list","data":[{"id":"5a4b3c2d-1e0f-4a9b-8c7d-6e5f4a3b2c1d","object":"add_on","location_id":"3d6f0a52-8b1e-4c4f-9a57-2f1d6b0c9e11","name":"Pizza for the group","description":null,"category":"food","amount":1800,"currency":"gbp","activity_ids":[],"active":true,"created_at":"2026-09-03T12:00:00.000Z"}],"has_more":false,"next_cursor":null}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"429":{"$ref":"#/components/responses/E429"}}}},"/payments":{"get":{"tags":["Payments"],"operationId":"listPayments","summary":"List payments and refunds","description":"Money taken for bookings (card online or at the till, payment link or cash) and refunds, newest first. Each item is the object the payment.succeeded and payment.refunded webhooks send. Voucher and pass value isn't a payment.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"description":"Items per page, 1 to 100."},{"name":"starting_after","in":"query","required":false,"schema":{"type":"string","format":"uuid"},"description":"The `next_cursor` from the previous page."},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["payment","refund"]},"description":"payment or refund. Both when left out."}],"responses":{"200":{"description":"Payments and refunds, newest first","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","next_cursor"],"properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookPayment"}},"has_more":{"type":"boolean","description":"true when there are more items after this page."},"next_cursor":{"type":["string","null"],"description":"Pass as `starting_after` to get the next page. null on the last page."}}},"example":{"object":"list","data":[{"id":"6f5e4d3c-2b1a-4098-8f7e-6d5c4b3a2f1e","object":"refund","booking_id":"7e5d4c3b-2a19-4f8e-8d7c-6b5a4f3e2d1c","booking_reference":"RAT-7K2M9Q","location_id":"3d6f0a52-8b1e-4c4f-9a57-2f1d6b0c9e11","customer_id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","method":"refund","amount":2500,"currency":"gbp","status":"completed","stripe_id":"re_3QExample","created_at":"2026-11-15T09:30:00.000Z"},{"id":"2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f","object":"payment","booking_id":"7e5d4c3b-2a19-4f8e-8d7c-6b5a4f3e2d1c","booking_reference":"RAT-7K2M9Q","location_id":"3d6f0a52-8b1e-4c4f-9a57-2f1d6b0c9e11","customer_id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","method":"card","amount":10000,"currency":"gbp","status":"completed","stripe_id":"pi_3QExample","created_at":"2026-11-14T12:01:00.000Z"}],"has_more":false,"next_cursor":null}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"429":{"$ref":"#/components/responses/E429"}}}},"/waiver_signatures":{"get":{"tags":["Waivers"],"operationId":"listWaiverSignatures","summary":"List signed waivers","description":"Waivers participants have signed, newest first. Each item is the object the waiver.signed webhook sends.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"description":"Items per page, 1 to 100."},{"name":"starting_after","in":"query","required":false,"schema":{"type":"string","format":"uuid"},"description":"The `next_cursor` from the previous page."}],"responses":{"200":{"description":"Signed waivers, newest first","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","next_cursor"],"properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/WaiverSignature"}},"has_more":{"type":"boolean","description":"true when there are more items after this page."},"next_cursor":{"type":["string","null"],"description":"Pass as `starting_after` to get the next page. null on the last page."}}},"example":{"object":"list","data":[{"id":"e9f8a7b6-c5d4-4e3f-a2b1-c0d9e8f7a6b5","object":"waiver_signature","waiver_id":"4b3a2f1e-0d9c-4b8a-9f7e-6d5c4b3a2f10","waiver_name":"Axe throwing waiver","booking_id":"7e5d4c3b-2a19-4f8e-8d7c-6b5a4f3e2d1c","booking_reference":"RAT-7K2M9Q","customer_id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","location_id":"3d6f0a52-8b1e-4c4f-9a57-2f1d6b0c9e11","participant_name":"Sam Taylor","is_minor":false,"signer_name":"Sam Taylor","signed_via":"online","signed_at":"2026-11-15T10:00:00.000Z","expires_at":"2027-11-15T10:00:00.000Z"}],"has_more":false,"next_cursor":null}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"429":{"$ref":"#/components/responses/E429"}}}},"/transactions":{"get":{"tags":["Transactions"],"operationId":"listTransactions","summary":"List transactions","description":"Card payments, newest first, with the same figures as Transactions in your dashboard. Amounts are what your statement shows (the Bookoosh fee is 2% plus VAT). `net` is the payment less both fees, and stays null until Stripe reports its fee. `paid_out` is what is with you now, after refunds.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"description":"Items per page, 1 to 100."},{"name":"starting_after","in":"query","required":false,"schema":{"type":"string","format":"uuid"},"description":"The `next_cursor` from the previous page."},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date"},"description":"Payments on or after this day (UK time), YYYY-MM-DD."},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date"},"description":"Payments on or before this day (UK time), YYYY-MM-DD."}],"responses":{"200":{"description":"Transactions, newest first","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","next_cursor"],"properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Transaction"}},"has_more":{"type":"boolean","description":"true when there are more items after this page."},"next_cursor":{"type":["string","null"],"description":"Pass as `starting_after` to get the next page. null on the last page."}}},"example":{"object":"list","data":[{"id":"2b3c4d5e-6f70-4812-9a3b-4c5d6e7f8091","object":"transaction","kind":"booking","booking_id":"7e5d4c3b-2a19-4f8e-8d7c-6b5a4f3e2d1c","gift_voucher_id":null,"membership_id":null,"reference":"RAT-7K2M9Q","customer_name":"Sam Taylor","status":"succeeded","currency":"gbp","amount":5000,"bookoosh_fee":100,"bookoosh_fee_vat":20,"stripe_fee":95,"refunded":0,"bookoosh_fee_refunded":0,"net":4785,"paid_out":4785,"settled_at":"2026-11-14T18:05:00.000Z","created_at":"2026-11-14T18:00:00.000Z"}],"has_more":false,"next_cursor":null}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"429":{"$ref":"#/components/responses/E429"}}}},"/webhook_endpoints":{"get":{"tags":["Webhooks"],"operationId":"listWebhookEndpoints","summary":"List webhook endpoints","description":"Every endpoint at your venue, including ones added in Settings > Webhooks. Secrets aren't included. Needs a read and write key.","responses":{"200":{"description":"Endpoints, newest first","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEndpoint"}},"has_more":{"type":"boolean"}}},"example":{"object":"list","data":[{"id":"a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d","object":"webhook_endpoint","url":"https://hooks.example.com/bookoosh","description":"Booking sync","events":["booking.created","booking.cancelled"],"enabled":true,"created_via":"api","created_at":"2026-11-14T12:00:00.000Z"}],"has_more":false}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}}},"post":{"tags":["Webhooks"],"operationId":"createWebhookEndpoint","summary":"Subscribe to events","description":"Start sending events to a URL (a REST hook subscription). The answer includes the signing secret, shown only here and in Settings > Webhooks. The URL must be https and reachable from the internet. Needs a read and write key.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointCreate"},"example":{"url":"https://hooks.example.com/bookoosh","events":["booking.created","booking.cancelled"],"description":"Booking sync"}}}},"responses":{"201":{"description":"Subscribed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointWithSecret"},"example":{"id":"a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d","object":"webhook_endpoint","url":"https://hooks.example.com/bookoosh","description":"Booking sync","events":["booking.created","booking.cancelled"],"enabled":true,"created_via":"api","created_at":"2026-11-14T12:00:00.000Z","secret":"whsec_Jx2b6Q0yKp3W9cR1tM5vN8aZ4eH7uL0sD2fG6hJ9kB1"}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}}}},"/webhook_endpoints/{id}":{"get":{"tags":["Webhooks"],"operationId":"getWebhookEndpoint","summary":"Get a webhook endpoint","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The endpoint id."}],"responses":{"200":{"description":"The endpoint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"},"example":{"id":"a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d","object":"webhook_endpoint","url":"https://hooks.example.com/bookoosh","description":"Booking sync","events":["booking.created","booking.cancelled"],"enabled":true,"created_via":"api","created_at":"2026-11-14T12:00:00.000Z"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}},"delete":{"tags":["Webhooks"],"operationId":"deleteWebhookEndpoint","summary":"Unsubscribe","description":"Stop sending events to this endpoint and delete it. Needs a read and write key.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The endpoint id."}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string"},"deleted":{"type":"boolean"}}},"example":{"id":"a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d","object":"webhook_endpoint","deleted":true}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}}},"webhooks":{"booking.created":{"post":{"tags":["Webhooks"],"operationId":"event_booking_created","summary":"booking.created","description":"A booking is confirmed: paid online, booked to pay on arrival, made at the till or through the API. Unpaid online checkouts don't count until they're paid. Answer with any 2xx within 10 seconds. Anything else is retried 7 more times, after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, 12 hours and 24 hours (8 attempts over about 2 days).","parameters":[{"name":"Bookoosh-Event-Id","in":"header","required":true,"schema":{"type":"string"},"description":"The event id (evt_...). The same on every retry: use it to ignore repeats."},{"name":"Bookoosh-Event-Type","in":"header","required":true,"schema":{"type":"string"},"description":"The event type, such as booking.created."},{"name":"Bookoosh-Timestamp","in":"header","required":true,"schema":{"type":"string"},"description":"Unix seconds when this attempt was signed."},{"name":"Bookoosh-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<timestamp>,v1=<hex HMAC-SHA256 of `${timestamp}.${raw body}` keyed with your endpoint's signing secret>."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"id":"evt_5f2b8c1d9e7a4b3c2d1e0f9a","object":"event","type":"booking.created","api_version":"2026-11-14","created_at":"2026-11-14T12:00:01.000Z","organisation_id":"0b1c2d3e-4f50-4617-8293-a4b5c6d7e8f9","data":{"object":{"id":"7e5d4c3b-2a19-4f8e-8d7c-6b5a4f3e2d1c","object":"booking","reference":"RAT-7K2M9Q","status":"confirmed","source":"online","location_id":"3d6f0a52-8b1e-4c4f-9a57-2f1d6b0c9e11","customer_id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","customer":{"id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","name":"Sam Taylor","email":"sam@example.com","phone":"07700 900123"},"start_at":"2026-11-20T18:00:00.000Z","end_at":"2026-11-20T19:00:00.000Z","participants":4,"items":[{"id":"1f2e3d4c-5b6a-4798-8a7b-6c5d4e3f2a1b","activity_id":"9b2e7c41-5d3a-4e8f-b6a2-1c0d9e8f7a65","activity_name":"Axe Throwing (1 hour)","ticket_type":"adult","quantity":4,"unit_amount":2500,"amount":10000,"start_at":"2026-11-20T18:00:00.000Z","end_at":"2026-11-20T19:00:00.000Z"}],"add_ons":[],"amount_total":10000,"amount_paid":0,"amount_refunded":0,"amount_due":10000,"deposit":0,"discounts":{"promo":0,"gift_voucher":0,"loyalty":0,"membership":0},"currency":"gbp","notes":null,"booked_at":"2026-11-14T12:00:00.000Z","checked_in_at":null,"created_at":"2026-11-14T12:00:00.000Z","updated_at":"2026-11-14T12:00:00.000Z"}}}}}},"responses":{"2XX":{"description":"Received. Any other answer, or none within 10 seconds, is retried."}}}},"booking.changed":{"post":{"tags":["Webhooks"],"operationId":"event_booking_changed","summary":"booking.changed","description":"A booking moved to a new date or time, by staff, through the API, or by the customer from their booking email. `data.previous_attributes` holds the old values. Answer with any 2xx within 10 seconds. Anything else is retried 7 more times, after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, 12 hours and 24 hours (8 attempts over about 2 days).","parameters":[{"name":"Bookoosh-Event-Id","in":"header","required":true,"schema":{"type":"string"},"description":"The event id (evt_...). The same on every retry: use it to ignore repeats."},{"name":"Bookoosh-Event-Type","in":"header","required":true,"schema":{"type":"string"},"description":"The event type, such as booking.created."},{"name":"Bookoosh-Timestamp","in":"header","required":true,"schema":{"type":"string"},"description":"Unix seconds when this attempt was signed."},{"name":"Bookoosh-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<timestamp>,v1=<hex HMAC-SHA256 of `${timestamp}.${raw body}` keyed with your endpoint's signing secret>."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"id":"evt_5f2b8c1d9e7a4b3c2d1e0f9a","object":"event","type":"booking.changed","api_version":"2026-11-14","created_at":"2026-11-14T12:00:01.000Z","organisation_id":"0b1c2d3e-4f50-4617-8293-a4b5c6d7e8f9","data":{"object":{"id":"7e5d4c3b-2a19-4f8e-8d7c-6b5a4f3e2d1c","object":"booking","reference":"RAT-7K2M9Q","status":"confirmed","source":"online","location_id":"3d6f0a52-8b1e-4c4f-9a57-2f1d6b0c9e11","customer_id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","customer":{"id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","name":"Sam Taylor","email":"sam@example.com","phone":"07700 900123"},"start_at":"2026-11-21T18:00:00.000Z","end_at":"2026-11-21T19:00:00.000Z","participants":4,"items":[{"id":"1f2e3d4c-5b6a-4798-8a7b-6c5d4e3f2a1b","activity_id":"9b2e7c41-5d3a-4e8f-b6a2-1c0d9e8f7a65","activity_name":"Axe Throwing (1 hour)","ticket_type":"adult","quantity":4,"unit_amount":2500,"amount":10000,"start_at":"2026-11-21T18:00:00.000Z","end_at":"2026-11-21T19:00:00.000Z"}],"add_ons":[],"amount_total":10000,"amount_paid":0,"amount_refunded":0,"amount_due":10000,"deposit":0,"discounts":{"promo":0,"gift_voucher":0,"loyalty":0,"membership":0},"currency":"gbp","notes":null,"booked_at":"2026-11-14T12:00:00.000Z","checked_in_at":null,"created_at":"2026-11-14T12:00:00.000Z","updated_at":"2026-11-14T12:00:00.000Z"},"previous_attributes":{"start_at":"2026-11-20T18:00:00.000Z","amount_total":10000,"changed_by":"customer"}}}}}},"responses":{"2XX":{"description":"Received. Any other answer, or none within 10 seconds, is retried."}}}},"booking.cancelled":{"post":{"tags":["Webhooks"],"operationId":"event_booking_cancelled","summary":"booking.cancelled","description":"A confirmed booking was cancelled or fully refunded. Unpaid checkouts that time out don't send this. Answer with any 2xx within 10 seconds. Anything else is retried 7 more times, after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, 12 hours and 24 hours (8 attempts over about 2 days).","parameters":[{"name":"Bookoosh-Event-Id","in":"header","required":true,"schema":{"type":"string"},"description":"The event id (evt_...). The same on every retry: use it to ignore repeats."},{"name":"Bookoosh-Event-Type","in":"header","required":true,"schema":{"type":"string"},"description":"The event type, such as booking.created."},{"name":"Bookoosh-Timestamp","in":"header","required":true,"schema":{"type":"string"},"description":"Unix seconds when this attempt was signed."},{"name":"Bookoosh-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<timestamp>,v1=<hex HMAC-SHA256 of `${timestamp}.${raw body}` keyed with your endpoint's signing secret>."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"id":"evt_5f2b8c1d9e7a4b3c2d1e0f9a","object":"event","type":"booking.cancelled","api_version":"2026-11-14","created_at":"2026-11-14T12:00:01.000Z","organisation_id":"0b1c2d3e-4f50-4617-8293-a4b5c6d7e8f9","data":{"object":{"id":"7e5d4c3b-2a19-4f8e-8d7c-6b5a4f3e2d1c","object":"booking","reference":"RAT-7K2M9Q","status":"cancelled","source":"online","location_id":"3d6f0a52-8b1e-4c4f-9a57-2f1d6b0c9e11","customer_id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","customer":{"id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","name":"Sam Taylor","email":"sam@example.com","phone":"07700 900123"},"start_at":"2026-11-20T18:00:00.000Z","end_at":"2026-11-20T19:00:00.000Z","participants":4,"items":[{"id":"1f2e3d4c-5b6a-4798-8a7b-6c5d4e3f2a1b","activity_id":"9b2e7c41-5d3a-4e8f-b6a2-1c0d9e8f7a65","activity_name":"Axe Throwing (1 hour)","ticket_type":"adult","quantity":4,"unit_amount":2500,"amount":10000,"start_at":"2026-11-20T18:00:00.000Z","end_at":"2026-11-20T19:00:00.000Z"}],"add_ons":[],"amount_total":10000,"amount_paid":0,"amount_refunded":0,"amount_due":0,"deposit":0,"discounts":{"promo":0,"gift_voucher":0,"loyalty":0,"membership":0},"currency":"gbp","notes":null,"booked_at":"2026-11-14T12:00:00.000Z","checked_in_at":null,"created_at":"2026-11-14T12:00:00.000Z","updated_at":"2026-11-14T12:00:00.000Z"},"previous_attributes":{"status":"confirmed"}}}}}},"responses":{"2XX":{"description":"Received. Any other answer, or none within 10 seconds, is retried."}}}},"booking.checked_in":{"post":{"tags":["Webhooks"],"operationId":"event_booking_checked_in","summary":"booking.checked_in","description":"The group arrived and was checked in. Answer with any 2xx within 10 seconds. Anything else is retried 7 more times, after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, 12 hours and 24 hours (8 attempts over about 2 days).","parameters":[{"name":"Bookoosh-Event-Id","in":"header","required":true,"schema":{"type":"string"},"description":"The event id (evt_...). The same on every retry: use it to ignore repeats."},{"name":"Bookoosh-Event-Type","in":"header","required":true,"schema":{"type":"string"},"description":"The event type, such as booking.created."},{"name":"Bookoosh-Timestamp","in":"header","required":true,"schema":{"type":"string"},"description":"Unix seconds when this attempt was signed."},{"name":"Bookoosh-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<timestamp>,v1=<hex HMAC-SHA256 of `${timestamp}.${raw body}` keyed with your endpoint's signing secret>."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"id":"evt_5f2b8c1d9e7a4b3c2d1e0f9a","object":"event","type":"booking.checked_in","api_version":"2026-11-14","created_at":"2026-11-14T12:00:01.000Z","organisation_id":"0b1c2d3e-4f50-4617-8293-a4b5c6d7e8f9","data":{"object":{"id":"7e5d4c3b-2a19-4f8e-8d7c-6b5a4f3e2d1c","object":"booking","reference":"RAT-7K2M9Q","status":"checked_in","source":"online","location_id":"3d6f0a52-8b1e-4c4f-9a57-2f1d6b0c9e11","customer_id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","customer":{"id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","name":"Sam Taylor","email":"sam@example.com","phone":"07700 900123"},"start_at":"2026-11-20T18:00:00.000Z","end_at":"2026-11-20T19:00:00.000Z","participants":4,"items":[{"id":"1f2e3d4c-5b6a-4798-8a7b-6c5d4e3f2a1b","activity_id":"9b2e7c41-5d3a-4e8f-b6a2-1c0d9e8f7a65","activity_name":"Axe Throwing (1 hour)","ticket_type":"adult","quantity":4,"unit_amount":2500,"amount":10000,"start_at":"2026-11-20T18:00:00.000Z","end_at":"2026-11-20T19:00:00.000Z"}],"add_ons":[],"amount_total":10000,"amount_paid":0,"amount_refunded":0,"amount_due":10000,"deposit":0,"discounts":{"promo":0,"gift_voucher":0,"loyalty":0,"membership":0},"currency":"gbp","notes":null,"booked_at":"2026-11-14T12:00:00.000Z","checked_in_at":"2026-11-20T17:55:00.000Z","created_at":"2026-11-14T12:00:00.000Z","updated_at":"2026-11-14T12:00:00.000Z"}}}}}},"responses":{"2XX":{"description":"Received. Any other answer, or none within 10 seconds, is retried."}}}},"payment.succeeded":{"post":{"tags":["Webhooks"],"operationId":"event_payment_succeeded","summary":"payment.succeeded","description":"Money was taken for a booking: card online or at the till, payment link or cash. Gift voucher and pass value isn't a payment (see voucher.redeemed). Answer with any 2xx within 10 seconds. Anything else is retried 7 more times, after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, 12 hours and 24 hours (8 attempts over about 2 days).","parameters":[{"name":"Bookoosh-Event-Id","in":"header","required":true,"schema":{"type":"string"},"description":"The event id (evt_...). The same on every retry: use it to ignore repeats."},{"name":"Bookoosh-Event-Type","in":"header","required":true,"schema":{"type":"string"},"description":"The event type, such as booking.created."},{"name":"Bookoosh-Timestamp","in":"header","required":true,"schema":{"type":"string"},"description":"Unix seconds when this attempt was signed."},{"name":"Bookoosh-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<timestamp>,v1=<hex HMAC-SHA256 of `${timestamp}.${raw body}` keyed with your endpoint's signing secret>."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"id":"evt_5f2b8c1d9e7a4b3c2d1e0f9a","object":"event","type":"payment.succeeded","api_version":"2026-11-14","created_at":"2026-11-14T12:00:01.000Z","organisation_id":"0b1c2d3e-4f50-4617-8293-a4b5c6d7e8f9","data":{"object":{"id":"2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f","object":"payment","booking_id":"7e5d4c3b-2a19-4f8e-8d7c-6b5a4f3e2d1c","booking_reference":"RAT-7K2M9Q","location_id":"3d6f0a52-8b1e-4c4f-9a57-2f1d6b0c9e11","customer_id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","method":"card","amount":10000,"currency":"gbp","status":"completed","stripe_id":"pi_3QExample","created_at":"2026-11-14T12:01:00.000Z"}}}}}},"responses":{"2XX":{"description":"Received. Any other answer, or none within 10 seconds, is retried."}}}},"payment.refunded":{"post":{"tags":["Webhooks"],"operationId":"event_payment_refunded","summary":"payment.refunded","description":"Money went back to a customer, to their card or at the venue, including refunds made in Stripe. Answer with any 2xx within 10 seconds. Anything else is retried 7 more times, after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, 12 hours and 24 hours (8 attempts over about 2 days).","parameters":[{"name":"Bookoosh-Event-Id","in":"header","required":true,"schema":{"type":"string"},"description":"The event id (evt_...). The same on every retry: use it to ignore repeats."},{"name":"Bookoosh-Event-Type","in":"header","required":true,"schema":{"type":"string"},"description":"The event type, such as booking.created."},{"name":"Bookoosh-Timestamp","in":"header","required":true,"schema":{"type":"string"},"description":"Unix seconds when this attempt was signed."},{"name":"Bookoosh-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<timestamp>,v1=<hex HMAC-SHA256 of `${timestamp}.${raw body}` keyed with your endpoint's signing secret>."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"id":"evt_5f2b8c1d9e7a4b3c2d1e0f9a","object":"event","type":"payment.refunded","api_version":"2026-11-14","created_at":"2026-11-14T12:00:01.000Z","organisation_id":"0b1c2d3e-4f50-4617-8293-a4b5c6d7e8f9","data":{"object":{"id":"6f5e4d3c-2b1a-4098-8f7e-6d5c4b3a2f1e","object":"refund","booking_id":"7e5d4c3b-2a19-4f8e-8d7c-6b5a4f3e2d1c","booking_reference":"RAT-7K2M9Q","location_id":"3d6f0a52-8b1e-4c4f-9a57-2f1d6b0c9e11","customer_id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","method":"refund","amount":2500,"currency":"gbp","status":"completed","stripe_id":"re_3QExample","created_at":"2026-11-15T09:30:00.000Z"}}}}}},"responses":{"2XX":{"description":"Received. Any other answer, or none within 10 seconds, is retried."}}}},"customer.created":{"post":{"tags":["Webhooks"],"operationId":"event_customer_created","summary":"customer.created","description":"Someone booked or bought for the first time. Answer with any 2xx within 10 seconds. Anything else is retried 7 more times, after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, 12 hours and 24 hours (8 attempts over about 2 days).","parameters":[{"name":"Bookoosh-Event-Id","in":"header","required":true,"schema":{"type":"string"},"description":"The event id (evt_...). The same on every retry: use it to ignore repeats."},{"name":"Bookoosh-Event-Type","in":"header","required":true,"schema":{"type":"string"},"description":"The event type, such as booking.created."},{"name":"Bookoosh-Timestamp","in":"header","required":true,"schema":{"type":"string"},"description":"Unix seconds when this attempt was signed."},{"name":"Bookoosh-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<timestamp>,v1=<hex HMAC-SHA256 of `${timestamp}.${raw body}` keyed with your endpoint's signing secret>."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"id":"evt_5f2b8c1d9e7a4b3c2d1e0f9a","object":"event","type":"customer.created","api_version":"2026-11-14","created_at":"2026-11-14T12:00:01.000Z","organisation_id":"0b1c2d3e-4f50-4617-8293-a4b5c6d7e8f9","data":{"object":{"id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","object":"customer","name":"Sam Taylor","first_name":"Sam","surname":"Taylor","email":"sam@example.com","phone":"07700 900123","marketing_opted_in":false,"total_bookings":1,"total_spend":0,"currency":"gbp","last_visit_at":null,"created_at":"2026-11-14T12:00:00.000Z","updated_at":"2026-11-14T12:00:00.000Z"}}}}}},"responses":{"2XX":{"description":"Received. Any other answer, or none within 10 seconds, is retried."}}}},"voucher.sold":{"post":{"tags":["Webhooks"],"operationId":"event_voucher_sold","summary":"voucher.sold","description":"A gift voucher was paid for online or issued at the venue. `source` is online or venue. Answer with any 2xx within 10 seconds. Anything else is retried 7 more times, after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, 12 hours and 24 hours (8 attempts over about 2 days).","parameters":[{"name":"Bookoosh-Event-Id","in":"header","required":true,"schema":{"type":"string"},"description":"The event id (evt_...). The same on every retry: use it to ignore repeats."},{"name":"Bookoosh-Event-Type","in":"header","required":true,"schema":{"type":"string"},"description":"The event type, such as booking.created."},{"name":"Bookoosh-Timestamp","in":"header","required":true,"schema":{"type":"string"},"description":"Unix seconds when this attempt was signed."},{"name":"Bookoosh-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<timestamp>,v1=<hex HMAC-SHA256 of `${timestamp}.${raw body}` keyed with your endpoint's signing secret>."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"id":"evt_5f2b8c1d9e7a4b3c2d1e0f9a","object":"event","type":"voucher.sold","api_version":"2026-11-14","created_at":"2026-11-14T12:00:01.000Z","organisation_id":"0b1c2d3e-4f50-4617-8293-a4b5c6d7e8f9","data":{"object":{"id":"8d7c6b5a-4f3e-4d2c-9b1a-0f9e8d7c6b5a","object":"gift_voucher","code":"GV-7KQ2-M9XP","status":"active","original_amount":5000,"balance":5000,"currency":"gbp","purchaser_name":"Alex Jones","purchaser_email":"alex@example.com","recipient_name":"Sam Taylor","recipient_email":"sam@example.com","message":"Happy birthday","expires_at":"2027-11-14T12:00:00.000Z","created_at":"2026-11-14T12:00:00.000Z","source":"online"}}}}}},"responses":{"2XX":{"description":"Received. Any other answer, or none within 10 seconds, is retried."}}}},"voucher.redeemed":{"post":{"tags":["Webhooks"],"operationId":"event_voucher_redeemed","summary":"voucher.redeemed","description":"Voucher value was used on a booking. `redemption` says how much and on which booking. Answer with any 2xx within 10 seconds. Anything else is retried 7 more times, after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, 12 hours and 24 hours (8 attempts over about 2 days).","parameters":[{"name":"Bookoosh-Event-Id","in":"header","required":true,"schema":{"type":"string"},"description":"The event id (evt_...). The same on every retry: use it to ignore repeats."},{"name":"Bookoosh-Event-Type","in":"header","required":true,"schema":{"type":"string"},"description":"The event type, such as booking.created."},{"name":"Bookoosh-Timestamp","in":"header","required":true,"schema":{"type":"string"},"description":"Unix seconds when this attempt was signed."},{"name":"Bookoosh-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<timestamp>,v1=<hex HMAC-SHA256 of `${timestamp}.${raw body}` keyed with your endpoint's signing secret>."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"id":"evt_5f2b8c1d9e7a4b3c2d1e0f9a","object":"event","type":"voucher.redeemed","api_version":"2026-11-14","created_at":"2026-11-14T12:00:01.000Z","organisation_id":"0b1c2d3e-4f50-4617-8293-a4b5c6d7e8f9","data":{"object":{"id":"8d7c6b5a-4f3e-4d2c-9b1a-0f9e8d7c6b5a","object":"gift_voucher","code":"GV-7KQ2-M9XP","status":"redeemed","original_amount":5000,"balance":0,"currency":"gbp","purchaser_name":"Alex Jones","purchaser_email":"alex@example.com","recipient_name":"Sam Taylor","recipient_email":"sam@example.com","message":"Happy birthday","expires_at":"2027-11-14T12:00:00.000Z","created_at":"2026-11-14T12:00:00.000Z","redemption":{"booking_id":"7e5d4c3b-2a19-4f8e-8d7c-6b5a4f3e2d1c","booking_reference":"RAT-7K2M9Q","amount":5000}}}}}}},"responses":{"2XX":{"description":"Received. Any other answer, or none within 10 seconds, is retried."}}}},"waiver.signed":{"post":{"tags":["Webhooks"],"operationId":"event_waiver_signed","summary":"waiver.signed","description":"A participant signed a waiver, on their phone or at the venue. Answer with any 2xx within 10 seconds. Anything else is retried 7 more times, after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, 12 hours and 24 hours (8 attempts over about 2 days).","parameters":[{"name":"Bookoosh-Event-Id","in":"header","required":true,"schema":{"type":"string"},"description":"The event id (evt_...). The same on every retry: use it to ignore repeats."},{"name":"Bookoosh-Event-Type","in":"header","required":true,"schema":{"type":"string"},"description":"The event type, such as booking.created."},{"name":"Bookoosh-Timestamp","in":"header","required":true,"schema":{"type":"string"},"description":"Unix seconds when this attempt was signed."},{"name":"Bookoosh-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<timestamp>,v1=<hex HMAC-SHA256 of `${timestamp}.${raw body}` keyed with your endpoint's signing secret>."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"id":"evt_5f2b8c1d9e7a4b3c2d1e0f9a","object":"event","type":"waiver.signed","api_version":"2026-11-14","created_at":"2026-11-14T12:00:01.000Z","organisation_id":"0b1c2d3e-4f50-4617-8293-a4b5c6d7e8f9","data":{"object":{"id":"e9f8a7b6-c5d4-4e3f-a2b1-c0d9e8f7a6b5","object":"waiver_signature","waiver_id":"4b3a2f1e-0d9c-4b8a-9f7e-6d5c4b3a2f10","waiver_name":"Axe throwing waiver","booking_id":"7e5d4c3b-2a19-4f8e-8d7c-6b5a4f3e2d1c","booking_reference":"RAT-7K2M9Q","customer_id":"c4a1e2f3-6b7d-4c8e-9f0a-1b2c3d4e5f60","location_id":"3d6f0a52-8b1e-4c4f-9a57-2f1d6b0c9e11","participant_name":"Sam Taylor","is_minor":false,"signer_name":"Sam Taylor","signed_via":"online","signed_at":"2026-11-15T10:00:00.000Z","expires_at":"2027-11-15T10:00:00.000Z"}}}}}},"responses":{"2XX":{"description":"Received. Any other answer, or none within 10 seconds, is retried."}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Your API key from Settings > API, sent as `Authorization: Bearer bk_live_...`."}},"responses":{"E400":{"description":"The request isn't valid. `param` names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"type":"invalid_request_error","code":"parameter_invalid","message":"limit must be a whole number from 1 to 100.","param":"limit"},"request_id":"req_Xb3kP0aQ9mZt"}}}},"E401":{"description":"The API key is missing, wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"type":"authentication_error","code":"invalid_api_key","message":"That API key isn't valid."},"request_id":"req_Xb3kP0aQ9mZt"}}}},"E403":{"description":"The key is read only and this request makes a change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"type":"permission_error","code":"insufficient_scope","message":"This API key is read only. Create a key with read and write access in Settings > API to make changes."},"request_id":"req_Xb3kP0aQ9mZt"}}}},"E404":{"description":"There's nothing with that id at your venue.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"type":"not_found_error","code":"resource_missing","message":"No booking with that id.","param":"id"},"request_id":"req_Xb3kP0aQ9mZt"}}}},"E409":{"description":"It can't be done in the booking's current state, or the slot is full.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"type":"conflict_error","code":"capacity_exceeded","message":"Axe Throwing (1 hour) only has 2 places left at that time.","param":"items"},"request_id":"req_Xb3kP0aQ9mZt"}}}},"E422":{"description":"The Idempotency-Key was already used for a different request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"type":"idempotency_error","code":"idempotency_key_reused","message":"This Idempotency-Key was already used for a different request. Use a new key for a new request.","param":"Idempotency-Key"},"request_id":"req_Xb3kP0aQ9mZt"}}}},"E429":{"description":"Too many requests. Wait for the Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"type":"rate_limit_error","code":"rate_limited","message":"Rate limit reached (120 requests a minute per key). Retry after the number of seconds in the Retry-After header."},"request_id":"req_Xb3kP0aQ9mZt"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}}}},"schemas":{"WebhookEndpoint":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"object":{"type":"string","const":"webhook_endpoint"},"url":{"type":"string"},"description":{"type":["string","null"]},"events":{"type":"array","items":{"type":"string","enum":["*","booking.created","booking.changed","booking.cancelled","booking.checked_in","payment.succeeded","payment.refunded","customer.created","voucher.sold","voucher.redeemed","waiver.signed"]},"description":"[\"*\"] means every event, including ones added later."},"enabled":{"type":"boolean"},"created_via":{"type":"string","enum":["settings","api"]},"created_at":{"type":"string","format":"date-time"}}},"WebhookEndpointWithSecret":{"allOf":[{"$ref":"#/components/schemas/WebhookEndpoint"},{"type":"object","properties":{"secret":{"type":"string","description":"Signing secret (whsec_...). Verify every request with it."}}}]},"WebhookEndpointCreate":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"https URL that receives events."},"events":{"type":"array","items":{"type":"string","enum":["*","booking.created","booking.changed","booking.cancelled","booking.checked_in","payment.succeeded","payment.refunded","customer.created","voucher.sold","voucher.redeemed","waiver.signed"]},"description":"Event types to send. Leave out, or send [\"*\"], for every event."},"description":{"type":"string","maxLength":255,"description":"A name you'll recognise in Settings > Webhooks."}}},"WebhookEvent":{"type":"object","required":["id","object","type","api_version","created_at","organisation_id","data"],"properties":{"id":{"type":"string","description":"evt_... The same on every retry. Store it and ignore events you've already handled."},"object":{"type":"string","const":"event"},"type":{"type":"string","enum":["ping","booking.created","booking.changed","booking.cancelled","booking.checked_in","payment.succeeded","payment.refunded","customer.created","voucher.sold","voucher.redeemed","waiver.signed"],"description":"ping is only sent by Send test in Settings > Webhooks."},"api_version":{"type":"string","const":"2026-11-14"},"created_at":{"type":"string","format":"date-time","description":"When it happened."},"organisation_id":{"type":"string","format":"uuid","description":"Your venue."},"data":{"type":"object","properties":{"object":{"description":"The booking, customer, payment, gift voucher or waiver signature, as the API returns it."},"previous_attributes":{"type":"object","description":"booking.changed and booking.cancelled only: the values before the change."}}}}},"WebhookPayment":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","enum":["payment","refund"]},"booking_id":{"type":"string","format":"uuid"},"booking_reference":{"type":"string"},"location_id":{"type":"string","format":"uuid"},"customer_id":{"type":"string","format":"uuid"},"method":{"type":"string","enum":["card","cash","payment_link","refund"]},"amount":{"type":"integer","description":"In pence, always positive."},"currency":{"type":"string","const":"gbp"},"status":{"type":"string"},"stripe_id":{"type":["string","null"],"description":"Stripe PaymentIntent or refund id."},"created_at":{"type":"string","format":"date-time"}}},"WaiverSignature":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"object":{"type":"string","const":"waiver_signature"},"waiver_id":{"type":"string","format":"uuid"},"waiver_name":{"type":["string","null"]},"booking_id":{"type":["string","null"],"format":"uuid"},"booking_reference":{"type":["string","null"]},"customer_id":{"type":["string","null"],"format":"uuid"},"location_id":{"type":"string","format":"uuid"},"participant_name":{"type":"string"},"is_minor":{"type":"boolean"},"signer_name":{"type":"string"},"signed_via":{"type":"string","enum":["online","venue"]},"signed_at":{"type":"string","format":"date-time"},"expires_at":{"type":["string","null"],"format":"date-time"}}},"Error":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["type","code","message"],"properties":{"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","conflict_error","idempotency_error","rate_limit_error","api_error"],"description":"The kind of error. Matches the HTTP status."},"code":{"type":"string","description":"A stable code you can match on, such as `capacity_exceeded`."},"message":{"type":"string","description":"A plain explanation you can show or log."},"param":{"type":"string","description":"The field the error is about, when there is one."}}},"request_id":{"type":"string","description":"Quote this if you contact us. Also in the Request-Id header."}}},"ApiKey":{"type":"object","properties":{"object":{"type":"string","const":"api_key"},"name":{"type":"string","description":"The name you gave the key."},"scope":{"type":"string","enum":["read","write"],"description":"`read` can only GET. `write` can also create and change."},"organisation":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Your venue id."},"name":{"type":"string","description":"Your venue name."}}},"rate_limit_per_minute":{"type":"integer"}}},"Location":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Location id."},"object":{"type":"string","const":"location"},"name":{"type":"string","description":"Name."},"slug":{"type":"string","description":"Used in your booking page link."},"timezone":{"type":"string","description":"IANA time zone. Slot `date` and `time` are local to it."},"currency":{"type":"string","const":"gbp"},"address":{"type":["object","null"],"properties":{"line1":{"type":["string","null"],"description":""},"line2":{"type":["string","null"],"description":""},"city":{"type":["string","null"],"description":""},"county":{"type":["string","null"],"description":""},"postcode":{"type":["string","null"],"description":""},"country":{"type":["string","null"],"description":""}}},"booking_url":{"type":"string","description":"Your public booking page."},"created_at":{"type":"string","format":"date-time","description":"When it was added."}}},"Price":{"type":"object","properties":{"ticket_type":{"type":"string","description":"Send this as `ticket_type` when booking."},"label":{"type":"string","description":"What customers see."},"amount":{"type":"integer","description":"Price per ticket. In pence."},"currency":{"type":"string","const":"gbp"},"peak":{"type":"boolean","description":"A peak price applies on `peak_days` between the peak times."},"peak_days":{"type":["array","null"],"items":{"type":"integer"},"description":"0 is Monday, 6 is Sunday."},"peak_start_time":{"type":["string","null"],"description":"HH:mm"},"peak_end_time":{"type":["string","null"],"description":"HH:mm"}}},"Schedule":{"type":"object","properties":{"day_of_week":{"type":"integer","description":"0 is Monday, 6 is Sunday."},"follows_venue_hours":{"type":"boolean","description":"true when the activity runs whenever the venue is open."},"open_time":{"type":["string","null"],"description":"HH:mm, when it doesn't follow venue hours."},"close_time":{"type":["string","null"],"description":"HH:mm"},"slot_interval_minutes":{"type":["integer","null"]},"active":{"type":"boolean"}}},"Activity":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Activity id."},"object":{"type":"string","const":"activity"},"location_id":{"type":"string","format":"uuid","description":"Where it runs."},"name":{"type":"string","description":"Name."},"description":{"type":["string","null"],"description":""},"category":{"type":["string","null"],"description":""},"duration_minutes":{"type":"integer"},"buffer_minutes":{"type":"integer","description":"Gap after each session."},"capacity":{"type":"integer","description":"Places per slot."},"min_group_size":{"type":"integer"},"max_group_size":{"type":"integer"},"min_age":{"type":["integer","null"]},"images":{"type":"array","items":{"type":"string"}},"active":{"type":"boolean","description":"false when hidden from booking."},"prices":{"type":"array","items":{"$ref":"#/components/schemas/Price"}},"schedules":{"type":"array","items":{"$ref":"#/components/schemas/Schedule"}},"created_at":{"type":"string","format":"date-time","description":"When it was added."}}},"Slot":{"type":"object","properties":{"time":{"type":"string","description":"HH:mm local time. Send it as `time` when booking."},"start_at":{"type":"string","format":"date-time","description":"Start."},"end_at":{"type":"string","format":"date-time","description":"End."},"places_left":{"type":"integer"},"capacity":{"type":"integer"},"prices":{"type":"array","items":{"type":"object","properties":{"ticket_type":{"type":"string","description":"Ticket type."},"label":{"type":"string","description":"Label."},"amount":{"type":["integer","null"],"description":"Price per ticket at this time, in pence."},"currency":{"type":"string","const":"gbp"}}}}}},"Availability":{"type":"object","properties":{"object":{"type":"string","const":"availability"},"activity_id":{"type":"string","format":"uuid","description":"Activity."},"location_id":{"type":"string","format":"uuid","description":"Location."},"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"},"days":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date"},"closed":{"type":"boolean"},"reason":{"type":["string","null"],"description":"Why it's closed."},"slots":{"type":"array","items":{"$ref":"#/components/schemas/Slot"}}}}}}},"BookingItem":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Line id."},"activity_id":{"type":"string","format":"uuid","description":"Activity."},"activity_name":{"type":"string","description":"Activity name."},"ticket_type":{"type":"string","description":"Ticket type."},"quantity":{"type":"integer"},"unit_amount":{"type":"integer","description":"Price per ticket. In pence."},"amount":{"type":"integer","description":"Line total. In pence."},"start_at":{"type":"string","format":"date-time","description":"Start."},"end_at":{"type":"string","format":"date-time","description":"End."}}},"Booking":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Booking id."},"object":{"type":"string","const":"booking"},"reference":{"type":"string","description":"Shown to the customer and staff."},"status":{"type":"string","enum":["pending","confirmed","checked_in","completed","cancelled","no_show","refunded"]},"source":{"type":"string","enum":["online","dashboard","phone","walk_in","api","import"],"description":"Where it was made (import means brought across from the venue's old booking system)."},"location_id":{"type":"string","format":"uuid","description":"Location."},"customer_id":{"type":"string","format":"uuid","description":"Customer."},"customer":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid","description":"Customer id."},"name":{"type":"string","description":"Name."},"email":{"type":["string","null"],"description":"Email."},"phone":{"type":["string","null"],"description":"Phone."}}},"start_at":{"type":["string","null"],"format":"date-time","description":"Start of the first session."},"end_at":{"type":["string","null"],"format":"date-time","description":"End of the last session."},"participants":{"type":"integer","description":"Tickets across all lines."},"items":{"type":"array","items":{"$ref":"#/components/schemas/BookingItem"}},"add_ons":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Line id."},"add_on_id":{"type":"string","format":"uuid","description":"Add-on."},"name":{"type":"string","description":"Name."},"quantity":{"type":"integer"},"unit_amount":{"type":"integer","description":"Price each. In pence."},"amount":{"type":"integer","description":"Line total. In pence."}}}},"amount_total":{"type":"integer","description":"Booking total after discounts. In pence."},"amount_paid":{"type":"integer","description":"Paid so far, less refunds. In pence."},"amount_refunded":{"type":"integer","description":"Refunded. In pence."},"amount_due":{"type":"integer","description":"Still to pay (0 once cancelled). In pence."},"deposit":{"type":"integer","description":"Deposit taken online. In pence."},"discounts":{"type":"object","properties":{"promo":{"type":"integer","description":"Promo code. In pence."},"gift_voucher":{"type":"integer","description":"Gift voucher. In pence."},"loyalty":{"type":"integer","description":"Loyalty points. In pence."},"membership":{"type":"integer","description":"Pass or membership. In pence."}}},"currency":{"type":"string","const":"gbp"},"notes":{"type":["string","null"],"description":"Notes and special requirements."},"booked_at":{"type":"string","format":"date-time","description":"When it was made."},"checked_in_at":{"type":["string","null"],"format":"date-time","description":"When the group arrived."},"created_at":{"type":"string","format":"date-time","description":"Created."},"updated_at":{"type":"string","format":"date-time","description":"Last change of any kind."}}},"BookingCreate":{"type":"object","required":["date","time","items"],"properties":{"date":{"type":"string","format":"date","description":"The venue's local date, YYYY-MM-DD."},"time":{"type":"string","description":"A slot `time` from availability, HH:mm."},"items":{"type":"array","minItems":1,"items":{"type":"object","required":["activity_id","ticket_type","quantity"],"properties":{"activity_id":{"type":"string","format":"uuid","description":"Activity."},"ticket_type":{"type":"string","description":"A `ticket_type` from the activity's prices."},"quantity":{"type":"integer","minimum":1}}}},"add_ons":{"type":"array","items":{"type":"object","required":["add_on_id","quantity"],"properties":{"add_on_id":{"type":"string","format":"uuid","description":"Add-on."},"quantity":{"type":"integer","minimum":1}}}},"customer_id":{"type":"string","format":"uuid","description":"An existing customer. Send this or `customer`."},"customer":{"type":"object","required":["email"],"description":"Found by email, or added as a new customer.","properties":{"email":{"type":"string","description":"Email."},"name":{"type":"string","description":"Full name."},"first_name":{"type":"string","description":"First name."},"surname":{"type":"string","description":"Surname."},"phone":{"type":"string","description":"Phone."},"marketing_opted_in":{"type":"boolean"}}},"notes":{"type":"string","description":"Notes and special requirements."},"send_confirmation_email":{"type":"boolean","default":false,"description":"true sends the customer your usual confirmation email."}}},"BookingUpdate":{"type":"object","properties":{"date":{"type":"string","format":"date","description":"New date."},"time":{"type":"string","description":"New slot time, HH:mm."},"notes":{"type":["string","null"],"description":"Notes. null clears them."},"items":{"type":"array","minItems":1,"maxItems":20,"description":"The tickets the booking should have from now on. Activities must already be on the booking.","items":{"type":"object","required":["activity_id","ticket_type","quantity"],"properties":{"activity_id":{"type":"string","format":"uuid","description":"Activity on the booking."},"ticket_type":{"type":"string","description":"A `ticket_type` from the activity's prices."},"quantity":{"type":"integer","minimum":0,"maximum":500,"description":"0 removes this ticket."}}}},"refund":{"type":"boolean","default":false,"description":"With `items`, refund what was paid beyond the new total (card payments back to the card)."}}},"BookingCancel":{"type":"object","properties":{"refund":{"type":"boolean","default":false,"description":"true refunds everything paid."},"reason":{"type":"string","description":"Kept on the booking timeline."}}},"Customer":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Customer id."},"object":{"type":"string","const":"customer"},"name":{"type":"string","description":"Full name."},"first_name":{"type":["string","null"],"description":""},"surname":{"type":["string","null"],"description":""},"email":{"type":["string","null"],"description":"Email (null for walk-ins with no email)."},"phone":{"type":["string","null"],"description":""},"marketing_opted_in":{"type":"boolean"},"total_bookings":{"type":"integer"},"total_spend":{"type":"integer","description":"Lifetime spend. In pence."},"currency":{"type":"string","const":"gbp"},"last_visit_at":{"type":["string","null"],"format":"date-time","description":"Last visit."},"created_at":{"type":"string","format":"date-time","description":"Created."},"updated_at":{"type":"string","format":"date-time","description":"Last change."}}},"CustomerCreate":{"type":"object","required":["email"],"properties":{"email":{"type":"string","description":"Email."},"name":{"type":"string","description":"Full name (or send first_name and surname)."},"first_name":{"type":"string","description":"First name."},"surname":{"type":"string","description":"Surname."},"phone":{"type":"string","description":"Phone."},"marketing_opted_in":{"type":"boolean","default":false}}},"CustomerUpdate":{"type":"object","properties":{"email":{"type":"string","description":"Email."},"name":{"type":"string","description":"Full name."},"first_name":{"type":"string","description":"First name."},"surname":{"type":"string","description":"Surname."},"phone":{"type":["string","null"],"description":"Phone. null clears it."},"marketing_opted_in":{"type":"boolean"}}},"GiftVoucher":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Voucher id."},"object":{"type":"string","const":"gift_voucher"},"code":{"type":"string","description":"What the customer types at checkout."},"status":{"type":"string","enum":["active","redeemed","expired","voided"]},"original_amount":{"type":"integer","description":"Value when issued. In pence."},"balance":{"type":"integer","description":"Left to spend. In pence."},"currency":{"type":"string","const":"gbp"},"purchaser_name":{"type":["string","null"],"description":""},"purchaser_email":{"type":["string","null"],"description":""},"recipient_name":{"type":["string","null"],"description":""},"recipient_email":{"type":["string","null"],"description":""},"message":{"type":["string","null"],"description":""},"expires_at":{"type":["string","null"],"format":"date-time","description":"Expiry."},"created_at":{"type":"string","format":"date-time","description":"Issued."}}},"GiftVoucherCreate":{"type":"object","required":["amount"],"properties":{"amount":{"type":"integer","minimum":100,"description":"Value in pence, from 100."},"expiry_months":{"type":"integer","minimum":1,"maximum":60,"default":12},"recipient_name":{"type":"string","description":"Recipient."},"recipient_email":{"type":"string","description":"Recipient email."},"purchaser_name":{"type":"string","description":"Buyer."},"purchaser_email":{"type":"string","description":"Buyer email."},"message":{"type":"string","description":"Message on the voucher."}}},"Transaction":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Transaction id."},"object":{"type":"string","const":"transaction"},"kind":{"type":"string","enum":["booking","gift_voucher","pass","membership"],"description":"What was paid for."},"booking_id":{"type":["string","null"],"format":"uuid","description":"The booking, for booking payments."},"gift_voucher_id":{"type":["string","null"],"format":"uuid","description":"The gift voucher, for voucher sales."},"membership_id":{"type":["string","null"],"format":"uuid","description":"The pass or membership."},"reference":{"type":["string","null"],"description":"Booking reference, voucher code or membership code."},"customer_name":{"type":["string","null"],"description":""},"status":{"type":"string","enum":["pending","succeeded","refunded","partial_refund"]},"currency":{"type":"string","const":"gbp"},"amount":{"type":"integer","description":"What the customer paid. In pence."},"bookoosh_fee":{"type":"integer","description":"Bookoosh fee (2%). In pence."},"bookoosh_fee_vat":{"type":"integer","description":"VAT on the Bookoosh fee. In pence."},"stripe_fee":{"type":"integer","description":"Stripe's card fee. 0 until Stripe reports it. In pence."},"refunded":{"type":"integer","description":"Refunded to the customer so far. In pence."},"bookoosh_fee_refunded":{"type":"integer","description":"Bookoosh fee and VAT given back with refunds. In pence."},"net":{"type":["integer","null"],"description":"amount less the Bookoosh fee, VAT and Stripe fee. null until Stripe reports its fee. In pence."},"paid_out":{"type":"integer","description":"Sent to you for this payment, less what refunds took back. In pence."},"settled_at":{"type":["string","null"],"format":"date-time","description":"When it was paid out to you."},"created_at":{"type":"string","format":"date-time","description":"When the customer paid."}}},"AddOn":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Add-on id."},"object":{"type":"string","const":"add_on"},"location_id":{"type":"string","format":"uuid","description":"Location."},"name":{"type":"string","description":"Name."},"description":{"type":["string","null"],"description":""},"category":{"type":"string","enum":["addon","food","drink"]},"amount":{"type":"integer","description":"Price each. In pence."},"currency":{"type":"string","const":"gbp"},"activity_ids":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Activities it's offered with. Empty means all."},"active":{"type":"boolean"},"created_at":{"type":"string","format":"date-time","description":"Added."}}}}}}