[{"data":1,"prerenderedAt":2883},["ShallowReactive",2],{"navigation_docs_en":3,"-en-developers-typescript-sdk-sales":747,"-en-developers-typescript-sdk-sales-surround":2878},[4,634,674],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":40},"Guides","i-prime-book","\u002Fen\u002Fguides","en\u002F01.guides",[10,41,150,194,209,243,286,309,328,367,426,450],{"title":11,"icon":12,"path":13,"stem":14,"children":15,"page":40},"Get started","i-prime-flag","\u002Fen\u002Fguides\u002Fget-started","en\u002F01.guides\u002F01.get-started",[16,21,25,30,35],{"title":17,"path":18,"stem":19,"icon":20},"What Requiply is","\u002Fen\u002Fguides\u002Fget-started\u002Fwhat-is-requiply","en\u002F01.guides\u002F01.get-started\u002F01.what-is-requiply","i-prime-info-circle",{"title":22,"path":23,"stem":24,"icon":6},"Core concepts","\u002Fen\u002Fguides\u002Fget-started\u002Fcore-concepts","en\u002F01.guides\u002F01.get-started\u002F02.core-concepts",{"title":26,"path":27,"stem":28,"icon":29},"First setup checklist","\u002Fen\u002Fguides\u002Fget-started\u002Ffirst-setup-checklist","en\u002F01.guides\u002F01.get-started\u002F03.first-setup-checklist","i-rq-list-check",{"title":31,"path":32,"stem":33,"icon":34},"Your first booking","\u002Fen\u002Fguides\u002Fget-started\u002Ffirst-booking","en\u002F01.guides\u002F01.get-started\u002F04.first-booking","i-prime-directions",{"title":36,"path":37,"stem":38,"icon":39},"Signing in and resetting your password","\u002Fen\u002Fguides\u002Fget-started\u002Fsign-in-and-password","en\u002F01.guides\u002F01.get-started\u002F05.sign-in-and-password","i-prime-sign-in",false,{"title":42,"icon":43,"path":44,"stem":45,"children":46},"Booking","i-rq-calendar","\u002Fen\u002Fguides\u002Fbookings","en\u002F01.guides\u002F02.bookings\u002Findex",[47,49,54,58,80,104,124,140,145],{"title":48,"path":44,"stem":45,"icon":43},"Overview",{"title":50,"path":51,"stem":52,"icon":53},"Manage bookings","\u002Fen\u002Fguides\u002Fbookings\u002Fmanage","en\u002F01.guides\u002F02.bookings\u002F01.manage","i-rq-table",{"title":55,"path":56,"stem":57,"icon":43},"Calendar","\u002Fen\u002Fguides\u002Fbookings\u002Fcalendar","en\u002F01.guides\u002F02.bookings\u002F02.calendar",{"title":59,"icon":60,"path":61,"stem":62,"children":63},"Add booking","i-rq-calendar-plus","\u002Fen\u002Fguides\u002Fbookings\u002Fadd-booking","en\u002F01.guides\u002F02.bookings\u002F03.add-booking\u002Findex",[64,65,70,75],{"title":48,"path":61,"stem":62,"icon":60},{"title":66,"path":67,"stem":68,"icon":69},"Booking dates","\u002Fen\u002Fguides\u002Fbookings\u002Fadd-booking\u002Fbooking-dates","en\u002F01.guides\u002F02.bookings\u002F03.add-booking\u002F01.booking-dates","i-rq-set-calendar-clock",{"title":71,"path":72,"stem":73,"icon":74},"Scanning and pinning","\u002Fen\u002Fguides\u002Fbookings\u002Fadd-booking\u002Fscanning-and-pinning","en\u002F01.guides\u002F02.bookings\u002F03.add-booking\u002F02.scanning-and-pinning","i-prime-qrcode",{"title":76,"path":77,"stem":78,"icon":79},"Client and details","\u002Fen\u002Fguides\u002Fbookings\u002Fadd-booking\u002Fclient-and-details","en\u002F01.guides\u002F02.bookings\u002F03.add-booking\u002F03.client-and-details","i-rq-users",{"title":81,"icon":69,"path":82,"stem":83,"children":84,"page":40},"Changing a booking","\u002Fen\u002Fguides\u002Fbookings\u002Fchanging","en\u002F01.guides\u002F02.bookings\u002F04.changing",[85,89,94,99],{"title":86,"path":87,"stem":88,"icon":69},"Edit booking dates","\u002Fen\u002Fguides\u002Fbookings\u002Fchanging\u002Fdates","en\u002F01.guides\u002F02.bookings\u002F04.changing\u002F01.dates",{"title":90,"path":91,"stem":92,"icon":93},"Edit booking items","\u002Fen\u002Fguides\u002Fbookings\u002Fchanging\u002Fitems","en\u002F01.guides\u002F02.bookings\u002F04.changing\u002F02.items","i-rq-box",{"title":95,"path":96,"stem":97,"icon":98},"Edit booking services","\u002Fen\u002Fguides\u002Fbookings\u002Fchanging\u002Fservices","en\u002F01.guides\u002F02.bookings\u002F04.changing\u002F03.services","i-rq-briefcase",{"title":100,"path":101,"stem":102,"icon":103},"Booking cost adjustment","\u002Fen\u002Fguides\u002Fbookings\u002Fchanging\u002Fcost-adjustment","en\u002F01.guides\u002F02.bookings\u002F04.changing\u002F04.cost-adjustment","i-rq-set-percent",{"title":105,"icon":106,"path":107,"stem":108,"children":109,"page":40},"Payments and documents","i-rq-set-receipt","\u002Fen\u002Fguides\u002Fbookings\u002Fpayments-and-documents","en\u002F01.guides\u002F02.bookings\u002F05.payments-and-documents",[110,115,119],{"title":111,"path":112,"stem":113,"icon":114},"Money on a booking","\u002Fen\u002Fguides\u002Fbookings\u002Fpayments-and-documents\u002Fmoney-on-a-booking","en\u002F01.guides\u002F02.bookings\u002F05.payments-and-documents\u002F01.money-on-a-booking","i-prime-wallet",{"title":116,"path":117,"stem":118,"icon":106},"Invoice groups","\u002Fen\u002Fguides\u002Fbookings\u002Fpayments-and-documents\u002Finvoice-groups","en\u002F01.guides\u002F02.bookings\u002F05.payments-and-documents\u002F02.invoice-groups",{"title":120,"path":121,"stem":122,"icon":123},"Booking documents","\u002Fen\u002Fguides\u002Fbookings\u002Fpayments-and-documents\u002Fdocuments","en\u002F01.guides\u002F02.bookings\u002F05.payments-and-documents\u002F03.documents","i-rq-set-file-pdf",{"title":125,"icon":126,"path":127,"stem":128,"children":129},"Pickup and return checklists","i-rq-check-all","\u002Fen\u002Fguides\u002Fbookings\u002Fchecklists","en\u002F01.guides\u002F02.bookings\u002F06.checklists\u002Findex",[130,131,135],{"title":48,"path":127,"stem":128,"icon":126},{"title":132,"path":133,"stem":134,"icon":29},"Assigning and replacing at pickup","\u002Fen\u002Fguides\u002Fbookings\u002Fchecklists\u002Fpickup","en\u002F01.guides\u002F02.bookings\u002F06.checklists\u002F01.pickup",{"title":136,"path":137,"stem":138,"icon":139},"Returns","\u002Fen\u002Fguides\u002Fbookings\u002Fchecklists\u002Freturns","en\u002F01.guides\u002F02.bookings\u002F06.checklists\u002F02.returns","i-prime-undo",{"title":141,"path":142,"stem":143,"icon":144},"Subrentals","\u002Fen\u002Fguides\u002Fbookings\u002Fsubrentals","en\u002F01.guides\u002F02.bookings\u002F07.subrentals","i-rq-set-swap",{"title":146,"path":147,"stem":148,"icon":149},"Sell items on a booking","\u002Fen\u002Fguides\u002Fbookings\u002Fsell-items","en\u002F01.guides\u002F02.bookings\u002F08.sell-items","i-rq-cart-plus",{"title":151,"icon":93,"path":152,"stem":153,"children":154},"Inventory","\u002Fen\u002Fguides\u002Finventory","en\u002F01.guides\u002F03.inventory\u002Findex",[155,156,160,165,170,181,185,189],{"title":48,"path":152,"stem":153,"icon":93},{"title":157,"path":158,"stem":159,"icon":93},"Manage inventory","\u002Fen\u002Fguides\u002Finventory\u002Fmanage","en\u002F01.guides\u002F03.inventory\u002F01.manage",{"title":161,"path":162,"stem":163,"icon":164},"Add item","\u002Fen\u002Fguides\u002Finventory\u002Fadd-item","en\u002F01.guides\u002F03.inventory\u002F02.add-item","i-rq-box-plus",{"title":166,"path":167,"stem":168,"icon":169},"Bundles","\u002Fen\u002Fguides\u002Finventory\u002Fbundles","en\u002F01.guides\u002F03.inventory\u002F03.bundles","i-rq-set-layers",{"title":171,"icon":172,"path":173,"stem":174,"children":175},"Categories","i-rq-set-shapes","\u002Fen\u002Fguides\u002Finventory\u002Fcategories","en\u002F01.guides\u002F03.inventory\u002F04.categories\u002Findex",[176,177],{"title":48,"path":173,"stem":174,"icon":172},{"title":178,"path":179,"stem":180,"icon":172},"Add or edit category","\u002Fen\u002Fguides\u002Finventory\u002Fcategories\u002Fadd-or-edit","en\u002F01.guides\u002F03.inventory\u002F04.categories\u002F01.add-or-edit",{"title":182,"path":183,"stem":184,"icon":74},"QR codes and barcodes","\u002Fen\u002Fguides\u002Finventory\u002Fqr-and-barcodes","en\u002F01.guides\u002F03.inventory\u002F05.qr-and-barcodes",{"title":186,"path":187,"stem":188,"icon":29},"Inventory tasks","\u002Fen\u002Fguides\u002Finventory\u002Ftasks","en\u002F01.guides\u002F03.inventory\u002F06.tasks",{"title":190,"path":191,"stem":192,"icon":193},"Import inventory","\u002Fen\u002Fguides\u002Finventory\u002Fimport","en\u002F01.guides\u002F03.inventory\u002F07.import","i-prime-download",{"title":195,"icon":98,"path":196,"stem":197,"children":198},"Services","\u002Fen\u002Fguides\u002Fservices","en\u002F01.guides\u002F04.services\u002Findex",[199,200,204],{"title":48,"path":196,"stem":197,"icon":98},{"title":201,"path":202,"stem":203,"icon":98},"Manage services","\u002Fen\u002Fguides\u002Fservices\u002Fmanage","en\u002F01.guides\u002F04.services\u002F01.manage",{"title":205,"path":206,"stem":207,"icon":208},"Add or edit service","\u002Fen\u002Fguides\u002Fservices\u002Fadd-or-edit","en\u002F01.guides\u002F04.services\u002F02.add-or-edit","i-rq-briefcase-plus",{"title":210,"icon":79,"path":211,"stem":212,"children":213},"Clients","\u002Fen\u002Fguides\u002Fclients","en\u002F01.guides\u002F05.clients\u002Findex",[214,215,219,224,229,234,239],{"title":48,"path":211,"stem":212,"icon":79},{"title":216,"path":217,"stem":218,"icon":79},"Manage clients","\u002Fen\u002Fguides\u002Fclients\u002Fmanage","en\u002F01.guides\u002F05.clients\u002F01.manage",{"title":220,"path":221,"stem":222,"icon":223},"Client details","\u002Fen\u002Fguides\u002Fclients\u002Fclient-details","en\u002F01.guides\u002F05.clients\u002F02.client-details","i-rq-set-contact",{"title":225,"path":226,"stem":227,"icon":228},"Add or edit client","\u002Fen\u002Fguides\u002Fclients\u002Fadd-or-edit","en\u002F01.guides\u002F05.clients\u002F03.add-or-edit","i-rq-users-plus",{"title":230,"path":231,"stem":232,"icon":233},"Debt settlement","\u002Fen\u002Fguides\u002Fclients\u002Fdebt-settlement","en\u002F01.guides\u002F05.clients\u002F04.debt-settlement","i-rq-set-wallet",{"title":235,"path":236,"stem":237,"icon":238},"Calls","\u002Fen\u002Fguides\u002Fclients\u002Fcalls","en\u002F01.guides\u002F05.clients\u002F05.calls","i-rq-phone",{"title":240,"path":241,"stem":242,"icon":193},"Import clients","\u002Fen\u002Fguides\u002Fclients\u002Fimport","en\u002F01.guides\u002F05.clients\u002F06.import",{"title":244,"icon":245,"path":246,"stem":247,"children":248,"page":40},"Conversations","i-rq-comments","\u002Fen\u002Fguides\u002Fconversations","en\u002F01.guides\u002F06.conversations",[249,253,258,276,281],{"title":250,"path":251,"stem":252,"icon":245},"Conversations inbox","\u002Fen\u002Fguides\u002Fconversations\u002Finbox","en\u002F01.guides\u002F06.conversations\u002F01.inbox",{"title":254,"path":255,"stem":256,"icon":257},"AI assistant and handoff","\u002Fen\u002Fguides\u002Fconversations\u002Fai-and-handoff","en\u002F01.guides\u002F06.conversations\u002F02.ai-and-handoff","i-rq-set-ai-chat",{"title":259,"icon":260,"path":261,"stem":262,"children":263},"Channels","i-prime-inbox","\u002Fen\u002Fguides\u002Fconversations\u002Fchannels","en\u002F01.guides\u002F06.conversations\u002F03.channels\u002Findex",[264,266,271],{"title":265,"path":261,"stem":262,"icon":260},"Omnichannel inbox",{"title":267,"path":268,"stem":269,"icon":270},"Instagram","\u002Fen\u002Fguides\u002Fconversations\u002Fchannels\u002Finstagram","en\u002F01.guides\u002F06.conversations\u002F03.channels\u002F01.instagram","i-prime-instagram",{"title":272,"path":273,"stem":274,"icon":275},"OLX","\u002Fen\u002Fguides\u002Fconversations\u002Fchannels\u002Folx","en\u002F01.guides\u002F06.conversations\u002F03.channels\u002F02.olx","i-prime-shopping-bag",{"title":277,"path":278,"stem":279,"icon":280},"Comments","\u002Fen\u002Fguides\u002Fconversations\u002Fcomments","en\u002F01.guides\u002F06.conversations\u002F04.comments","i-prime-comment",{"title":282,"path":283,"stem":284,"icon":285},"Notifications","\u002Fen\u002Fguides\u002Fconversations\u002Fnotifications","en\u002F01.guides\u002F06.conversations\u002F05.notifications","i-prime-bell",{"title":287,"icon":288,"path":289,"stem":290,"children":291},"Sales","i-rq-cart","\u002Fen\u002Fguides\u002Fsales","en\u002F01.guides\u002F07.sales\u002Findex",[292,293,297,301,305],{"title":48,"path":289,"stem":290,"icon":288},{"title":294,"path":295,"stem":296,"icon":288},"Sales list","\u002Fen\u002Fguides\u002Fsales\u002Flist","en\u002F01.guides\u002F07.sales\u002F01.list",{"title":298,"path":299,"stem":300,"icon":149},"New sale","\u002Fen\u002Fguides\u002Fsales\u002Fnew-sale","en\u002F01.guides\u002F07.sales\u002F02.new-sale",{"title":302,"path":303,"stem":304,"icon":106},"Sale page","\u002Fen\u002Fguides\u002Fsales\u002Fsale-page","en\u002F01.guides\u002F07.sales\u002F03.sale-page",{"title":306,"path":307,"stem":308,"icon":93},"Sale items and stock","\u002Fen\u002Fguides\u002Fsales\u002Fitems-and-stock","en\u002F01.guides\u002F07.sales\u002F04.items-and-stock",{"title":310,"icon":311,"path":312,"stem":313,"children":314,"page":40},"Reports","i-rq-chart-line","\u002Fen\u002Fguides\u002Freports","en\u002F01.guides\u002F08.reports",[315,320,324],{"title":316,"path":317,"stem":318,"icon":319},"Dashboard","\u002Fen\u002Fguides\u002Freports\u002Fdashboard","en\u002F01.guides\u002F08.reports\u002F01.dashboard","i-rq-home",{"title":321,"path":322,"stem":323,"icon":311},"Analytics","\u002Fen\u002Fguides\u002Freports\u002Fanalytics","en\u002F01.guides\u002F08.reports\u002F02.analytics",{"title":310,"path":325,"stem":326,"icon":327},"\u002Fen\u002Fguides\u002Freports\u002Freports","en\u002F01.guides\u002F08.reports\u002F03.reports","i-prime-chart-bar",{"title":329,"icon":330,"path":331,"stem":332,"children":333},"Online booking","i-rq-globe","\u002Fen\u002Fguides\u002Fonline-booking","en\u002F01.guides\u002F09.online-booking\u002Findex",[334,336,341,345,350,354,359,363],{"title":335,"path":331,"stem":332,"icon":330},"Client portal",{"title":337,"path":338,"stem":339,"icon":340},"Portal settings","\u002Fen\u002Fguides\u002Fonline-booking\u002Fportal-settings","en\u002F01.guides\u002F09.online-booking\u002F01.portal-settings","i-rq-set-globe",{"title":342,"path":343,"stem":344,"icon":60},"Booking flow","\u002Fen\u002Fguides\u002Fonline-booking\u002Fbooking-flow","en\u002F01.guides\u002F09.online-booking\u002F02.booking-flow",{"title":346,"path":347,"stem":348,"icon":349},"Customer accounts","\u002Fen\u002Fguides\u002Fonline-booking\u002Fcustomer-accounts","en\u002F01.guides\u002F09.online-booking\u002F03.customer-accounts","i-rq-set-users",{"title":351,"path":352,"stem":353,"icon":257},"Booking assistant","\u002Fen\u002Fguides\u002Fonline-booking\u002Fbooking-assistant","en\u002F01.guides\u002F09.online-booking\u002F04.booking-assistant",{"title":355,"path":356,"stem":357,"icon":358},"Website embed","\u002Fen\u002Fguides\u002Fonline-booking\u002Fwebsite-embed","en\u002F01.guides\u002F09.online-booking\u002F05.website-embed","i-prime-code",{"title":360,"path":361,"stem":362,"icon":257},"AI web widget","\u002Fen\u002Fguides\u002Fonline-booking\u002Fweb-widget","en\u002F01.guides\u002F09.online-booking\u002F06.web-widget",{"title":364,"path":365,"stem":366,"icon":340},"Domains","\u002Fen\u002Fguides\u002Fonline-booking\u002Fcustom-domains","en\u002F01.guides\u002F09.online-booking\u002F07.custom-domains",{"title":368,"icon":369,"path":370,"stem":371,"children":372,"page":40},"Automations and templates","i-rq-set-flow","\u002Fen\u002Fguides\u002Fautomations","en\u002F01.guides\u002F10.automations",[373,394,405,416],{"title":374,"icon":369,"path":375,"stem":376,"children":377},"Workflows","\u002Fen\u002Fguides\u002Fautomations\u002Fworkflows","en\u002F01.guides\u002F10.automations\u002F01.workflows\u002Findex",[378,379,384,389],{"title":48,"path":375,"stem":376,"icon":369},{"title":380,"path":381,"stem":382,"icon":383},"Triggers and filters","\u002Fen\u002Fguides\u002Fautomations\u002Fworkflows\u002Ftriggers-and-filters","en\u002F01.guides\u002F10.automations\u002F01.workflows\u002F01.triggers-and-filters","i-prime-filter",{"title":385,"path":386,"stem":387,"icon":388},"Actions","\u002Fen\u002Fguides\u002Fautomations\u002Fworkflows\u002Factions","en\u002F01.guides\u002F10.automations\u002F01.workflows\u002F02.actions","i-prime-send",{"title":390,"path":391,"stem":392,"icon":393},"Recipes","\u002Fen\u002Fguides\u002Fautomations\u002Fworkflows\u002Frecipes","en\u002F01.guides\u002F10.automations\u002F01.workflows\u002F03.recipes","i-prime-lightbulb",{"title":395,"icon":396,"path":397,"stem":398,"children":399},"Email templates","i-rq-set-envelope","\u002Fen\u002Fguides\u002Fautomations\u002Femail-templates","en\u002F01.guides\u002F10.automations\u002F02.email-templates\u002Findex",[400,401],{"title":48,"path":397,"stem":398,"icon":396},{"title":402,"path":403,"stem":404,"icon":396},"Add or edit email template","\u002Fen\u002Fguides\u002Fautomations\u002Femail-templates\u002Fadd-or-edit","en\u002F01.guides\u002F10.automations\u002F02.email-templates\u002F01.add-or-edit",{"title":406,"icon":407,"path":408,"stem":409,"children":410},"Message templates","i-rq-set-message","\u002Fen\u002Fguides\u002Fautomations\u002Fmessage-templates","en\u002F01.guides\u002F10.automations\u002F03.message-templates\u002Findex",[411,412],{"title":48,"path":408,"stem":409,"icon":407},{"title":413,"path":414,"stem":415,"icon":407},"Add or edit message template","\u002Fen\u002Fguides\u002Fautomations\u002Fmessage-templates\u002Fadd-or-edit","en\u002F01.guides\u002F10.automations\u002F03.message-templates\u002F01.add-or-edit",{"title":417,"icon":123,"path":418,"stem":419,"children":420},"Custom export templates","\u002Fen\u002Fguides\u002Fautomations\u002Fexport-templates","en\u002F01.guides\u002F10.automations\u002F04.export-templates\u002Findex",[421,422],{"title":48,"path":418,"stem":419,"icon":123},{"title":423,"path":424,"stem":425,"icon":123},"Add or edit export template","\u002Fen\u002Fguides\u002Fautomations\u002Fexport-templates\u002Fadd-or-edit","en\u002F01.guides\u002F10.automations\u002F04.export-templates\u002F01.add-or-edit",{"title":427,"icon":428,"path":429,"stem":430,"children":431},"Mobile App","i-prime-mobile","\u002Fen\u002Fguides\u002Fmobile-app","en\u002F01.guides\u002F11.mobile-app\u002Findex",[432,433,437,441,446],{"title":48,"path":429,"stem":430,"icon":428},{"title":434,"path":435,"stem":436,"icon":43},"Bookings on the phone","\u002Fen\u002Fguides\u002Fmobile-app\u002Fbookings","en\u002F01.guides\u002F11.mobile-app\u002F01.bookings",{"title":438,"path":439,"stem":440,"icon":74},"Scanning barcodes and QR codes","\u002Fen\u002Fguides\u002Fmobile-app\u002Fscanning","en\u002F01.guides\u002F11.mobile-app\u002F02.scanning",{"title":442,"path":443,"stem":444,"icon":445},"Slow internet and no connection","\u002Fen\u002Fguides\u002Fmobile-app\u002Fslow-and-offline","en\u002F01.guides\u002F11.mobile-app\u002F03.slow-and-offline","i-prime-wifi",{"title":447,"path":448,"stem":449,"icon":245},"Conversations and comments","\u002Fen\u002Fguides\u002Fmobile-app\u002Fconversations-and-comments","en\u002F01.guides\u002F11.mobile-app\u002F04.conversations-and-comments",{"title":451,"icon":452,"path":453,"stem":454,"children":455},"Settings","i-rq-cog","\u002Fen\u002Fguides\u002Fsettings","en\u002F01.guides\u002F12.settings\u002Findex",[456,457,522,548,575,600,603,629],{"title":48,"path":453,"stem":454,"icon":452},{"title":458,"icon":459,"path":460,"stem":461,"children":462},"Organization settings","i-rq-set-building","\u002Fen\u002Fguides\u002Fsettings\u002Forganization","en\u002F01.guides\u002F12.settings\u002F01.organization\u002Findex",[463,464,468,473,488,499,504,508,518],{"title":48,"path":460,"stem":461,"icon":459},{"title":465,"path":466,"stem":467,"icon":459},"Organization info","\u002Fen\u002Fguides\u002Fsettings\u002Forganization\u002Finfo","en\u002F01.guides\u002F12.settings\u002F01.organization\u002F01.info",{"title":469,"path":470,"stem":471,"icon":472},"Features","\u002Fen\u002Fguides\u002Fsettings\u002Forganization\u002Ffeatures","en\u002F01.guides\u002F12.settings\u002F01.organization\u002F02.features","i-rq-set-toggle",{"title":474,"icon":349,"path":475,"stem":476,"children":477},"Accounts","\u002Fen\u002Fguides\u002Fsettings\u002Forganization\u002Faccounts","en\u002F01.guides\u002F12.settings\u002F01.organization\u002F03.accounts\u002Findex",[478,479,484],{"title":48,"path":475,"stem":476,"icon":349},{"title":480,"path":481,"stem":482,"icon":483},"Permission groups","\u002Fen\u002Fguides\u002Fsettings\u002Forganization\u002Faccounts\u002Fpermission-groups","en\u002F01.guides\u002F12.settings\u002F01.organization\u002F03.accounts\u002F01.permission-groups","i-prime-lock",{"title":485,"path":486,"stem":487,"icon":349},"Edit account","\u002Fen\u002Fguides\u002Fsettings\u002Forganization\u002Faccounts\u002Fedit-account","en\u002F01.guides\u002F12.settings\u002F01.organization\u002F03.accounts\u002F02.edit-account",{"title":489,"icon":490,"path":491,"stem":492,"children":493},"Locations","i-rq-set-map-marker","\u002Fen\u002Fguides\u002Fsettings\u002Forganization\u002Flocations","en\u002F01.guides\u002F12.settings\u002F01.organization\u002F04.locations\u002Findex",[494,495],{"title":48,"path":491,"stem":492,"icon":490},{"title":496,"path":497,"stem":498,"icon":490},"Add or edit location","\u002Fen\u002Fguides\u002Fsettings\u002Forganization\u002Flocations\u002Fadd-or-edit","en\u002F01.guides\u002F12.settings\u002F01.organization\u002F04.locations\u002F01.add-or-edit",{"title":500,"path":501,"stem":502,"icon":503},"Localization","\u002Fen\u002Fguides\u002Fsettings\u002Forganization\u002Flocalization","en\u002F01.guides\u002F12.settings\u002F01.organization\u002F05.localization","i-rq-set-language",{"title":505,"path":506,"stem":507,"icon":69},"Date & time settings","\u002Fen\u002Fguides\u002Fsettings\u002Forganization\u002Fdate-and-time","en\u002F01.guides\u002F12.settings\u002F01.organization\u002F06.date-and-time",{"title":509,"icon":223,"path":510,"stem":511,"children":512},"Employees and subcontractors","\u002Fen\u002Fguides\u002Fsettings\u002Forganization\u002Femployees","en\u002F01.guides\u002F12.settings\u002F01.organization\u002F07.employees\u002Findex",[513,514],{"title":48,"path":510,"stem":511,"icon":223},{"title":515,"path":516,"stem":517,"icon":223},"Add or edit employee or subcontractor","\u002Fen\u002Fguides\u002Fsettings\u002Forganization\u002Femployees\u002Fadd-or-edit","en\u002F01.guides\u002F12.settings\u002F01.organization\u002F07.employees\u002F01.add-or-edit",{"title":519,"path":520,"stem":521,"icon":106},"Billing & plans","\u002Fen\u002Fguides\u002Fsettings\u002Forganization\u002Fbilling","en\u002F01.guides\u002F12.settings\u002F01.organization\u002F08.billing",{"title":523,"icon":524,"path":525,"stem":526,"children":527},"Integrations","i-prime-link","\u002Fen\u002Fguides\u002Fsettings\u002Fintegrations","en\u002F01.guides\u002F12.settings\u002F02.integrations\u002Findex",[528,529,534,539,544],{"title":48,"path":525,"stem":526,"icon":524},{"title":530,"path":531,"stem":532,"icon":533},"Payments","\u002Fen\u002Fguides\u002Fsettings\u002Fintegrations\u002Fpayments","en\u002F01.guides\u002F12.settings\u002F02.integrations\u002F01.payments","i-rq-set-card",{"title":535,"path":536,"stem":537,"icon":538},"Communications","\u002Fen\u002Fguides\u002Fsettings\u002Fintegrations\u002Fcommunications","en\u002F01.guides\u002F12.settings\u002F02.integrations\u002F02.communications","i-rq-set-comments",{"title":540,"path":541,"stem":542,"icon":543},"Document signing","\u002Fen\u002Fguides\u002Fsettings\u002Fintegrations\u002Fsigning","en\u002F01.guides\u002F12.settings\u002F02.integrations\u002F03.signing","i-rq-set-signature",{"title":545,"path":546,"stem":547,"icon":193},"Data migration","\u002Fen\u002Fguides\u002Fsettings\u002Fintegrations\u002Fdata-migration","en\u002F01.guides\u002F12.settings\u002F02.integrations\u002F04.data-migration",{"title":549,"icon":550,"path":551,"stem":552,"children":553},"Pricing","i-rq-set-tags","\u002Fen\u002Fguides\u002Fsettings\u002Fpricing","en\u002F01.guides\u002F12.settings\u002F03.pricing\u002Findex",[554,555,565],{"title":48,"path":551,"stem":552,"icon":550},{"title":556,"icon":550,"path":557,"stem":558,"children":559},"Pricing tiers","\u002Fen\u002Fguides\u002Fsettings\u002Fpricing\u002Fpricing-tiers","en\u002F01.guides\u002F12.settings\u002F03.pricing\u002F01.pricing-tiers\u002Findex",[560,561],{"title":48,"path":557,"stem":558,"icon":550},{"title":562,"path":563,"stem":564,"icon":550},"Add or edit pricing tier group","\u002Fen\u002Fguides\u002Fsettings\u002Fpricing\u002Fpricing-tiers\u002Fadd-or-edit","en\u002F01.guides\u002F12.settings\u002F03.pricing\u002F01.pricing-tiers\u002F01.add-or-edit",{"title":566,"icon":103,"path":567,"stem":568,"children":569},"Pricing discounts","\u002Fen\u002Fguides\u002Fsettings\u002Fpricing\u002Fpricing-discounts","en\u002F01.guides\u002F12.settings\u002F03.pricing\u002F02.pricing-discounts\u002Findex",[570,571],{"title":48,"path":567,"stem":568,"icon":103},{"title":572,"path":573,"stem":574,"icon":103},"Add or edit pricing discount","\u002Fen\u002Fguides\u002Fsettings\u002Fpricing\u002Fpricing-discounts\u002Fadd-or-edit","en\u002F01.guides\u002F12.settings\u002F03.pricing\u002F02.pricing-discounts\u002F01.add-or-edit",{"title":576,"icon":43,"path":577,"stem":578,"children":579},"Bookings","\u002Fen\u002Fguides\u002Fsettings\u002Fbookings","en\u002F01.guides\u002F12.settings\u002F04.bookings\u002Findex",[580,581,586,591,596],{"title":48,"path":577,"stem":578,"icon":43},{"title":582,"path":583,"stem":584,"icon":585},"Booking statuses","\u002Fen\u002Fguides\u002Fsettings\u002Fbookings\u002Fstatuses","en\u002F01.guides\u002F12.settings\u002F04.bookings\u002F01.statuses","i-rq-set-status",{"title":587,"path":588,"stem":589,"icon":590},"Booking creation","\u002Fen\u002Fguides\u002Fsettings\u002Fbookings\u002Fbooking-creation","en\u002F01.guides\u002F12.settings\u002F04.bookings\u002F02.booking-creation","i-rq-set-calendar-plus",{"title":592,"path":593,"stem":594,"icon":595},"Booking duration","\u002Fen\u002Fguides\u002Fsettings\u002Fbookings\u002Fbooking-duration","en\u002F01.guides\u002F12.settings\u002F04.bookings\u002F03.booking-duration","i-rq-set-clock",{"title":597,"path":598,"stem":599,"icon":233},"Deposits","\u002Fen\u002Fguides\u002Fsettings\u002Fbookings\u002Fdeposits","en\u002F01.guides\u002F12.settings\u002F04.bookings\u002F04.deposits",{"title":48,"path":601,"stem":602,"icon":93},"\u002Fen\u002Fguides\u002Fsettings\u002Finventory","en\u002F01.guides\u002F12.settings\u002F05.inventory",{"title":604,"icon":605,"path":606,"stem":607,"children":608},"Fields","i-rq-set-field","\u002Fen\u002Fguides\u002Fsettings\u002Ffields","en\u002F01.guides\u002F12.settings\u002F06.fields\u002Findex",[609,610,614,619,624],{"title":48,"path":606,"stem":607,"icon":605},{"title":611,"path":612,"stem":613,"icon":605},"Entity fields","\u002Fen\u002Fguides\u002Fsettings\u002Ffields\u002Fentity-fields","en\u002F01.guides\u002F12.settings\u002F06.fields\u002F01.entity-fields",{"title":615,"path":616,"stem":617,"icon":618},"Level configurations","\u002Fen\u002Fguides\u002Fsettings\u002Ffields\u002Flevel-configurations","en\u002F01.guides\u002F12.settings\u002F06.fields\u002F02.level-configurations","i-rq-set-level-tabs",{"title":620,"path":621,"stem":622,"icon":623},"Table column layout","\u002Fen\u002Fguides\u002Fsettings\u002Ffields\u002Ftable-columns","en\u002F01.guides\u002F12.settings\u002F06.fields\u002F03.table-columns","i-rq-set-table",{"title":625,"path":626,"stem":627,"icon":628},"Detail page fields","\u002Fen\u002Fguides\u002Fsettings\u002Ffields\u002Fdetail-page-fields","en\u002F01.guides\u002F12.settings\u002F06.fields\u002F04.detail-page-fields","i-rq-set-detail-page",{"title":630,"path":631,"stem":632,"icon":633},"Sidebar menu layout","\u002Fen\u002Fguides\u002Fsettings\u002Fmenu-layout","en\u002F01.guides\u002F12.settings\u002F07.menu-layout","i-prime-bars",{"title":635,"icon":636,"path":637,"stem":638,"children":639,"page":40},"AI & MCP","i-prime-sparkles","\u002Fen\u002Fai","en\u002F02.ai",[640,644,669],{"title":641,"path":642,"stem":643,"icon":636},"Requiply Assistant","\u002Fen\u002Fai\u002Frequiply-assistant","en\u002F02.ai\u002F01.requiply-assistant",{"title":645,"icon":646,"path":647,"stem":648,"children":649},"Requiply MCP","i-rq-set-mcp","\u002Fen\u002Fai\u002Fmcp","en\u002F02.ai\u002F02.mcp\u002Findex",[650,651,655,660,664],{"title":48,"path":647,"stem":648,"icon":646},{"title":652,"path":653,"stem":654,"icon":524},"Connecting","\u002Fen\u002Fai\u002Fmcp\u002Fconnecting","en\u002F02.ai\u002F02.mcp\u002F01.connecting",{"title":656,"path":657,"stem":658,"icon":659},"Tools","\u002Fen\u002Fai\u002Fmcp\u002Ftools","en\u002F02.ai\u002F02.mcp\u002F02.tools","i-prime-wrench",{"title":661,"path":662,"stem":663,"icon":393},"Use cases","\u002Fen\u002Fai\u002Fmcp\u002Fuse-cases","en\u002F02.ai\u002F02.mcp\u002F03.use-cases",{"title":665,"path":666,"stem":667,"icon":668},"Troubleshooting","\u002Fen\u002Fai\u002Fmcp\u002Ftroubleshooting","en\u002F02.ai\u002F02.mcp\u002F04.troubleshooting","i-prime-question-circle",{"title":670,"path":671,"stem":672,"icon":673},"AI usage","\u002Fen\u002Fai\u002Fai-usage","en\u002F02.ai\u002F03.ai-usage","i-rq-set-gauge",{"title":675,"icon":358,"path":676,"stem":677,"children":678,"page":40},"Developers","\u002Fen\u002Fdevelopers","en\u002F03.developers",[679,682,687,738,743],{"title":48,"path":680,"stem":681,"icon":358},"\u002Fen\u002Fdevelopers\u002Foverview","en\u002F03.developers\u002F00.overview",{"title":683,"path":684,"stem":685,"icon":686},"Authentication and API Keys","\u002Fen\u002Fdevelopers\u002Fauthentication-and-api-keys","en\u002F03.developers\u002F01.authentication-and-api-keys","i-rq-set-key",{"title":688,"icon":358,"path":689,"stem":690,"children":691},"TypeScript SDK","\u002Fen\u002Fdevelopers\u002Ftypescript-sdk","en\u002F03.developers\u002F02.typescript-sdk\u002Findex",[692,693,697,701,705,709,713,717,721,724,727,731,735],{"title":48,"path":689,"stem":690,"icon":358},{"title":694,"path":695,"stem":696,"icon":358},"Installation","\u002Fen\u002Fdevelopers\u002Ftypescript-sdk\u002Finstallation","en\u002F03.developers\u002F02.typescript-sdk\u002F01.installation",{"title":698,"path":699,"stem":700,"icon":358},"Quick Start","\u002Fen\u002Fdevelopers\u002Ftypescript-sdk\u002Fquick-start","en\u002F03.developers\u002F02.typescript-sdk\u002F02.quick-start",{"title":702,"path":703,"stem":704,"icon":358},"Browser and Server Usage","\u002Fen\u002Fdevelopers\u002Ftypescript-sdk\u002Fbrowser-and-server-usage","en\u002F03.developers\u002F02.typescript-sdk\u002F03.browser-and-server-usage",{"title":706,"path":707,"stem":708,"icon":358},"Error Handling","\u002Fen\u002Fdevelopers\u002Ftypescript-sdk\u002Ferror-handling","en\u002F03.developers\u002F02.typescript-sdk\u002F04.error-handling",{"title":710,"path":711,"stem":712,"icon":358},"Request Options","\u002Fen\u002Fdevelopers\u002Ftypescript-sdk\u002Frequest-options","en\u002F03.developers\u002F02.typescript-sdk\u002F05.request-options",{"title":714,"path":715,"stem":716,"icon":358},"Inventory and Categories","\u002Fen\u002Fdevelopers\u002Ftypescript-sdk\u002Finventory-and-categories","en\u002F03.developers\u002F02.typescript-sdk\u002F06.inventory-and-categories",{"title":718,"path":719,"stem":720,"icon":358},"Availability and Pricing","\u002Fen\u002Fdevelopers\u002Ftypescript-sdk\u002Favailability-and-pricing","en\u002F03.developers\u002F02.typescript-sdk\u002F07.availability-and-pricing",{"title":576,"path":722,"stem":723,"icon":358},"\u002Fen\u002Fdevelopers\u002Ftypescript-sdk\u002Fbookings","en\u002F03.developers\u002F02.typescript-sdk\u002F08.bookings",{"title":210,"path":725,"stem":726,"icon":358},"\u002Fen\u002Fdevelopers\u002Ftypescript-sdk\u002Fclients","en\u002F03.developers\u002F02.typescript-sdk\u002F09.clients",{"title":728,"path":729,"stem":730,"icon":358},"Sales and Goods for Sale","\u002Fen\u002Fdevelopers\u002Ftypescript-sdk\u002Fsales","en\u002F03.developers\u002F02.typescript-sdk\u002F10.sales",{"title":732,"path":733,"stem":734,"icon":358},"Organization","\u002Fen\u002Fdevelopers\u002Ftypescript-sdk\u002Forganization","en\u002F03.developers\u002F02.typescript-sdk\u002F11.organization",{"title":310,"path":736,"stem":737,"icon":358},"\u002Fen\u002Fdevelopers\u002Ftypescript-sdk\u002Freports","en\u002F03.developers\u002F02.typescript-sdk\u002F12.reports",{"title":739,"path":740,"stem":741,"icon":742},"REST API Reference","\u002Fen\u002Fdevelopers\u002Fapi-reference","en\u002F03.developers\u002F03.api-reference","i-prime-server",{"title":744,"path":745,"stem":746,"icon":6},"Examples","\u002Fen\u002Fdevelopers\u002Fexamples","en\u002F03.developers\u002F04.examples",{"id":748,"title":728,"body":749,"description":2865,"extension":2866,"links":2867,"meta":2868,"navigation":2875,"path":729,"seo":2876,"stem":730,"__hash__":2877},"docs_en\u002Fen\u002F03.developers\u002F02.typescript-sdk\u002F10.sales.md",{"type":750,"value":751,"toc":2856},"minimark",[752,760,797,874,885,890,905,926,936,939,1013,1274,1279,1340,1375,1518,1624,1629,1675,1688,1751,1756,1806,1809,1913,1980,2039,2044,2128,2136,2193,2219,2224,2270,2276,2476,2560,2582,2605,2609,2619,2797,2847,2852],[753,754,755,756,759],"p",{},"These resources cover the ",[757,758,287],"a",{"href":289}," module: goods such as memory cards, batteries, or gaffer tape that a rental business sells with a stock count, next to its rentals.",[761,762,763,764,768,769,772,773,777,778,781,782,785,786,781,789,792,793,796],"warning",{},"The organization must be on the Advanced plan with ",[765,766,767],"strong",{},"Enable sales"," on under ",[757,770,469],{"href":771},"\u002Fen\u002Fguides\u002Fsettings\u002Forganization\u002Ffeatures#enable-sales",". Otherwise every method throws a ",[774,775,776],"code",{},"RequiplyError"," with ",[774,779,780],{},"status"," ",[774,783,784],{},"403"," and ",[774,787,788],{},"reason",[774,790,791],{},"feature_disabled"," (",[774,794,795],{},"selling_disabled"," for a publishable key).",[798,799,800,816],"table",{},[801,802,803],"thead",{},[804,805,806,810,813],"tr",{},[807,808,809],"th",{},"Method",[807,811,812],{},"Secret key",[807,814,815],{},"Publishable key",[817,818,819,837,856],"tbody",{},[804,820,821,831,834],{},[822,823,824,827,828],"td",{},[774,825,826],{},"saleItems.list()",", ",[774,829,830],{},"saleItems.get()",[822,832,833],{},"Yes",[822,835,836],{},"Active products only, while the organization sells to customers",[804,838,839,851,853],{},[822,840,841,844,845,785,848],{},[774,842,843],{},"saleLines"," on ",[774,846,847],{},"pricing.quote()",[774,849,850],{},"bookings.create()",[822,852,833],{},[822,854,855],{},"Yes, within the stock on hand, while the organization sells to customers",[804,857,858,869,871],{},[822,859,860,827,863,827,866],{},[774,861,862],{},"sales.list()",[774,864,865],{},"sales.get()",[774,867,868],{},"sales.create()",[822,870,833],{},[822,872,873],{},"No",[753,875,876,877,880,881,884],{},"Goods for sale are kept apart from rental products: ",[774,878,879],{},"inventory.list()",", availability, and ",[774,882,883],{},"categories.list()"," never return them.",[886,887,889],"h2",{"id":888},"with-a-publishable-key","With a publishable key",[753,891,892,893,896,897,900,901,904],{},"A storefront can show goods for sale and let customers add them to a booking request, the way the ",[757,894,895],{"href":343},"client portal"," does in its ",[765,898,899],{},"Items to buy"," step. A publishable key reaches them only while the organization ",[765,902,903],{},"sells to customers",", which takes all three of:",[906,907,908,912,923],"ul",{},[909,910,911],"li",{},"the Sales feature on the Advanced plan, as above;",[909,913,914,917,918,922],{},[765,915,916],{},"Selling items"," switched on in the ",[757,919,921],{"href":920},"\u002Fen\u002Fguides\u002Fonline-booking\u002Fportal-settings#actions","client portal settings",";",[909,924,925],{},"at least one product for sale that is not archived.",[753,927,928,929,777,931,781,933,935],{},"Otherwise the call throws ",[774,930,784],{},[774,932,788],{},[774,934,795],{},", so a storefront can hide its goods section.",[753,937,938],{},"With a publishable key:",[906,940,941,961,984],{},[909,942,943,945,946,949,950,785,953,956,957,960],{},[774,944,826],{}," returns active products only, whatever ",[774,947,948],{},"filter"," says. ",[774,951,952],{},"barcode",[774,954,955],{},"purchaseCost"," are always ",[774,958,959],{},"null",".",[909,962,963,965,966,969,970,827,973,976,977,980,981,960],{},[774,964,830],{}," answers ",[774,967,968],{},"404"," for an archived product, and ",[774,971,972],{},"soldUnits30d",[774,974,975],{},"revenue30d",", and ",[774,978,979],{},"soldUnitsTotal"," are ",[774,982,983],{},"0",[909,985,986,988,989,992,993,777,996,781,998,1001,1002,1005,1006,1009,1010,1012],{},[774,987,843],{}," cannot ask for more than ",[774,990,991],{},"stockOnHand",". A line over the stock throws ",[774,994,995],{},"409",[774,997,788],{},[774,999,1000],{},"out_of_stock","; ",[774,1003,1004],{},"data.saleItemId"," names the product and ",[774,1007,1008],{},"data.availableQuantity"," how many are left (",[774,1011,983],{}," when sold out).",[1014,1015,1020],"pre",{"className":1016,"code":1017,"language":1018,"meta":1019,"style":1019},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","try {\n  await requiply.pricing.quote({ startDate, endDate, items, saleLines });\n} catch (error) {\n  if (error instanceof RequiplyError && error.reason === 'out_of_stock') {\n    showNotice(`Only ${error.data?.availableQuantity} left`);\n  } else if (error instanceof RequiplyError && error.reason === 'selling_disabled') {\n    hideGoodsSection();\n  } else {\n    throw error;\n  }\n}\n","ts","",[774,1021,1022,1035,1091,1106,1151,1192,1232,1243,1252,1262,1268],{"__ignoreMap":1019},[1023,1024,1027,1031],"span",{"class":1025,"line":1026},"line",1,[1023,1028,1030],{"class":1029},"s7zQu","try",[1023,1032,1034],{"class":1033},"sMK4o"," {\n",[1023,1036,1038,1041,1045,1047,1050,1052,1056,1060,1063,1066,1069,1072,1074,1077,1079,1082,1085,1088],{"class":1025,"line":1037},2,[1023,1039,1040],{"class":1029},"  await",[1023,1042,1044],{"class":1043},"sTEyZ"," requiply",[1023,1046,960],{"class":1033},[1023,1048,1049],{"class":1043},"pricing",[1023,1051,960],{"class":1033},[1023,1053,1055],{"class":1054},"s2Zo4","quote",[1023,1057,1059],{"class":1058},"swJcz","(",[1023,1061,1062],{"class":1033},"{",[1023,1064,1065],{"class":1043}," startDate",[1023,1067,1068],{"class":1033},",",[1023,1070,1071],{"class":1043}," endDate",[1023,1073,1068],{"class":1033},[1023,1075,1076],{"class":1043}," items",[1023,1078,1068],{"class":1033},[1023,1080,1081],{"class":1043}," saleLines",[1023,1083,1084],{"class":1033}," }",[1023,1086,1087],{"class":1058},")",[1023,1089,1090],{"class":1033},";\n",[1023,1092,1094,1097,1100,1103],{"class":1025,"line":1093},3,[1023,1095,1096],{"class":1033},"}",[1023,1098,1099],{"class":1029}," catch",[1023,1101,1102],{"class":1043}," (error) ",[1023,1104,1105],{"class":1033},"{\n",[1023,1107,1109,1112,1114,1117,1120,1124,1127,1130,1132,1134,1137,1140,1143,1146,1149],{"class":1025,"line":1108},4,[1023,1110,1111],{"class":1029},"  if",[1023,1113,792],{"class":1058},[1023,1115,1116],{"class":1043},"error",[1023,1118,1119],{"class":1033}," instanceof",[1023,1121,1123],{"class":1122},"sBMFI"," RequiplyError",[1023,1125,1126],{"class":1033}," &&",[1023,1128,1129],{"class":1043}," error",[1023,1131,960],{"class":1033},[1023,1133,788],{"class":1043},[1023,1135,1136],{"class":1033}," ===",[1023,1138,1139],{"class":1033}," '",[1023,1141,1000],{"class":1142},"sfazB",[1023,1144,1145],{"class":1033},"'",[1023,1147,1148],{"class":1058},") ",[1023,1150,1105],{"class":1033},[1023,1152,1154,1157,1159,1162,1165,1168,1170,1172,1175,1178,1181,1183,1186,1188,1190],{"class":1025,"line":1153},5,[1023,1155,1156],{"class":1054},"    showNotice",[1023,1158,1059],{"class":1058},[1023,1160,1161],{"class":1033},"`",[1023,1163,1164],{"class":1142},"Only ",[1023,1166,1167],{"class":1033},"${",[1023,1169,1116],{"class":1043},[1023,1171,960],{"class":1033},[1023,1173,1174],{"class":1043},"data",[1023,1176,1177],{"class":1033},"?.",[1023,1179,1180],{"class":1043},"availableQuantity",[1023,1182,1096],{"class":1033},[1023,1184,1185],{"class":1142}," left",[1023,1187,1161],{"class":1033},[1023,1189,1087],{"class":1058},[1023,1191,1090],{"class":1033},[1023,1193,1195,1198,1201,1204,1206,1208,1210,1212,1214,1216,1218,1220,1222,1224,1226,1228,1230],{"class":1025,"line":1194},6,[1023,1196,1197],{"class":1033},"  }",[1023,1199,1200],{"class":1029}," else",[1023,1202,1203],{"class":1029}," if",[1023,1205,792],{"class":1058},[1023,1207,1116],{"class":1043},[1023,1209,1119],{"class":1033},[1023,1211,1123],{"class":1122},[1023,1213,1126],{"class":1033},[1023,1215,1129],{"class":1043},[1023,1217,960],{"class":1033},[1023,1219,788],{"class":1043},[1023,1221,1136],{"class":1033},[1023,1223,1139],{"class":1033},[1023,1225,795],{"class":1142},[1023,1227,1145],{"class":1033},[1023,1229,1148],{"class":1058},[1023,1231,1105],{"class":1033},[1023,1233,1235,1238,1241],{"class":1025,"line":1234},7,[1023,1236,1237],{"class":1054},"    hideGoodsSection",[1023,1239,1240],{"class":1058},"()",[1023,1242,1090],{"class":1033},[1023,1244,1246,1248,1250],{"class":1025,"line":1245},8,[1023,1247,1197],{"class":1033},[1023,1249,1200],{"class":1029},[1023,1251,1034],{"class":1033},[1023,1253,1255,1258,1260],{"class":1025,"line":1254},9,[1023,1256,1257],{"class":1029},"    throw",[1023,1259,1129],{"class":1043},[1023,1261,1090],{"class":1033},[1023,1263,1265],{"class":1025,"line":1264},10,[1023,1266,1267],{"class":1033},"  }\n",[1023,1269,1271],{"class":1025,"line":1270},11,[1023,1272,1273],{"class":1033},"}\n",[886,1275,1277],{"id":1276},"saleitemslist",[774,1278,826],{},[1014,1280,1282],{"className":1016,"code":1281,"language":1018,"meta":1019,"style":1019},"saleItems.list(\n  params?: SaleItemsListParams,\n  options?: RequiplyRequestOptions,\n): Promise\u003CSaleItemsListResponse>\n",[774,1283,1284,1297,1311,1323],{"__ignoreMap":1019},[1023,1285,1286,1289,1291,1294],{"class":1025,"line":1026},[1023,1287,1288],{"class":1043},"saleItems",[1023,1290,960],{"class":1033},[1023,1292,1293],{"class":1054},"list",[1023,1295,1296],{"class":1043},"(\n",[1023,1298,1299,1302,1305,1308],{"class":1025,"line":1037},[1023,1300,1301],{"class":1043},"  params",[1023,1303,1304],{"class":1033},"?:",[1023,1306,1307],{"class":1043}," SaleItemsListParams",[1023,1309,1310],{"class":1033},",\n",[1023,1312,1313,1316,1318,1321],{"class":1025,"line":1093},[1023,1314,1315],{"class":1043},"  options",[1023,1317,1304],{"class":1033},[1023,1319,1320],{"class":1043}," RequiplyRequestOptions",[1023,1322,1310],{"class":1033},[1023,1324,1325,1328,1331,1334,1337],{"class":1025,"line":1108},[1023,1326,1327],{"class":1043},"): ",[1023,1329,1330],{"class":1122},"Promise",[1023,1332,1333],{"class":1033},"\u003C",[1023,1335,1336],{"class":1043},"SaleItemsListResponse",[1023,1338,1339],{"class":1033},">\n",[753,1341,1342,1343,1346,1347,1350,1351,792,1353,1356,1357,1360,1361,1364,1365,1367,1368,1371,1372,960],{},"Optional parameters: ",[774,1344,1345],{},"search"," (name, SKU, or barcode), ",[774,1348,1349],{},"category"," (category ID), ",[774,1352,948],{},[774,1354,1355],{},"active"," by default, ",[774,1358,1359],{},"archived",", or ",[774,1362,1363],{},"all","; publishable keys always get ",[774,1366,1355],{},"), ",[774,1369,1370],{},"limit"," (1 to 100, default 25), and ",[774,1373,1374],{},"cursor",[1014,1376,1378],{"className":1016,"code":1377,"language":1018,"meta":1019,"style":1019},"const { items, nextCursor } = await requiply.saleItems.list({ search: 'battery' });\n\nfor (const item of items) {\n  console.log(item.name, item.salePrice, item.currency, item.stockOnHand);\n}\n",[774,1379,1380,1437,1443,1463,1514],{"__ignoreMap":1019},[1023,1381,1382,1386,1389,1391,1393,1396,1398,1401,1404,1406,1408,1410,1412,1414,1416,1418,1421,1424,1426,1429,1431,1433,1435],{"class":1025,"line":1026},[1023,1383,1385],{"class":1384},"spNyl","const",[1023,1387,1388],{"class":1033}," {",[1023,1390,1076],{"class":1043},[1023,1392,1068],{"class":1033},[1023,1394,1395],{"class":1043}," nextCursor ",[1023,1397,1096],{"class":1033},[1023,1399,1400],{"class":1033}," =",[1023,1402,1403],{"class":1029}," await",[1023,1405,1044],{"class":1043},[1023,1407,960],{"class":1033},[1023,1409,1288],{"class":1043},[1023,1411,960],{"class":1033},[1023,1413,1293],{"class":1054},[1023,1415,1059],{"class":1043},[1023,1417,1062],{"class":1033},[1023,1419,1420],{"class":1058}," search",[1023,1422,1423],{"class":1033},":",[1023,1425,1139],{"class":1033},[1023,1427,1428],{"class":1142},"battery",[1023,1430,1145],{"class":1033},[1023,1432,1084],{"class":1033},[1023,1434,1087],{"class":1043},[1023,1436,1090],{"class":1033},[1023,1438,1439],{"class":1025,"line":1037},[1023,1440,1442],{"emptyLinePlaceholder":1441},true,"\n",[1023,1444,1445,1448,1450,1452,1455,1458,1461],{"class":1025,"line":1093},[1023,1446,1447],{"class":1029},"for",[1023,1449,792],{"class":1043},[1023,1451,1385],{"class":1384},[1023,1453,1454],{"class":1043}," item ",[1023,1456,1457],{"class":1033},"of",[1023,1459,1460],{"class":1043}," items) ",[1023,1462,1105],{"class":1033},[1023,1464,1465,1468,1470,1473,1475,1478,1480,1483,1485,1488,1490,1493,1495,1497,1499,1502,1504,1506,1508,1510,1512],{"class":1025,"line":1108},[1023,1466,1467],{"class":1043},"  console",[1023,1469,960],{"class":1033},[1023,1471,1472],{"class":1054},"log",[1023,1474,1059],{"class":1058},[1023,1476,1477],{"class":1043},"item",[1023,1479,960],{"class":1033},[1023,1481,1482],{"class":1043},"name",[1023,1484,1068],{"class":1033},[1023,1486,1487],{"class":1043}," item",[1023,1489,960],{"class":1033},[1023,1491,1492],{"class":1043},"salePrice",[1023,1494,1068],{"class":1033},[1023,1496,1487],{"class":1043},[1023,1498,960],{"class":1033},[1023,1500,1501],{"class":1043},"currency",[1023,1503,1068],{"class":1033},[1023,1505,1487],{"class":1043},[1023,1507,960],{"class":1033},[1023,1509,991],{"class":1043},[1023,1511,1087],{"class":1058},[1023,1513,1090],{"class":1033},[1023,1515,1516],{"class":1025,"line":1153},[1023,1517,1273],{"class":1033},[798,1519,1520,1530],{},[801,1521,1522],{},[804,1523,1524,1527],{},[807,1525,1526],{},"Field",[807,1528,1529],{},"What it holds",[817,1531,1532,1562,1580,1591,1600,1614],{},[804,1533,1534,1546],{},[822,1535,1536,827,1539,827,1541,827,1544],{},[774,1537,1538],{},"id",[774,1540,1482],{},[774,1542,1543],{},"sku",[774,1545,952],{},[822,1547,1548,1549,785,1551,1553,1554,1001,1556,1558,1559,1561],{},"The product. ",[774,1550,1543],{},[774,1552,952],{}," can be ",[774,1555,959],{},[774,1557,952],{}," is always ",[774,1560,959],{}," for a publishable key.",[804,1563,1564,1575],{},[822,1565,1566,827,1569,827,1572],{},[774,1567,1568],{},"categoryId",[774,1570,1571],{},"categoryName",[774,1573,1574],{},"imageUrl",[822,1576,1577,1578,960],{},"Can be ",[774,1579,959],{},[804,1581,1582,1588],{},[822,1583,1584,827,1586],{},[774,1585,1492],{},[774,1587,1501],{},[822,1589,1590],{},"Flat price per unit in the organization currency.",[804,1592,1593,1597],{},[822,1594,1595],{},[774,1596,991],{},[822,1598,1599],{},"Units on the shelf. It can be negative when sales outran the recorded stock.",[804,1601,1602,1606],{},[822,1603,1604],{},[774,1605,955],{},[822,1607,1608,1609,1611,1612,1561],{},"Net cost per unit, or ",[774,1610,959],{}," unless the key may manage stock. Always ",[774,1613,959],{},[804,1615,1616,1621],{},[822,1617,1618],{},[774,1619,1620],{},"isArchived",[822,1622,1623],{},"Archived products cannot be sold.",[886,1625,1627],{"id":1626},"saleitemsget",[774,1628,830],{},[1014,1630,1632],{"className":1016,"code":1631,"language":1018,"meta":1019,"style":1019},"saleItems.get(\n  saleItemId: string,\n  options?: RequiplyRequestOptions,\n): Promise\u003CSaleItemResponse>\n",[774,1633,1634,1645,1652,1662],{"__ignoreMap":1019},[1023,1635,1636,1638,1640,1643],{"class":1025,"line":1026},[1023,1637,1288],{"class":1043},[1023,1639,960],{"class":1033},[1023,1641,1642],{"class":1054},"get",[1023,1644,1296],{"class":1043},[1023,1646,1647,1650],{"class":1025,"line":1037},[1023,1648,1649],{"class":1043},"  saleItemId: string",[1023,1651,1310],{"class":1033},[1023,1653,1654,1656,1658,1660],{"class":1025,"line":1093},[1023,1655,1315],{"class":1043},[1023,1657,1304],{"class":1033},[1023,1659,1320],{"class":1043},[1023,1661,1310],{"class":1033},[1023,1663,1664,1666,1668,1670,1673],{"class":1025,"line":1108},[1023,1665,1327],{"class":1043},[1023,1667,1330],{"class":1122},[1023,1669,1333],{"class":1033},[1023,1671,1672],{"class":1043},"SaleItemResponse",[1023,1674,1339],{"class":1033},[753,1676,1677,1678,1681,1682,827,1684,976,1686,960],{},"Returns ",[774,1679,1680],{},"saleItem"," with the fields above plus ",[774,1683,972],{},[774,1685,975],{},[774,1687,979],{},[1014,1689,1691],{"className":1016,"code":1690,"language":1018,"meta":1019,"style":1019},"const { saleItem } = await requiply.saleItems.get(itemId);\nconsole.log(saleItem.soldUnits30d, saleItem.revenue30d);\n",[774,1692,1693,1723],{"__ignoreMap":1019},[1023,1694,1695,1697,1699,1702,1704,1706,1708,1710,1712,1714,1716,1718,1721],{"class":1025,"line":1026},[1023,1696,1385],{"class":1384},[1023,1698,1388],{"class":1033},[1023,1700,1701],{"class":1043}," saleItem ",[1023,1703,1096],{"class":1033},[1023,1705,1400],{"class":1033},[1023,1707,1403],{"class":1029},[1023,1709,1044],{"class":1043},[1023,1711,960],{"class":1033},[1023,1713,1288],{"class":1043},[1023,1715,960],{"class":1033},[1023,1717,1642],{"class":1054},[1023,1719,1720],{"class":1043},"(itemId)",[1023,1722,1090],{"class":1033},[1023,1724,1725,1728,1730,1732,1735,1737,1739,1741,1744,1746,1749],{"class":1025,"line":1037},[1023,1726,1727],{"class":1043},"console",[1023,1729,960],{"class":1033},[1023,1731,1472],{"class":1054},[1023,1733,1734],{"class":1043},"(saleItem",[1023,1736,960],{"class":1033},[1023,1738,972],{"class":1043},[1023,1740,1068],{"class":1033},[1023,1742,1743],{"class":1043}," saleItem",[1023,1745,960],{"class":1033},[1023,1747,1748],{"class":1043},"revenue30d)",[1023,1750,1090],{"class":1033},[886,1752,1754],{"id":1753},"saleslist",[774,1755,862],{},[1014,1757,1759],{"className":1016,"code":1758,"language":1018,"meta":1019,"style":1019},"sales.list(\n  params?: SalesListParams,\n  options?: RequiplyRequestOptions,\n): Promise\u003CSalesListResponse>\n",[774,1760,1761,1772,1783,1793],{"__ignoreMap":1019},[1023,1762,1763,1766,1768,1770],{"class":1025,"line":1026},[1023,1764,1765],{"class":1043},"sales",[1023,1767,960],{"class":1033},[1023,1769,1293],{"class":1054},[1023,1771,1296],{"class":1043},[1023,1773,1774,1776,1778,1781],{"class":1025,"line":1037},[1023,1775,1301],{"class":1043},[1023,1777,1304],{"class":1033},[1023,1779,1780],{"class":1043}," SalesListParams",[1023,1782,1310],{"class":1033},[1023,1784,1785,1787,1789,1791],{"class":1025,"line":1093},[1023,1786,1315],{"class":1043},[1023,1788,1304],{"class":1033},[1023,1790,1320],{"class":1043},[1023,1792,1310],{"class":1033},[1023,1794,1795,1797,1799,1801,1804],{"class":1025,"line":1108},[1023,1796,1327],{"class":1043},[1023,1798,1330],{"class":1122},[1023,1800,1333],{"class":1033},[1023,1802,1803],{"class":1043},"SalesListResponse",[1023,1805,1339],{"class":1033},[753,1807,1808],{},"Lists sales, newest first, both standalone and sold with bookings. Optional filters:",[798,1810,1811,1821],{},[801,1812,1813],{},[804,1814,1815,1818],{},[807,1816,1817],{},"Parameter",[807,1819,1820],{},"Effect",[817,1822,1823,1839,1853,1866,1876,1889,1898],{},[804,1824,1825,1830],{},[822,1826,1827],{},[774,1828,1829],{},"kind",[822,1831,1832,1835,1836,960],{},[774,1833,1834],{},"standalone"," or ",[774,1837,1838],{},"booking",[804,1840,1841,1845],{},[822,1842,1843],{},[774,1844,780],{},[822,1846,1847,1835,1850,960],{},[774,1848,1849],{},"completed",[774,1851,1852],{},"cancelled",[804,1854,1855,1860],{},[822,1856,1857],{},[774,1858,1859],{},"unpaid",[822,1861,1862,1865],{},[774,1863,1864],{},"true"," for standalone sales that still owe money.",[804,1867,1868,1873],{},[822,1869,1870],{},[774,1871,1872],{},"clientId",[822,1874,1875],{},"One client's sales.",[804,1877,1878,1886],{},[822,1879,1880,827,1883],{},[774,1881,1882],{},"soldFrom",[774,1884,1885],{},"soldTo",[822,1887,1888],{},"ISO 8601 date-times.",[804,1890,1891,1895],{},[822,1892,1893],{},[774,1894,1345],{},[822,1896,1897],{},"Sale number, client name, email, or phone, product name or SKU.",[804,1899,1900,1906],{},[822,1901,1902,827,1904],{},[774,1903,1370],{},[774,1905,1374],{},[822,1907,1908,1909,1912],{},"Page size (1 to 100, default 25) and the ",[774,1910,1911],{},"nextCursor"," of the previous page.",[1014,1914,1916],{"className":1016,"code":1915,"language":1018,"meta":1019,"style":1019},"const { sales, currency } = await requiply.sales.list({ kind: 'standalone', unpaid: true });\n",[774,1917,1918],{"__ignoreMap":1019},[1023,1919,1920,1922,1924,1927,1929,1932,1934,1936,1938,1940,1942,1944,1946,1948,1950,1952,1955,1957,1959,1961,1963,1965,1968,1970,1974,1976,1978],{"class":1025,"line":1026},[1023,1921,1385],{"class":1384},[1023,1923,1388],{"class":1033},[1023,1925,1926],{"class":1043}," sales",[1023,1928,1068],{"class":1033},[1023,1930,1931],{"class":1043}," currency ",[1023,1933,1096],{"class":1033},[1023,1935,1400],{"class":1033},[1023,1937,1403],{"class":1029},[1023,1939,1044],{"class":1043},[1023,1941,960],{"class":1033},[1023,1943,1765],{"class":1043},[1023,1945,960],{"class":1033},[1023,1947,1293],{"class":1054},[1023,1949,1059],{"class":1043},[1023,1951,1062],{"class":1033},[1023,1953,1954],{"class":1058}," kind",[1023,1956,1423],{"class":1033},[1023,1958,1139],{"class":1033},[1023,1960,1834],{"class":1142},[1023,1962,1145],{"class":1033},[1023,1964,1068],{"class":1033},[1023,1966,1967],{"class":1058}," unpaid",[1023,1969,1423],{"class":1033},[1023,1971,1973],{"class":1972},"sfNiH"," true",[1023,1975,1084],{"class":1033},[1023,1977,1087],{"class":1043},[1023,1979,1090],{"class":1033},[753,1981,1982,1983,827,1985,1988,1989,827,1991,827,1994,827,1997,827,2000,2003,2004,827,2007,827,2010,827,2013,827,2016,2019,2020,827,2023,1367,2026,976,2029,2032,2033,2035,2036,2038],{},"Each sale has ",[774,1984,1538],{},[774,1986,1987],{},"saleOrgId"," (the sale number staff see in the app), ",[774,1990,780],{},[774,1992,1993],{},"soldAt",[774,1995,1996],{},"total",[774,1998,1999],{},"returnedTotal",[774,2001,2002],{},"net"," (total minus returns), ",[774,2005,2006],{},"paidAmount",[774,2008,2009],{},"balance",[774,2011,2012],{},"paymentMethod",[774,2014,2015],{},"paidAt",[774,2017,2018],{},"note",", the client, the booking it belongs to (",[774,2021,2022],{},"reservationId",[774,2024,2025],{},"reservationOrgId",[774,2027,2028],{},"itemCount",[774,2030,2031],{},"itemsLabel",". ",[774,2034,2009],{}," is what a standalone sale still owes; it is always ",[774,2037,983],{}," for a sale on a booking, which is paid through the booking.",[886,2040,2042],{"id":2041},"salesget",[774,2043,865],{},[1014,2045,2047],{"className":1016,"code":2046,"language":1018,"meta":1019,"style":1019},"sales.get(\n  id: string | number,\n  params?: { idKind?: 'internal' | 'org' },\n  options?: RequiplyRequestOptions,\n): Promise\u003CSaleResponse>\n",[774,2048,2049,2059,2072,2105,2115],{"__ignoreMap":1019},[1023,2050,2051,2053,2055,2057],{"class":1025,"line":1026},[1023,2052,1765],{"class":1043},[1023,2054,960],{"class":1033},[1023,2056,1642],{"class":1054},[1023,2058,1296],{"class":1043},[1023,2060,2061,2064,2067,2070],{"class":1025,"line":1037},[1023,2062,2063],{"class":1043},"  id: string ",[1023,2065,2066],{"class":1033},"|",[1023,2068,2069],{"class":1043}," number",[1023,2071,1310],{"class":1033},[1023,2073,2074,2076,2078,2080,2083,2085,2087,2090,2092,2095,2097,2100,2102],{"class":1025,"line":1093},[1023,2075,1301],{"class":1043},[1023,2077,1304],{"class":1033},[1023,2079,1388],{"class":1033},[1023,2081,2082],{"class":1043}," idKind?",[1023,2084,1423],{"class":1033},[1023,2086,1139],{"class":1033},[1023,2088,2089],{"class":1142},"internal",[1023,2091,1145],{"class":1033},[1023,2093,2094],{"class":1033}," |",[1023,2096,1139],{"class":1033},[1023,2098,2099],{"class":1142},"org",[1023,2101,1145],{"class":1033},[1023,2103,2104],{"class":1033}," },\n",[1023,2106,2107,2109,2111,2113],{"class":1025,"line":1108},[1023,2108,1315],{"class":1043},[1023,2110,1304],{"class":1033},[1023,2112,1320],{"class":1043},[1023,2114,1310],{"class":1033},[1023,2116,2117,2119,2121,2123,2126],{"class":1025,"line":1153},[1023,2118,1327],{"class":1043},[1023,2120,1330],{"class":1122},[1023,2122,1333],{"class":1033},[1023,2124,2125],{"class":1043},"SaleResponse",[1023,2127,1339],{"class":1033},[753,2129,2130,2132,2133,960],{},[774,2131,1538],{}," is the sale UUID, or the sale number from the app with ",[774,2134,2135],{},"idKind: 'org'",[1014,2137,2139],{"className":1016,"code":2138,"language":1018,"meta":1019,"style":1019},"const { sale } = await requiply.sales.get(12, { idKind: 'org' });\n",[774,2140,2141],{"__ignoreMap":1019},[1023,2142,2143,2145,2147,2150,2152,2154,2156,2158,2160,2162,2164,2166,2168,2172,2174,2176,2179,2181,2183,2185,2187,2189,2191],{"class":1025,"line":1026},[1023,2144,1385],{"class":1384},[1023,2146,1388],{"class":1033},[1023,2148,2149],{"class":1043}," sale ",[1023,2151,1096],{"class":1033},[1023,2153,1400],{"class":1033},[1023,2155,1403],{"class":1029},[1023,2157,1044],{"class":1043},[1023,2159,960],{"class":1033},[1023,2161,1765],{"class":1043},[1023,2163,960],{"class":1033},[1023,2165,1642],{"class":1054},[1023,2167,1059],{"class":1043},[1023,2169,2171],{"class":2170},"sbssI","12",[1023,2173,1068],{"class":1033},[1023,2175,1388],{"class":1033},[1023,2177,2178],{"class":1058}," idKind",[1023,2180,1423],{"class":1033},[1023,2182,1139],{"class":1033},[1023,2184,2099],{"class":1142},[1023,2186,1145],{"class":1033},[1023,2188,1084],{"class":1033},[1023,2190,1087],{"class":1043},[1023,2192,1090],{"class":1033},[753,2194,2195,2196,2199,2200,827,2203,827,2206,1367,2209,976,2212,2215,2216,2218],{},"The sale also carries ",[774,2197,2198],{},"lines"," (product, quantity, ",[774,2201,2202],{},"returnedQuantity",[774,2204,2205],{},"unitPrice",[774,2207,2208],{},"lineTotal",[774,2210,2211],{},"returns",[774,2213,2214],{},"payments",". For a sale on a booking, ",[774,2217,2214],{}," are the booking's, because the booking collects the rental and the goods in one payment.",[886,2220,2222],{"id":2221},"salescreate",[774,2223,868],{},[1014,2225,2227],{"className":1016,"code":2226,"language":1018,"meta":1019,"style":1019},"sales.create(\n  input: SaleCreateInput,\n  options?: RequiplyRequestOptions,\n): Promise\u003CSaleCreateResponse>\n",[774,2228,2229,2240,2247,2257],{"__ignoreMap":1019},[1023,2230,2231,2233,2235,2238],{"class":1025,"line":1026},[1023,2232,1765],{"class":1043},[1023,2234,960],{"class":1033},[1023,2236,2237],{"class":1054},"create",[1023,2239,1296],{"class":1043},[1023,2241,2242,2245],{"class":1025,"line":1037},[1023,2243,2244],{"class":1043},"  input: SaleCreateInput",[1023,2246,1310],{"class":1033},[1023,2248,2249,2251,2253,2255],{"class":1025,"line":1093},[1023,2250,1315],{"class":1043},[1023,2252,1304],{"class":1033},[1023,2254,1320],{"class":1043},[1023,2256,1310],{"class":1033},[1023,2258,2259,2261,2263,2265,2268],{"class":1025,"line":1108},[1023,2260,1327],{"class":1043},[1023,2262,1330],{"class":1122},[1023,2264,1333],{"class":1033},[1023,2266,2267],{"class":1043},"SaleCreateResponse",[1023,2269,1339],{"class":1033},[753,2271,2272,2273,2275],{},"Records a standalone sale, like ",[757,2274,298],{"href":299}," in the app.",[1014,2277,2279],{"className":1016,"code":2278,"language":1018,"meta":1019,"style":1019},"const { sale, stockWarnings, payment } = await requiply.sales.create({\n  lines: [{ saleItemId: itemId, quantity: 2 }],\n  client: { name: 'Alex', email: 'customer@example.com' },\n  paymentMethod: 'monobank',\n  note: 'Counter sale',\n});\n\nif (payment?.paymentUrl) console.log('Pay here:', payment.paymentUrl);\n",[774,2280,2281,2320,2357,2394,2410,2426,2434,2438],{"__ignoreMap":1019},[1023,2282,2283,2285,2287,2290,2292,2295,2297,2300,2302,2304,2306,2308,2310,2312,2314,2316,2318],{"class":1025,"line":1026},[1023,2284,1385],{"class":1384},[1023,2286,1388],{"class":1033},[1023,2288,2289],{"class":1043}," sale",[1023,2291,1068],{"class":1033},[1023,2293,2294],{"class":1043}," stockWarnings",[1023,2296,1068],{"class":1033},[1023,2298,2299],{"class":1043}," payment ",[1023,2301,1096],{"class":1033},[1023,2303,1400],{"class":1033},[1023,2305,1403],{"class":1029},[1023,2307,1044],{"class":1043},[1023,2309,960],{"class":1033},[1023,2311,1765],{"class":1043},[1023,2313,960],{"class":1033},[1023,2315,2237],{"class":1054},[1023,2317,1059],{"class":1043},[1023,2319,1105],{"class":1033},[1023,2321,2322,2325,2327,2330,2332,2335,2337,2340,2342,2345,2347,2350,2352,2355],{"class":1025,"line":1037},[1023,2323,2324],{"class":1058},"  lines",[1023,2326,1423],{"class":1033},[1023,2328,2329],{"class":1043}," [",[1023,2331,1062],{"class":1033},[1023,2333,2334],{"class":1058}," saleItemId",[1023,2336,1423],{"class":1033},[1023,2338,2339],{"class":1043}," itemId",[1023,2341,1068],{"class":1033},[1023,2343,2344],{"class":1058}," quantity",[1023,2346,1423],{"class":1033},[1023,2348,2349],{"class":2170}," 2",[1023,2351,1084],{"class":1033},[1023,2353,2354],{"class":1043},"]",[1023,2356,1310],{"class":1033},[1023,2358,2359,2362,2364,2366,2369,2371,2373,2376,2378,2380,2383,2385,2387,2390,2392],{"class":1025,"line":1093},[1023,2360,2361],{"class":1058},"  client",[1023,2363,1423],{"class":1033},[1023,2365,1388],{"class":1033},[1023,2367,2368],{"class":1058}," name",[1023,2370,1423],{"class":1033},[1023,2372,1139],{"class":1033},[1023,2374,2375],{"class":1142},"Alex",[1023,2377,1145],{"class":1033},[1023,2379,1068],{"class":1033},[1023,2381,2382],{"class":1058}," email",[1023,2384,1423],{"class":1033},[1023,2386,1139],{"class":1033},[1023,2388,2389],{"class":1142},"customer@example.com",[1023,2391,1145],{"class":1033},[1023,2393,2104],{"class":1033},[1023,2395,2396,2399,2401,2403,2406,2408],{"class":1025,"line":1108},[1023,2397,2398],{"class":1058},"  paymentMethod",[1023,2400,1423],{"class":1033},[1023,2402,1139],{"class":1033},[1023,2404,2405],{"class":1142},"monobank",[1023,2407,1145],{"class":1033},[1023,2409,1310],{"class":1033},[1023,2411,2412,2415,2417,2419,2422,2424],{"class":1025,"line":1153},[1023,2413,2414],{"class":1058},"  note",[1023,2416,1423],{"class":1033},[1023,2418,1139],{"class":1033},[1023,2420,2421],{"class":1142},"Counter sale",[1023,2423,1145],{"class":1033},[1023,2425,1310],{"class":1033},[1023,2427,2428,2430,2432],{"class":1025,"line":1194},[1023,2429,1096],{"class":1033},[1023,2431,1087],{"class":1043},[1023,2433,1090],{"class":1033},[1023,2435,2436],{"class":1025,"line":1234},[1023,2437,1442],{"emptyLinePlaceholder":1441},[1023,2439,2440,2443,2446,2448,2451,2453,2455,2457,2459,2462,2464,2466,2469,2471,2474],{"class":1025,"line":1245},[1023,2441,2442],{"class":1029},"if",[1023,2444,2445],{"class":1043}," (payment",[1023,2447,1177],{"class":1033},[1023,2449,2450],{"class":1043},"paymentUrl) console",[1023,2452,960],{"class":1033},[1023,2454,1472],{"class":1054},[1023,2456,1059],{"class":1043},[1023,2458,1145],{"class":1033},[1023,2460,2461],{"class":1142},"Pay here:",[1023,2463,1145],{"class":1033},[1023,2465,1068],{"class":1033},[1023,2467,2468],{"class":1043}," payment",[1023,2470,960],{"class":1033},[1023,2472,2473],{"class":1043},"paymentUrl)",[1023,2475,1090],{"class":1033},[798,2477,2478,2487],{},[801,2479,2480],{},[804,2481,2482,2484],{},[807,2483,1526],{},[807,2485,2486],{},"Rules",[817,2488,2489,2500,2515,2542,2551],{},[804,2490,2491,2495],{},[822,2492,2493],{},[774,2494,2198],{},[822,2496,2497,2498,960],{},"Required. 1 to 100 products, each at most once, with a whole quantity above zero. Every line sells at the product's ",[774,2499,1492],{},[804,2501,2502,2509],{},[822,2503,2504,1835,2506],{},[774,2505,1872],{},[774,2507,2508],{},"client",[822,2510,2511,2512,2514],{},"Optional. ",[774,2513,2508],{}," is matched by email, then phone, and created when neither matches.",[804,2516,2517,2521],{},[822,2518,2519],{},[774,2520,2012],{},[822,2522,2523,2526,2527,827,2529,827,2532,1360,2535,2538,2539,2541],{},[774,2524,2525],{},"payOnPickup"," (default), or ",[774,2528,2405],{},[774,2530,2531],{},"liqpay",[774,2533,2534],{},"wayforpay",[774,2536,2537],{},"stripe"," with an active integration. ",[774,2540,2531],{}," needs a client with an email.",[804,2543,2544,2548],{},[822,2545,2546],{},[774,2547,1993],{},[822,2549,2550],{},"ISO 8601. Defaults to now.",[804,2552,2553,2557],{},[822,2554,2555],{},[774,2556,2018],{},[822,2558,2559],{},"Up to 2000 characters.",[753,2561,2562,2563,2566,2567,2569,2570,2573,2574,2577,2578,2581],{},"The stock drops right away. A sale may take stock below zero: it is still recorded, and ",[774,2564,2565],{},"stockWarnings"," lists each such product with its ",[774,2568,991],{}," and the stock ",[774,2571,2572],{},"after"," the sale. ",[774,2575,2576],{},"payment"," is the pending charge the sale starts with, with a ",[774,2579,2580],{},"paymentUrl"," for an online method.",[753,2583,2584,2585,2587,2588,2590,2591,827,2594,1360,2597,2600,2601,2604],{},"A refused sale throws a ",[774,2586,776],{}," with a ",[774,2589,788],{}," such as ",[774,2592,2593],{},"sale_item_archived",[774,2595,2596],{},"payment_method_unavailable",[774,2598,2599],{},"client_email_required",". See ",[757,2602,706],{"href":2603},"\u002Fen\u002Fdevelopers\u002Ftypescript-sdk\u002Ferror-handling#error-reasons"," for the full list.",[886,2606,2608],{"id":2607},"goods-on-a-booking","Goods on a booking",[753,2610,2611,785,2613,2615,2616,2618],{},[774,2612,847],{},[774,2614,850],{}," accept ",[774,2617,843],{}," to sell goods together with a rental:",[1014,2620,2622],{"className":1016,"code":2621,"language":1018,"meta":1019,"style":1019},"const quote = await requiply.pricing.quote({\n  startDate: '2026-07-01T10:00:00',\n  endDate: '2026-07-03T18:00:00',\n  items: [{ groupId: cameraKitId, quantity: 1 }],\n  saleLines: [{ saleItemId: memoryCardId, quantity: 2 }],\n});\n\nconsole.log(quote.saleSubtotal, quote.lineSaleItems[0]?.stockAfter);\n",[774,2623,2624,2650,2666,2682,2716,2748,2756,2760],{"__ignoreMap":1019},[1023,2625,2626,2628,2631,2634,2636,2638,2640,2642,2644,2646,2648],{"class":1025,"line":1026},[1023,2627,1385],{"class":1384},[1023,2629,2630],{"class":1043}," quote ",[1023,2632,2633],{"class":1033},"=",[1023,2635,1403],{"class":1029},[1023,2637,1044],{"class":1043},[1023,2639,960],{"class":1033},[1023,2641,1049],{"class":1043},[1023,2643,960],{"class":1033},[1023,2645,1055],{"class":1054},[1023,2647,1059],{"class":1043},[1023,2649,1105],{"class":1033},[1023,2651,2652,2655,2657,2659,2662,2664],{"class":1025,"line":1037},[1023,2653,2654],{"class":1058},"  startDate",[1023,2656,1423],{"class":1033},[1023,2658,1139],{"class":1033},[1023,2660,2661],{"class":1142},"2026-07-01T10:00:00",[1023,2663,1145],{"class":1033},[1023,2665,1310],{"class":1033},[1023,2667,2668,2671,2673,2675,2678,2680],{"class":1025,"line":1093},[1023,2669,2670],{"class":1058},"  endDate",[1023,2672,1423],{"class":1033},[1023,2674,1139],{"class":1033},[1023,2676,2677],{"class":1142},"2026-07-03T18:00:00",[1023,2679,1145],{"class":1033},[1023,2681,1310],{"class":1033},[1023,2683,2684,2687,2689,2691,2693,2696,2698,2701,2703,2705,2707,2710,2712,2714],{"class":1025,"line":1108},[1023,2685,2686],{"class":1058},"  items",[1023,2688,1423],{"class":1033},[1023,2690,2329],{"class":1043},[1023,2692,1062],{"class":1033},[1023,2694,2695],{"class":1058}," groupId",[1023,2697,1423],{"class":1033},[1023,2699,2700],{"class":1043}," cameraKitId",[1023,2702,1068],{"class":1033},[1023,2704,2344],{"class":1058},[1023,2706,1423],{"class":1033},[1023,2708,2709],{"class":2170}," 1",[1023,2711,1084],{"class":1033},[1023,2713,2354],{"class":1043},[1023,2715,1310],{"class":1033},[1023,2717,2718,2721,2723,2725,2727,2729,2731,2734,2736,2738,2740,2742,2744,2746],{"class":1025,"line":1153},[1023,2719,2720],{"class":1058},"  saleLines",[1023,2722,1423],{"class":1033},[1023,2724,2329],{"class":1043},[1023,2726,1062],{"class":1033},[1023,2728,2334],{"class":1058},[1023,2730,1423],{"class":1033},[1023,2732,2733],{"class":1043}," memoryCardId",[1023,2735,1068],{"class":1033},[1023,2737,2344],{"class":1058},[1023,2739,1423],{"class":1033},[1023,2741,2349],{"class":2170},[1023,2743,1084],{"class":1033},[1023,2745,2354],{"class":1043},[1023,2747,1310],{"class":1033},[1023,2749,2750,2752,2754],{"class":1025,"line":1194},[1023,2751,1096],{"class":1033},[1023,2753,1087],{"class":1043},[1023,2755,1090],{"class":1033},[1023,2757,2758],{"class":1025,"line":1234},[1023,2759,1442],{"emptyLinePlaceholder":1441},[1023,2761,2762,2764,2766,2768,2771,2773,2776,2778,2781,2783,2786,2788,2790,2792,2795],{"class":1025,"line":1245},[1023,2763,1727],{"class":1043},[1023,2765,960],{"class":1033},[1023,2767,1472],{"class":1054},[1023,2769,2770],{"class":1043},"(quote",[1023,2772,960],{"class":1033},[1023,2774,2775],{"class":1043},"saleSubtotal",[1023,2777,1068],{"class":1033},[1023,2779,2780],{"class":1043}," quote",[1023,2782,960],{"class":1033},[1023,2784,2785],{"class":1043},"lineSaleItems[",[1023,2787,983],{"class":2170},[1023,2789,2354],{"class":1043},[1023,2791,1177],{"class":1033},[1023,2793,2794],{"class":1043},"stockAfter)",[1023,2796,1090],{"class":1033},[906,2798,2799,2805,2813,2825,2835],{},[909,2800,2801,2802,960],{},"A secret key may sell into negative stock, as staff can in the app. A publishable key cannot: see ",[757,2803,889],{"href":2804},"#with-a-publishable-key",[909,2806,2807,2808,2810,2811,960],{},"Goods sell at their catalog price and are never discounted or adjusted. Their total is ",[774,2809,2775],{},", already inside ",[774,2812,1996],{},[909,2814,2815,2818,2819,785,2821,2824],{},[774,2816,2817],{},"lineSaleItems"," shows each product with ",[774,2820,991],{},[774,2822,2823],{},"stockAfter",", so you can warn before the stock goes negative.",[909,2826,2827,2828,2830,2831,2834],{},"On ",[774,2829,850],{},", the stock drops when the booking is created and comes back if the booking is cancelled. The goods total joins the booking's ",[774,2832,2833],{},"totalCost"," and its payment.",[909,2836,2837,2840,2841,2843,2844,960],{},[774,2838,2839],{},"bookings.get()"," returns the goods as ",[774,2842,1288],{}," and their sale as ",[774,2845,2846],{},"saleId",[753,2848,2849,2850,2275],{},"To change the goods on an existing booking, use ",[757,2851,146],{"href":147},[2853,2854,2855],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}",{"title":1019,"searchDepth":1037,"depth":1037,"links":2857},[2858,2859,2860,2861,2862,2863,2864],{"id":888,"depth":1037,"text":889},{"id":1276,"depth":1037,"text":826},{"id":1626,"depth":1037,"text":830},{"id":1753,"depth":1037,"text":862},{"id":2041,"depth":1037,"text":865},{"id":2221,"depth":1037,"text":868},{"id":2607,"depth":1037,"text":2608},"List goods for sale and their stock, read and record sales, and sell goods together with a booking through the SDK.","md",null,{"gitbook":2869,"aliases":2873},{"source":2870,"icon":2871,"url":2872},"developer-docs\u002Ftypescript-sdk\u002Fsales.md","cart-shopping","https:\u002F\u002Frequiply.gitbook.io\u002Frequiply-docs\u002Fknowledge\u002Fdeveloper-documentation\u002Ftypescript-sdk\u002Fsales",[2874],"\u002Fknowledge\u002Fdeveloper-documentation\u002Ftypescript-sdk\u002Fsales",{"title":728,"icon":358},{"title":728,"description":2865},"XlN9dx7roqysr21k1Fo6aYkZ_z2FaX-eYATziOhY31g",[2879,2881],{"title":210,"path":725,"stem":726,"description":2880,"icon":358,"children":-1},"Look up and create clients from trusted server integrations.",{"title":732,"path":733,"stem":734,"description":2882,"icon":358,"children":-1},"Read storefront organization information and administrative summaries.",1792586009031]