[{"data":1,"prerenderedAt":1358},["ShallowReactive",2],{"navigation":3,"\u002Ftutorials\u002Fcall-the-api":488,"\u002Ftutorials\u002Fcall-the-api-surround":1353,"\u002Ftutorials\u002Fcall-the-api-reference":1347},[4,28,93,113,135,173],{"title":5,"path":6,"stem":7,"children":8,"icon":27},"Getting started","\u002Fgetting-started","1.getting-started\u002F1.index",[9,12,17,22],{"title":10,"path":6,"stem":7,"icon":11},"Introduction","i-lucide-house",{"title":13,"path":14,"stem":15,"icon":16},"Concepts","\u002Fgetting-started\u002Fconcepts","1.getting-started\u002F2.concepts","i-lucide-shapes",{"title":18,"path":19,"stem":20,"icon":21},"Quickstart in the portal","\u002Fgetting-started\u002Fquickstart","1.getting-started\u002F3.quickstart","i-lucide-mouse-pointer-click",{"title":23,"path":24,"stem":25,"icon":26},"Quickstart with the API","\u002Fgetting-started\u002Fapi-quickstart","1.getting-started\u002F4.api-quickstart","i-lucide-terminal",false,{"title":29,"icon":27,"path":30,"stem":31,"children":32,"page":27},"Guides","\u002Fguides","2.guides",[33,38,43,48,53,58,63,68,73,78,83,88],{"title":34,"path":35,"stem":36,"icon":37},"Products","\u002Fguides\u002Fproducts","2.guides\u002F01.products","i-lucide-package",{"title":39,"path":40,"stem":41,"icon":42},"Pricing","\u002Fguides\u002Fpricing","2.guides\u002F02.pricing","i-lucide-tags",{"title":44,"path":45,"stem":46,"icon":47},"Locations","\u002Fguides\u002Flocations","2.guides\u002F03.locations","i-lucide-map-pin",{"title":49,"path":50,"stem":51,"icon":52},"Inventory","\u002Fguides\u002Finventory","2.guides\u002F04.inventory","i-lucide-warehouse",{"title":54,"path":55,"stem":56,"icon":57},"Suppliers and purchasing","\u002Fguides\u002Fsuppliers-and-purchasing","2.guides\u002F05.suppliers-and-purchasing","i-lucide-truck",{"title":59,"path":60,"stem":61,"icon":62},"Transfer orders","\u002Fguides\u002Ftransfer-orders","2.guides\u002F06.transfer-orders","i-lucide-arrow-left-right",{"title":64,"path":65,"stem":66,"icon":67},"Bills of material","\u002Fguides\u002Fbills-of-material","2.guides\u002F07.bills-of-material","i-lucide-list-tree",{"title":69,"path":70,"stem":71,"icon":72},"Production","\u002Fguides\u002Fproduction","2.guides\u002F08.production","i-lucide-factory",{"title":74,"path":75,"stem":76,"icon":77},"Orders and shipments","\u002Fguides\u002Forders-and-shipments","2.guides\u002F09.orders-and-shipments","i-lucide-shopping-cart",{"title":79,"path":80,"stem":81,"icon":82},"Business hierarchy","\u002Fguides\u002Fbusiness-hierarchy","2.guides\u002F10.business-hierarchy","i-lucide-network",{"title":84,"path":85,"stem":86,"icon":87},"Users and roles","\u002Fguides\u002Fusers-and-roles","2.guides\u002F11.users-and-roles","i-lucide-users",{"title":89,"path":90,"stem":91,"icon":92},"Notifications","\u002Fguides\u002Fnotifications","2.guides\u002F12.notifications","i-lucide-bell",{"title":94,"icon":27,"path":95,"stem":96,"children":97,"page":27},"Planning and AI","\u002Fplanning-and-ai","3.planning-and-ai",[98,103,108],{"title":99,"path":100,"stem":101,"icon":102},"Miridia Planner","\u002Fplanning-and-ai\u002Fmiridia-planner","3.planning-and-ai\u002F1.miridia-planner","i-lucide-chart-line",{"title":104,"path":105,"stem":106,"icon":107},"Miridia AI Studio","\u002Fplanning-and-ai\u002Fai-studio","3.planning-and-ai\u002F2.ai-studio","i-lucide-sparkles",{"title":109,"path":110,"stem":111,"icon":112},"Miridia Console","\u002Fplanning-and-ai\u002Fconsole","3.planning-and-ai\u002F3.console","i-lucide-monitor",{"title":114,"path":115,"stem":116,"children":117,"icon":27},"Integrations","\u002Fintegrations","4.integrations\u002F1.index",[118,121,126,131],{"title":119,"path":115,"stem":116,"icon":120},"Integrations overview","i-lucide-plug",{"title":122,"path":123,"stem":124,"icon":125},"Workflows and events","\u002Fintegrations\u002Fworkflows","4.integrations\u002F2.workflows","i-lucide-workflow",{"title":127,"path":128,"stem":129,"icon":130},"Build a connector","\u002Fintegrations\u002Fconnectors","4.integrations\u002F3.connectors","i-lucide-cable",{"title":132,"path":133,"stem":134,"icon":52},"Data warehouse","\u002Fintegrations\u002Fdata-warehouse","4.integrations\u002F4.data-warehouse",{"title":136,"path":137,"stem":138,"children":139,"icon":27},"Tutorials","\u002Ftutorials","5.tutorials\u002F01.index",[140,143,148,152,157,161,165,169],{"title":141,"path":137,"stem":138,"icon":142},"Video tutorials","i-lucide-circle-play",{"title":144,"path":145,"stem":146,"icon":147},"Set up your business","\u002Ftutorials\u002Fset-up-your-business","5.tutorials\u002F02.set-up-your-business","i-lucide-building-2",{"title":149,"path":150,"stem":151,"icon":42},"Add products and prices","\u002Ftutorials\u002Fadd-products-and-prices","5.tutorials\u002F03.add-products-and-prices",{"title":153,"path":154,"stem":155,"icon":156},"Receive a purchase order","\u002Ftutorials\u002Freceive-a-purchase-order","5.tutorials\u002F04.receive-a-purchase-order","i-lucide-package-check",{"title":158,"path":159,"stem":160,"icon":62},"Replenish a branch","\u002Ftutorials\u002Freplenish-a-branch","5.tutorials\u002F05.replenish-a-branch",{"title":162,"path":163,"stem":164,"icon":72},"Cost and produce a product","\u002Ftutorials\u002Fcost-and-produce","5.tutorials\u002F06.cost-and-produce",{"title":166,"path":167,"stem":168,"icon":125},"Automate with n8n","\u002Ftutorials\u002Fautomate-with-n8n","5.tutorials\u002F07.automate-with-n8n",{"title":170,"path":171,"stem":172,"icon":26},"Call the API","\u002Ftutorials\u002Fcall-the-api","5.tutorials\u002F08.call-the-api",{"title":174,"path":175,"stem":176,"children":177,"icon":27},"Developers","\u002Fdevelopers","6.developers\u002F1.index",[178,181,186,191,234],{"title":179,"path":175,"stem":176,"icon":180},"API overview","i-lucide-braces",{"title":182,"path":183,"stem":184,"icon":185},"Authentication","\u002Fdevelopers\u002Fauthentication","6.developers\u002F2.authentication","i-lucide-key-round",{"title":187,"path":188,"stem":189,"icon":190},"Conventions","\u002Fdevelopers\u002Fconventions","6.developers\u002F3.conventions","i-lucide-list-checks",{"title":192,"icon":27,"path":193,"stem":194,"children":195,"page":27},"Global API","\u002Fdevelopers\u002Fglobal-api","6.developers\u002F4.global-api",[196,199,204,209,214,219,224,229],{"title":182,"path":197,"stem":198,"icon":185},"\u002Fdevelopers\u002Fglobal-api\u002Fauth","6.developers\u002F4.global-api\u002F01.auth",{"title":200,"path":201,"stem":202,"icon":203},"Organizations","\u002Fdevelopers\u002Fglobal-api\u002Forganization","6.developers\u002F4.global-api\u002F02.organization","i-lucide-building",{"title":205,"path":206,"stem":207,"icon":208},"Users","\u002Fdevelopers\u002Fglobal-api\u002Fuser","6.developers\u002F4.global-api\u002F03.user","i-lucide-user",{"title":210,"path":211,"stem":212,"icon":213},"Linked accounts","\u002Fdevelopers\u002Fglobal-api\u002Flinked-accounts","6.developers\u002F4.global-api\u002F04.linked-accounts","i-lucide-link",{"title":215,"path":216,"stem":217,"icon":218},"Subscriptions","\u002Fdevelopers\u002Fglobal-api\u002Fsubscription","6.developers\u002F4.global-api\u002F05.subscription","i-lucide-credit-card",{"title":220,"path":221,"stem":222,"icon":223},"Support","\u002Fdevelopers\u002Fglobal-api\u002Fsupport","6.developers\u002F4.global-api\u002F06.support","i-lucide-life-buoy",{"title":225,"path":226,"stem":227,"icon":228},"Banners","\u002Fdevelopers\u002Fglobal-api\u002Fnotification","6.developers\u002F4.global-api\u002F07.notification","i-lucide-megaphone",{"title":230,"path":231,"stem":232,"icon":233},"Signing keys","\u002Fdevelopers\u002Fglobal-api\u002Fwell-known","6.developers\u002F4.global-api\u002F08.well-known","i-lucide-shield-check",{"title":235,"icon":27,"path":236,"stem":237,"children":238,"page":27},"Core API","\u002Fdevelopers\u002Fcore-api","6.developers\u002F5.core-api",[239,255,272,285,305,327,376,409,436],{"title":240,"icon":37,"path":241,"stem":242,"children":243,"page":27},"Catalogue","\u002Fdevelopers\u002Fcore-api\u002Fcatalogue","6.developers\u002F5.core-api\u002F01.catalogue",[244,247,251],{"title":34,"path":245,"stem":246,"icon":37},"\u002Fdevelopers\u002Fcore-api\u002Fcatalogue\u002Fproducts","6.developers\u002F5.core-api\u002F01.catalogue\u002F01.products",{"title":248,"path":249,"stem":250,"icon":37},"Product groups","\u002Fdevelopers\u002Fcore-api\u002Fcatalogue\u002Fproduct-groups","6.developers\u002F5.core-api\u002F01.catalogue\u002F02.product-groups",{"title":252,"path":253,"stem":254,"icon":37},"Price lists","\u002Fdevelopers\u002Fcore-api\u002Fcatalogue\u002Fprice-lists","6.developers\u002F5.core-api\u002F01.catalogue\u002F03.price-lists",{"title":49,"icon":52,"path":256,"stem":257,"children":258,"page":27},"\u002Fdevelopers\u002Fcore-api\u002Finventory","6.developers\u002F5.core-api\u002F02.inventory",[259,262,266,269],{"title":49,"path":260,"stem":261,"icon":52},"\u002Fdevelopers\u002Fcore-api\u002Finventory\u002Finventory","6.developers\u002F5.core-api\u002F02.inventory\u002F01.inventory",{"title":263,"path":264,"stem":265,"icon":52},"Inventory lots","\u002Fdevelopers\u002Fcore-api\u002Finventory\u002Finventory-lots","6.developers\u002F5.core-api\u002F02.inventory\u002F02.inventory-lots",{"title":44,"path":267,"stem":268,"icon":52},"\u002Fdevelopers\u002Fcore-api\u002Finventory\u002Flocations","6.developers\u002F5.core-api\u002F02.inventory\u002F03.locations",{"title":59,"path":270,"stem":271,"icon":52},"\u002Fdevelopers\u002Fcore-api\u002Finventory\u002Ftransfer-orders","6.developers\u002F5.core-api\u002F02.inventory\u002F04.transfer-orders",{"title":273,"icon":77,"path":274,"stem":275,"children":276,"page":27},"Procurement","\u002Fdevelopers\u002Fcore-api\u002Fprocurement","6.developers\u002F5.core-api\u002F03.procurement",[277,281],{"title":278,"path":279,"stem":280,"icon":77},"Suppliers","\u002Fdevelopers\u002Fcore-api\u002Fprocurement\u002Fsuppliers","6.developers\u002F5.core-api\u002F03.procurement\u002F01.suppliers",{"title":282,"path":283,"stem":284,"icon":77},"Purchase orders","\u002Fdevelopers\u002Fcore-api\u002Fprocurement\u002Fpurchase-orders","6.developers\u002F5.core-api\u002F03.procurement\u002F02.purchase-orders",{"title":286,"icon":72,"path":287,"stem":288,"children":289,"page":27},"Manufacturing","\u002Fdevelopers\u002Fcore-api\u002Fmanufacturing","6.developers\u002F5.core-api\u002F04.manufacturing",[290,293,297,301],{"title":64,"path":291,"stem":292,"icon":72},"\u002Fdevelopers\u002Fcore-api\u002Fmanufacturing\u002Fboms","6.developers\u002F5.core-api\u002F04.manufacturing\u002F01.boms",{"title":294,"path":295,"stem":296,"icon":72},"Production processes","\u002Fdevelopers\u002Fcore-api\u002Fmanufacturing\u002Fproduction-processes","6.developers\u002F5.core-api\u002F04.manufacturing\u002F02.production-processes",{"title":298,"path":299,"stem":300,"icon":72},"Work orders","\u002Fdevelopers\u002Fcore-api\u002Fmanufacturing\u002Fwork-orders","6.developers\u002F5.core-api\u002F04.manufacturing\u002F03.work-orders",{"title":302,"path":303,"stem":304,"icon":72},"Work order templates","\u002Fdevelopers\u002Fcore-api\u002Fmanufacturing\u002Fwork-order-templates","6.developers\u002F5.core-api\u002F04.manufacturing\u002F04.work-order-templates",{"title":306,"icon":307,"path":308,"stem":309,"children":310,"page":27},"Sales","i-lucide-receipt","\u002Fdevelopers\u002Fcore-api\u002Fsales","6.developers\u002F5.core-api\u002F05.sales",[311,315,319,323],{"title":312,"path":313,"stem":314,"icon":307},"Orders","\u002Fdevelopers\u002Fcore-api\u002Fsales\u002Forders","6.developers\u002F5.core-api\u002F05.sales\u002F01.orders",{"title":316,"path":317,"stem":318,"icon":307},"Customers","\u002Fdevelopers\u002Fcore-api\u002Fsales\u002Fcustomers","6.developers\u002F5.core-api\u002F05.sales\u002F02.customers",{"title":320,"path":321,"stem":322,"icon":307},"Customer groups","\u002Fdevelopers\u002Fcore-api\u002Fsales\u002Fcustomer-groups","6.developers\u002F5.core-api\u002F05.sales\u002F03.customer-groups",{"title":324,"path":325,"stem":326,"icon":307},"Sales channels","\u002Fdevelopers\u002Fcore-api\u002Fsales\u002Fsales-channels","6.developers\u002F5.core-api\u002F05.sales\u002F04.sales-channels",{"title":328,"icon":57,"path":329,"stem":330,"children":331,"page":27},"Logistics","\u002Fdevelopers\u002Fcore-api\u002Flogistics","6.developers\u002F5.core-api\u002F06.logistics",[332,336,340,344,348,352,356,360,364,368,372],{"title":333,"path":334,"stem":335,"icon":57},"Shipments","\u002Fdevelopers\u002Fcore-api\u002Flogistics\u002Fshipment","6.developers\u002F5.core-api\u002F06.logistics\u002F01.shipment",{"title":337,"path":338,"stem":339,"icon":57},"Carriers","\u002Fdevelopers\u002Fcore-api\u002Flogistics\u002Fcarriers","6.developers\u002F5.core-api\u002F06.logistics\u002F02.carriers",{"title":341,"path":342,"stem":343,"icon":57},"Rates","\u002Fdevelopers\u002Fcore-api\u002Flogistics\u002Frates","6.developers\u002F5.core-api\u002F06.logistics\u002F03.rates",{"title":345,"path":346,"stem":347,"icon":57},"Waybills","\u002Fdevelopers\u002Fcore-api\u002Flogistics\u002Fwaybill","6.developers\u002F5.core-api\u002F06.logistics\u002F04.waybill",{"title":349,"path":350,"stem":351,"icon":57},"Delivery plans","\u002Fdevelopers\u002Fcore-api\u002Flogistics\u002Fdelivery-plans","6.developers\u002F5.core-api\u002F06.logistics\u002F05.delivery-plans",{"title":353,"path":354,"stem":355,"icon":57},"Delivery zones","\u002Fdevelopers\u002Fcore-api\u002Flogistics\u002Fdelivery-zones","6.developers\u002F5.core-api\u002F06.logistics\u002F06.delivery-zones",{"title":357,"path":358,"stem":359,"icon":57},"Vehicles","\u002Fdevelopers\u002Fcore-api\u002Flogistics\u002Fvehicle","6.developers\u002F5.core-api\u002F06.logistics\u002F07.vehicle",{"title":361,"path":362,"stem":363,"icon":57},"Drivers","\u002Fdevelopers\u002Fcore-api\u002Flogistics\u002Fdriver","6.developers\u002F5.core-api\u002F06.logistics\u002F08.driver",{"title":365,"path":366,"stem":367,"icon":57},"Dimension presets","\u002Fdevelopers\u002Fcore-api\u002Flogistics\u002Fdimension-preset","6.developers\u002F5.core-api\u002F06.logistics\u002F09.dimension-preset",{"title":369,"path":370,"stem":371,"icon":57},"Fulfilment","\u002Fdevelopers\u002Fcore-api\u002Flogistics\u002Ffulfillment","6.developers\u002F5.core-api\u002F06.logistics\u002F10.fulfillment",{"title":373,"path":374,"stem":375,"icon":57},"Schedules","\u002Fdevelopers\u002Fcore-api\u002Flogistics\u002Fschedule","6.developers\u002F5.core-api\u002F06.logistics\u002F11.schedule",{"title":377,"icon":102,"path":378,"stem":379,"children":380,"page":27},"Insights","\u002Fdevelopers\u002Fcore-api\u002Finsights","6.developers\u002F5.core-api\u002F07.insights",[381,385,389,393,397,401,405],{"title":382,"path":383,"stem":384,"icon":102},"Dashboard insights","\u002Fdevelopers\u002Fcore-api\u002Finsights\u002Fdashboard-insights","6.developers\u002F5.core-api\u002F07.insights\u002F01.dashboard-insights",{"title":386,"path":387,"stem":388,"icon":102},"Sales insights","\u002Fdevelopers\u002Fcore-api\u002Finsights\u002Fsales-insights","6.developers\u002F5.core-api\u002F07.insights\u002F02.sales-insights",{"title":390,"path":391,"stem":392,"icon":102},"Inventory insights","\u002Fdevelopers\u002Fcore-api\u002Finsights\u002Finventory-insights","6.developers\u002F5.core-api\u002F07.insights\u002F03.inventory-insights",{"title":394,"path":395,"stem":396,"icon":102},"Location insights","\u002Fdevelopers\u002Fcore-api\u002Finsights\u002Flocation-insights","6.developers\u002F5.core-api\u002F07.insights\u002F04.location-insights",{"title":398,"path":399,"stem":400,"icon":102},"Supplier insights","\u002Fdevelopers\u002Fcore-api\u002Finsights\u002Fsupplier-insights","6.developers\u002F5.core-api\u002F07.insights\u002F05.supplier-insights",{"title":402,"path":403,"stem":404,"icon":102},"Network insights","\u002Fdevelopers\u002Fcore-api\u002Finsights\u002Fnetwork-insights","6.developers\u002F5.core-api\u002F07.insights\u002F06.network-insights",{"title":406,"path":407,"stem":408,"icon":102},"AI Studio","\u002Fdevelopers\u002Fcore-api\u002Finsights\u002Fai-studio","6.developers\u002F5.core-api\u002F07.insights\u002F07.ai-studio",{"title":114,"icon":120,"path":410,"stem":411,"children":412,"page":27},"\u002Fdevelopers\u002Fcore-api\u002Fintegrations","6.developers\u002F5.core-api\u002F08.integrations",[413,416,420,424,428,432],{"title":114,"path":414,"stem":415,"icon":120},"\u002Fdevelopers\u002Fcore-api\u002Fintegrations\u002Fintegrations","6.developers\u002F5.core-api\u002F08.integrations\u002F01.integrations",{"title":417,"path":418,"stem":419,"icon":120},"Workflows","\u002Fdevelopers\u002Fcore-api\u002Fintegrations\u002Fworkflow","6.developers\u002F5.core-api\u002F08.integrations\u002F02.workflow",{"title":421,"path":422,"stem":423,"icon":120},"Triggers","\u002Fdevelopers\u002Fcore-api\u002Fintegrations\u002Ftriggers","6.developers\u002F5.core-api\u002F08.integrations\u002F03.triggers",{"title":425,"path":426,"stem":427,"icon":120},"Order integration","\u002Fdevelopers\u002Fcore-api\u002Fintegrations\u002Forder-integration","6.developers\u002F5.core-api\u002F08.integrations\u002F04.order-integration",{"title":429,"path":430,"stem":431,"icon":120},"Product integration","\u002Fdevelopers\u002Fcore-api\u002Fintegrations\u002Fproduct-integration","6.developers\u002F5.core-api\u002F08.integrations\u002F05.product-integration",{"title":433,"path":434,"stem":435,"icon":120},"Shipment integration","\u002Fdevelopers\u002Fcore-api\u002Fintegrations\u002Fshipment-integration","6.developers\u002F5.core-api\u002F08.integrations\u002F06.shipment-integration",{"title":437,"icon":438,"path":439,"stem":440,"children":441,"page":27},"Administration","i-lucide-settings","\u002Fdevelopers\u002Fcore-api\u002Fadministration","6.developers\u002F5.core-api\u002F09.administration",[442,446,450,454,458,462,465,468,472,476,480,484],{"title":443,"path":444,"stem":445,"icon":438},"Businesses","\u002Fdevelopers\u002Fcore-api\u002Fadministration\u002Fbusiness","6.developers\u002F5.core-api\u002F09.administration\u002F01.business",{"title":447,"path":448,"stem":449,"icon":438},"Configurations","\u002Fdevelopers\u002Fcore-api\u002Fadministration\u002Fconfigurations","6.developers\u002F5.core-api\u002F09.administration\u002F02.configurations",{"title":451,"path":452,"stem":453,"icon":438},"Roles","\u002Fdevelopers\u002Fcore-api\u002Fadministration\u002Froles","6.developers\u002F5.core-api\u002F09.administration\u002F03.roles",{"title":455,"path":456,"stem":457,"icon":438},"Teams","\u002Fdevelopers\u002Fcore-api\u002Fadministration\u002Fteams","6.developers\u002F5.core-api\u002F09.administration\u002F04.teams",{"title":459,"path":460,"stem":461,"icon":438},"Employees","\u002Fdevelopers\u002Fcore-api\u002Fadministration\u002Femployee","6.developers\u002F5.core-api\u002F09.administration\u002F05.employee",{"title":205,"path":463,"stem":464,"icon":438},"\u002Fdevelopers\u002Fcore-api\u002Fadministration\u002Fuser","6.developers\u002F5.core-api\u002F09.administration\u002F06.user",{"title":89,"path":466,"stem":467,"icon":438},"\u002Fdevelopers\u002Fcore-api\u002Fadministration\u002Fnotification","6.developers\u002F5.core-api\u002F09.administration\u002F07.notification",{"title":469,"path":470,"stem":471,"icon":438},"Push notifications","\u002Fdevelopers\u002Fcore-api\u002Fadministration\u002Fpush-notification","6.developers\u002F5.core-api\u002F09.administration\u002F08.push-notification",{"title":473,"path":474,"stem":475,"icon":438},"Files","\u002Fdevelopers\u002Fcore-api\u002Fadministration\u002Ffiles","6.developers\u002F5.core-api\u002F09.administration\u002F09.files",{"title":477,"path":478,"stem":479,"icon":438},"Lookups","\u002Fdevelopers\u002Fcore-api\u002Fadministration\u002Flookup","6.developers\u002F5.core-api\u002F09.administration\u002F10.lookup",{"title":481,"path":482,"stem":483,"icon":438},"Addresses","\u002Fdevelopers\u002Fcore-api\u002Fadministration\u002Faddress","6.developers\u002F5.core-api\u002F09.administration\u002F11.address",{"title":485,"path":486,"stem":487,"icon":438},"PDF generator","\u002Fdevelopers\u002Fcore-api\u002Fadministration\u002Fpdf-generator","6.developers\u002F5.core-api\u002F09.administration\u002F12.pdf-generator",{"id":489,"title":170,"body":490,"description":1345,"extension":1346,"links":1347,"meta":1348,"navigation":1349,"path":171,"reference":27,"seo":1350,"sitemap":1351,"stem":172,"__hash__":1352},"docs\u002F5.tutorials\u002F08.call-the-api.md",{"type":491,"value":492,"toc":1340},"minimark",[493,499,503,528,531,536,558,562,1311,1315,1336],[494,495],"video-embed",{":placeholder":496,"id":497,"title":498},"true","_eQxomah-nA","Call the Miridia API",[500,501,502],"p",{},"Miridia has two APIs:",[504,505,506,519],"ul",{},[507,508,509,510,513,514,518],"li",{},"The ",[511,512,192],"strong",{},", at ",[515,516,517],"code",{},"https:\u002F\u002Fglobal.miridia.io",", handles accounts, login, and API keys.",[507,520,509,521,513,524,527],{},[511,522,523],{},"core API",[515,525,526],{},"https:\u002F\u002Fapi.miridia.io",", holds your business data: products, orders, stock, and more.",[500,529,530],{},"In this tutorial you log in, create an API key, and use the key to list your products.",[532,533,535],"h2",{"id":534},"what-you-need","What you need",[504,537,538,545,548],{},[507,539,540,541,544],{},"A Miridia user that is an ",[511,542,543],{},"owner"," of the organisation. Only an owner can create an API key.",[507,546,547],{},"The identifier of your business. You can find it in the business settings of the portal.",[507,549,550,553,554,557],{},[515,551,552],{},"curl"," in a terminal. The examples use Bash. In PowerShell, use ",[515,555,556],{},"curl.exe",".",[532,559,561],{"id":560},"steps","Steps",[560,563,565,570,573,635,638,864,868,883,935,938,942,945,997,1003,1006,1036,1045,1049,1056,1088,1091,1252,1256,1263,1305],{"level":564},"3",[566,567,569],"h3",{"id":568},"log-in","Log in",[500,571,572],{},"Send your email address and your password to the Global API.",[574,575,581],"pre",{"className":576,"code":577,"filename":578,"language":579,"meta":580,"style":580},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","curl -s https:\u002F\u002Fglobal.miridia.io\u002Fapi\u002Fauth\u002Flogin \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"email\": \"you@example.com\", \"password\": \"\u003Cyour-password>\" }'\n","Terminal","bash","",[515,582,583,602,620],{"__ignoreMap":580},[584,585,588,591,595,598],"span",{"class":586,"line":587},"line",1,[584,589,552],{"class":590},"sBMFI",[584,592,594],{"class":593},"sfazB"," -s",[584,596,597],{"class":593}," https:\u002F\u002Fglobal.miridia.io\u002Fapi\u002Fauth\u002Flogin",[584,599,601],{"class":600},"sTEyZ"," \\\n",[584,603,605,608,612,615,618],{"class":586,"line":604},2,[584,606,607],{"class":593},"  -H",[584,609,611],{"class":610},"sMK4o"," \"",[584,613,614],{"class":593},"Content-Type: application\u002Fjson",[584,616,617],{"class":610},"\"",[584,619,601],{"class":600},[584,621,623,626,629,632],{"class":586,"line":622},3,[584,624,625],{"class":593},"  -d",[584,627,628],{"class":610}," '",[584,630,631],{"class":593},"{ \"email\": \"you@example.com\", \"password\": \"\u003Cyour-password>\" }",[584,633,634],{"class":610},"'\n",[500,636,637],{},"If your user belongs to one organisation, the response contains a session with an access token:",[574,639,644],{"className":640,"code":641,"filename":642,"language":643,"meta":580,"style":580},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"data\": {\n    \"requiresOrganizationSelection\": false,\n    \"session\": {\n      \"accessToken\": \"\u003Caccess-token>\",\n      \"expiresAtUtc\": \"2026-09-29T14:00:00Z\",\n      \"organization\": { \"id\": \"\u003Corganization-id>\", \"slug\": \"example-foods\", \"name\": \"Example Foods\" }\n    }\n  },\n  \"statusCode\": 200,\n  \"messages\": []\n}\n","Response","json",[515,645,646,651,668,683,697,721,742,814,820,826,843,858],{"__ignoreMap":580},[584,647,648],{"class":586,"line":587},[584,649,650],{"class":610},"{\n",[584,652,653,656,660,662,665],{"class":586,"line":604},[584,654,655],{"class":610},"  \"",[584,657,659],{"class":658},"spNyl","data",[584,661,617],{"class":610},[584,663,664],{"class":610},":",[584,666,667],{"class":610}," {\n",[584,669,670,673,676,678,680],{"class":586,"line":622},[584,671,672],{"class":610},"    \"",[584,674,675],{"class":590},"requiresOrganizationSelection",[584,677,617],{"class":610},[584,679,664],{"class":610},[584,681,682],{"class":610}," false,\n",[584,684,686,688,691,693,695],{"class":586,"line":685},4,[584,687,672],{"class":610},[584,689,690],{"class":590},"session",[584,692,617],{"class":610},[584,694,664],{"class":610},[584,696,667],{"class":610},[584,698,700,703,707,709,711,713,716,718],{"class":586,"line":699},5,[584,701,702],{"class":610},"      \"",[584,704,706],{"class":705},"sbssI","accessToken",[584,708,617],{"class":610},[584,710,664],{"class":610},[584,712,611],{"class":610},[584,714,715],{"class":593},"\u003Caccess-token>",[584,717,617],{"class":610},[584,719,720],{"class":610},",\n",[584,722,724,726,729,731,733,735,738,740],{"class":586,"line":723},6,[584,725,702],{"class":610},[584,727,728],{"class":705},"expiresAtUtc",[584,730,617],{"class":610},[584,732,664],{"class":610},[584,734,611],{"class":610},[584,736,737],{"class":593},"2026-09-29T14:00:00Z",[584,739,617],{"class":610},[584,741,720],{"class":610},[584,743,745,747,750,752,754,757,759,763,765,767,769,772,774,777,779,782,784,786,788,791,793,795,797,800,802,804,806,809,811],{"class":586,"line":744},7,[584,746,702],{"class":610},[584,748,749],{"class":705},"organization",[584,751,617],{"class":610},[584,753,664],{"class":610},[584,755,756],{"class":610}," {",[584,758,611],{"class":610},[584,760,762],{"class":761},"swJcz","id",[584,764,617],{"class":610},[584,766,664],{"class":610},[584,768,611],{"class":610},[584,770,771],{"class":593},"\u003Corganization-id>",[584,773,617],{"class":610},[584,775,776],{"class":610},",",[584,778,611],{"class":610},[584,780,781],{"class":761},"slug",[584,783,617],{"class":610},[584,785,664],{"class":610},[584,787,611],{"class":610},[584,789,790],{"class":593},"example-foods",[584,792,617],{"class":610},[584,794,776],{"class":610},[584,796,611],{"class":610},[584,798,799],{"class":761},"name",[584,801,617],{"class":610},[584,803,664],{"class":610},[584,805,611],{"class":610},[584,807,808],{"class":593},"Example Foods",[584,810,617],{"class":610},[584,812,813],{"class":610}," }\n",[584,815,817],{"class":586,"line":816},8,[584,818,819],{"class":610},"    }\n",[584,821,823],{"class":586,"line":822},9,[584,824,825],{"class":610},"  },\n",[584,827,829,831,834,836,838,841],{"class":586,"line":828},10,[584,830,655],{"class":610},[584,832,833],{"class":658},"statusCode",[584,835,617],{"class":610},[584,837,664],{"class":610},[584,839,840],{"class":705}," 200",[584,842,720],{"class":610},[584,844,846,848,851,853,855],{"class":586,"line":845},11,[584,847,655],{"class":610},[584,849,850],{"class":658},"messages",[584,852,617],{"class":610},[584,854,664],{"class":610},[584,856,857],{"class":610}," []\n",[584,859,861],{"class":586,"line":860},12,[584,862,863],{"class":610},"}\n",[566,865,867],{"id":866},"select-an-organisation-if-necessary","Select an organisation, if necessary",[500,869,870,871,874,875,878,879,882],{},"If your user belongs to more than one organisation, the response has ",[515,872,873],{},"requiresOrganizationSelection: true",", a short-lived ",[515,876,877],{},"selectionToken",", and a list of ",[515,880,881],{},"organizations",". Send the selection token as a bearer token, with the organisation that you want:",[574,884,886],{"className":576,"code":885,"filename":578,"language":579,"meta":580,"style":580},"curl -s https:\u002F\u002Fglobal.miridia.io\u002Fapi\u002Fauth\u002Fselect-organization \\\n  -H \"Authorization: Bearer \u003Cselection-token>\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"organizationId\": \"\u003Corganization-id>\" }'\n",[515,887,888,899,912,924],{"__ignoreMap":580},[584,889,890,892,894,897],{"class":586,"line":587},[584,891,552],{"class":590},[584,893,594],{"class":593},[584,895,896],{"class":593}," https:\u002F\u002Fglobal.miridia.io\u002Fapi\u002Fauth\u002Fselect-organization",[584,898,601],{"class":600},[584,900,901,903,905,908,910],{"class":586,"line":604},[584,902,607],{"class":593},[584,904,611],{"class":610},[584,906,907],{"class":593},"Authorization: Bearer \u003Cselection-token>",[584,909,617],{"class":610},[584,911,601],{"class":600},[584,913,914,916,918,920,922],{"class":586,"line":622},[584,915,607],{"class":593},[584,917,611],{"class":610},[584,919,614],{"class":593},[584,921,617],{"class":610},[584,923,601],{"class":600},[584,925,926,928,930,933],{"class":586,"line":685},[584,927,625],{"class":593},[584,929,628],{"class":610},[584,931,932],{"class":593},"{ \"organizationId\": \"\u003Corganization-id>\" }",[584,934,634],{"class":610},[500,936,937],{},"The response contains the session with the access token.",[566,939,941],{"id":940},"create-an-api-key","Create an API key",[500,943,944],{},"An access token expires after a short time. For a script or an integration, create an API key. Send the access token and the business that the key acts for:",[574,946,948],{"className":576,"code":947,"filename":578,"language":579,"meta":580,"style":580},"curl -s https:\u002F\u002Fglobal.miridia.io\u002Fapi\u002Fauth\u002Ftokens \\\n  -H \"Authorization: Bearer \u003Caccess-token>\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"label\": \"Stock report script\", \"businessId\": \"\u003Cbusiness-id>\", \"ttlMinutes\": 525600 }'\n",[515,949,950,961,974,986],{"__ignoreMap":580},[584,951,952,954,956,959],{"class":586,"line":587},[584,953,552],{"class":590},[584,955,594],{"class":593},[584,957,958],{"class":593}," https:\u002F\u002Fglobal.miridia.io\u002Fapi\u002Fauth\u002Ftokens",[584,960,601],{"class":600},[584,962,963,965,967,970,972],{"class":586,"line":604},[584,964,607],{"class":593},[584,966,611],{"class":610},[584,968,969],{"class":593},"Authorization: Bearer \u003Caccess-token>",[584,971,617],{"class":610},[584,973,601],{"class":600},[584,975,976,978,980,982,984],{"class":586,"line":622},[584,977,607],{"class":593},[584,979,611],{"class":610},[584,981,614],{"class":593},[584,983,617],{"class":610},[584,985,601],{"class":600},[584,987,988,990,992,995],{"class":586,"line":685},[584,989,625],{"class":593},[584,991,628],{"class":610},[584,993,994],{"class":593},"{ \"label\": \"Stock report script\", \"businessId\": \"\u003Cbusiness-id>\", \"ttlMinutes\": 525600 }",[584,996,634],{"class":610},[500,998,509,999,1002],{},[515,1000,1001],{},"token"," field of the response is the API key. Copy it now and keep it in a secret store.",[500,1004,1005],{},"The request has these fields:",[1007,1008,1009,1017,1023,1030],"field-group",{},[1010,1011,1014],"field",{"name":1012,"type":1013,":required":496},"businessId","string",[500,1015,1016],{},"The business that the key acts for.",[1010,1018,1020],{"name":1019,"type":1013},"label",[500,1021,1022],{},"A name that helps you find the key later.",[1010,1024,1027],{"name":1025,"type":1026},"ttlMinutes","number",[500,1028,1029],{},"The life of the key, in minutes. 525600 minutes is one year.",[1010,1031,1033],{"name":1032,"type":1013},"scopes",[500,1034,1035],{},"Optional. A permission grant that limits what the key can do. If you omit it, the key has no limit.",[1037,1038,1039],"warning",{},[500,1040,1041,1042,557],{},"An API key gives access to the data of your business. Do not put it in source control, in a browser, or in a mobile app. Delete a key that you no longer use with ",[515,1043,1044],{},"DELETE \u002Fapi\u002Fauth\u002Ftokens\u002F{id}",[566,1046,1048],{"id":1047},"list-your-products","List your products",[500,1050,1051,1052,1055],{},"Send the API key in the ",[515,1053,1054],{},"x-dispatch-api-key"," header to the core API:",[574,1057,1059],{"className":576,"code":1058,"filename":578,"language":579,"meta":580,"style":580},"curl -s \"https:\u002F\u002Fapi.miridia.io\u002Fapi\u002Fv1\u002FProducts?Page=1&PageSize=20\" \\\n  -H \"x-dispatch-api-key: \u003Capi-key>\"\n",[515,1060,1061,1076],{"__ignoreMap":580},[584,1062,1063,1065,1067,1069,1072,1074],{"class":586,"line":587},[584,1064,552],{"class":590},[584,1066,594],{"class":593},[584,1068,611],{"class":610},[584,1070,1071],{"class":593},"https:\u002F\u002Fapi.miridia.io\u002Fapi\u002Fv1\u002FProducts?Page=1&PageSize=20",[584,1073,617],{"class":610},[584,1075,601],{"class":600},[584,1077,1078,1080,1082,1085],{"class":586,"line":604},[584,1079,607],{"class":593},[584,1081,611],{"class":610},[584,1083,1084],{"class":593},"x-dispatch-api-key: \u003Capi-key>",[584,1086,1087],{"class":610},"\"\n",[500,1089,1090],{},"The response is a page of products:",[574,1092,1094],{"className":640,"code":1093,"filename":642,"language":643,"meta":580,"style":580},"{\n  \"data\": [ { \"id\": \"\u003Cproduct-id>\", \"title\": \"Vanilla ice cream, 500 ml\", \"sku\": \"VAN-500\" } ],\n  \"count\": 1,\n  \"totalCount\": 1,\n  \"page\": 1,\n  \"pageSize\": 20,\n  \"hasMore\": false\n}\n",[515,1095,1096,1100,1172,1188,1203,1218,1234,1248],{"__ignoreMap":580},[584,1097,1098],{"class":586,"line":587},[584,1099,650],{"class":610},[584,1101,1102,1104,1106,1108,1110,1113,1115,1117,1119,1121,1123,1125,1128,1130,1132,1134,1137,1139,1141,1143,1146,1148,1150,1152,1155,1157,1159,1161,1164,1166,1169],{"class":586,"line":604},[584,1103,655],{"class":610},[584,1105,659],{"class":658},[584,1107,617],{"class":610},[584,1109,664],{"class":610},[584,1111,1112],{"class":610}," [",[584,1114,756],{"class":610},[584,1116,611],{"class":610},[584,1118,762],{"class":590},[584,1120,617],{"class":610},[584,1122,664],{"class":610},[584,1124,611],{"class":610},[584,1126,1127],{"class":593},"\u003Cproduct-id>",[584,1129,617],{"class":610},[584,1131,776],{"class":610},[584,1133,611],{"class":610},[584,1135,1136],{"class":590},"title",[584,1138,617],{"class":610},[584,1140,664],{"class":610},[584,1142,611],{"class":610},[584,1144,1145],{"class":593},"Vanilla ice cream, 500 ml",[584,1147,617],{"class":610},[584,1149,776],{"class":610},[584,1151,611],{"class":610},[584,1153,1154],{"class":590},"sku",[584,1156,617],{"class":610},[584,1158,664],{"class":610},[584,1160,611],{"class":610},[584,1162,1163],{"class":593},"VAN-500",[584,1165,617],{"class":610},[584,1167,1168],{"class":610}," }",[584,1170,1171],{"class":610}," ],\n",[584,1173,1174,1176,1179,1181,1183,1186],{"class":586,"line":622},[584,1175,655],{"class":610},[584,1177,1178],{"class":658},"count",[584,1180,617],{"class":610},[584,1182,664],{"class":610},[584,1184,1185],{"class":705}," 1",[584,1187,720],{"class":610},[584,1189,1190,1192,1195,1197,1199,1201],{"class":586,"line":685},[584,1191,655],{"class":610},[584,1193,1194],{"class":658},"totalCount",[584,1196,617],{"class":610},[584,1198,664],{"class":610},[584,1200,1185],{"class":705},[584,1202,720],{"class":610},[584,1204,1205,1207,1210,1212,1214,1216],{"class":586,"line":699},[584,1206,655],{"class":610},[584,1208,1209],{"class":658},"page",[584,1211,617],{"class":610},[584,1213,664],{"class":610},[584,1215,1185],{"class":705},[584,1217,720],{"class":610},[584,1219,1220,1222,1225,1227,1229,1232],{"class":586,"line":723},[584,1221,655],{"class":610},[584,1223,1224],{"class":658},"pageSize",[584,1226,617],{"class":610},[584,1228,664],{"class":610},[584,1230,1231],{"class":705}," 20",[584,1233,720],{"class":610},[584,1235,1236,1238,1241,1243,1245],{"class":586,"line":744},[584,1237,655],{"class":610},[584,1239,1240],{"class":658},"hasMore",[584,1242,617],{"class":610},[584,1244,664],{"class":610},[584,1246,1247],{"class":610}," false\n",[584,1249,1250],{"class":586,"line":816},[584,1251,863],{"class":610},[566,1253,1255],{"id":1254},"use-the-access-token-instead","Use the access token instead",[500,1257,1258,1259,1262],{},"You can also call the core API with the access token from the login. Then you must send the business in the ",[515,1260,1261],{},"X-Business-Id"," header, because a user can belong to more than one business:",[574,1264,1266],{"className":576,"code":1265,"filename":578,"language":579,"meta":580,"style":580},"curl -s \"https:\u002F\u002Fapi.miridia.io\u002Fapi\u002Fv1\u002FProducts?Page=1&PageSize=20\" \\\n  -H \"Authorization: Bearer \u003Caccess-token>\" \\\n  -H \"X-Business-Id: \u003Cbusiness-id>\"\n",[515,1267,1268,1282,1294],{"__ignoreMap":580},[584,1269,1270,1272,1274,1276,1278,1280],{"class":586,"line":587},[584,1271,552],{"class":590},[584,1273,594],{"class":593},[584,1275,611],{"class":610},[584,1277,1071],{"class":593},[584,1279,617],{"class":610},[584,1281,601],{"class":600},[584,1283,1284,1286,1288,1290,1292],{"class":586,"line":604},[584,1285,607],{"class":593},[584,1287,611],{"class":610},[584,1289,969],{"class":593},[584,1291,617],{"class":610},[584,1293,601],{"class":600},[584,1295,1296,1298,1300,1303],{"class":586,"line":622},[584,1297,607],{"class":593},[584,1299,611],{"class":610},[584,1301,1302],{"class":593},"X-Business-Id: \u003Cbusiness-id>",[584,1304,1087],{"class":610},[500,1306,1307,1308,557],{},"If the header is missing, or the user cannot access the business, the API returns ",[515,1309,1310],{},"401",[532,1312,1314],{"id":1313},"next-steps","Next steps",[504,1316,1317,1322,1327,1332],{},[507,1318,1319],{},[1320,1321,182],"a",{"href":183},[507,1323,1324],{},[1320,1325,1326],{"href":245},"Products reference",[507,1328,1329],{},[1320,1330,1331],{"href":197},"Auth reference",[507,1333,1334],{},[1320,1335,127],{"href":128},[1337,1338,1339],"style",{},"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 pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}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 .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}",{"title":580,"searchDepth":587,"depth":604,"links":1341},[1342,1343,1344],{"id":534,"depth":604,"text":535},{"id":560,"depth":604,"text":561},{"id":1313,"depth":604,"text":1314},"Log in to the Global API, create an API key, and list your products from the core API with curl.","md",null,{},{"icon":26},{"title":170,"description":1345},{"loc":171},"JQb-gArWEthcQVwDgVD2dVS15R1qmRYe3lZm52G59VE",[1354,1356],{"title":166,"path":167,"stem":168,"description":1355,"icon":125,"children":-1},"Connect n8n to Miridia and send a Telegram or email message each time an order is cancelled.",{"title":179,"path":175,"stem":176,"description":1357,"icon":180,"children":-1},"The two Miridia APIs, their hosts, and how a request finds your organisation and your business.",1790689638801]