{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Meadow API","colors":{"primary":"#8019e4","light":"#63dde8","dark":"#8019e4"},"logo":{"light":"https://mintcdn.com/meadow/A0jpawTy4WMsQxOO/images/logo-purple.png?fit=max\u0026auto=format\u0026n=A0jpawTy4WMsQxOO\u0026q=85\u0026s=26b8bb6925801507b6d0261692862020","dark":"https://mintcdn.com/meadow/A0jpawTy4WMsQxOO/images/logo-white.png?fit=max\u0026auto=format\u0026n=A0jpawTy4WMsQxOO\u0026q=85\u0026s=eb8877f4f190be7b8d47933a5c7d63df"},"favicon":"https://mintcdn.com/meadow/molh9Q4nZYYp5-8-/images/favicon.svg?fit=max\u0026auto=format\u0026n=molh9Q4nZYYp5-8-\u0026q=85\u0026s=26b57b66d963938e507d084a5943cd02","api":{"params":{"expanded":"all"}},"footer":{"socials":{"github":"https://github.com/meadow","website":"https://getmeadow.com"}},"styling":{"codeblocks":"system","latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"meadow","hasAudioNarration":false,"actualSubdomain":"meadow","customDomains":["api-docs.getmeadow.com"],"gitSource":{"type":"github","owner":"meadow","repo":"open-api-documentation","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae4d17d7d6c6138a24d0322","collectionId":"a9998361-20d4-45cb-b1f2-37e63f7fc94a","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae4d17d7d6c6138a24d0322"},"entitlements":{},"buildId":"6ae4d17d7d6c6138a24d0322","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"Endpoints: Analytics","count":11},{"language":"default","tag":"Endpoints: Products \u0026 Inventory","count":8},{"language":"default","tag":"Using the API","count":7},{"language":"default","tag":"Endpoints: Customers","count":6},{"language":"default","tag":"Endpoints: Create Orders","count":6},{"language":"default","tag":"Endpoints: Menu","count":2},{"language":"default","tag":"Guides","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"endpoints/products/create-purchase-order","slug":"/endpoints/products/create-purchase-order","pageMetadata":{"title":"Create purchase order","openapi":"POST /api/v1/purchase-orders","description":"Create a purchase order in order to receive inventory","href":"/endpoints/products/create-purchase-order"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create a purchase order in order to receive inventory\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Create purchase order","openapi":"POST /api/v1/purchase-orders","description":"Create a purchase order in order to receive inventory","href":"/endpoints/products/create-purchase-order"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Create a purchase order in order to receive inventory","requestBody":"3f6b7b57-19b5-4bdd-b947-04f0ca50a9d9","responses":{"201":"00adbeeb-0e02-477c-a7c2-5b0a4f039929","4XX":"73c230c0-c8f3-44d5-9c68-ec76c99530b2"},"method":"post","type":"path","servers":["51c520a1-a658-421f-927a-7fcae986ba8c","5091d89b-c8ff-49bd-ac28-f40b834142b1"],"security":["1c0263ad-f012-431c-98fb-cf88e02a4593"],"path":"/api/v1/purchase-orders","baseUrlOptions":["https://api-staging.getmeadow.com","https://api.getmeadow.com"],"title":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["lineItems"],"properties":{"lineItems":{"type":"array","description":"The products for this purchase order","items":{"type":"object","required":["productId","amount","costPerUnit"],"properties":{"productId":{"type":"number","description":"The ID of the product to add to the purchase order","isRequired":true,"uniqueKey":"lineItems.items.[INDEX].productId","typeLabel":"number"},"amount":{"type":"string","description":"The number of units purchased. Submit as string to avoid floating point errors.","isRequired":true,"uniqueKey":"lineItems.items.[INDEX].amount","typeLabel":"string"},"costPerUnit":{"type":"string","description":"The cost per unit in dollars. Submit as string to avoid floating point errors.","isRequired":true,"uniqueKey":"lineItems.items.[INDEX].costPerUnit","typeLabel":"string"},"productOptionId":{"type":"number","description":"The ID of the option that belongs to the product submitted as `productId`. This property is required if the product's `inventoryType` is set to `option`.\n\nView more information in our [Inventory Guide](/guides/inventory)","uniqueKey":"lineItems.items.[INDEX].productOptionId","typeLabel":"number"}},"uniqueKey":"lineItems.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"lineItems","typeLabel":"object[]"},"notes":{"type":"string","description":"Any relevant notes","uniqueKey":"notes","typeLabel":"string"},"paymentTerms":{"type":"string","enum":["net15","net30","net60","cod","custom"],"uniqueKey":"paymentTerms","typeLabel":"enum\u003cstring>"},"paymentTermsDueDate":{"type":"string","description":"If payment terms is custom then this field is required. Date formatted as `YYYY-MM-DD` for when payment is due.","uniqueKey":"paymentTermsDueDate","typeLabel":"string"},"expectedAt":{"type":"string","description":"Expected delivery date formatted as `YYYY-MM-DD`","uniqueKey":"expectedAt","typeLabel":"string"},"externalInvoiceNumber":{"type":"string","description":"Use this to store a 3rd party ID for the PO","uniqueKey":"externalInvoiceNumber","typeLabel":"string"},"inventoryVendorId":{"type":"number","description":"The inventory vendor ID obtained from list or create PO. Alternatively you can use `inventoryVendor.name`","uniqueKey":"inventoryVendorId","typeLabel":"number"},"inventoryVendor":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"name of the vendor. We will match to an existing vendor or create with the below properties if it does not exist.","isRequired":true,"uniqueKey":"inventoryVendor.name","typeLabel":"string"},"email":{"type":"string","description":"The email for this vendor","uniqueKey":"inventoryVendor.email","typeLabel":"string"},"phone":{"type":"string","description":"The phone for this vendor","uniqueKey":"inventoryVendor.phone","typeLabel":"string"},"sellerPermitNumber":{"type":"string","description":"","uniqueKey":"inventoryVendor.sellerPermitNumber","typeLabel":"string"},"notes":{"type":"string","description":"","uniqueKey":"inventoryVendor.notes","typeLabel":"string"},"street1":{"type":"string","description":"","uniqueKey":"inventoryVendor.street1","typeLabel":"string"},"street2":{"type":"string","description":"","uniqueKey":"inventoryVendor.street2","typeLabel":"string"},"postalCode":{"type":"string","description":"","uniqueKey":"inventoryVendor.postalCode","typeLabel":"string"},"city":{"type":"string","description":"","uniqueKey":"inventoryVendor.city","typeLabel":"string"},"state":{"type":"string","description":"","uniqueKey":"inventoryVendor.state","typeLabel":"string"}},"uniqueKey":"inventoryVendor","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"lineItems":[{"productId":11867,"productOptionId":15472,"amount":"35","costPerUnit":"20.35"}],"inventoryVendor":{"name":"Awesome Distribution, Inc."},"expectedAt":"2024-12-25"},"examples":{"Example":{"title":"Example","value":{"lineItems":[{"productId":11867,"productOptionId":15472,"amount":"35","costPerUnit":"20.35"}],"inventoryVendor":{"name":"Awesome Distribution, Inc."},"expectedAt":"2024-12-25"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"00adbeeb-0e02-477c-a7c2-5b0a4f039929":{"description":"Create product response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"number","description":"The ID of the purchase order","uniqueKey":"id","typeLabel":"number"},"organizationId":{"type":"number","description":"The client organization ID","uniqueKey":"organizationId","typeLabel":"number"},"status":{"type":"string","description":"If `closed` no more edits can be made to this PO.","enum":["open","closed"],"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"finalTotal":{"type":"number","description":"Total in cents for the PO","uniqueKey":"finalTotal","typeLabel":"number"},"subtotal":{"type":"number","description":"Total in cents for the PO minus any shipping \u0026 handling","uniqueKey":"subtotal","typeLabel":"number"},"inventoryVendorId":{"type":"number","description":"The ID of the inventory vendor","uniqueKey":"inventoryVendorId","typeLabel":"number"},"lineItems":{"type":"array","description":"The line items of the purchase order","items":{"type":"object","properties":{"product":{"type":"object","description":"The product for the line item","properties":{"id":{"type":"number","description":"The ID of the product","uniqueKey":"lineItems.items.[INDEX].product.id","typeLabel":"number"},"name":{"type":"string","description":"The name of the product","uniqueKey":"lineItems.items.[INDEX].product.name","typeLabel":"string"}},"uniqueKey":"lineItems.items.[INDEX].product","typeLabel":"object"},"productOption":{"type":"object","description":"The product option for the line item if the product's `inventoryType` is set to `option`, otherwise `{}`","properties":{"id":{"type":"number","description":"The ID of the product option","uniqueKey":"lineItems.items.[INDEX].productOption.id","typeLabel":"number"},"name":{"oneOf":[{"type":"string","description":"The name of this option","uniqueKey":"lineItems.items.[INDEX].productOption.name.oneOf.0","typeLabel":"string"},{"type":"null","description":"The name of this option","uniqueKey":"lineItems.items.[INDEX].productOption.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"lineItems.items.[INDEX].productOption.name","typeLabel":"string | null"},"amount":{"type":"number","description":"The amount of the underlying unit of this product","uniqueKey":"lineItems.items.[INDEX].productOption.amount","typeLabel":"number"},"price":{"type":"number","description":"The price in cents of this option","uniqueKey":"lineItems.items.[INDEX].productOption.price","typeLabel":"number"},"salesPrice":{"oneOf":[{"type":"number","description":"The sales price if one exists","uniqueKey":"lineItems.items.[INDEX].productOption.salesPrice.oneOf.0","typeLabel":"number"},{"type":"null","description":"The sales price if one exists","uniqueKey":"lineItems.items.[INDEX].productOption.salesPrice.oneOf.1","typeLabel":"null"}],"uniqueKey":"lineItems.items.[INDEX].productOption.salesPrice","typeLabel":"number | null"},"upc":{"oneOf":[{"type":"string","description":"The UPC code for this option","uniqueKey":"lineItems.items.[INDEX].productOption.upc.oneOf.0","typeLabel":"string"},{"type":"null","description":"The UPC code for this option","uniqueKey":"lineItems.items.[INDEX].productOption.upc.oneOf.1","typeLabel":"null"}],"uniqueKey":"lineItems.items.[INDEX].productOption.upc","typeLabel":"string | null"},"content":{"type":"string","description":"The amount of cannabis content this option has based on the `cannabisType` field from the product category.","uniqueKey":"lineItems.items.[INDEX].productOption.content","typeLabel":"string"}},"uniqueKey":"lineItems.items.[INDEX].productOption","typeLabel":"object"},"finalTotal":{"type":"number","description":"The total in cents for this line item","uniqueKey":"lineItems.items.[INDEX].finalTotal","typeLabel":"number"}},"uniqueKey":"lineItems.items.[INDEX]","typeLabel":"object"},"uniqueKey":"lineItems","typeLabel":"object[]"}},"example":{"data":{"createdAt":"2024-12-12T07:53:37.793Z","expectedAt":"2024-12-25","finalTotal":71225,"id":6741,"inventoryVendor":{"id":308,"organizationId":25,"name":"Awesome Distribution, Inc.","phone":null,"notes":null,"createdAt":"2024-12-12T07:53:37.776Z","updatedAt":"2024-12-12T07:53:37.776Z","archivedAt":null,"email":null,"sellerPermitNumber":null,"street1":null,"street2":null,"city":null,"state":null,"postalCode":null},"inventoryVendorId":308,"lineItems":[{"amount":"35","caExcisePerUnit":"0","costPerUnit":"20.35","createdAt":"2024-12-12T07:53:37.797Z","finalTotal":71225,"id":33555,"product":{"id":11867,"organizationId":25,"brand":{"id":2238,"name":"Awesome Cannabis","createdAt":"2024-12-12T03:08:58.012Z","updatedAt":"2024-12-12T03:08:58.012Z","description":null},"inventoryType":"option","createdAt":"2024-12-12T04:08:00.429Z","updatedAt":"2024-12-12T05:06:35.447Z","deletedAt":null,"description":null,"isActive":false,"isFeatured":false,"name":"Blue Dream","strainType":"hybrid-sativa","isCompliant":false,"unit":"gram"},"productId":11867,"productOption":{"id":15472,"name":"Eighth","amount":3.5,"price":4700,"salesPrice":null,"createdAt":"2024-12-12T04:08:00.433Z","updatedAt":"2024-12-12T07:09:11.770Z","upc":null,"content":"3.5"},"productOptionId":15472,"subtotal":71225,"updatedAt":"2024-12-12T07:53:37.797Z"}],"organizationId":25,"paymentTermsDueDate":null,"shippingHandlingFee":0,"status":"open","subtotal":71225,"totalAmount":"35","updatedAt":"2024-12-12T07:53:37.812Z"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"createdAt":"2024-12-12T07:53:37.793Z","expectedAt":"2024-12-25","finalTotal":71225,"id":6741,"inventoryVendor":{"id":308,"organizationId":25,"name":"Awesome Distribution, Inc.","phone":null,"notes":null,"createdAt":"2024-12-12T07:53:37.776Z","updatedAt":"2024-12-12T07:53:37.776Z","archivedAt":null,"email":null,"sellerPermitNumber":null,"street1":null,"street2":null,"city":null,"state":null,"postalCode":null},"inventoryVendorId":308,"lineItems":[{"amount":"35","caExcisePerUnit":"0","costPerUnit":"20.35","createdAt":"2024-12-12T07:53:37.797Z","finalTotal":71225,"id":33555,"product":{"id":11867,"organizationId":25,"brand":{"id":2238,"name":"Awesome Cannabis","createdAt":"2024-12-12T03:08:58.012Z","updatedAt":"2024-12-12T03:08:58.012Z","description":null},"inventoryType":"option","createdAt":"2024-12-12T04:08:00.429Z","updatedAt":"2024-12-12T05:06:35.447Z","deletedAt":null,"description":null,"isActive":false,"isFeatured":false,"name":"Blue Dream","strainType":"hybrid-sativa","isCompliant":false,"unit":"gram"},"productId":11867,"productOption":{"id":15472,"name":"Eighth","amount":3.5,"price":4700,"salesPrice":null,"createdAt":"2024-12-12T04:08:00.433Z","updatedAt":"2024-12-12T07:09:11.770Z","upc":null,"content":"3.5"},"productOptionId":15472,"subtotal":71225,"updatedAt":"2024-12-12T07:53:37.797Z"}],"organizationId":25,"paymentTermsDueDate":null,"shippingHandlingFee":0,"status":"open","subtotal":71225,"totalAmount":"35","updatedAt":"2024-12-12T07:53:37.812Z"}}}},"exampleType":"generated"}},"exampleType":"generated"},"73c230c0-c8f3-44d5-9c68-ec76c99530b2":{"description":"Unexpected error","content":{"application/json":{"schema":{"required":["error","message"],"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","example":"A description of the error code","uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","example":"CODE_OF_ERROR_WILL_BE_HERE","uniqueKey":"error.code","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"A description of the error code","code":"CODE_OF_ERROR_WILL_BE_HERE"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"1c0263ad-f012-431c-98fb-cf88e02a4593":{"meadowConsumer":{"type":"apiKey","name":"X-Consumer-Key","description":"The key assigned to your company and provided via Meadow","in":"header","scopes":[],"schemeName":"meadowConsumer"},"meadowClient":{"type":"apiKey","name":"X-Client-Key","description":"The key generated and provided by our mutual client","in":"header","scopes":[],"schemeName":"meadowClient"}}},"servers":{"51c520a1-a658-421f-927a-7fcae986ba8c":{"url":"https://api-staging.getmeadow.com"},"5091d89b-c8ff-49bd-ac28-f40b834142b1":{"url":"https://api.getmeadow.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","name":"X-Consumer-Key","description":"The key assigned to your company and provided via Meadow","in":"header","scopes":[],"schemeName":"meadowConsumer"},"schema":{"title":"X-Consumer-Key","type":"string","description":"The key assigned to your company and provided via Meadow","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"meadowConsumer","name":"X-Consumer-Key"},{"scheme":{"type":"apiKey","name":"X-Client-Key","description":"The key generated and provided by our mutual client","in":"header","scopes":[],"schemeName":"meadowClient"},"schema":{"title":"X-Client-Key","type":"string","description":"The key generated and provided by our mutual client","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"meadowClient","name":"X-Client-Key"}],"title":"meadowConsumer \u0026 meadowClient"}]},"originalFileLocation":"endpoints/openapi.json"},"subdomain":"meadow","siteName":"Meadow API","title":"Create purchase order - Meadow API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-09-16T21:13:10.362Z","originalFileLocation":"endpoints/products/create-purchase-order.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create a purchase order in order to receive inventory\">\u003cmeta data-mint-head name=\"application-name\" content=\"Meadow API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/meadow/ZyOpgKgnc39DMFWW/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/meadow/ZyOpgKgnc39DMFWW/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/meadow/ZyOpgKgnc39DMFWW/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/meadow/ZyOpgKgnc39DMFWW/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/meadow/ZyOpgKgnc39DMFWW/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/meadow/ZyOpgKgnc39DMFWW/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/meadow/ZyOpgKgnc39DMFWW/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/meadow/ZyOpgKgnc39DMFWW/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/meadow/ZyOpgKgnc39DMFWW/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create purchase order - Meadow API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a purchase order in order to receive inventory\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Meadow API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://api-docs.getmeadow.com/endpoints/products/create-purchase-order\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://meadow.mintlify.app/_mintlify/api/og/v2?division=Endpoints%3A+Products+%26+Inventory\u0026amp;title=Create+purchase+order\u0026amp;description=Create+a+purchase+order+in+order+to+receive+inventory\u0026amp;theme=3516b74799b31165bc48cba6\u0026amp;signature=87e537e82843946c9217037c82d5ae645f2a1b6e35ff1403c914165aef999913\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create purchase order - Meadow API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a purchase order in order to receive inventory\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://meadow.mintlify.app/_mintlify/api/og/v2?division=Endpoints%3A+Products+%26+Inventory\u0026amp;title=Create+purchase+order\u0026amp;description=Create+a+purchase+order+in+order+to+receive+inventory\u0026amp;theme=3516b74799b31165bc48cba6\u0026amp;signature=87e537e82843946c9217037c82d5ae645f2a1b6e35ff1403c914165aef999913\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/meadow/ZyOpgKgnc39DMFWW/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Meadow API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#8019e4\">\u003clink data-mint-head rel=\"canonical\" href=\"https://api-docs.getmeadow.com/endpoints/products/create-purchase-order\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/endpoints/products/create-purchase-order.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://api-docs.getmeadow.com/#organization\",\"name\":\"Meadow API\",\"url\":\"https://api-docs.getmeadow.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/meadow/A0jpawTy4WMsQxOO/images/logo-purple.png?fit=max\u0026auto=format\u0026n=A0jpawTy4WMsQxOO\u0026q=85\u0026s=26b8bb6925801507b6d0261692862020\"}},{\"@type\":\"WebSite\",\"@id\":\"https://api-docs.getmeadow.com#website\",\"name\":\"Meadow API\",\"url\":\"https://api-docs.getmeadow.com\",\"publisher\":{\"@id\":\"https://api-docs.getmeadow.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://api-docs.getmeadow.com/endpoints/products/create-purchase-order#webpage\",\"url\":\"https://api-docs.getmeadow.com/endpoints/products/create-purchase-order\",\"name\":\"Create purchase order\",\"description\":\"Create a purchase order in order to receive inventory\",\"dateModified\":\"2025-09-16T21:13:10.362Z\",\"isPartOf\":{\"@id\":\"https://api-docs.getmeadow.com#website\"},\"breadcrumb\":{\"@id\":\"https://api-docs.getmeadow.com/endpoints/products/create-purchase-order#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://api-docs.getmeadow.com/endpoints/products/create-purchase-order#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints: Products \u0026 Inventory\",\"item\":\"https://api-docs.getmeadow.com/endpoints/products/create-product\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create purchase order\",\"item\":\"https://api-docs.getmeadow.com/endpoints/products/create-purchase-order\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://api-docs.getmeadow.com/endpoints/products/create-purchase-order#apireference\",\"headline\":\"Create purchase order\",\"name\":\"Create purchase order\",\"description\":\"Create a purchase order in order to receive inventory\",\"url\":\"https://api-docs.getmeadow.com/endpoints/products/create-purchase-order\",\"mainEntityOfPage\":{\"@id\":\"https://api-docs.getmeadow.com/endpoints/products/create-purchase-order#webpage\"},\"dateModified\":\"2025-09-16T21:13:10.362Z\",\"publisher\":{\"@id\":\"https://api-docs.getmeadow.com/#organization\"},\"isPartOf\":{\"@id\":\"https://api-docs.getmeadow.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Meadow API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Meadow API","nav":{"global":null,"groups":[{"group":"Using the API","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Authentication","href":"/authentication"},{"title":"Responses","href":"/responses"},{"title":"Errors","href":"/errors"},{"title":"Permissions","href":"/permissions"},{"title":"Rate Limits","href":"/rate-limits"},{"title":"Changelog","href":"/changelog"}]},{"group":"Guides","pages":[{"title":"Inventory","href":"/guides/inventory"}]},{"group":"Endpoints: Analytics","pages":[{"title":"List orders","openapi":"GET /api/v1/orders","href":"/endpoints/analytics/list-orders"},{"title":"Retrieve an order","openapi":"GET /api/v1/orders/{orderId}/detail","href":"/endpoints/analytics/retrieve-order"},{"title":"List order returns","openapi":"GET /api/v1/order-returns","href":"/endpoints/analytics/list-order-returns"},{"title":"List instore queues","openapi":"GET /api/v1/instore-queues","href":"/endpoints/analytics/list-instore-queues"},{"title":"List inventory locations","openapi":"GET /api/v1/inventory-locations","href":"/endpoints/analytics/list-inventory-locations"},{"title":"Retrieve the organization","openapi":"GET /api/v1/organization","href":"/endpoints/analytics/retrieve-organization"},{"title":"List all products","openapi":"GET /api/v1/products/all","href":"/endpoints/analytics/list-all-products"},{"title":"List purchase orders","openapi":"GET /api/v1/purchase-orders","href":"/endpoints/analytics/list-purchase-orders"},{"title":"List compliance transfers","openapi":"GET /api/v1/compliance-transfers","href":"/endpoints/analytics/list-compliance-transfers"},{"title":"List packages","openapi":"GET /api/v1/packages","href":"/endpoints/analytics/list-packages"},{"title":"Retrieve a package","openapi":"GET /api/v1/packages/{label}","href":"/endpoints/analytics/retrieve-package"}]},{"group":"Endpoints: Create Orders","pages":[{"title":"Customer Matching","href":"/endpoints/orders/customer-matching"},{"title":"Retrieve order status","openapi":"GET /api/v1/orders/{orderId}","href":"/endpoints/orders/retrieve-status"},{"title":"Retrieve cart pricing","openapi":"POST /api/v1/orders/pricing","href":"/endpoints/orders/retrieve-pricing"},{"title":"Create an order","openapi":"POST /api/v1/orders","href":"/endpoints/orders/create-order"},{"title":"List payment types","openapi":"GET /api/v1/payment-types","href":"/endpoints/orders/list-payment-types"},{"title":"Upload customer document","openapi":"POST /api/v1/documents/{customerId}/{documentType}","href":"/endpoints/orders/upload-document"}]},{"group":"Endpoints: Customers","pages":[{"title":"List customers","openapi":"GET /api/v1/customers","href":"/endpoints/customers/list-customers"},{"title":"Retrieve a customer","openapi":"GET /api/v1/customers/{identifier}","href":"/endpoints/customers/retrieve-customer"},{"title":"List customer groups","openapi":"GET /api/v1/customer-groups","href":"/endpoints/customers/list-customer-groups"},{"title":"Add customer to group","openapi":"PUT /api/v1/customer-groups/{customerGroupId}/add-customer","href":"/endpoints/customers/add-customer-to-group"},{"title":"Remove customer from group","openapi":"PUT /api/v1/customer-groups/{customerGroupId}/remove-customer","href":"/endpoints/customers/remove-customer-from-group"},{"title":"Add loyalty points","openapi":"POST /api/v1/loyalty-events","href":"/endpoints/customers/add-loyalty-points"}]},{"group":"Endpoints: Menu","pages":[{"title":"List all menu products","openapi":"GET /api/v1/menu","href":"/endpoints/menu/list-menu"},{"title":"List tags","openapi":"GET /api/v1/products/tags","href":"/endpoints/menu/list-tags"}]},{"group":"Endpoints: Products \u0026 Inventory","pages":[{"title":"Create a product","openapi":"POST /api/v1/products","href":"/endpoints/products/create-product"},{"title":"Update a product","openapi":"PUT /api/v1/products/{productId}","href":"/endpoints/products/update-product"},{"title":"Update product options","openapi":"PUT /api/v1/products/{productId}/options","href":"/endpoints/products/update-product-options"},{"title":"List categories","openapi":"GET /api/v1/product-categories","href":"/endpoints/products/list-categories"},{"title":"List sub-categories","openapi":"GET /api/v1/product-sub-categories","description":"Retrieve all of the product sub-categories for the organization.","href":"/endpoints/products/list-sub-categories"},{"title":"Create purchase order","openapi":"POST /api/v1/purchase-orders","href":"/endpoints/products/create-purchase-order"},{"title":"Update purchase order","openapi":"PUT /api/v1/purchase-orders/{purchaseOrderId}","description":null,"href":"/endpoints/products/update-purchase-order"},{"title":"Update UPCs","openapi":"PUT /api/v1/products/{productId}/options/upc","href":"/endpoints/products/update-upcs"}]}]},"basePath":"","title":"Create purchase order - Meadow API","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CS552b7R.js","utils-DDTCYAF2.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-De8ttokP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DrwRDvAh.js","snippetPresets-DtAN0nWx.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D5rWArI6.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-O2i12wsz.js","shallow-DV8xABTt.js","getApiPlaygroundDisplay-DBZ0B5Jx.js","CodeSnippet-BVi0tPUX.js","CodeSnippets-CqASbIwY.js","Page-m07pfKpT.js","getPastedJson-DG9vsMS8.js","icon-CXzRSCr8.js","MethodPill-BdKVtEuX.js","DuplicateIcon-CZlmBrJI.js","createIcon-biFEUKPL.js","DynamicMarkdown-B54_zNBF.js","SectionHeading-DwwHK3Pt.js","axios-vUo_bRtp.js","Markdown-DfhCTwyA.js","clsx-xpJZXxdP.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BTZUMDnx.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DqdKa2R4.js"]}