{
"error": {
"message": "A description of the error code",
"code": "CODE_OF_ERROR_WILL_BE_HERE"
}
}
Endpoints: Analytics
List orders
Retrieve all orders for an organization in reverse chronological order. 50 orders will be returned at a time and may be paginated using the startingAfter query parameter.
A date that must be formatted as YYYY-MM-DD. When submitted, the response will return the latest order on that day and continue in reverse chronological order. I.E. if 2022-11-25 is passed in, the first order will be as close to 11:59pm November 25th, 2022 as possible.
When passed in as true, only fulfilled orders will be returned. The response will be ordered in reverse chronological order of fulfilled date. Also, this will cause startingOn to use fulfilledAt instead of createdAt for determining what orders to return.
An array of objects showing what packages or product options fulfilled this order. Could also be null if the line item does not have any packages or substitutions associated with it.
A negative number showing how much quantity of the underlying product option was used for this fulfillment. For option tracking this will be an integer, but for product tracking it could be a decimal.
The ID of the product option used for this fulfillment. For most cases, it will be the same as lineItems[].optionId, but in cases where another option is substituted to fulfill another (Example: 2 eighths fulfilling a quarter option), this productOptionId could be different.
The discount amount of the reward. For cash-back this is the amount in cents per point used. For flat it is a flat amount in cents, percent would be a percent off
The short ID of the Onfleet task. See Onfleet's documentation for more information.
{"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/analytics/list-orders","slug":"/endpoints/analytics/list-orders","pageMetadata":{"title":"List orders","openapi":"GET /api/v1/orders","description":"Retrieve all orders for an organization in reverse chronological order. 50 orders will be returned at a time and may be paginated using the `startingAfter` query parameter.","href":"/endpoints/analytics/list-orders"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Retrieve all orders for an organization in reverse chronological order. 50 orders will be returned at a time and may be paginated using the \", _jsx(_components.code, {\n children: \"startingAfter\"\n }), \" query parameter.\"]\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":"List orders","openapi":"GET /api/v1/orders","description":"Retrieve all orders for an organization in reverse chronological order. 50 orders will be returned at a time and may be paginated using the `startingAfter` query parameter.","href":"/endpoints/analytics/list-orders"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Retrieve all orders for an organization in reverse chronological order. 50 orders will be returned at a time and may be paginated using the `startingAfter` query parameter.","parameters":["aae47296-872b-4d78-8d15-93500264c10e","9cd1f5f0-cf98-475a-b4a7-14590ab23d37","305b7a8e-63ed-4400-9ac1-a02d345b92b9","fd152b85-5db4-4ca8-ab76-e5041bdfd150","97c13a92-9139-4bdb-8198-8e9321ac0bf4"],"responses":{"200":"08670e8f-245b-4399-a115-37d40aa967c3","4XX":"1e06f2e1-ed69-440c-8fcc-cf2779e11278"},"method":"get","type":"path","servers":["51c520a1-a658-421f-927a-7fcae986ba8c","5091d89b-c8ff-49bd-ac28-f40b834142b1"],"security":["1c0263ad-f012-431c-98fb-cf88e02a4593"],"path":"/api/v1/orders","baseUrlOptions":["https://api-staging.getmeadow.com","https://api.getmeadow.com"],"title":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"aae47296-872b-4d78-8d15-93500264c10e":{"name":"startingAfter","in":"query","description":"The `id` for an order that you want to retrieve all orders after this one. Pass in the last `id` in a response to retrieve the next page.","required":false,"schema":{"type":"string","isRequired":false,"description":"The `id` for an order that you want to retrieve all orders after this one. Pass in the last `id` in a response to retrieve the next page.","uniqueKey":"","typeLabel":"string"}},"9cd1f5f0-cf98-475a-b4a7-14590ab23d37":{"name":"startingOn","in":"query","description":"A date that must be formatted as `YYYY-MM-DD`. When submitted, the response will return the latest order on that day and continue in reverse chronological order. I.E. if `2022-11-25` is passed in, the first order will be as close to 11:59pm November 25th, 2022 as possible.","required":false,"schema":{"type":"string","isRequired":false,"description":"A date that must be formatted as `YYYY-MM-DD`. When submitted, the response will return the latest order on that day and continue in reverse chronological order. I.E. if `2022-11-25` is passed in, the first order will be as close to 11:59pm November 25th, 2022 as possible.","uniqueKey":"","typeLabel":"string"}},"305b7a8e-63ed-4400-9ac1-a02d345b92b9":{"name":"fulfilledOnly","in":"query","description":"When passed in as `true`, only fulfilled orders will be returned. The response will be ordered in reverse chronological order of fulfilled date. Also, this will cause `startingOn` to use `fulfilledAt` instead of `createdAt` for determining what orders to return.","required":false,"schema":{"type":"boolean","isRequired":false,"description":"When passed in as `true`, only fulfilled orders will be returned. The response will be ordered in reverse chronological order of fulfilled date. Also, this will cause `startingOn` to use `fulfilledAt` instead of `createdAt` for determining what orders to return.","uniqueKey":"","typeLabel":"boolean"}},"fd152b85-5db4-4ca8-ab76-e5041bdfd150":{"name":"type","in":"query","description":"Only orders of that type will be returned if this parameter is sent.","required":false,"schema":{"type":"string","enum":["delivery","pickup","in-store"],"isRequired":false,"description":"Only orders of that type will be returned if this parameter is sent.","uniqueKey":"","typeLabel":"enum\u003cstring>"}},"97c13a92-9139-4bdb-8198-8e9321ac0bf4":{"name":"userId","in":"query","description":"Retrieves orders by user. You can get user IDs from [List customers](/endpoints/customers/list-customers) or after [Creating an order](/endpoints/orders/create-order).","required":false,"schema":{"type":"number","isRequired":false,"description":"Retrieves orders by user. You can get user IDs from [List customers](/endpoints/customers/list-customers) or after [Creating an order](/endpoints/orders/create-order).","uniqueKey":"","typeLabel":"number"}}},"responses":{"08670e8f-245b-4399-a115-37d40aa967c3":{"description":"List orders response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the order","uniqueKey":"id","typeLabel":"string"},"totalPrice":{"type":"number","description":"The subtotal price before discounts, credits, adjustments are taken into account.","uniqueKey":"totalPrice","typeLabel":"number"},"netPrice":{"type":"number","description":"The final price of the order before payment \u0026 delivery fees. Includes taxes","uniqueKey":"netPrice","typeLabel":"number"},"customerGrandTotal":{"type":"number","description":"The final price of the order after all fees","uniqueKey":"customerGrandTotal","typeLabel":"number"},"createdAt":{"type":"string","description":"The datetime the order was created","uniqueKey":"createdAt","typeLabel":"string"},"packedAt":{"oneOf":[{"type":"string","description":"The datetime the order was packed on","uniqueKey":"packedAt.oneOf.0","typeLabel":"string"},{"type":"null","description":"The datetime the order was packed on","uniqueKey":"packedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"packedAt","typeLabel":"string | null"},"fulfilledAt":{"oneOf":[{"type":"string","description":"The date the order was fulfilled","uniqueKey":"fulfilledAt.oneOf.0","typeLabel":"string"},{"type":"null","description":"The date the order was fulfilled","uniqueKey":"fulfilledAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"fulfilledAt","typeLabel":"string | null"},"type":{"type":"string","description":"The type of this order","enum":["delivery","pickup","in-store"],"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"status":{"type":"string","description":"The status of the order.\n\n- `draft` is an order submitted without inventory taken out\n- `new` is an order that has had inventory associated with it\n- `packed` signifies an order has been processed and is waiting for pickup/delivery\n- `fulfilled` is an order that has been fully completed\n- `canceled` is an order that has been canceled","enum":["draft","new","packed","fulfilled","canceled"],"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"cancelationReason":{"oneOf":[{"type":"string","description":"A description of why the order was canceled","uniqueKey":"cancelationReason.oneOf.0","typeLabel":"string"},{"type":"null","description":"A description of why the order was canceled","uniqueKey":"cancelationReason.oneOf.1","typeLabel":"null"}],"uniqueKey":"cancelationReason","typeLabel":"string | null"},"canceledAt":{"oneOf":[{"type":"string","description":"When the order was canceled","uniqueKey":"canceledAt.oneOf.0","typeLabel":"string"},{"type":"null","description":"When the order was canceled","uniqueKey":"canceledAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"canceledAt","typeLabel":"string | null"},"taxExempt":{"type":"boolean","description":"Whether this order was marked as tax exempt or not","uniqueKey":"taxExempt","typeLabel":"boolean"},"refundTotal":{"type":"number","description":"The amount refunded by returns on this order","uniqueKey":"refundTotal","typeLabel":"number"},"isMedical":{"type":"boolean","description":"Whether this order was for a medical customer or not","uniqueKey":"isMedical","typeLabel":"boolean"},"customerName":{"oneOf":[{"type":"string","description":"The name of the customer for express pickup or kiosk orders.","uniqueKey":"customerName.oneOf.0","typeLabel":"string"},{"type":"null","description":"The name of the customer for express pickup or kiosk orders.","uniqueKey":"customerName.oneOf.1","typeLabel":"null"}],"uniqueKey":"customerName","typeLabel":"string | null"},"deliveryFee":{"type":"number","description":"The delivery fee for the order","uniqueKey":"deliveryFee","typeLabel":"number"},"deliveryFeeDescription":{"oneOf":[{"type":"string","description":"A description of the delivery fee that can be shown to the customer","uniqueKey":"deliveryFeeDescription.oneOf.0","typeLabel":"string"},{"type":"null","description":"A description of the delivery fee that can be shown to the customer","uniqueKey":"deliveryFeeDescription.oneOf.1","typeLabel":"null"}],"uniqueKey":"deliveryFeeDescription","typeLabel":"string | null"},"apiConsumerName":{"oneOf":[{"type":"string","description":"The name of the integrator that created this order or `null`","uniqueKey":"apiConsumerName.oneOf.0","typeLabel":"string"},{"type":"null","description":"The name of the integrator that created this order or `null`","uniqueKey":"apiConsumerName.oneOf.1","typeLabel":"null"}],"uniqueKey":"apiConsumerName","typeLabel":"string | null"},"lineItems":{"type":"array","description":"All of the products purchased with this order","items":{"type":"object","properties":{"id":{"type":"number","description":"The ID of this line item","uniqueKey":"lineItems.items.[INDEX].id","typeLabel":"number"},"quantity":{"type":"number","description":"The quantity of this line item","uniqueKey":"lineItems.items.[INDEX].quantity","typeLabel":"number"},"productId":{"type":"number","description":"The id of the product purchased","uniqueKey":"lineItems.items.[INDEX].productId","typeLabel":"number"},"productName":{"type":"string","description":"The name of the product purchased","uniqueKey":"lineItems.items.[INDEX].productName","typeLabel":"string"},"optionId":{"type":"number","description":"The id of the product option purchased","uniqueKey":"lineItems.items.[INDEX].optionId","typeLabel":"number"},"optionName":{"oneOf":[{"type":"string","description":"The name of the product option","uniqueKey":"lineItems.items.[INDEX].optionName.oneOf.0","typeLabel":"string"},{"type":"null","description":"The name of the product option","uniqueKey":"lineItems.items.[INDEX].optionName.oneOf.1","typeLabel":"null"}],"uniqueKey":"lineItems.items.[INDEX].optionName","typeLabel":"string | null"},"optionPrice":{"type":"number","description":"The price of the product option at time of purchase","uniqueKey":"lineItems.items.[INDEX].optionPrice","typeLabel":"number"},"optionSalesPrice":{"oneOf":[{"type":"number","description":"The sales price of the product option at time of purchase if it was on sale","uniqueKey":"lineItems.items.[INDEX].optionSalesPrice.oneOf.0","typeLabel":"number"},{"type":"null","description":"The sales price of the product option at time of purchase if it was on sale","uniqueKey":"lineItems.items.[INDEX].optionSalesPrice.oneOf.1","typeLabel":"null"}],"uniqueKey":"lineItems.items.[INDEX].optionSalesPrice","typeLabel":"number | null"},"productBrandId":{"oneOf":[{"type":"number","description":"The brand id of the product","uniqueKey":"lineItems.items.[INDEX].productBrandId.oneOf.0","typeLabel":"number"},{"type":"null","description":"The brand id of the product","uniqueKey":"lineItems.items.[INDEX].productBrandId.oneOf.1","typeLabel":"null"}],"uniqueKey":"lineItems.items.[INDEX].productBrandId","typeLabel":"number | null"},"productBrand":{"oneOf":[{"type":"string","description":"The name of the brand of the product","uniqueKey":"lineItems.items.[INDEX].productBrand.oneOf.0","typeLabel":"string"},{"type":"null","description":"The name of the brand of the product","uniqueKey":"lineItems.items.[INDEX].productBrand.oneOf.1","typeLabel":"null"}],"uniqueKey":"lineItems.items.[INDEX].productBrand","typeLabel":"string | null"},"unitPrice":{"type":"number","description":"The price per unit of this line item","uniqueKey":"lineItems.items.[INDEX].unitPrice","typeLabel":"number"},"subtotalPrice":{"type":"number","description":"The subtotal of this line item before discounts","uniqueKey":"lineItems.items.[INDEX].subtotalPrice","typeLabel":"number"},"finalPrice":{"type":"number","description":"The final price for this line item after all discounts","uniqueKey":"lineItems.items.[INDEX].finalPrice","typeLabel":"number"},"productMovingAverageCostPerUnit":{"oneOf":[{"type":"number","description":"The moving average cost per unit of the product","uniqueKey":"lineItems.items.[INDEX].productMovingAverageCostPerUnit.oneOf.0","typeLabel":"number"},{"type":"null","description":"The moving average cost per unit of the product","uniqueKey":"lineItems.items.[INDEX].productMovingAverageCostPerUnit.oneOf.1","typeLabel":"null"}],"uniqueKey":"lineItems.items.[INDEX].productMovingAverageCostPerUnit","typeLabel":"number | null"},"optionMovingAverageCostPerUnit":{"oneOf":[{"type":"string","description":"The moving average cost per unit of the product option","uniqueKey":"lineItems.items.[INDEX].optionMovingAverageCostPerUnit.oneOf.0","typeLabel":"string"},{"type":"null","description":"The moving average cost per unit of the product option","uniqueKey":"lineItems.items.[INDEX].optionMovingAverageCostPerUnit.oneOf.1","typeLabel":"null"}],"uniqueKey":"lineItems.items.[INDEX].optionMovingAverageCostPerUnit","typeLabel":"string | null"},"packageLineCost":{"oneOf":[{"type":"string","description":"The total cost for all metrc packages used to fulfill this line item","uniqueKey":"lineItems.items.[INDEX].packageLineCost.oneOf.0","typeLabel":"string"},{"type":"null","description":"The total cost for all metrc packages used to fulfill this line item","uniqueKey":"lineItems.items.[INDEX].packageLineCost.oneOf.1","typeLabel":"null"}],"uniqueKey":"lineItems.items.[INDEX].packageLineCost","typeLabel":"string | null"},"primaryCategory":{"type":"object","description":"The primary category for the product of this line item","properties":{"id":{"type":"number","description":"The ID of this product category","uniqueKey":"lineItems.items.[INDEX].primaryCategory.id","typeLabel":"number"},"name":{"type":"string","description":"The name of the primary category","uniqueKey":"lineItems.items.[INDEX].primaryCategory.name","typeLabel":"string"}},"uniqueKey":"lineItems.items.[INDEX].primaryCategory","typeLabel":"object"},"discounts":{"type":"array","description":"An array of discounts applied to this line item (may be empty)","items":{"type":"object","properties":{"discountId":{"oneOf":[{"type":"number","description":"The ID for this discount. This value will be null for a custom discount added by a budtender","uniqueKey":"lineItems.items.[INDEX].discounts.items.[INDEX].discountId.oneOf.0","typeLabel":"number"},{"type":"null","description":"The ID for this discount. This value will be null for a custom discount added by a budtender","uniqueKey":"lineItems.items.[INDEX].discounts.items.[INDEX].discountId.oneOf.1","typeLabel":"null"}],"uniqueKey":"lineItems.items.[INDEX].discounts.items.[INDEX].discountId","typeLabel":"number | null"},"type":{"type":"string","description":"Either `flat` for a dollar amount or `percent` for a percent amount off","uniqueKey":"lineItems.items.[INDEX].discounts.items.[INDEX].type","typeLabel":"string"},"amount":{"type":"number","description":"The amount of the discount before being applied. Either in cents or a percent depending on the type.","uniqueKey":"lineItems.items.[INDEX].discounts.items.[INDEX].amount","typeLabel":"number"},"amountUsed":{"type":"number","description":"The amount that was taken off of the line item by this discount, represented in cents","uniqueKey":"lineItems.items.[INDEX].discounts.items.[INDEX].amountUsed","typeLabel":"number"},"description":{"type":"string","description":"The description of the discount, which may be shown to the customer","uniqueKey":"lineItems.items.[INDEX].discounts.items.[INDEX].description","typeLabel":"string"}},"uniqueKey":"lineItems.items.[INDEX].discounts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"lineItems.items.[INDEX].discounts","typeLabel":"object[]"},"fulfillAs":{"type":"array","description":"An array of objects showing what packages or product options fulfilled this order. Could also be `null` if the line item does not have any packages or substitutions associated with it.","items":{"type":"object","properties":{"pkg":{"oneOf":[{"type":"object","description":"An object about the compliance package for this fulfillment. Please handle both `null` and an empty object `{}` for times when there is not a package","properties":{"unit":{"type":"string","description":"The metrc unit of this package","uniqueKey":"lineItems.items.[INDEX].fulfillAs.items.[INDEX].pkg.oneOf.0.unit","typeLabel":"string"},"label":{"type":"string","description":"The metrc package tag","uniqueKey":"lineItems.items.[INDEX].fulfillAs.items.[INDEX].pkg.oneOf.0.label","typeLabel":"string"},"costPerUnit":{"type":"string","description":"The cost per unit of this package","uniqueKey":"lineItems.items.[INDEX].fulfillAs.items.[INDEX].pkg.oneOf.0.costPerUnit","typeLabel":"string"}},"uniqueKey":"lineItems.items.[INDEX].fulfillAs.items.[INDEX].pkg.oneOf.0","typeLabel":"object"},{"type":"null","description":"An object about the compliance package for this fulfillment. Please handle both `null` and an empty object `{}` for times when there is not a package","properties":{"unit":{"type":"string","description":"The metrc unit of this package"},"label":{"type":"string","description":"The metrc package tag"},"costPerUnit":{"type":"string","description":"The cost per unit of this package"}},"uniqueKey":"lineItems.items.[INDEX].fulfillAs.items.[INDEX].pkg.oneOf.1","typeLabel":"null"}],"uniqueKey":"lineItems.items.[INDEX].fulfillAs.items.[INDEX].pkg","typeLabel":"object | null"},"optionSum":{"type":"number","description":"A negative number showing how much quantity of the underlying product option was used for this fulfillment. For `option` tracking this will be an integer, but for `product` tracking it could be a decimal.","uniqueKey":"lineItems.items.[INDEX].fulfillAs.items.[INDEX].optionSum","typeLabel":"number"},"productOptionId":{"type":"number","description":"The ID of the product option used for this fulfillment. For most cases, it will be the same as `lineItems[].optionId`, but in cases where another option is substituted to fulfill another (Example: 2 eighths fulfilling a quarter option), this `productOptionId` could be different.","uniqueKey":"lineItems.items.[INDEX].fulfillAs.items.[INDEX].productOptionId","typeLabel":"number"},"quantityFulfilled":{"type":"string","description":"The quantity of the underlying `lineItem` that this fulfillment is responsible for","uniqueKey":"lineItems.items.[INDEX].fulfillAs.items.[INDEX].quantityFulfilled","typeLabel":"string"}},"uniqueKey":"lineItems.items.[INDEX].fulfillAs.items.[INDEX]","typeLabel":"object"},"uniqueKey":"lineItems.items.[INDEX].fulfillAs","typeLabel":"object[]"}},"uniqueKey":"lineItems.items.[INDEX]","typeLabel":"object"},"uniqueKey":"lineItems","typeLabel":"object[]"},"payments":{"type":"array","description":"All of the payments applied to this order","items":{"type":"object","properties":{"id":{"type":"number","description":"The ID of this payment","uniqueKey":"payments.items.[INDEX].id","typeLabel":"number"},"paymentTypeId":{"type":"number","description":"The ID of the payment type used for this payment","uniqueKey":"payments.items.[INDEX].paymentTypeId","typeLabel":"number"},"amount":{"type":"number","description":"The amount of the payment before fees in cents","uniqueKey":"payments.items.[INDEX].amount","typeLabel":"number"},"finalAmount":{"type":"number","description":"The final amount of the payment after fees are included","uniqueKey":"payments.items.[INDEX].finalAmount","typeLabel":"number"},"name":{"type":"string","description":"The name of the payment type being used to make this payment","uniqueKey":"payments.items.[INDEX].name","typeLabel":"string"},"fee":{"type":"number","description":"The amount of a flat fee in cents added to this payment","uniqueKey":"payments.items.[INDEX].fee","typeLabel":"number"},"feePercent":{"type":"string","description":"The % fee that this payment type has for all payments","uniqueKey":"payments.items.[INDEX].feePercent","typeLabel":"string"},"feeAmount":{"type":"number","description":"The fee in cents the customer is paying. This is the flat `fee` + the `feePercent` multiplied by the payment amount.","uniqueKey":"payments.items.[INDEX].feeAmount","typeLabel":"number"},"feeDescription":{"oneOf":[{"type":"string","description":"The description of the fee that was shown to the customer.","uniqueKey":"payments.items.[INDEX].feeDescription.oneOf.0","typeLabel":"string"},{"type":"null","description":"The description of the fee that was shown to the customer.","uniqueKey":"payments.items.[INDEX].feeDescription.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].feeDescription","typeLabel":"string | null"}},"uniqueKey":"payments.items.[INDEX]","typeLabel":"object"},"uniqueKey":"payments","typeLabel":"object[]"},"customer":{"type":"object","description":"The customer attached to this order. Will be an empty object `{}` if there is no customer associated with this order (i.e. it is an anonymous order)","properties":{"id":{"type":"number","description":"The ID of the customer","uniqueKey":"customer.id","typeLabel":"number"},"firstName":{"type":"string","description":"The first name of the customer","uniqueKey":"customer.firstName","typeLabel":"string"},"lastName":{"type":"string","description":"The last name of the customer","uniqueKey":"customer.lastName","typeLabel":"string"},"email":{"oneOf":[{"type":"string","description":"The email of the customer","uniqueKey":"customer.email.oneOf.0","typeLabel":"string"},{"type":"null","description":"The email of the customer","uniqueKey":"customer.email.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.email","typeLabel":"string | null"},"phone":{"oneOf":[{"type":"string","description":"The phone of the customer","uniqueKey":"customer.phone.oneOf.0","typeLabel":"string"},{"type":"null","description":"The phone of the customer","uniqueKey":"customer.phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.phone","typeLabel":"string | null"},"birthday":{"oneOf":[{"type":"string","description":"The birthday of the customer","uniqueKey":"customer.birthday.oneOf.0","typeLabel":"string"},{"type":"null","description":"The birthday of the customer","uniqueKey":"customer.birthday.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.birthday","typeLabel":"string | null"},"hashId":{"type":"string","description":"An ID used to display to the customer and dispensary instead of the `id` number","uniqueKey":"customer.hashId","typeLabel":"string"},"sex":{"type":"string","description":"One of `male`, `female`, `tertiary`","uniqueKey":"customer.sex","typeLabel":"string"},"zip":{"oneOf":[{"type":"string","description":"The postal code for the customer","uniqueKey":"customer.zip.oneOf.0","typeLabel":"string"},{"type":"null","description":"The postal code for the customer","uniqueKey":"customer.zip.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.zip","typeLabel":"string | null"},"licenseExpiry":{"oneOf":[{"type":"string","description":"The expiration date of this customer’s drivers license or `null` if it is not recorded.","uniqueKey":"customer.licenseExpiry.oneOf.0","typeLabel":"string"},{"type":"null","description":"The expiration date of this customer’s drivers license or `null` if it is not recorded.","uniqueKey":"customer.licenseExpiry.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.licenseExpiry","typeLabel":"string | null"},"medicalExpiration":{"oneOf":[{"type":"string","description":"The expiration date of this customer’s medical recommendation or `null` if they are an adult use customer","uniqueKey":"customer.medicalExpiration.oneOf.0","typeLabel":"string"},{"type":"null","description":"The expiration date of this customer’s medical recommendation or `null` if they are an adult use customer","uniqueKey":"customer.medicalExpiration.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.medicalExpiration","typeLabel":"string | null"}},"uniqueKey":"customer","typeLabel":"object"},"placedBy":{"type":"object","description":"The employee that created this order. Will be an empty object `{}` if this order was created by a customer and not an employee.","properties":{"id":{"type":"number","description":"The ID of the employee who created this order","uniqueKey":"placedBy.id","typeLabel":"number"},"email":{"type":"string","description":"The email of the employee","uniqueKey":"placedBy.email","typeLabel":"string"},"firstName":{"type":"string","description":"The first name of the employee","uniqueKey":"placedBy.firstName","typeLabel":"string"},"lastName":{"type":"string","description":"The last name of the employee","uniqueKey":"placedBy.lastName","typeLabel":"string"}},"uniqueKey":"placedBy","typeLabel":"object"},"fulfilledBy":{"type":"object","description":"The employee that fulfilled this order. Will be an empty object `{}` if there is no employee that fulfilled it.","properties":{"id":{"type":"number","description":"The ID of the employee who fulfilled this order","uniqueKey":"fulfilledBy.id","typeLabel":"number"},"email":{"type":"string","description":"The email of the employee","uniqueKey":"fulfilledBy.email","typeLabel":"string"},"firstName":{"type":"string","description":"The first name of the employee","uniqueKey":"fulfilledBy.firstName","typeLabel":"string"},"lastName":{"type":"string","description":"The last name of the employee","uniqueKey":"fulfilledBy.lastName","typeLabel":"string"}},"uniqueKey":"fulfilledBy","typeLabel":"object"},"adjustments":{"type":"array","description":"Adjustments either made automatically such as even dollar rounding or custom adjustments by an employee","items":{"type":"object","properties":{"amount":{"type":"number","description":"The amount of the adjustment in cents. May be either negative or positive.","uniqueKey":"adjustments.items.[INDEX].amount","typeLabel":"number"},"description":{"type":"string","description":"A description for the adjustment","uniqueKey":"adjustments.items.[INDEX].description","typeLabel":"string"},"isTaxExemption":{"type":"boolean","description":"Set to `true` if this adjustment was automatically added to offset taxes that were included in the price of a product when a customer is tax exempt","uniqueKey":"adjustments.items.[INDEX].isTaxExemption","typeLabel":"boolean"},"taxid":{"type":"number","description":"The ID of the tax exempted or `null`","uniqueKey":"adjustments.items.[INDEX].taxid","typeLabel":"number"}},"uniqueKey":"adjustments.items.[INDEX]","typeLabel":"object"},"uniqueKey":"adjustments","typeLabel":"object[]"},"credits":{"type":"array","description":"Credits used on this order","items":{"type":"object","properties":{"creditId":{"type":"number","description":"The ID for the credit applied","uniqueKey":"credits.items.[INDEX].creditId","typeLabel":"number"},"type":{"type":"string","description":"Either `promo-code` or `store-credit`","uniqueKey":"credits.items.[INDEX].type","typeLabel":"string"},"amountUsed":{"type":"number","description":"The credit amount applied to the order in cents","uniqueKey":"credits.items.[INDEX].amountUsed","typeLabel":"number"},"description":{"type":"string","description":"A description of the credit","uniqueKey":"credits.items.[INDEX].description","typeLabel":"string"}},"uniqueKey":"credits.items.[INDEX]","typeLabel":"object"},"uniqueKey":"credits","typeLabel":"object[]"},"discounts":{"type":"array","description":"The discounts applied to this order","items":{"type":"object","properties":{"discountId":{"type":"number","description":"The ID for this discount. This value will be null for a custom discount added by a budtender.","uniqueKey":"discounts.items.[INDEX].discountId","typeLabel":"number"},"type":{"type":"string","description":"Either `flat` for a dollar amount or `percent` for a percent amount off","uniqueKey":"discounts.items.[INDEX].type","typeLabel":"string"},"amount":{"type":"number","description":"The amount of the discount before being applied. Either in cents or a percent depending on the type.","uniqueKey":"discounts.items.[INDEX].amount","typeLabel":"number"},"amountUsed":{"type":"number","description":"The amount of the discount that was applied to the order represented in cents.","uniqueKey":"discounts.items.[INDEX].amountUsed","typeLabel":"number"},"description":{"type":"string","description":"The description of the discount, which may be shown to the customer","uniqueKey":"discounts.items.[INDEX].description","typeLabel":"string"}},"uniqueKey":"discounts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"discounts","typeLabel":"object[]"},"loyaltyRedemptions":{"type":"array","description":"The loyalty redemptions used on this order","items":{"type":"object","properties":{"type":{"type":"string","description":"One of `cash-back`, `flat`, `percent`, or `free-product`","uniqueKey":"loyaltyRedemptions.items.[INDEX].type","typeLabel":"string"},"description":{"type":"string","description":"A description of the reward that was redeemed","uniqueKey":"loyaltyRedemptions.items.[INDEX].description","typeLabel":"string"},"pointsRequirement":{"type":"string","description":"The minimum number of loyalty points required to redeem this reward","uniqueKey":"loyaltyRedemptions.items.[INDEX].pointsRequirement","typeLabel":"string"},"pointsAmount":{"type":"string","description":"The amount of points used in this redemption","uniqueKey":"loyaltyRedemptions.items.[INDEX].pointsAmount","typeLabel":"string"},"discountAmount":{"type":"string","description":"The discount amount of the reward. For `cash-back` this is the amount in cents per point used. For `flat` it is a flat amount in cents, `percent` would be a percent off","uniqueKey":"loyaltyRedemptions.items.[INDEX].discountAmount","typeLabel":"string"},"amountUsed":{"type":"number","description":"The amount of the discount applied to the order in cents","uniqueKey":"loyaltyRedemptions.items.[INDEX].amountUsed","typeLabel":"number"},"productOptionId":{"oneOf":[{"type":"number","description":"The product option id for a `free-product` redemption","uniqueKey":"loyaltyRedemptions.items.[INDEX].productOptionId.oneOf.0","typeLabel":"number"},{"type":"null","description":"The product option id for a `free-product` redemption","uniqueKey":"loyaltyRedemptions.items.[INDEX].productOptionId.oneOf.1","typeLabel":"null"}],"uniqueKey":"loyaltyRedemptions.items.[INDEX].productOptionId","typeLabel":"number | null"}},"uniqueKey":"loyaltyRedemptions.items.[INDEX]","typeLabel":"object"},"uniqueKey":"loyaltyRedemptions","typeLabel":"object[]"},"taxes":{"type":"array","description":"The taxes applied to this order","items":{"type":"object","properties":{"taxId":{"type":"number","description":"The ID for this tax","uniqueKey":"taxes.items.[INDEX].taxId","typeLabel":"number"},"amount":{"type":"number","description":"The amount applied to the order in cents","uniqueKey":"taxes.items.[INDEX].amount","typeLabel":"number"},"description":{"type":"string","description":"A description of the tax","uniqueKey":"taxes.items.[INDEX].description","typeLabel":"string"},"rate":{"type":"string","description":"A numeric value for the percentage of a tax","uniqueKey":"taxes.items.[INDEX].rate","typeLabel":"string"},"amountBeforeExemption":{"type":"number","description":"The amount of the tax as calculated before determining what was exempted in cents","uniqueKey":"taxes.items.[INDEX].amountBeforeExemption","typeLabel":"number"},"amountExempted":{"type":"number","description":"The amount of the tax reduction due to an exemption in cents","uniqueKey":"taxes.items.[INDEX].amountExempted","typeLabel":"number"},"included":{"type":"boolean","description":"Whether the amount of this tax was already included in the product of the line items","uniqueKey":"taxes.items.[INDEX].included","typeLabel":"boolean"},"exemptable":{"type":"boolean","description":"Whether this tax is able to be exempted","uniqueKey":"taxes.items.[INDEX].exemptable","typeLabel":"boolean"},"tier":{"type":"string","description":"The order of tax compounding. Will be a value between 1 and 5 indicating the order the tax was applied. Each tier may have multiple taxes in it.","uniqueKey":"taxes.items.[INDEX].tier","typeLabel":"string"},"type":{"type":"string","description":"Either `standard` or `california-excise`","uniqueKey":"taxes.items.[INDEX].type","typeLabel":"string"},"normalRate":{"type":"string","description":"The rate of this tax before it was overriden by an employee","uniqueKey":"taxes.items.[INDEX].normalRate","typeLabel":"string"}},"uniqueKey":"taxes.items.[INDEX]","typeLabel":"object"},"uniqueKey":"taxes","typeLabel":"object[]"},"returns":{"type":"array","description":"The returns applied to this order","items":{"type":"object","properties":{"id":{"type":"number","description":"The ID of this return","uniqueKey":"returns.items.[INDEX].id","typeLabel":"number"},"refundType":{"type":"string","description":"One of `payment-method`, `store-credit` or `none`","uniqueKey":"returns.items.[INDEX].refundType","typeLabel":"string"},"refundInitial":{"type":"number","description":"The initial refund before taxes, credits, adjustments, loyalty, and discounts","uniqueKey":"returns.items.[INDEX].refundInitial","typeLabel":"number"},"refundTotal":{"type":"number","description":"The final refund total of the return","uniqueKey":"returns.items.[INDEX].refundTotal","typeLabel":"number"},"creditsTotal":{"type":"number","description":"The amount of credits refunded from the order","uniqueKey":"returns.items.[INDEX].creditsTotal","typeLabel":"number"},"discountsTotal":{"type":"number","description":"The amount of discounts refunded from the order","uniqueKey":"returns.items.[INDEX].discountsTotal","typeLabel":"number"},"adjustmentAmount":{"type":"number","description":"A manual adjustment of the refund for this return","uniqueKey":"returns.items.[INDEX].adjustmentAmount","typeLabel":"number"},"adjustmentDescription":{"oneOf":[{"type":"string","description":"A description for the adjustment if there is one","uniqueKey":"returns.items.[INDEX].adjustmentDescription.oneOf.0","typeLabel":"string"},{"type":"null","description":"A description for the adjustment if there is one","uniqueKey":"returns.items.[INDEX].adjustmentDescription.oneOf.1","typeLabel":"null"}],"uniqueKey":"returns.items.[INDEX].adjustmentDescription","typeLabel":"string | null"},"paymentTypeName":{"type":"string","description":"The name of the payment type this refund was processed as","uniqueKey":"returns.items.[INDEX].paymentTypeName","typeLabel":"string"},"loyaltyTotal":{"type":"number","description":"The amount of a loyalty redemption returned","uniqueKey":"returns.items.[INDEX].loyaltyTotal","typeLabel":"number"},"voidedAt":{"oneOf":[{"type":"string","description":"The date that this return was voided or `null`. If there is a value here, it means the return was canceled and is no longer applicable","uniqueKey":"returns.items.[INDEX].voidedAt.oneOf.0","typeLabel":"string"},{"type":"null","description":"The date that this return was voided or `null`. If there is a value here, it means the return was canceled and is no longer applicable","uniqueKey":"returns.items.[INDEX].voidedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"returns.items.[INDEX].voidedAt","typeLabel":"string | null"},"voidedReason":{"oneOf":[{"type":"string","description":"The reason this return was voided","uniqueKey":"returns.items.[INDEX].voidedReason.oneOf.0","typeLabel":"string"},{"type":"null","description":"The reason this return was voided","uniqueKey":"returns.items.[INDEX].voidedReason.oneOf.1","typeLabel":"null"}],"uniqueKey":"returns.items.[INDEX].voidedReason","typeLabel":"string | null"},"createdAt":{"type":"string","description":"The date this return was created","uniqueKey":"returns.items.[INDEX].createdAt","typeLabel":"string"},"lineItems":{"type":"array","description":"An array of line items for this return","items":{"type":"object","properties":{"orderLineItemId":{"type":"number","description":"The ID of the `lineItems[].id` that is being returned","uniqueKey":"returns.items.[INDEX].lineItems.items.[INDEX].orderLineItemId","typeLabel":"number"},"type":{"type":"string","description":"Either `return` or `exchange`","uniqueKey":"returns.items.[INDEX].lineItems.items.[INDEX].type","typeLabel":"string"},"inventoryAction":{"type":"string","description":"One of `waste`, `inventory` , or `vendor`.","uniqueKey":"returns.items.[INDEX].lineItems.items.[INDEX].inventoryAction","typeLabel":"string"},"quantity":{"type":"number","description":"The quantity of the order line item being returned","uniqueKey":"returns.items.[INDEX].lineItems.items.[INDEX].quantity","typeLabel":"number"},"reason":{"type":"string","description":"A reason this line item is being returned","uniqueKey":"returns.items.[INDEX].lineItems.items.[INDEX].reason","typeLabel":"string"},"fulfillAs":{"type":"array","description":"Fulfillment information for the packages on this return. See `lineItems[].fulfillAs` for possible properties","items":{"type":"object","uniqueKey":"returns.items.[INDEX].lineItems.items.[INDEX].fulfillAs.items.[INDEX]","typeLabel":"object"},"uniqueKey":"returns.items.[INDEX].lineItems.items.[INDEX].fulfillAs","typeLabel":"object[]"}},"uniqueKey":"returns.items.[INDEX].lineItems.items.[INDEX]","typeLabel":"object"},"uniqueKey":"returns.items.[INDEX].lineItems","typeLabel":"object[]"},"taxes":{"type":"array","description":"An array of tax information about this return","items":{"type":"object","properties":{"amount":{"type":"number","description":"The amount of tax proportionally applied to this return","uniqueKey":"returns.items.[INDEX].taxes.items.[INDEX].amount","typeLabel":"number"},"description":{"type":"string","description":"A description of the tax","uniqueKey":"returns.items.[INDEX].taxes.items.[INDEX].description","typeLabel":"string"},"refunded":{"type":"boolean","description":"A boolean of whether this tax was refunded to the customer or not","uniqueKey":"returns.items.[INDEX].taxes.items.[INDEX].refunded","typeLabel":"boolean"},"rate":{"type":"number","description":"The tax rate","uniqueKey":"returns.items.[INDEX].taxes.items.[INDEX].rate","typeLabel":"number"},"included":{"type":"boolean","description":"Whether this tax was included in the price of the products","uniqueKey":"returns.items.[INDEX].taxes.items.[INDEX].included","typeLabel":"boolean"},"exemptable":{"type":"boolean","description":"Whether this tax was exemptable or not","uniqueKey":"returns.items.[INDEX].taxes.items.[INDEX].exemptable","typeLabel":"boolean"}},"uniqueKey":"returns.items.[INDEX].taxes.items.[INDEX]","typeLabel":"object"},"uniqueKey":"returns.items.[INDEX].taxes","typeLabel":"object[]"},"createdBy":{"type":"object","description":"The employee that created this return","properties":{"id":{"type":"number","description":"The id of the employee who created this return","uniqueKey":"returns.items.[INDEX].createdBy.id","typeLabel":"number"},"email":{"type":"string","description":"The email of the employee","uniqueKey":"returns.items.[INDEX].createdBy.email","typeLabel":"string"},"firstName":{"type":"string","description":"The first name of the employee","uniqueKey":"returns.items.[INDEX].createdBy.firstName","typeLabel":"string"},"lastName":{"type":"string","description":"The last name of the employee","uniqueKey":"returns.items.[INDEX].createdBy.lastName","typeLabel":"string"}},"uniqueKey":"returns.items.[INDEX].createdBy","typeLabel":"object"},"voidedBy":{"type":"object","description":"The employee that voided this return (or `{}` if it is not voided)","properties":{"id":{"type":"number","description":"The id of the employee who voided this return","uniqueKey":"returns.items.[INDEX].voidedBy.id","typeLabel":"number"},"email":{"type":"string","description":"The email of the employee","uniqueKey":"returns.items.[INDEX].voidedBy.email","typeLabel":"string"},"firstName":{"type":"string","description":"The first name of the employee","uniqueKey":"returns.items.[INDEX].voidedBy.firstName","typeLabel":"string"},"lastName":{"type":"string","description":"The last name of the employee","uniqueKey":"returns.items.[INDEX].voidedBy.lastName","typeLabel":"string"}},"uniqueKey":"returns.items.[INDEX].voidedBy","typeLabel":"object"}},"uniqueKey":"returns.items.[INDEX]","typeLabel":"object"},"uniqueKey":"returns","typeLabel":"object[]"},"address":{"oneOf":[{"type":"object","description":"The address if this order is a delivery order. Otherwise, `null`","properties":{"street1":{"type":"string","description":"","uniqueKey":"address.oneOf.0.street1","typeLabel":"string"},"street2":{"oneOf":[{"type":"string","description":"","uniqueKey":"address.oneOf.0.street2.oneOf.0","typeLabel":"string"},{"type":"null","description":"","uniqueKey":"address.oneOf.0.street2.oneOf.1","typeLabel":"null"}],"uniqueKey":"address.oneOf.0.street2","typeLabel":"string | null"},"city":{"type":"string","description":"","uniqueKey":"address.oneOf.0.city","typeLabel":"string"},"state":{"type":"string","description":"","uniqueKey":"address.oneOf.0.state","typeLabel":"string"},"postalCode":{"type":"string","description":"","uniqueKey":"address.oneOf.0.postalCode","typeLabel":"string"}},"uniqueKey":"address.oneOf.0","typeLabel":"object"},{"type":"null","description":"The address if this order is a delivery order. Otherwise, `null`","properties":{"street1":{"type":"string","description":""},"street2":{"oneOf":[{"type":"string","description":""},{"type":"null","description":""}]},"city":{"type":"string","description":""},"state":{"type":"string","description":""},"postalCode":{"type":"string","description":""}},"uniqueKey":"address.oneOf.1","typeLabel":"null"}],"uniqueKey":"address","typeLabel":"object | null"},"shift":{"oneOf":[{"type":"object","description":"The shift this order is attached to. Otherwise `null`","properties":{"name":{"oneOf":[{"type":"string","description":"The name of the shift. This will most commonly be attributed to the name of the iPad station.","uniqueKey":"shift.oneOf.0.name.oneOf.0","typeLabel":"string"},{"type":"null","description":"The name of the shift. This will most commonly be attributed to the name of the iPad station.","uniqueKey":"shift.oneOf.0.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"shift.oneOf.0.name","typeLabel":"string | null"}},"uniqueKey":"shift.oneOf.0","typeLabel":"object"},{"type":"null","description":"The shift this order is attached to. Otherwise `null`","properties":{"name":{"oneOf":[{"type":"string","description":"The name of the shift. This will most commonly be attributed to the name of the iPad station."},{"type":"null","description":"The name of the shift. This will most commonly be attributed to the name of the iPad station."}]}},"uniqueKey":"shift.oneOf.1","typeLabel":"null"}],"uniqueKey":"shift","typeLabel":"object | null"},"onfleetTask":{"oneOf":[{"type":"object","description":"The Onfleet task information for this order if it has one or `null`.","properties":{"taskId":{"type":"string","description":"The full ID of the Onfleet task. See Onfleet's documentation for more information.","uniqueKey":"onfleetTask.oneOf.0.taskId","typeLabel":"string"},"shortId":{"type":"string","description":"The short ID of the Onfleet task. See Onfleet's documentation for more information.","uniqueKey":"onfleetTask.oneOf.0.shortId","typeLabel":"string"}},"uniqueKey":"onfleetTask.oneOf.0","typeLabel":"object"},{"type":"null","description":"The Onfleet task information for this order if it has one or `null`.","properties":{"taskId":{"type":"string","description":"The full ID of the Onfleet task. See Onfleet's documentation for more information."},"shortId":{"type":"string","description":"The short ID of the Onfleet task. See Onfleet's documentation for more information."}},"uniqueKey":"onfleetTask.oneOf.1","typeLabel":"null"}],"uniqueKey":"onfleetTask","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object"},"example":{"data":[{"id":"1471684654","organizationId":1,"totalPrice":4000,"netPrice":3140,"createdAt":"2022-12-15T21:13:14.500Z","packedAt":null,"fulfilledAt":null,"customerGrandTotal":3140,"type":"in-store","source":"web-admin","status":"new","cancelationReason":null,"cancelAdminId":null,"canceledAt":null,"taxExempt":true,"refundTotal":0,"isMedical":false,"customerName":null,"deliveryFee":null,"deliveryFeeDescription":null,"apiConsumerName":null,"lineItems":[{"id":1234,"quantity":1,"productId":398,"productName":"50 Dose Pen","productUnit":"item","productStrainType":"mixed","optionId":1112,"optionName":"Calm","optionAmount":1,"optionPrice":4500,"optionSalesPrice":null,"productBrandId":37,"productBrand":"Dosist","unitPrice":4500,"subtotalPrice":4500,"finalPrice":4000,"productMovingAverageCostPerUnit":null,"optionMovingAverageCostPerUnit":25,"packageLineCost":null,"primaryCategory":{"id":8,"name":"Flowers","cannabisType":"non-concentrated"},"fulfillAs":[{"pkg":{"unit":"Grams","label":"1A4FF0300000029000008338","costPerUnit":"0"},"optionSum":-3,"productOptionId":1112,"quantityFulfilled":"3"}],"discounts":[{"discountId":29,"type":"flat","amount":500,"amountUsed":500,"description":"$ 5 Discount"}]}],"payments":[{"id":1547,"paymentTypeId":1,"amount":3140,"finalAmount":3140,"name":"Cash","fee":0,"feePercent":"0","feeAmount":0,"feeDescription":null}],"customer":{},"placedBy":{"id":1,"email":"rick@getmeadow.com","firstName":"Rick","lastName":"Harrison"},"fulfilledBy":{"id":2983,"email":"rick+1@getmeadow.com","firstName":"Rick","lastName":"Harrison"},"adjustments":[{"amount":-327,"description":"City Tax Exemption","isTaxExemption":true,"taxId":134}],"credits":[{"creditId":361,"type":"store-credit","amountUsed":133,"description":"Store credit"}],"discounts":[{"discountId":7,"type":"percent","amount":10,"amountUsed":400,"description":"Seniors"}],"loyaltyRedemptions":[{"type":"cash-back","description":"2% Cash Back","pointsRequirement":"1","pointsAmount":"-500.0","discountAmount":"2","amountUsed":1000,"productOptionId":null}],"taxes":[{"taxId":59,"amount":0,"description":"State Sales Tax","rate":"9.5","amountBeforeExemption":311,"amountExempted":311,"included":false,"exemptable":true,"tier":"1","type":"standard","normalRate":"9.5"},{"taxId":134,"amount":0,"description":"City Tax (Included)","rate":"10","amountBeforeExemption":327,"amountExempted":327,"included":true,"exemptable":true,"tier":"1","type":"standard","normalRate":"10"}],"returns":[{"id":364,"refundType":"payment-method","refundInitial":-4500,"refundTotal":-4905,"creditsTotal":0,"discountsTotal":0,"adjustmentAmount":0,"adjustmentDescription":"","paymentTypeName":"Cash","loyaltyTotal":0,"voidedAt":"2023-05-04T20:48:41.508Z","voidedReason":"void reason here","createdAt":"2023-05-04T20:34:48.387Z","lineItems":[{"orderLineItemId":15368,"type":"return","inventoryAction":"waste","quantity":1,"reason":"Product was defective","fulfillAs":[]}],"taxes":[{"taxId":59,"amount":-225,"description":"State Sales Tax","refunded":true,"rate":"5","included":false,"exemptable":false,"type":"standard","tier":"1"},{"taxId":134,"amount":-180,"description":"City Tax (Included)","refunded":true,"rate":"10","included":false,"exemptable":false,"type":"standard","tier":"1"}],"createdBy":{"id":1,"email":"rick@getmeadow.com","firstName":"Rick","lastName":"Harrison"},"voidedBy":{"id":1,"email":"rick@getmeadow.com","firstName":"Rick","lastName":"Harrison"}}],"address":null,"shift":{"name":"POS Station 3"},"onfleetTask":null},{"id":"12352010","organizationId":1,"userId":2987,"totalPrice":19500,"netPrice":26319,"createdAt":"2022-09-22T00:16:39.982Z","packedAt":null,"fulfilledAt":null,"customerGrandTotal":26819,"type":"delivery","source":"open-api","status":"new","cancelationReason":null,"cancelAdminId":null,"canceledAt":null,"taxExempt":false,"refundTotal":0,"isMedical":false,"customerName":null,"deliveryFee":500,"deliveryFeeDescription":"300","apiConsumerName":"Integrator Name","lineItems":[{"id":36263,"quantity":3,"productId":758,"productName":"Kush Minntz","productUnit":"gram","productStrainType":"hybrid","optionId":1899,"optionName":"Eighth","optionAmount":3.54,"optionPrice":6500,"optionSalesPrice":null,"productBrandId":226,"productBrand":"Minntz","unitPrice":6500,"subtotalPrice":19500,"finalPrice":19500,"productMovingAverageCostPerUnit":null,"optionMovingAverageCostPerUnit":19.198711,"packageLineCost":15,"primaryCategory":{"id":8,"name":"Flowers","cannabisType":"non-concentrated"},"fulfillAs":[],"discounts":[]}],"payments":[{"id":1548,"paymentTypeId":1,"amount":26319,"finalAmount":26819,"name":"Cash","fee":500,"feePercent":"0","feeAmount":500,"feeDescription":null}],"customer":{"id":2987,"email":"perrin5@getmeadow.com","firstName":"Perrin","lastName":"Aybara","phone":null,"hashId":"b6a97e","birthday":"2022-11-08","sex":"male","zip":"96150","licenseExpiry":"2022-11-13","medicalExpiration":"2025-01-03"},"placedBy":{},"fulfilledBy":{},"adjustments":[],"credits":[],"discounts":[],"loyaltyRedemptions":[{"type":"free-product","description":"Flower","pointsRequirement":"100","pointsAmount":"-100.0","discountAmount":null,"amountUsed":1500,"productOptionId":26}],"taxes":[{"taxId":59,"amount":0,"description":"State Sales Tax","rate":"9.5","amountBeforeExemption":350,"amountExempted":350,"included":false,"exemptable":true,"tier":"1","type":"standard","normalRate":"9.5"},{"taxId":134,"amount":0,"description":"City Tax (Included)","rate":"10","amountBeforeExemption":368,"amountExempted":368,"included":true,"exemptable":true,"tier":"1","type":"standard","normalRate":"10"}],"returns":[],"address":{"street1":"123 Main St","street2":null,"city":"San Francisco","state":"California","postalCode":"94103"},"shift":null,"onfleetTask":null}]},"examples":{"Example":{"title":"Example","value":{"data":[{"id":"1471684654","organizationId":1,"totalPrice":4000,"netPrice":3140,"createdAt":"2022-12-15T21:13:14.500Z","packedAt":null,"fulfilledAt":null,"customerGrandTotal":3140,"type":"in-store","source":"web-admin","status":"new","cancelationReason":null,"cancelAdminId":null,"canceledAt":null,"taxExempt":true,"refundTotal":0,"isMedical":false,"customerName":null,"deliveryFee":null,"deliveryFeeDescription":null,"apiConsumerName":null,"lineItems":[{"id":1234,"quantity":1,"productId":398,"productName":"50 Dose Pen","productUnit":"item","productStrainType":"mixed","optionId":1112,"optionName":"Calm","optionAmount":1,"optionPrice":4500,"optionSalesPrice":null,"productBrandId":37,"productBrand":"Dosist","unitPrice":4500,"subtotalPrice":4500,"finalPrice":4000,"productMovingAverageCostPerUnit":null,"optionMovingAverageCostPerUnit":25,"packageLineCost":null,"primaryCategory":{"id":8,"name":"Flowers","cannabisType":"non-concentrated"},"fulfillAs":[{"pkg":{"unit":"Grams","label":"1A4FF0300000029000008338","costPerUnit":"0"},"optionSum":-3,"productOptionId":1112,"quantityFulfilled":"3"}],"discounts":[{"discountId":29,"type":"flat","amount":500,"amountUsed":500,"description":"$ 5 Discount"}]}],"payments":[{"id":1547,"paymentTypeId":1,"amount":3140,"finalAmount":3140,"name":"Cash","fee":0,"feePercent":"0","feeAmount":0,"feeDescription":null}],"customer":{},"placedBy":{"id":1,"email":"rick@getmeadow.com","firstName":"Rick","lastName":"Harrison"},"fulfilledBy":{"id":2983,"email":"rick+1@getmeadow.com","firstName":"Rick","lastName":"Harrison"},"adjustments":[{"amount":-327,"description":"City Tax Exemption","isTaxExemption":true,"taxId":134}],"credits":[{"creditId":361,"type":"store-credit","amountUsed":133,"description":"Store credit"}],"discounts":[{"discountId":7,"type":"percent","amount":10,"amountUsed":400,"description":"Seniors"}],"loyaltyRedemptions":[{"type":"cash-back","description":"2% Cash Back","pointsRequirement":"1","pointsAmount":"-500.0","discountAmount":"2","amountUsed":1000,"productOptionId":null}],"taxes":[{"taxId":59,"amount":0,"description":"State Sales Tax","rate":"9.5","amountBeforeExemption":311,"amountExempted":311,"included":false,"exemptable":true,"tier":"1","type":"standard","normalRate":"9.5"},{"taxId":134,"amount":0,"description":"City Tax (Included)","rate":"10","amountBeforeExemption":327,"amountExempted":327,"included":true,"exemptable":true,"tier":"1","type":"standard","normalRate":"10"}],"returns":[{"id":364,"refundType":"payment-method","refundInitial":-4500,"refundTotal":-4905,"creditsTotal":0,"discountsTotal":0,"adjustmentAmount":0,"adjustmentDescription":"","paymentTypeName":"Cash","loyaltyTotal":0,"voidedAt":"2023-05-04T20:48:41.508Z","voidedReason":"void reason here","createdAt":"2023-05-04T20:34:48.387Z","lineItems":[{"orderLineItemId":15368,"type":"return","inventoryAction":"waste","quantity":1,"reason":"Product was defective","fulfillAs":[]}],"taxes":[{"taxId":59,"amount":-225,"description":"State Sales Tax","refunded":true,"rate":"5","included":false,"exemptable":false,"type":"standard","tier":"1"},{"taxId":134,"amount":-180,"description":"City Tax (Included)","refunded":true,"rate":"10","included":false,"exemptable":false,"type":"standard","tier":"1"}],"createdBy":{"id":1,"email":"rick@getmeadow.com","firstName":"Rick","lastName":"Harrison"},"voidedBy":{"id":1,"email":"rick@getmeadow.com","firstName":"Rick","lastName":"Harrison"}}],"address":null,"shift":{"name":"POS Station 3"},"onfleetTask":null},{"id":"12352010","organizationId":1,"userId":2987,"totalPrice":19500,"netPrice":26319,"createdAt":"2022-09-22T00:16:39.982Z","packedAt":null,"fulfilledAt":null,"customerGrandTotal":26819,"type":"delivery","source":"open-api","status":"new","cancelationReason":null,"cancelAdminId":null,"canceledAt":null,"taxExempt":false,"refundTotal":0,"isMedical":false,"customerName":null,"deliveryFee":500,"deliveryFeeDescription":"300","apiConsumerName":"Integrator Name","lineItems":[{"id":36263,"quantity":3,"productId":758,"productName":"Kush Minntz","productUnit":"gram","productStrainType":"hybrid","optionId":1899,"optionName":"Eighth","optionAmount":3.54,"optionPrice":6500,"optionSalesPrice":null,"productBrandId":226,"productBrand":"Minntz","unitPrice":6500,"subtotalPrice":19500,"finalPrice":19500,"productMovingAverageCostPerUnit":null,"optionMovingAverageCostPerUnit":19.198711,"packageLineCost":15,"primaryCategory":{"id":8,"name":"Flowers","cannabisType":"non-concentrated"},"fulfillAs":[],"discounts":[]}],"payments":[{"id":1548,"paymentTypeId":1,"amount":26319,"finalAmount":26819,"name":"Cash","fee":500,"feePercent":"0","feeAmount":500,"feeDescription":null}],"customer":{"id":2987,"email":"perrin5@getmeadow.com","firstName":"Perrin","lastName":"Aybara","phone":null,"hashId":"b6a97e","birthday":"2022-11-08","sex":"male","zip":"96150","licenseExpiry":"2022-11-13","medicalExpiration":"2025-01-03"},"placedBy":{},"fulfilledBy":{},"adjustments":[],"credits":[],"discounts":[],"loyaltyRedemptions":[{"type":"free-product","description":"Flower","pointsRequirement":"100","pointsAmount":"-100.0","discountAmount":null,"amountUsed":1500,"productOptionId":26}],"taxes":[{"taxId":59,"amount":0,"description":"State Sales Tax","rate":"9.5","amountBeforeExemption":350,"amountExempted":350,"included":false,"exemptable":true,"tier":"1","type":"standard","normalRate":"9.5"},{"taxId":134,"amount":0,"description":"City Tax (Included)","rate":"10","amountBeforeExemption":368,"amountExempted":368,"included":true,"exemptable":true,"tier":"1","type":"standard","normalRate":"10"}],"returns":[],"address":{"street1":"123 Main St","street2":null,"city":"San Francisco","state":"California","postalCode":"94103"},"shift":null,"onfleetTask":null}]}}},"exampleType":"examples"}},"exampleType":"examples"},"1e06f2e1-ed69-440c-8fcc-cf2779e11278":{"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":"List orders - Meadow API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-09-16T21:13:09.409Z","originalFileLocation":"endpoints/analytics/list-orders.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=\"Retrieve all orders for an organization in reverse chronological order. 50 orders will be returned at a time and may be paginated using the startingAfter query parameter.\">\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=\"List orders - Meadow API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Retrieve all orders for an organization in reverse chronological order. 50 orders will be returned at a time and may be paginated using the startingAfter query parameter.\">\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/analytics/list-orders\">\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+Analytics\u0026amp;title=List+orders\u0026amp;description=Retrieve+all+orders+for+an+organization+in+reverse+chronological+order.+50+orders+will+be+returned+at+a+time+and+may+be+paginated+using+the+%60startingAfter%60+quer\u0026amp;theme=3516b74799b31165bc48cba6\u0026amp;signature=e207c64acb295aaf070eb5024b3db3c5caf49ecd275899f5867a23a54d6faf0c\">\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=\"List orders - Meadow API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Retrieve all orders for an organization in reverse chronological order. 50 orders will be returned at a time and may be paginated using the startingAfter query parameter.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://meadow.mintlify.app/_mintlify/api/og/v2?division=Endpoints%3A+Analytics\u0026amp;title=List+orders\u0026amp;description=Retrieve+all+orders+for+an+organization+in+reverse+chronological+order.+50+orders+will+be+returned+at+a+time+and+may+be+paginated+using+the+%60startingAfter%60+quer\u0026amp;theme=3516b74799b31165bc48cba6\u0026amp;signature=e207c64acb295aaf070eb5024b3db3c5caf49ecd275899f5867a23a54d6faf0c\">\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/analytics/list-orders\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/endpoints/analytics/list-orders.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/analytics/list-orders#webpage\",\"url\":\"https://api-docs.getmeadow.com/endpoints/analytics/list-orders\",\"name\":\"List orders\",\"description\":\"Retrieve all orders for an organization in reverse chronological order. 50 orders will be returned at a time and may be paginated using the startingAfter query parameter.\",\"dateModified\":\"2025-09-16T21:13:09.409Z\",\"isPartOf\":{\"@id\":\"https://api-docs.getmeadow.com#website\"},\"breadcrumb\":{\"@id\":\"https://api-docs.getmeadow.com/endpoints/analytics/list-orders#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://api-docs.getmeadow.com/endpoints/analytics/list-orders#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Meadow API\",\"item\":\"https://api-docs.getmeadow.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"List orders\",\"item\":\"https://api-docs.getmeadow.com/endpoints/analytics/list-orders\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://api-docs.getmeadow.com/endpoints/analytics/list-orders#apireference\",\"headline\":\"List orders\",\"name\":\"List orders\",\"description\":\"Retrieve all orders for an organization in reverse chronological order. 50 orders will be returned at a time and may be paginated using the startingAfter query parameter.\",\"url\":\"https://api-docs.getmeadow.com/endpoints/analytics/list-orders\",\"mainEntityOfPage\":{\"@id\":\"https://api-docs.getmeadow.com/endpoints/analytics/list-orders#webpage\"},\"dateModified\":\"2025-09-16T21:13:09.409Z\",\"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","description":"How to work with product 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","description":"Retrieve information about a specific order","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","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}","href":"/endpoints/products/update-purchase-order"},{"title":"Update UPCs","openapi":"PUT /api/v1/products/{productId}/options/upc","href":"/endpoints/products/update-upcs"}]}]},"basePath":"","title":"List orders - 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"]}