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

Reschedule Booking

Developer Preview

Reschedule a Booking.
When rescheduling a booking of a slot, the session on the calendar is updated as well.
Note: Rescheduling a booking to a schedule is not supported.

Permissions
This endpoint requires the Manage Bookings permission scope.

Authorization

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

POST

https://www.wixapis.com/bookings/v1/bookings/{bookingId}/reschedule

Path Params

NAME
TYPE
DESCRIPTION
bookingId
Required

string

Id of the Booking to be updated

Body Params

NAME
TYPE
DESCRIPTION
participantNotification

object

Whether to notify participants about the change and an optional custom message

ONE OF:
createSession

object

Reschedule to a new session that. This will create the session.

bySessionId

object

Reschedule to an existing session with start & end dates for validation

scheduleId

string

Reschedule to an existing schedule

Response Object

NAME
TYPE
DESCRIPTION
booking

object

Status/Error Codes

The response will include an HTTP status code.

Was this helpful?

Request

curl

Copy Code
1curl -X POST \
2 'http://www.wixapis.com/bookings/v1/bookings/f35ce137-b349-4c3d-9c13-8024b91915dc/reschedule' \
3 -H 'Authorization: <AUTH>'
4 --data '{
5 "bookingId": "f35ce137-b349-4c3d-9c13-8024b91915dc",
6 "createSession": {
7 "scheduleId": "4feb714e-7ba6-4c88-86c7-d27e9c943b78",
8 "start": {
9 "timeZone": "Asia/Jerusalem",
10 "timestamp": "2020-04-30T11:30:00Z"
11 },
12 "end": {
13 "timeZone": "Asia/Jerusalem",
14 "timestamp": "2020-04-30T12:30:00Z"
15 },
16 "affectedSchedules": [
17 {
18 "scheduleId": "7018bb00-a3c2-4677-b859-0c929e010f1e",
19 "transparency": "BUSY"
20 }
21 ],
22 "location": {
23 "locationType": "OWNER_BUSINESS"
24 }
25 }
26 }'

Response

json

1
2{"booking": {
3 "id": "f35ce137-b349-4c3d-9c13-8024b91915dc",
4 "bookedEntity": {
5 "serviceId": "fbd8da34-04c4-4526-90d2-2ef48cd96d02",
6 "scheduleId": "4feb714e-7ba6-4c88-86c7-d27e9c943b78",
7 "singleSession": {
8 "sessionId": "2mmoW0vwKcSFyxtOfCdMnUddTTa78wlETr6zhp2b4JttTvFkANXR5mFFfM0RMojEfwfTJqdaKz4KLB45pG2yOtFtEr8YpN6gb0AP",
9 "start": "2020-04-30T11:30:00Z",
10 "end": "2020-04-30T12:30:00Z"
11 },
12 "title": "Appointment - In Person",
13 "location": {"locationType": "OWNER_BUSINESS"},
14 "rate": {"labeledPriceOptions": {"general": {
15 "amount": "123",
16 "currency": "ILS",
17 "downPayAmount": "0"
18 }}},
19 "tags": ["INDIVIDUAL"]
20 },
21 "bookedResources": [ {
22 "id": "936d2078-79ba-49ca-b82d-8f12b8a050ac",
23 "name": "",
24 "email": ""
25 }],
26 "formInfo": {
27 "contactDetails": {
28 "contactId": "b9388c66-29c3-4719-997c-7440c5530e4b",
29 "firstName": "Homer",
30 "lastName": "Simpson",
31 "email": "Doh@Doh.com",
32 "phone": "5558707",
33 "timeZone": "Asia/Jerusalem",
34 "countryCode": "IL"
35 },
36 "paymentSelection": [ {
37 "rateLabel": "general",
38 "numberOfParticipants": 1
39 }],
40 "customFormFields": {},
41 "additionalFields": [
42 {
43 "id": "5688a46e-aa0b-424d-b929-810f0cce25e2",
44 "label": "Add Your Message",
45 "valueType": "LONG_TEXT"
46 },
47 {
48 "id": "de68bdad-b006-4a2c-909e-9fe628a9009c",
49 "label": "I agree to the Terms & Conditions",
50 "valueType": "CHECK_BOX"
51 }
52 ]
53 },
54 "paymentDetails": {
55 "balance": {
56 "finalPrice": {
57 "amount": "123",
58 "currency": "ILS",
59 "downPayAmount": "0"
60 },
61 "amountReceived": "123"
62 },
63 "wixPayDetails": {
64 "txId": "e128559b-4633-41e4-9b27-2dbeaa141321",
65 "orderId": "0ff1e848-41d6-41eb-a0e9-61230c1a7968",
66 "orderAmount": "123",
67 "orderStatus": "UNDEFINED",
68 "orderApprovalTime": "2020-04-28T10:11:18.645Z",
69 "paymentVendorName": "inPerson"
70 },
71 "state": "COMPLETE",
72 "wixPayMultipleDetails": [ {
73 "txId": "e128559b-4633-41e4-9b27-2dbeaa141321",
74 "orderId": "0ff1e848-41d6-41eb-a0e9-61230c1a7968",
75 "orderAmount": "123",
76 "orderStatus": "UNDEFINED",
77 "orderApprovalTime": "2020-04-28T10:11:18.645Z",
78 "paymentVendorName": "inPerson"
79 }]
80 },
81 "status": "CONFIRMED",
82 "created": "2020-04-27T10:51:36.263Z"
83}}