> 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/bookings/policies/booking-policy-snapshots/sample-flows.md ## Article Content: # Booking Policy Snapshots API: Sample Use Cases and Flows This article shares a possible use cases you could support, as well as a sample flow that could support it. This can be a helpful jumping off point as you plan your implementation. ## Notify business owners of bookings under outdated policy You could give business owners an overview of all bookings made under an older version of a service policy. To display a list of bookings with outdated booking policy: 1. Listen to *Booking Policy Updated* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/on-booking-policy-updated.md) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/booking-policy-updated.md)). 1. Retrieve all services that are using the affected policy with *Query Services* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/query-services.md) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/query-services.md)). Make sure to pass the relevant policy ID from the previous step as filter. 1. Use *Query Extended Bookings* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/extended-bookings/query-extended-bookings.md) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-reader-v2/query-extended-bookings.md)). For appointment-based service include `bookedEntity.item.slot.serviceId` in the filter. For classes or courses include `bookedEntity.item.schedule.serviceId` in the filter. You may use a conditional `or` for both filter options in a single call. 1. Retrieve the policy snapshots for the affected bookings with *List Policy Snapshots By Booking Ids* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policy-snapshots/list-policy-snapshots-by-booking-ids.md) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policy-snapshots/list-policy-snapshots-by-booking-ids.md)). 1. Create a summary of these bookings, highlighting the policy changes for each booking. 1. Send the summary to the business owners.