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

Update Customer Info

Developer Preview

Update client’s information on a Booking.

Authorization

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

Permissions

This endpoint requires the Manage Bookings permission scope.

POST

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

Path Params

NAME
TYPE
DESCRIPTION
bookingId
Required

string

Id of the Booking to be updated

Body Params

NAME
TYPE
DESCRIPTION
formInfo

object

Updated form info and contact details

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/updateCustomerInfo' \
3 -H 'Authorization: <AUTH>'
4 --data '{
5 "bookingId": "f35ce137-b349-4c3d-9c13-8024b91915dc",
6 "formInfo": {
7 "contactDetails": {
8 "contactId": "9c9f3cff-724c-4264-80ee-207516fca2dc",
9 "firstName": "Bart",
10 "lastName": "Simpson",
11 "email": "Ay@caramba.com",
12 "phone": "5558707",
13 "timeZone": "Asia/Jerusalem",
14 "countryCode": "IL"
15 },
16 "paymentSelection": [
17 {
18 "rateLabel": "general",
19 "numberOfParticipants": 1
20 }
21 ],
22 "customFormFields": {}
23 }
24 }'

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": "Dorgal",
24 "email": "dorga@wix.com"
25 }],
26 "formInfo": {
27 "contactDetails": {
28 "contactId": "b9388c66-29c3-4719-997c-7440c5530e4b",
29 "firstName": "Bart",
30 "lastName": "Simpson",
31 "email": "Ay@caramba.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}}