Search.../
  1. Home
  2. Getting Started
  3. Overview
Generate a test token to explore our APIs

Book from Waitlist

Developer Preview

Books a site member into the session for which they are waitlisted (waiting resource), and the associated booking is checked out. Waitlist registration status is changed to ENROLLED.

Permissions
This endpoint requires the Manage Bookings permissions scope

Authorization

This endpoint requires an authorization header - pass the access token from the OAuth installation flow.

POST

https://www.wixapis.com/bookings/v1/waitlist/enroll

Body Params

NAME
TYPE
DESCRIPTION
registrationId
Required

string

Registration to book.

couponCode

string

Coupon code to apply to this booking at checkout.

planSelection

object

Selected paid plan to apply to this booking at checkout.

notifyParticipants

boolean

Response Object

NAME
TYPE
DESCRIPTION
registrationId

string

booking

object

Checked-out booking. (Online-payments can only be completed in the Wix Bookings UI.)

Status/Error Codes

The response will include an HTTP status code.

Was this helpful?

Enroll from wait list

Books a site member into the session for which he was waitlisted, according to the provided registration Id.

Request

curl

Copy Code
1curl --X POST /
2 'https://www.wixapis.com/bookings/v1/waitlist/enroll' \
3 -H 'Authorization: <AUTH>'
4 --data '{
5 "registrationId": "2724acf6-fedd-402b-8cbc-48bc784481d9"
6 }'

Response

json

1
2{
3 "registrationId": "2724acf6-fedd-402b-8cbc-48bc784481d9",
4 "booking": {
5 "id": "668bfc5c-b022-4fea-8c14-c19416bfb710",
6 "bookedEntity": {
7 "serviceId": "7a371719-1250-4a62-b559-8b758bc7a359",
8 "scheduleId": "fc836136-2ce9-4d8a-8f7f-a4a932fdf20a",
9 "singleSession": {
10 "sessionId": "193ZPR9ppP9emJUCLevcLf6orynNEIDt5nc0520xjGQILnPPaF5s62yK3BWz7ExgIRM1VRioAcbF7zzwvoBTEIScx8fykHVtU2r5GoJrd7PuRidnB3zvYGeB6vu46SF7RN6M20Jg3OP1PZhRjhbotC5iz5mBXEncK2sHCaVgGczVpDEUts19ULscMtZ8dzmp6Hd6caRs6g5UcGtKSnvH5KJPYdojijsgantqsSTmFokncR3Y5PHqiIRaLeERqoPVfZbwXR7nJIOAe5EjjoMPFhRTOoczpbq9zjDLsREsYtStLaYvO2zhufHEWlp5Gq7mB9cXh1UmPbR7rp",
11 "start": "2020-05-05T07:00:00Z",
12 "end": "2020-05-05T08:00:00Z"
13 },
14 "title": "class",
15 "location": {"locationType": "OWNER_BUSINESS"},
16 "rate": {"labeledPriceOptions": {"general": {
17 "amount": "12",
18 "currency": "USD",
19 "downPayAmount": "0"
20 }}},
21 "tags": ["GROUP"]
22 },
23 "bookedResources": [ {
24 "id": "936d2078-79ba-49ca-b82d-8f12b8a050ac",
25 "name": "Dorgal",
26 "email": "dorga@wix.com"
27 }],
28 "formInfo": {
29 "contactDetails": {
30 "contactId": "bbcbea1c-d492-45cd-9d30-d6685137ebd5",
31 "firstName": "Homer",
32 "lastName": "Simpson",
33 "email": "Doh@Doh.com",
34 "phone": "5558707",
35 "timeZone": "Asia/Jerusalem",
36 "countryCode": "IL"
37 },
38 "paymentSelection": [ {
39 "rateLabel": "general",
40 "numberOfParticipants": 1
41 }],
42 "customFormFields": {},
43 "additionalFields": []
44 },
45 "paymentDetails": {
46 "balance": {
47 "finalPrice": {
48 "amount": "12",
49 "currency": "USD",
50 "downPayAmount": "0"
51 },
52 "amountReceived": "0"
53 },
54 "state": "READY",
55 "wixPayMultipleDetails": []
56 },
57 "status": "CONFIRMED",
58 "created": "2020-05-04T17:36:15.647Z"
59 }
60}