[{"data":1,"prerenderedAt":561},["ShallowReactive",2],{"navigation":3,"\u002Fbooki-documentation\u002Fflowcharts\u002Fcustomer-booking-flow":303,"\u002Fbooki-documentation\u002Fflowcharts\u002Fcustomer-booking-flow-surround":556},[4,55,105],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":54},"Nuxt Guide","i-lucide-layout","\u002Fnuxt-guide","1.nuxt-guide",[10,14,19,24,29,34,39,44,49],{"title":11,"path":12,"stem":13,"icon":6},"Overview","\u002Fnuxt-guide\u002Foverview","1.nuxt-guide\u002F1.overview",{"title":15,"path":16,"stem":17,"icon":18},"Folder Structure","\u002Fnuxt-guide\u002Ffolder-structure","1.nuxt-guide\u002F2.folder-structure","i-lucide-folder-tree",{"title":20,"path":21,"stem":22,"icon":23},"Components","\u002Fnuxt-guide\u002Fcomponents","1.nuxt-guide\u002F3.components","i-lucide-component",{"title":25,"path":26,"stem":27,"icon":28},"Composables","\u002Fnuxt-guide\u002Fcomposables","1.nuxt-guide\u002F4.composables","i-lucide-puzzle",{"title":30,"path":31,"stem":32,"icon":33},"Pages & Routing","\u002Fnuxt-guide\u002Fpages-routing","1.nuxt-guide\u002F5.pages-routing","i-lucide-file-text",{"title":35,"path":36,"stem":37,"icon":38},"Middleware","\u002Fnuxt-guide\u002Fmiddleware","1.nuxt-guide\u002F6.middleware","i-lucide-shield-check",{"title":40,"path":41,"stem":42,"icon":43},"Plugins","\u002Fnuxt-guide\u002Fplugins","1.nuxt-guide\u002F7.plugins","i-lucide-plug",{"title":45,"path":46,"stem":47,"icon":48},"State Management","\u002Fnuxt-guide\u002Fstate-management","1.nuxt-guide\u002F8.state-management","i-lucide-database",{"title":50,"path":51,"stem":52,"icon":53},"TypeScript","\u002Fnuxt-guide\u002Ftypescript","1.nuxt-guide\u002F9.typescript","i-lucide-braces",false,{"title":56,"icon":57,"path":58,"stem":59,"children":60,"page":54},"Node \u002F Express Guide","i-lucide-server","\u002Fnode-express-guide","2.node-express-guide",[61,64,69,72,77,82,86,91,96,100],{"title":11,"path":62,"stem":63,"icon":57},"\u002Fnode-express-guide\u002Foverview","2.node-express-guide\u002F1.overview",{"title":65,"path":66,"stem":67,"icon":68},"Error Handling","\u002Fnode-express-guide\u002Ferror-handling","2.node-express-guide\u002F10.error-handling","i-lucide-alert-triangle",{"title":15,"path":70,"stem":71,"icon":18},"\u002Fnode-express-guide\u002Ffolder-structure","2.node-express-guide\u002F2.folder-structure",{"title":73,"path":74,"stem":75,"icon":76},"Controllers","\u002Fnode-express-guide\u002Fcontrollers","2.node-express-guide\u002F3.controllers","i-lucide-cpu",{"title":78,"path":79,"stem":80,"icon":81},"Services","\u002Fnode-express-guide\u002Fservices","2.node-express-guide\u002F4.services","i-lucide-workflow",{"title":83,"path":84,"stem":85,"icon":48},"Repositories","\u002Fnode-express-guide\u002Frepositories","2.node-express-guide\u002F5.repositories",{"title":87,"path":88,"stem":89,"icon":90},"Models","\u002Fnode-express-guide\u002Fmodels","2.node-express-guide\u002F6.models","i-lucide-boxes",{"title":92,"path":93,"stem":94,"icon":95},"Routes","\u002Fnode-express-guide\u002Froutes","2.node-express-guide\u002F7.routes","i-lucide-route",{"title":35,"path":97,"stem":98,"icon":99},"\u002Fnode-express-guide\u002Fmiddleware","2.node-express-guide\u002F8.middleware","i-lucide-shield",{"title":101,"path":102,"stem":103,"icon":104},"Validation","\u002Fnode-express-guide\u002Fvalidation","2.node-express-guide\u002F9.validation","i-lucide-check-circle",{"title":106,"icon":107,"path":108,"stem":109,"children":110,"page":54},"Booki Documentation","i-lucide-book-open","\u002Fbooki-documentation","3.booki-documentation",[111,115,120,125,130,229,244,257],{"title":112,"path":113,"stem":114,"icon":107},"Project Overview","\u002Fbooki-documentation\u002Foverview","3.booki-documentation\u002F1.overview",{"title":116,"path":117,"stem":118,"icon":119},"Installation","\u002Fbooki-documentation\u002F1.installation","3.booki-documentation\u002F2.1.installation","i-lucide-download",{"title":121,"path":122,"stem":123,"icon":124},"Development Overview","\u002Fbooki-documentation\u002F2.architecture","3.booki-documentation\u002F2.2.architecture","i-lucide-layers",{"title":126,"path":127,"stem":128,"icon":129},"Local Development","\u002Fbooki-documentation\u002F3.local-development","3.booki-documentation\u002F2.3.local-development","i-lucide-monitor",{"title":131,"icon":57,"path":132,"stem":133,"children":134,"page":54},"API","\u002Fbooki-documentation\u002Fapi","3.booki-documentation\u002F3.api",[135,139,144,149,154,159,163,168,173,178,183,188,192,197,202,206,211,216,220,224],{"title":136,"path":137,"stem":138,"icon":57},"Booki API Reference","\u002Fbooki-documentation\u002Fapi\u002Fbooki-api","3.booki-documentation\u002F3.api\u002F1.booki-api",{"title":140,"path":141,"stem":142,"icon":143},"Auth - Login & Refresh","\u002Fbooki-documentation\u002Fapi\u002Fauth","3.booki-documentation\u002F3.api\u002F2.auth","i-lucide-key",{"title":145,"path":146,"stem":147,"icon":148},"Auth - Customer Registration","\u002Fbooki-documentation\u002Fapi\u002Fauth-customer-register","3.booki-documentation\u002F3.api\u002F2.auth-customer-register","i-lucide-user-check",{"title":150,"path":151,"stem":152,"icon":153},"Auth - Owner Registration","\u002Fbooki-documentation\u002Fapi\u002Fauth-owner-register","3.booki-documentation\u002F3.api\u002F2.auth-owner-register","i-lucide-user-plus",{"title":155,"path":156,"stem":157,"icon":158},"Bookings","\u002Fbooki-documentation\u002Fapi\u002Fbookings","3.booki-documentation\u002F3.api\u002F3.bookings","i-lucide-calendar-check",{"title":160,"path":161,"stem":162,"icon":158},"Bookings - Authenticated","\u002Fbooki-documentation\u002Fapi\u002Fbookings-auth","3.booki-documentation\u002F3.api\u002F3.bookings-auth",{"title":164,"path":165,"stem":166,"icon":167},"Bookings - Public & Guest","\u002Fbooki-documentation\u002Fapi\u002Fbookings-public","3.booki-documentation\u002F3.api\u002F3.bookings-public","i-lucide-calendar-plus",{"title":169,"path":170,"stem":171,"icon":172},"Booking Services","\u002Fbooki-documentation\u002Fapi\u002Fbooking-services","3.booki-documentation\u002F3.api\u002F4.booking-services","i-lucide-box",{"title":174,"path":175,"stem":176,"icon":177},"Organizations - Branches","\u002Fbooki-documentation\u002Fapi\u002Fbranches","3.booki-documentation\u002F3.api\u002F5.branches","i-lucide-git-branch",{"title":179,"path":180,"stem":181,"icon":182},"Organizations - Business Hours","\u002Fbooki-documentation\u002Fapi\u002Fbusiness-hours","3.booki-documentation\u002F3.api\u002F5.business-hours","i-lucide-clock",{"title":184,"path":185,"stem":186,"icon":187},"Organizations - Base","\u002Fbooki-documentation\u002Fapi\u002Forganizations","3.booki-documentation\u002F3.api\u002F5.organizations","i-lucide-building-2",{"title":189,"path":190,"stem":191,"icon":172},"Organizations - Packages","\u002Fbooki-documentation\u002Fapi\u002Fpackages","3.booki-documentation\u002F3.api\u002F5.packages",{"title":193,"path":194,"stem":195,"icon":196},"Organizations - Payments & Integrations","\u002Fbooki-documentation\u002Fapi\u002Fpayments","3.booki-documentation\u002F3.api\u002F5.payments","i-lucide-credit-card",{"title":198,"path":199,"stem":200,"icon":201},"Users - Profile & Settings","\u002Fbooki-documentation\u002Fapi\u002Fusers","3.booki-documentation\u002F3.api\u002F6.users","i-lucide-user",{"title":203,"path":204,"stem":205,"icon":196},"Maya Payments","\u002Fbooki-documentation\u002Fapi\u002Fmaya","3.booki-documentation\u002F3.api\u002F7.maya",{"title":207,"path":208,"stem":209,"icon":210},"Owner - Booking Management","\u002Fbooki-documentation\u002Fapi\u002Fowner-bookings","3.booki-documentation\u002F3.api\u002F7.owner-bookings","i-lucide-calendar",{"title":212,"path":213,"stem":214,"icon":215},"Owner - Customer Management","\u002Fbooki-documentation\u002Fapi\u002Fowner-customers","3.booki-documentation\u002F3.api\u002F7.owner-customers","i-lucide-users",{"title":217,"path":218,"stem":219,"icon":196},"Admin - Billing & Subscriptions","\u002Fbooki-documentation\u002Fapi\u002Fadmin-billing","3.booki-documentation\u002F3.api\u002F8.admin-billing",{"title":221,"path":222,"stem":223,"icon":187},"Admin - Organizations Management","\u002Fbooki-documentation\u002Fapi\u002Fadmin-organizations","3.booki-documentation\u002F3.api\u002F8.admin-organizations",{"title":225,"path":226,"stem":227,"icon":228},"Admin - User Management","\u002Fbooki-documentation\u002Fapi\u002Fadmin-users","3.booki-documentation\u002F3.api\u002F8.admin-users","i-lucide-shield-admin",{"title":230,"icon":231,"path":232,"stem":233,"children":234,"page":54},"Shared","i-lucide-package","\u002Fbooki-documentation\u002Fshared","3.booki-documentation\u002F4.shared",[235,240],{"title":236,"path":237,"stem":238,"icon":239},"codi-node-utils","\u002Fbooki-documentation\u002Fshared\u002Fcodi-node-utils","3.booki-documentation\u002F4.shared\u002F1.codi-node-utils","i-lucide-wrench",{"title":241,"path":242,"stem":243,"icon":124},"codi-layer","\u002Fbooki-documentation\u002Fshared\u002Fcodi-layer","3.booki-documentation\u002F4.shared\u002F2.codi-layer",{"title":245,"path":246,"stem":247,"children":248,"page":54},"Flowcharts","\u002Fbooki-documentation\u002Fflowcharts","3.booki-documentation\u002F5.flowcharts",[249,253],{"title":250,"path":251,"stem":252,"icon":158},"Owner Booking Management Flow","\u002Fbooki-documentation\u002Fflowcharts\u002Fowner-booking-management","3.booki-documentation\u002F5.flowcharts\u002F1.owner-booking-management",{"title":254,"path":255,"stem":256,"icon":167},"Customer Booking Flow","\u002Fbooki-documentation\u002Fflowcharts\u002Fcustomer-booking-flow","3.booki-documentation\u002F5.flowcharts\u002F2.customer-booking-flow",{"title":258,"path":259,"stem":260,"children":261,"page":54},"Guides","\u002Fbooki-documentation\u002Fguides","3.booki-documentation\u002Fguides",[262,267,271,275,280,285,290,294,298],{"title":263,"path":264,"stem":265,"icon":266},"Guide - Authentication Flow & Sessions","\u002Fbooki-documentation\u002Fguides\u002Fguides-auth-flow","3.booki-documentation\u002Fguides\u002Fguides-auth-flow","i-lucide-lock",{"title":268,"path":269,"stem":270,"icon":177},"Guide - Branch Management","\u002Fbooki-documentation\u002Fguides\u002Fguides-branch-management","3.booki-documentation\u002Fguides\u002Fguides-branch-management",{"title":272,"path":273,"stem":274,"icon":196},"Guide - Customer Payment Methods","\u002Fbooki-documentation\u002Fguides\u002Fguides-customer-payments","3.booki-documentation\u002Fguides\u002Fguides-customer-payments",{"title":276,"path":277,"stem":278,"icon":279},"Guide - Environment Setup","\u002Fbooki-documentation\u002Fguides\u002Fguides-environment-setup","3.booki-documentation\u002Fguides\u002Fguides-environment-setup","i-lucide-settings",{"title":281,"path":282,"stem":283,"icon":284},"Guide - Common Error Responses","\u002Fbooki-documentation\u002Fguides\u002Fguides-errors","3.booki-documentation\u002Fguides\u002Fguides-errors","i-lucide-alert-circle",{"title":286,"path":287,"stem":288,"icon":289},"Guide - Gmail SMTP Setup","\u002Fbooki-documentation\u002Fguides\u002Fguides-gmail-setup","3.booki-documentation\u002Fguides\u002Fguides-gmail-setup","i-lucide-mail",{"title":291,"path":292,"stem":293,"icon":124},"Guide - Multi-Tenancy & Tenant Slug Resolution","\u002Fbooki-documentation\u002Fguides\u002Fguides-multi-tenancy","3.booki-documentation\u002Fguides\u002Fguides-multi-tenancy",{"title":295,"path":296,"stem":297,"icon":48},"Guide - Redis Caching","\u002Fbooki-documentation\u002Fguides\u002Fguides-redis","3.booki-documentation\u002Fguides\u002Fguides-redis",{"title":299,"path":300,"stem":301,"icon":302},"Guide - Subscription Billing","\u002Fbooki-documentation\u002Fguides\u002Fguides-subscription-billing","3.booki-documentation\u002Fguides\u002Fguides-subscription-billing","i-lucide-receipt",{"id":304,"title":254,"body":305,"description":549,"extension":550,"links":551,"meta":552,"navigation":553,"path":255,"seo":554,"stem":256,"__hash__":555},"docs\u002F3.booki-documentation\u002F5.flowcharts\u002F2.customer-booking-flow.md",{"type":306,"value":307,"toc":541},"minimark",[308,321,324,329,340,342,346,446,448,452,455,510,512,516],[309,310,311,312,316,317,320],"p",{},"This diagram covers the complete customer journey — from opening the booking page to the appointment being fulfilled. Both the ",[313,314,315],"strong",{},"guest"," path and the ",[313,318,319],{},"registered customer"," path are shown.",[322,323],"hr",{},[325,326,328],"h2",{"id":327},"full-flow","Full Flow",[330,331,337],"pre",{"className":332,"code":334,"language":335,"meta":336},[333],"language-text","┌─────────────────────────────────────────────────┐\n│  Customer opens the booking page                │\n│  https:\u002F\u002F{slug}.booki.app\u002F{branchSlug}          │\n└──────────────────┬──────────────────────────────┘\n                   │\n                   ↓\n┌─────────────────────────────────────────────────┐\n│  First visit?                                   │\n└──────┬───────────────────────┬──────────────────┘\n       │                       │\n   New User             Has Account \u002F Continue as Guest\n       │                       │\n       ↓                       │\n┌──────────────────┐           │\n│  Register        │           │\n│  Name · Email    │           │\n│  Phone · Password│           │\n└──────┬───────────┘           │\n       │                       │\n       ↓                       ↓\n┌──────────────────────────────────────────────────┐\n│  Home — Browse available packages & hours        │\n│  GET \u002Fapi\u002Fv1\u002Ftenant\u002F:slug (load org context)     │\n└──────────────────┬───────────────────────────────┘\n                   │\n                   ↓\n┌─────────────────────────────────────────────────┐\n│  Click \"Book Now\" on a package                  │\n└──────────────────┬──────────────────────────────┘\n                   │\n                   ↓\n┌─────────────────────────────────────────────────┐\n│  Navigate to Schedule Page                      │\n│  Select available date and time slot            │\n│  GET \u002Fapi\u002Fv1\u002Fbookings\u002Ffully-booked-slots        │\n└──────────────────┬──────────────────────────────┘\n                   │\n                   ↓\n┌─────────────────────────────────────────────────┐\n│  Fill in contact details                        │\n│  Guest: name · email · phone (required)         │\n│  Registered: pre-filled from JWT profile        │\n│  Optional: set password to register as customer │\n└──────────────────┬──────────────────────────────┘\n                   │\n         ┌─────────┴──────────┐\n         │                    │\n       Guest            Authenticated\n         │                    │\n         ↓                    ↓\nPOST \u002Fbookings\u002F        POST \u002Fbookings\ntype\u002F:type\n(header: X-Tenant-Slug\n + X-Branch-Slug)\n         │                    │\n         └─────────┬──────────┘\n                   │\n                   ↓\n┌─────────────────────────────────────────────────┐\n│  Booking created (status: pending)              │\n│  Confirmation email sent to customer            │\n└──────────────────┬──────────────────────────────┘\n                   │\n         ┌─────────┴──────────┐\n         │                    │\n       Guest             Authenticated\n         │                    │\n         ↓                    ↓\n┌────────────────┐    ┌───────────────────────────┐\n│ Verify booking │    │ Skip — already verified   │\n│ via email link │    │ via registered account    │\n│ PUT \u002F:id\u002Fverify│    └──────────────┬────────────┘\n└───────┬────────┘                   │\n        └──────────────┬─────────────┘\n                       │\n                       ↓\n┌──────────────────────────────────────────────────┐\n│  Awaiting owner confirmation                     │\n│  (see Owner Booking Management flow)             │\n└──────────────────┬───────────────────────────────┘\n                   │\n         ┌─────────┴──────────┐\n         │                    │\n     Confirmed             Declined\n         │                    │\n         ↓                    ↓\n┌─────────────────┐  ┌──────────────────────────────┐\n│ Payment step    │  │ Customer notified via email  │\n└────────┬────────┘  │ Decline reason included      │\n         │           └──────────────────────────────┘\n         │\n    ┌────┴────────────────────────┐\n    │                             │\n  Maya                          Cash\n    │                             │\n    ↓                             ↓\nPOST \u002Fmaya\u002Fbookings\u002F:id\u002F   Pay on arrival\ncheckout-session\n    │\n    ↓\nCustomer redirected to\nMaya payment page\n    │\n    ↓\nPayment completed on Maya\n    │\n    ↓\nPOST \u002Fmaya\u002Fbookings\u002F:id\u002F\nverify-session\n    │\n    └─────────────┬───────────────┘\n                  │\n                  ↓\n┌─────────────────────────────────────────────────┐\n│  Appointment Day                                │\n└──────────────────┬──────────────────────────────┘\n                   │\n         ┌─────────┴──────────┐\n         │                    │\n  Customer shows up     Customer no-show\n         │                    │\n         ↓                    ↓\n  Owner marks         Owner marks\n  completed           no-show\n  PUT \u002F:id\u002Fcomplete   PUT \u002F:id\u002Fno-show\n","text","",[338,339,334],"code",{"__ignoreMap":336},[322,341],{},[325,343,345],{"id":344},"booking-status-lifecycle","Booking Status Lifecycle",[347,348,349,362],"table",{},[350,351,352],"thead",{},[353,354,355,359],"tr",{},[356,357,358],"th",{},"Status",[356,360,361],{},"Set when",[363,364,365,376,386,396,406,416,426,436],"tbody",{},[353,366,367,373],{},[368,369,370],"td",{},[338,371,372],{},"pending",[368,374,375],{},"Booking submitted (guest or customer)",[353,377,378,383],{},[368,379,380],{},[338,381,382],{},"confirmed",[368,384,385],{},"Owner confirms the booking",[353,387,388,393],{},[368,389,390],{},[338,391,392],{},"declined",[368,394,395],{},"Owner declines; customer notified",[353,397,398,403],{},[368,399,400],{},[338,401,402],{},"pending-reschedule",[368,404,405],{},"Customer requests a reschedule; owner must review",[353,407,408,413],{},[368,409,410],{},[338,411,412],{},"ongoing",[368,414,415],{},"Appointment in progress (appointment day)",[353,417,418,423],{},[368,419,420],{},[338,421,422],{},"completed",[368,424,425],{},"Owner marks appointment done",[353,427,428,433],{},[368,429,430],{},[338,431,432],{},"no-show",[368,434,435],{},"Owner marks customer as no-show",[353,437,438,443],{},[368,439,440],{},[338,441,442],{},"cancelled",[368,444,445],{},"Customer cancels their booking",[322,447],{},[325,449,451],{"id":450},"customer-actions-after-booking","Customer Actions After Booking",[309,453,454],{},"Registered customers can manage their bookings from the dashboard:",[347,456,457,470],{},[350,458,459],{},[353,460,461,464,467],{},[356,462,463],{},"Action",[356,465,466],{},"Endpoint",[356,468,469],{},"Condition",[363,471,472,485,498],{},[353,473,474,477,482],{},[368,475,476],{},"View bookings",[368,478,479],{},[338,480,481],{},"GET \u002Fapi\u002Fv1\u002Fbookings",[368,483,484],{},"Authenticated customer",[353,486,487,490,495],{},[368,488,489],{},"Reschedule",[368,491,492],{},[338,493,494],{},"PUT \u002Fapi\u002Fv1\u002Fbookings\u002F:id\u002Freschedule",[368,496,497],{},"Before appointment date",[353,499,500,503,508],{},[368,501,502],{},"Cancel",[368,504,505],{},[338,506,507],{},"PUT \u002Fapi\u002Fv1\u002Fbookings\u002F:id\u002Fcancel",[368,509,497],{},[322,511],{},[325,513,515],{"id":514},"related","Related",[517,518,519,526,531,536],"ul",{},[520,521,522],"li",{},[523,524,164],"a",{"href":525},"..\u002Fapi\u002Fbookings-public",[520,527,528],{},[523,529,160],{"href":530},"..\u002Fapi\u002Fbookings-auth",[520,532,533],{},[523,534,203],{"href":535},"..\u002Fapi\u002Fmaya",[520,537,538],{},[523,539,250],{"href":540},".\u002Fowner-booking-management",{"title":336,"searchDepth":542,"depth":543,"links":544},1,2,[545,546,547,548],{"id":327,"depth":543,"text":328},{"id":344,"depth":543,"text":345},{"id":450,"depth":543,"text":451},{"id":514,"depth":543,"text":515},"End-to-end flow for how a customer discovers, books, pays for, and completes a service on the Booki platform.","md",null,{},{"icon":167},{"title":254,"description":549},"vkiUAkVbo65X-f8jswTDG99Z34BGUFjSjEUiLKu5Wdk",[557,559],{"title":250,"path":251,"stem":252,"description":558,"icon":158,"children":-1},"How a business owner reviews, confirms, declines, and closes out bookings from the owner dashboard.",{"title":263,"path":264,"stem":265,"description":560,"icon":266,"children":-1},"Understanding JWT tokens, refresh cycles, cookie management, and secure authentication patterns.",1777787844708]