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

Confirm Booking

Developer Preview

Confirm a booking request.
When invoking this API the following takes place:

  • The participant status on the session changes to APPROVED.
  • Slot availability is updated.
  • The Booking status changes to CONFIRMED.
  • The Booking is charged creating an offline-order in Wix Payment Service.

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/{id}/confirm

Path Params

NAME
TYPE
DESCRIPTION
id
Required

string

the Booking id to confirm

Body Params

NAME
TYPE
DESCRIPTION
participantNotification

object

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

Response Object

NAME
TYPE
DESCRIPTION
id

string

the Booking id that confirmed

Status/Error Codes

The response will include an HTTP status code.

Was this helpful?

Confirm Booking

Confirm a booking which is pending. For example, a business owner confirms a booking that was done by a visitor and is pending his approval.

Request

curl

Copy Code
1curl -X POST \
2 'http://www.wixapis.com/bookings/v1/bookings/e0e5f390-6302-46fc-a5ee-a2ec5000d4e8/confirm' \
3 -H 'Authorization: <AUTH>'
4 --data '{
5 "id" : "e0e5f390-6302-46fc-a5ee-a2ec5000d4e8"
6 }'

Response

json

1
2{"id": "e0e5f390-6302-46fc-a5ee-a2ec5000d4e8"}