PENDING: The booking is waiting to be confirmed or declined by the business owner. A booking is automatically set as PENDING if the service is configured to require manual business onwer confirmation and an eCommerce order was created.
CONFIRMED: The booking was confirmed. A booking is automatically confirmed if the service is configured to automatically confirm bookings and an eCommerce order was created. If the service isn't configured to automatically confirm bookings, you can use Confirm Or Decline Booking.
DECLINED: The booking was declined by the business owner. A booking is also declined if an eCommerce order was created that resulted in a double booking.
Selected payment option.
One of the payment options offered by the service, or another option if skipSelectedPaymentOptionValidation is true.
When undefined, the payment option is resolved by the service configuration on checkout.
createdDatestringRead-onlyformat date-time
Date and time the booking was created.
externalUserIdstring
External ID provided by the client app on creation.
revisionintegerformat uint64
Revision number to be used when updating, rescheduling, or cancelling the booking. Revision number, which increments by 1 each time the booking is updated, rescheduled, or canceled. To prevent conflicting changes,the current revision must be passed when updating the booking.
createdByobjectRead-only
ID of the creator of the Booking.
If appId and another ID are present, the other ID takes precedence.
startDatestringRead-onlyformat date-time
The start date of this booking. For a slot, this is the start date of the slot. For a schedule, this is the start date of the first session.
endDatestringRead-onlyformat date-time
The end date of this booking. For a slot, this is the end date of the slot. For a schedule, this is the end date of the last session.
updatedDatestringRead-onlyformat date-time
Date and time the booking was updated.
extendedFieldsobject
Custom field data for this object. Extended fields must be configured in the Wix Dev Center before they can be accessed with API calls.
doubleBookedbooleanRead-only
Whether this booking overlaps another existing confirmed booking. Returned when: true
ONE OF:
totalParticipantsintegerminimum 1
Total number of participants. Available only when the booking includes a single service variant.
participantsChoicesobject
Information about the booked service choices and participants.
Available only when the booking includes multiple service variants.