> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: Sample Flows ## Article: Sample Flows ## Article Link: https://dev.wix.com/docs/api-reference/business-solutions/events/registration/ticketing/ticket-reservations/sample-flows.md ## Article Content: # Ticket Reservations API: Sample Flows This article presents possible use cases and corresponding sample flows that you can support. It provides a useful starting point as you plan your implementation. ## Reserve tickets and process payments This flow demonstrates the complete ticket purchasing process from initial reservation through payment completion. It shows how to temporarily hold tickets while site visitors complete their purchase, ensuring inventory is protected without overselling. To reserve tickets and process payments: 1. After the site visitor clicks the checkout button, call [Create Ticket Reservation](https://dev.wix.com/docs/api-reference/business-solutions/events/ticket-reservations/create-ticket-reservation.md) with the site visitor's ticket selections. 1. Save the returned reservation `id`, `eventId` and `expirationDate` fields from the response. 1. Call [Checkout](https://dev.wix.com/docs/api-reference/business-solutions/events/orders/checkout.md) to checkout the reserved tickets. This method redirects the site visitor to the Wix checkout. The site visitor completes payment through [Wix Payments](https://dev.wix.com/docs/api-reference/business-management/payments/introduction.md). There might be 3 outcomes: - The reservation status automatically updates to `CONFIRMED` upon successful payment. You can verify this by calling [Get Ticket Reservation](https://dev.wix.com/docs/api-reference/business-solutions/events/ticket-reservations/get-ticket-reservation.md). - If payment isn't completed before the expiration time, the reservation automatically changes to `EXPIRED` status and tickets are released back to inventory. - If a site visitor decides not to complete their purchase, you can manually cancel their reservation to immediately release the tickets: 1. Ensure the reservation is in `PENDING` or `CONFIRMED` status. 1. Call [Cancel Ticket Reservation](https://dev.wix.com/docs/api-reference/business-solutions/events/ticket-reservations/cancel-ticket-reservation.md). 1. The reservation status changes to `CANCELED_MANUALLY` and tickets are immediately available for other customers to purchase.