[{"data":1,"prerenderedAt":1178},["ShallowReactive",2],{"navigation":3,"\u002Ftutorials\u002Fcost-and-produce":488,"\u002Ftutorials\u002Fcost-and-produce-surround":1173,"\u002Ftutorials\u002Fcost-and-produce-reference":1167},[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":162,"body":490,"description":1165,"extension":1166,"links":1167,"meta":1168,"navigation":1169,"path":163,"reference":27,"seo":1170,"sitemap":1171,"stem":164,"__hash__":1172},"docs\u002F5.tutorials\u002F06.cost-and-produce.md",{"type":491,"value":492,"toc":1160},"minimark",[493,498,502,507,526,530,688,1136,1140,1156],[494,495],"video-embed",{":placeholder":496,"id":497,"title":162},"true","_eQxomah-nA",[499,500,501],"p",{},"In this tutorial you write the recipe of a product, calculate what one unit costs, and record a production run. When the run is complete, Miridia takes the components out of stock and puts the finished goods into stock.",[503,504,506],"h2",{"id":505},"what-you-need","What you need",[508,509,510,514,521],"ul",{},[511,512,513],"li",{},"A finished good, for example \"Vanilla ice cream, 500 ml\".",[511,515,516,517,520],{},"Two or more raw materials with a purchase price, for example milk, cream, and sugar. Read ",[518,519,149],"a",{"href":150},".",[511,522,523,524,520],{},"Stock of the raw materials at your production location. Read ",[518,525,153],{"href":154},[503,527,529],{"id":528},"steps","Steps",[528,531,533,538,546,561,570,574,581,585,592,612,615,619,626,630,633,636,640,647,650,654,657,661,664,667,685],{"level":532},"3",[534,535,537],"h3",{"id":536},"create-the-bill-of-materials","Create the bill of materials",[499,539,540,541,545],{},"Open the finished good and create a ",[542,543,544],"strong",{},"bill of materials"," (BOM). Select the BOM type:",[508,547,548,555],{},[511,549,550,554],{},[551,552,553],"code",{},"Assembly",": the components are consumed to make a new product.",[511,556,557,560],{},[551,558,559],{},"Kit",": the components are packed together and stay separate items in stock.",[499,562,563,564,566,567,520],{},"Select ",[551,565,553],{},". Enter the output quantity, for example 1 unit. The new BOM has the status ",[551,568,569],{},"Draft",[534,571,573],{"id":572},"add-the-components","Add the components",[499,575,576,577,580],{},"Add a line for each raw material. Enter the quantity for the output quantity, and the unit of measure. Enter a ",[542,578,579],{},"scrap factor"," for a material that you lose in production. For example, a scrap factor of 5% on 0.3 l of cream means that the cost uses 0.315 l.",[534,582,584],{"id":583},"add-a-labour-cost-line","Add a labour cost line",[499,586,587,588,591],{},"Costs that are not materials go on ",[542,589,590],{},"cost lines",". Add a line for labour. Select the cost type:",[508,593,594,600,606],{},[511,595,596,599],{},[551,597,598],{},"FixedPerUnit",": a fixed amount for each unit, for example R2.50 of labour.",[511,601,602,605],{},[551,603,604],{},"Percentage",": a percentage of the material cost, for example 3% for inbound freight.",[511,607,608,611],{},[551,609,610],{},"HourlyRate",": an hourly rate.",[499,613,614],{},"You can also enter a general ledger account code. An accounting integration uses it.",[534,616,618],{"id":617},"activate-the-bom","Activate the BOM",[499,620,621,622,625],{},"Activate the BOM. The active BOM is the current recipe of the product. When you activate a new revision later, the old revision becomes ",[551,623,624],{},"Superseded",". Miridia keeps it, so that you can read the history.",[534,627,629],{"id":628},"calculate-the-cost","Calculate the cost",[499,631,632],{},"Open the cost of the BOM. Miridia walks each line, reads the purchase price of each component from its price history, adds the scrap, and adds the cost lines. The result is the cost of one output quantity.",[499,634,635],{},"Select an earlier date to see the cost on that date. Miridia then uses the prices that were valid on that date. Thus you can see which component made the cost change.",[534,637,639],{"id":638},"create-a-work-order","Create a work order",[499,641,642,643,646],{},"Create a ",[542,644,645],{},"work order"," for the finished good. Enter a reference, the production location, the planned quantity, for example 200 units, and the scheduled start. You can assign the work order to one person. That person gets a notification.",[499,648,649],{},"The work order takes a copy of the active BOM. If the recipe changes later, this work order does not change.",[534,651,653],{"id":652},"start-the-work-order","Start the work order",[499,655,656],{},"When production starts, start the work order.",[534,658,660],{"id":659},"complete-the-work-order","Complete the work order",[499,662,663],{},"When production ends, complete the work order. Enter the quantity produced and the quantity scrapped, with a reason for the scrap. If you used a different quantity of a material than the plan, enter the actual quantity. Miridia uses the planned quantity for each material that you do not enter.",[499,665,666],{},"Miridia then:",[508,668,669,676,682],{},[511,670,671,672,675],{},"Adds an ",[542,673,674],{},"assembly consumption"," movement for each component.",[511,677,671,678,681],{},[542,679,680],{},"assembly production"," movement for the finished good at the production location.",[511,683,684],{},"Calculates the total cost of the run and the cost of each unit, from what the components actually cost.",[499,686,687],{},"The business gets a notification that the work order is complete.",[689,690,692,780,1059,1126],"collapsible",{"name":691},"API calls",[693,694,695,708],"table",{},[696,697,698],"thead",{},[699,700,701,705],"tr",{},[702,703,704],"th",{},"Action",[702,706,707],{},"Request",[709,710,711,722,732,742,751,760,770],"tbody",{},[699,712,713,717],{},[714,715,716],"td",{},"Create a BOM",[714,718,719],{},[551,720,721],{},"POST \u002Fapi\u002Fv1\u002Fbom",[699,723,724,727],{},[714,725,726],{},"Add a component line",[714,728,729],{},[551,730,731],{},"POST \u002Fapi\u002Fv1\u002Fbom\u002F{bomId}\u002Fline-items",[699,733,734,737],{},[714,735,736],{},"Activate a BOM",[714,738,739],{},[551,740,741],{},"POST \u002Fapi\u002Fv1\u002Fbom\u002F{bomId}\u002Factivate",[699,743,744,746],{},[714,745,629],{},[714,747,748],{},[551,749,750],{},"GET \u002Fapi\u002Fv1\u002Fbom\u002F{bomId}\u002Fcost?asOfDate=2026-09-01",[699,752,753,755],{},[714,754,639],{},[714,756,757],{},[551,758,759],{},"POST \u002Fapi\u002Fv1\u002Fwork-orders",[699,761,762,765],{},[714,763,764],{},"Start a work order",[714,766,767],{},[551,768,769],{},"POST \u002Fapi\u002Fv1\u002Fwork-orders\u002F{workOrderId}\u002Fstart",[699,771,772,775],{},[714,773,774],{},"Complete a work order",[714,776,777],{},[551,778,779],{},"POST \u002Fapi\u002Fv1\u002Fwork-orders\u002F{workOrderId}\u002Fcomplete",[781,782,787],"pre",{"className":783,"code":784,"filename":721,"language":785,"meta":786,"style":786},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"parentProductId\": \"\u003Cfinished-good-id>\",\n  \"title\": \"Vanilla 500 ml, revision 1\",\n  \"bomType\": \"Assembly\",\n  \"outputQuantity\": 1,\n  \"lineItems\": [\n    { \"componentProductId\": \"\u003Ccream-id>\", \"quantityRequired\": 0.3, \"unit\": \"Litre\", \"scrapFactorPercent\": 5 }\n  ],\n  \"costLines\": [\n    { \"description\": \"Labour\", \"costType\": \"FixedPerUnit\", \"costAmount\": 2.5 }\n  ]\n}\n","json","",[551,788,789,798,826,847,867,885,900,973,979,993,1047,1053],{"__ignoreMap":786},[790,791,794],"span",{"class":792,"line":793},"line",1,[790,795,797],{"class":796},"sMK4o","{\n",[790,799,801,804,808,811,814,817,821,823],{"class":792,"line":800},2,[790,802,803],{"class":796},"  \"",[790,805,807],{"class":806},"spNyl","parentProductId",[790,809,810],{"class":796},"\"",[790,812,813],{"class":796},":",[790,815,816],{"class":796}," \"",[790,818,820],{"class":819},"sfazB","\u003Cfinished-good-id>",[790,822,810],{"class":796},[790,824,825],{"class":796},",\n",[790,827,829,831,834,836,838,840,843,845],{"class":792,"line":828},3,[790,830,803],{"class":796},[790,832,833],{"class":806},"title",[790,835,810],{"class":796},[790,837,813],{"class":796},[790,839,816],{"class":796},[790,841,842],{"class":819},"Vanilla 500 ml, revision 1",[790,844,810],{"class":796},[790,846,825],{"class":796},[790,848,850,852,855,857,859,861,863,865],{"class":792,"line":849},4,[790,851,803],{"class":796},[790,853,854],{"class":806},"bomType",[790,856,810],{"class":796},[790,858,813],{"class":796},[790,860,816],{"class":796},[790,862,553],{"class":819},[790,864,810],{"class":796},[790,866,825],{"class":796},[790,868,870,872,875,877,879,883],{"class":792,"line":869},5,[790,871,803],{"class":796},[790,873,874],{"class":806},"outputQuantity",[790,876,810],{"class":796},[790,878,813],{"class":796},[790,880,882],{"class":881},"sbssI"," 1",[790,884,825],{"class":796},[790,886,888,890,893,895,897],{"class":792,"line":887},6,[790,889,803],{"class":796},[790,891,892],{"class":806},"lineItems",[790,894,810],{"class":796},[790,896,813],{"class":796},[790,898,899],{"class":796}," [\n",[790,901,903,906,908,912,914,916,918,921,923,926,928,931,933,935,938,940,942,945,947,949,951,954,956,958,960,963,965,967,970],{"class":792,"line":902},7,[790,904,905],{"class":796},"    {",[790,907,816],{"class":796},[790,909,911],{"class":910},"sBMFI","componentProductId",[790,913,810],{"class":796},[790,915,813],{"class":796},[790,917,816],{"class":796},[790,919,920],{"class":819},"\u003Ccream-id>",[790,922,810],{"class":796},[790,924,925],{"class":796},",",[790,927,816],{"class":796},[790,929,930],{"class":910},"quantityRequired",[790,932,810],{"class":796},[790,934,813],{"class":796},[790,936,937],{"class":881}," 0.3",[790,939,925],{"class":796},[790,941,816],{"class":796},[790,943,944],{"class":910},"unit",[790,946,810],{"class":796},[790,948,813],{"class":796},[790,950,816],{"class":796},[790,952,953],{"class":819},"Litre",[790,955,810],{"class":796},[790,957,925],{"class":796},[790,959,816],{"class":796},[790,961,962],{"class":910},"scrapFactorPercent",[790,964,810],{"class":796},[790,966,813],{"class":796},[790,968,969],{"class":881}," 5",[790,971,972],{"class":796}," }\n",[790,974,976],{"class":792,"line":975},8,[790,977,978],{"class":796},"  ],\n",[790,980,982,984,987,989,991],{"class":792,"line":981},9,[790,983,803],{"class":796},[790,985,986],{"class":806},"costLines",[790,988,810],{"class":796},[790,990,813],{"class":796},[790,992,899],{"class":796},[790,994,996,998,1000,1003,1005,1007,1009,1012,1014,1016,1018,1021,1023,1025,1027,1029,1031,1033,1035,1038,1040,1042,1045],{"class":792,"line":995},10,[790,997,905],{"class":796},[790,999,816],{"class":796},[790,1001,1002],{"class":910},"description",[790,1004,810],{"class":796},[790,1006,813],{"class":796},[790,1008,816],{"class":796},[790,1010,1011],{"class":819},"Labour",[790,1013,810],{"class":796},[790,1015,925],{"class":796},[790,1017,816],{"class":796},[790,1019,1020],{"class":910},"costType",[790,1022,810],{"class":796},[790,1024,813],{"class":796},[790,1026,816],{"class":796},[790,1028,598],{"class":819},[790,1030,810],{"class":796},[790,1032,925],{"class":796},[790,1034,816],{"class":796},[790,1036,1037],{"class":910},"costAmount",[790,1039,810],{"class":796},[790,1041,813],{"class":796},[790,1043,1044],{"class":881}," 2.5",[790,1046,972],{"class":796},[790,1048,1050],{"class":792,"line":1049},11,[790,1051,1052],{"class":796},"  ]\n",[790,1054,1056],{"class":792,"line":1055},12,[790,1057,1058],{"class":796},"}\n",[781,1060,1065],{"className":783,"code":1061,"filename":779,"highlights":1062,"language":785,"meta":1064,"style":786},"{\n  \"producedQuantity\": 196,\n  \"scrappedQuantity\": 4,\n  \"scrapReason\": \"Tubs damaged at filling\"\n}\n",[1063],0,"[POST \u002Fapi\u002Fv1\u002Fwork-orders\u002F\u002Fcomplete]",[551,1066,1067,1071,1087,1103,1122],{"__ignoreMap":786},[790,1068,1069],{"class":792,"line":793},[790,1070,797],{"class":796},[790,1072,1073,1075,1078,1080,1082,1085],{"class":792,"line":800},[790,1074,803],{"class":796},[790,1076,1077],{"class":806},"producedQuantity",[790,1079,810],{"class":796},[790,1081,813],{"class":796},[790,1083,1084],{"class":881}," 196",[790,1086,825],{"class":796},[790,1088,1089,1091,1094,1096,1098,1101],{"class":792,"line":828},[790,1090,803],{"class":796},[790,1092,1093],{"class":806},"scrappedQuantity",[790,1095,810],{"class":796},[790,1097,813],{"class":796},[790,1099,1100],{"class":881}," 4",[790,1102,825],{"class":796},[790,1104,1105,1107,1110,1112,1114,1116,1119],{"class":792,"line":849},[790,1106,803],{"class":796},[790,1108,1109],{"class":806},"scrapReason",[790,1111,810],{"class":796},[790,1113,813],{"class":796},[790,1115,816],{"class":796},[790,1117,1118],{"class":819},"Tubs damaged at filling",[790,1120,1121],{"class":796},"\"\n",[790,1123,1124],{"class":792,"line":869},[790,1125,1058],{"class":796},[499,1127,1128,1129,1132,1133,520],{},"Read the ",[518,1130,1131],{"href":291},"BOMs reference"," and the ",[518,1134,1135],{"href":299},"Work orders reference",[503,1137,1139],{"id":1138},"next-steps","Next steps",[508,1141,1142,1147,1152],{},[511,1143,1144],{},[518,1145,1146],{"href":65},"Bills of material guide",[511,1148,1149],{},[518,1150,1151],{"href":70},"Production guide",[511,1153,1154],{},[518,1155,166],{"href":167},[1157,1158,1159],"style",{},"html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}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);}",{"title":786,"searchDepth":793,"depth":800,"links":1161},[1162,1163,1164],{"id":505,"depth":800,"text":506},{"id":528,"depth":800,"text":529},{"id":1138,"depth":800,"text":1139},"Build a bill of materials with a scrap factor and a labour cost line, calculate its cost, and complete a work order that posts to inventory.","md",null,{},{"icon":72},{"title":162,"description":1165},{"loc":163},"Xt0kU10EsDs4_we9reX-OH04aczIrYRy2UTwI4_YDzo",[1174,1176],{"title":158,"path":159,"stem":160,"description":1175,"icon":62,"children":-1},"Request stock for a branch from a warehouse with a transfer order, then approve, dispatch, and receive it.",{"title":166,"path":167,"stem":168,"description":1177,"icon":125,"children":-1},"Connect n8n to Miridia and send a Telegram or email message each time an order is cancelled.",1790689638617]