[{"data":1,"prerenderedAt":1072},["ShallowReactive",2],{"navigation":3,"\u002Ftutorials\u002Freceive-a-purchase-order":488,"\u002Ftutorials\u002Freceive-a-purchase-order-surround":1067,"\u002Ftutorials\u002Freceive-a-purchase-order-reference":1061},[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":153,"body":490,"description":1059,"extension":1060,"links":1061,"meta":1062,"navigation":1063,"path":154,"reference":27,"seo":1064,"sitemap":1065,"stem":155,"__hash__":1066},"docs\u002F5.tutorials\u002F04.receive-a-purchase-order.md",{"type":491,"value":492,"toc":1054},"minimark",[493,498,502,507,529,533,647,653,1030,1034,1050],[494,495],"video-embed",{":placeholder":496,"id":497,"title":153},"true","_eQxomah-nA",[499,500,501],"p",{},"In this tutorial you buy 100 units from a supplier. The supplier delivers 60 units first and 40 units later. You see how each receipt changes the stock and the average cost.",[503,504,506],"h2",{"id":505},"what-you-need","What you need",[508,509,510,514,521],"ul",{},[511,512,513],"li",{},"A location that receives stock, for example a warehouse.",[511,515,516,517,520],{},"A product that you can purchase. Read ",[518,519,149],"a",{"href":150},".",[511,522,523,524,528],{},"A permission to manage purchase orders. The owner and the ",[525,526,527],"code",{},"Manager"," role have it.",[503,530,532],{"id":531},"steps","Steps",[531,534,536,541,544,548,556,560,563,570,574,584,588,591,594,616,620,626,630,633,636,640],{"level":535},"3",[537,538,540],"h3",{"id":539},"create-a-supplier","Create a supplier",[499,542,543],{},"Open the suppliers page and add a supplier. Enter a title, a short code, and a contact person with an email address. You can also add the payment terms, the default lead time in days, the default currency, and the address that the goods come from.",[537,545,547],{"id":546},"link-the-supplier-to-the-product","Link the supplier to the product",[499,549,550,551,555],{},"Open the product and add the supplier. Mark it as the ",[552,553,554],"strong",{},"primary"," supplier. You can also enter the supplier part number, the last quoted price, the lead time, and the minimum order quantity. A new purchase order line uses these values as its defaults.",[537,557,559],{"id":558},"create-the-purchase-order","Create the purchase order",[499,561,562],{},"Open the purchase orders page and create an order. Select the supplier, the destination location, and the currency. Add a line for the product: 100 units at the unit cost.",[499,564,565,566,569],{},"The new order has the status ",[525,567,568],{},"Draft",". You can still change it.",[537,571,573],{"id":572},"send-and-confirm-the-order","Send and confirm the order",[499,575,576,577,580,581,520],{},"Send the order to the supplier, and change the status to ",[525,578,579],{},"Ordered",". When the supplier accepts the order, change the status to ",[525,582,583],{},"Confirmed",[537,585,587],{"id":586},"receive-the-first-delivery","Receive the first delivery",[499,589,590],{},"The supplier delivers 60 units. Open the order and record a receipt. Enter 60 as the received quantity. If some units are damaged, enter them as rejected. You can also enter the actual unit cost if it differs from the order.",[499,592,593],{},"Miridia then does three things:",[508,595,596,603,610],{},[511,597,598,599,602],{},"It adds a ",[552,600,601],{},"purchase"," movement of 60 units to the inventory ledger of the destination location.",[511,604,605,606,609],{},"It recalculates the ",[552,607,608],{},"weighted average cost"," of the product at that location.",[511,611,612,613,520],{},"It changes the order status to ",[525,614,615],{},"PartiallyReceived",[537,617,619],{"id":618},"receive-the-second-delivery","Receive the second delivery",[499,621,622,623,520],{},"The supplier delivers the other 40 units. Record a second receipt for 40 units. The order status changes to ",[525,624,625],{},"Received",[537,627,629],{"id":628},"read-the-ledger","Read the ledger",[499,631,632],{},"Open the product inventory at the destination location. The movement list shows the two purchase movements. Each movement shows the quantity, the running balance after the movement, and a link to the purchase order.",[499,634,635],{},"The ledger never changes a movement. A correction is a new adjustment movement with a reason. Thus the ledger is the audit record of what arrived and when.",[537,637,639],{"id":638},"close-the-order","Close the order",[499,641,642,643,646],{},"When the order is complete, change the status to ",[525,644,645],{},"Closed",". You can also cancel an order that the supplier cannot deliver.",[648,649,650],"tip",{},[499,651,652],{},"The supplier insights page shows the lead time, the on-time rate, the fill rate, the defect rate, and the spend of each supplier. Miridia calculates these values from the real order and receipt history.",[654,655,657,735,906,940,1020],"collapsible",{"name":656},"API calls",[658,659,660,673],"table",{},[661,662,663],"thead",{},[664,665,666,670],"tr",{},[667,668,669],"th",{},"Action",[667,671,672],{},"Request",[674,675,676,686,696,706,716,726],"tbody",{},[664,677,678,681],{},[679,680,540],"td",{},[679,682,683],{},[525,684,685],{},"POST \u002Fapi\u002Fv1\u002Fsuppliers",[664,687,688,691],{},[679,689,690],{},"Link a supplier to a product",[679,692,693],{},[525,694,695],{},"POST \u002Fapi\u002Fv1\u002FProducts\u002F{productId}\u002Fsuppliers",[664,697,698,701],{},[679,699,700],{},"Create a purchase order",[679,702,703],{},[525,704,705],{},"POST \u002Fapi\u002Fv1\u002Fpurchase-orders",[664,707,708,711],{},[679,709,710],{},"Change the status",[679,712,713],{},[525,714,715],{},"PATCH \u002Fapi\u002Fv1\u002Fpurchase-orders\u002F{purchaseOrderId}",[664,717,718,721],{},[679,719,720],{},"Record a receipt",[679,722,723],{},[525,724,725],{},"POST \u002Fapi\u002Fv1\u002Fpurchase-orders\u002F{purchaseOrderId}\u002Freceipts",[664,727,728,730],{},[679,729,629],{},[679,731,732],{},[525,733,734],{},"GET \u002Fapi\u002Fv1\u002Finventory\u002F{inventoryRecordId}\u002Fmovements",[736,737,742],"pre",{"className":738,"code":739,"filename":705,"language":740,"meta":741,"style":741},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"supplierId\": \"\u003Csupplier-id>\",\n  \"destinationLocationId\": \"\u003Clocation-id>\",\n  \"currencyCode\": \"ZAR\",\n  \"items\": [\n    { \"productId\": \"\u003Cproduct-id>\", \"quantityOrdered\": 100, \"unitCost\": 18.5 }\n  ]\n}\n","json","",[525,743,744,753,781,802,823,838,894,900],{"__ignoreMap":741},[745,746,749],"span",{"class":747,"line":748},"line",1,[745,750,752],{"class":751},"sMK4o","{\n",[745,754,756,759,763,766,769,772,776,778],{"class":747,"line":755},2,[745,757,758],{"class":751},"  \"",[745,760,762],{"class":761},"spNyl","supplierId",[745,764,765],{"class":751},"\"",[745,767,768],{"class":751},":",[745,770,771],{"class":751}," \"",[745,773,775],{"class":774},"sfazB","\u003Csupplier-id>",[745,777,765],{"class":751},[745,779,780],{"class":751},",\n",[745,782,784,786,789,791,793,795,798,800],{"class":747,"line":783},3,[745,785,758],{"class":751},[745,787,788],{"class":761},"destinationLocationId",[745,790,765],{"class":751},[745,792,768],{"class":751},[745,794,771],{"class":751},[745,796,797],{"class":774},"\u003Clocation-id>",[745,799,765],{"class":751},[745,801,780],{"class":751},[745,803,805,807,810,812,814,816,819,821],{"class":747,"line":804},4,[745,806,758],{"class":751},[745,808,809],{"class":761},"currencyCode",[745,811,765],{"class":751},[745,813,768],{"class":751},[745,815,771],{"class":751},[745,817,818],{"class":774},"ZAR",[745,820,765],{"class":751},[745,822,780],{"class":751},[745,824,826,828,831,833,835],{"class":747,"line":825},5,[745,827,758],{"class":751},[745,829,830],{"class":761},"items",[745,832,765],{"class":751},[745,834,768],{"class":751},[745,836,837],{"class":751}," [\n",[745,839,841,844,846,850,852,854,856,859,861,864,866,869,871,873,877,879,881,884,886,888,891],{"class":747,"line":840},6,[745,842,843],{"class":751},"    {",[745,845,771],{"class":751},[745,847,849],{"class":848},"sBMFI","productId",[745,851,765],{"class":751},[745,853,768],{"class":751},[745,855,771],{"class":751},[745,857,858],{"class":774},"\u003Cproduct-id>",[745,860,765],{"class":751},[745,862,863],{"class":751},",",[745,865,771],{"class":751},[745,867,868],{"class":848},"quantityOrdered",[745,870,765],{"class":751},[745,872,768],{"class":751},[745,874,876],{"class":875},"sbssI"," 100",[745,878,863],{"class":751},[745,880,771],{"class":751},[745,882,883],{"class":848},"unitCost",[745,885,765],{"class":751},[745,887,768],{"class":751},[745,889,890],{"class":875}," 18.5",[745,892,893],{"class":751}," }\n",[745,895,897],{"class":747,"line":896},7,[745,898,899],{"class":751},"  ]\n",[745,901,903],{"class":747,"line":902},8,[745,904,905],{"class":751},"}\n",[736,907,912],{"className":738,"code":908,"filename":715,"highlights":909,"language":740,"meta":911,"style":741},"{\n  \"status\": \"Ordered\"\n}\n",[910],0,"[PATCH \u002Fapi\u002Fv1\u002Fpurchase-orders\u002F]",[525,913,914,918,936],{"__ignoreMap":741},[745,915,916],{"class":747,"line":748},[745,917,752],{"class":751},[745,919,920,922,925,927,929,931,933],{"class":747,"line":755},[745,921,758],{"class":751},[745,923,924],{"class":761},"status",[745,926,765],{"class":751},[745,928,768],{"class":751},[745,930,771],{"class":751},[745,932,579],{"class":774},[745,934,935],{"class":751},"\"\n",[745,937,938],{"class":747,"line":783},[745,939,905],{"class":751},[736,941,945],{"className":738,"code":942,"filename":725,"highlights":943,"language":740,"meta":944,"style":741},"{\n  \"lines\": [\n    { \"productId\": \"\u003Cproduct-id>\", \"quantityReceived\": 60, \"quantityRejected\": 0 }\n  ]\n}\n",[910],"[POST \u002Fapi\u002Fv1\u002Fpurchase-orders\u002F\u002Freceipts]",[525,946,947,951,964,1012,1016],{"__ignoreMap":741},[745,948,949],{"class":747,"line":748},[745,950,752],{"class":751},[745,952,953,955,958,960,962],{"class":747,"line":755},[745,954,758],{"class":751},[745,956,957],{"class":761},"lines",[745,959,765],{"class":751},[745,961,768],{"class":751},[745,963,837],{"class":751},[745,965,966,968,970,972,974,976,978,980,982,984,986,989,991,993,996,998,1000,1003,1005,1007,1010],{"class":747,"line":783},[745,967,843],{"class":751},[745,969,771],{"class":751},[745,971,849],{"class":848},[745,973,765],{"class":751},[745,975,768],{"class":751},[745,977,771],{"class":751},[745,979,858],{"class":774},[745,981,765],{"class":751},[745,983,863],{"class":751},[745,985,771],{"class":751},[745,987,988],{"class":848},"quantityReceived",[745,990,765],{"class":751},[745,992,768],{"class":751},[745,994,995],{"class":875}," 60",[745,997,863],{"class":751},[745,999,771],{"class":751},[745,1001,1002],{"class":848},"quantityRejected",[745,1004,765],{"class":751},[745,1006,768],{"class":751},[745,1008,1009],{"class":875}," 0",[745,1011,893],{"class":751},[745,1013,1014],{"class":747,"line":804},[745,1015,899],{"class":751},[745,1017,1018],{"class":747,"line":825},[745,1019,905],{"class":751},[499,1021,1022,1023,1026,1027,520],{},"Read the ",[518,1024,1025],{"href":283},"Purchase orders reference"," and the ",[518,1028,1029],{"href":279},"Suppliers reference",[503,1031,1033],{"id":1032},"next-steps","Next steps",[508,1035,1036,1041,1046],{},[511,1037,1038],{},[518,1039,1040],{"href":55},"Suppliers and purchasing guide",[511,1042,1043],{},[518,1044,1045],{"href":50},"Inventory guide",[511,1047,1048],{},[518,1049,158],{"href":159},[1051,1052,1053],"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 .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}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":741,"searchDepth":748,"depth":755,"links":1055},[1056,1057,1058],{"id":505,"depth":755,"text":506},{"id":531,"depth":755,"text":532},{"id":1032,"depth":755,"text":1033},"Create a supplier, order stock, and receive the stock in two deliveries. Then read the inventory ledger and the average cost.","md",null,{},{"icon":156},{"title":153,"description":1059},{"loc":154},"tAdUGt44lxR_dd1LYyd2sDDEPmaATE2oFw4qjH1kHMY",[1068,1070],{"title":149,"path":150,"stem":151,"description":1069,"icon":42,"children":-1},"Create products, group them as variants, and give one sales channel its own prices with a price list.",{"title":158,"path":159,"stem":160,"description":1071,"icon":62,"children":-1},"Request stock for a branch from a warehouse with a transfer order, then approve, dispatch, and receive it.",1790689638002]