-
Notifications
You must be signed in to change notification settings - Fork 14
first draft #692
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
first draft #692
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Wix Bookings Lifecycle | ||
|
||
To manage bookings, a life cycle status is used to track their progression through different stages. This status is essential for controlling the possible actions that can be taken, such as confirming a pending booking. By utilizing this life cycle status, the system effectively regulates the booking process from start to finish. | ||
FernandoWix marked this conversation as resolved.
Show resolved
Hide resolved
FernandoWix marked this conversation as resolved.
Show resolved
Hide resolved
FernandoWix marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
A booking can go through checkout for payment or have no payment, in any case, the validation occurs through [Confirm or decline](https://dev.wix.com/api/rest/wix-bookings/confirmation/confirm-or-decline-booking), where availability, payment and the need for business confirmation are checked. | ||
FernandoWix marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
A booking does not need payment to be confirmed, but payment will make sure that the booking is confirmed, even in a case of `DOUBLEBOOKING`, another way of allowing `DOUBLEBOOKING` is passing `skipAvailability` as `true` when creating the booking. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This sentence is not organized well. Please try to rewrite. Here are some things to keep in mind:
|
||
|
||
The following table describes all the possible status for a booking: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. statuses |
||
|
||
| Status | Definition | | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not reviewing every single word in the table. I will need to see the entire article again. I will just give you some quick comments. But realize that it's not a full review on the table. |
||
|---------------|-------------------------| | ||
|
||
| `CREATED` | The booking has been created, but doesn't yet appear in the business calendar. | ||
The first step and status of a booking is created, it can be used for checkout or processed without it. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not a sentence - it should be two sentences or rewritten to be one sentence. I think if you ran every sentence through ChatGPT you'd be in a better place. |
||
You can create a booking with [Create booking](https://dev.wix.com/api/rest/wix-bookings/bookings-v2/create-booking) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In REST, the endpoints are capitalized so it would be Create Booking. Also you are missing a period at the end of the sentence. |
||
| `CONFIRMED` | The site owner has confirmed the booking and it appears in the business calendar. | ||
+ You can manually confirm a booking from pending with [Confirm Booking](https://dev.wix.com/api/rest/wix-bookings/bookings-v2/confirm-booking). | ||
+ Bookings are automatically confirmed when the [service](https://dev.wix.com/api/rest/wix-bookings/services/service/create-service) is configured to do so and the eCommerce order (coming soon) has been approved. An automatic confirmation includes checking the slot's or schedule's availability. | ||
FernandoWix marked this conversation as resolved.
Show resolved
Hide resolved
|
||
+ Bookings are also automatically confirmed if `skipBusinessConfirmation` is passed as `true` when creating the booking, `false` is default. | ||
| `PENDING` | The booking is waiting to be confirmed or declined by the owner and is displayed in the business calendar. | ||
You can't manually set bookings as `PENDING` via an API. | ||
Bookings are automatically set as `PENDING` when an eCommerce order related to the booking has been created (coming soon). | ||
| `WAITING_LIST` | The booking is pending on a waiting list. | ||
FernandoWix marked this conversation as resolved.
Show resolved
Hide resolved
|
||
You must use the [Waitlist APIs](https://dev.wix.com/api/rest/wix-bookings/waitlist/introduction) | ||
to create bookings in status `WAITING_LIST`. You can't change a booking's status from `CREATED` to `WAITING_LIST` with the Bookings V2 APIs. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "You can't change a booking's status from Huh? Is this a limitation for now? This should be in the Intro "Before you begin" section also. As is written in our guidelines in the cafe, step 6: "The section helps us inform app developers and Velo users about missing or unexpected functionality. It's important to do this before they start working. This way they won’t get stuck in the middle of their project." There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. adding to before you begin for BV2 |
||
| `DECLINED` | The booking has been declined by the site owner. | ||
+ You can manually decline a booking with | ||
[Decline Booking](https://dev.wix.com/api/rest/wix-bookings/bookings-v2/decline-booking). | ||
+ Bookings are automatically declined when an eCommerce order has been | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You forgot your "coming soon" |
||
declined or a double booking happened for free bookings. | ||
| `CANCELED` | The booking has been canceled by the site owner or the customer. | ||
You can cancel bookings with [Cancel Booking](https://dev.wix.com/api/rest/wix-bookings/bookings-v2/cancel-booking). | ||
FernandoWix marked this conversation as resolved.
Show resolved
Hide resolved
|
Uh oh!
There was an error while loading. Please reload this page.