Skip to main content
GET
/
api
/
v1
/
orders
cURL
curl --request GET \
  --url https://api-staging.getmeadow.com/api/v1/orders \
  --header 'X-Client-Key: <api-key>' \
  --header 'X-Consumer-Key: <api-key>'
{
  "id": "<string>",
  "totalPrice": 123,
  "netPrice": 123,
  "customerGrandTotal": 123,
  "createdAt": "<string>",
  "packedAt": "<string>",
  "fulfilledAt": "<string>",
  "type": "delivery",
  "status": "draft",
  "cancelationReason": "<string>",
  "canceledAt": "<string>",
  "taxExempt": true,
  "refundTotal": 123,
  "isMedical": true,
  "customerName": "<string>",
  "deliveryFee": 123,
  "deliveryFeeDescription": "<string>",
  "lineItems": [
    {
      "id": 123,
      "quantity": 123,
      "productId": 123,
      "productName": "<string>",
      "optionId": 123,
      "optionName": "<string>",
      "optionPrice": 123,
      "optionSalesPrice": 123,
      "productBrandId": 123,
      "productBrand": "<string>",
      "unitPrice": 123,
      "subtotalPrice": 123,
      "finalPrice": 123,
      "productMovingAverageCostPerUnit": 123,
      "optionMovingAverageCostPerUnit": "<string>",
      "packageLineCost": "<string>",
      "primaryCategory": {
        "id": 123,
        "name": "<string>"
      },
      "discounts": [
        {
          "discountId": 123,
          "type": "<string>",
          "amount": 123,
          "amountUsed": 123,
          "description": "<string>"
        }
      ],
      "fulfillAs": [
        {
          "pkg": {
            "unit": "<string>",
            "label": "<string>",
            "costPerUnit": "<string>"
          },
          "optionSum": 123,
          "productOptionId": 123,
          "quantityFulfilled": "<string>"
        }
      ]
    }
  ],
  "payments": [
    {
      "id": 123,
      "paymentTypeId": 123,
      "amount": 123,
      "finalAmount": 123,
      "name": "<string>",
      "fee": 123,
      "feePercent": "<string>",
      "feeAmount": 123,
      "feeDescription": "<string>"
    }
  ],
  "customer": {
    "id": 123,
    "firstName": "<string>",
    "lastName": "<string>",
    "email": "<string>",
    "phone": "<string>",
    "birthday": "<string>",
    "hashId": "<string>",
    "sex": "<string>",
    "zip": "<string>",
    "licenseExpiry": "<string>",
    "medicalExpiration": "<string>"
  },
  "placedBy": {
    "id": 123,
    "email": "<string>",
    "firstName": "<string>",
    "lastName": "<string>"
  },
  "fulfilledBy": {
    "id": 123,
    "email": "<string>",
    "firstName": "<string>",
    "lastName": "<string>"
  },
  "adjustments": [
    {
      "amount": 123,
      "description": "<string>",
      "isTaxExemption": true,
      "taxid": 123
    }
  ],
  "credits": [
    {
      "creditId": 123,
      "type": "<string>",
      "amountUsed": 123,
      "description": "<string>"
    }
  ],
  "discounts": [
    {
      "discountId": 123,
      "type": "<string>",
      "amount": 123,
      "amountUsed": 123,
      "description": "<string>"
    }
  ],
  "loyaltyRedemptions": [
    {
      "type": "<string>",
      "description": "<string>",
      "pointsRequirement": "<string>",
      "pointsAmount": "<string>",
      "discountAmount": "<string>",
      "amountUsed": 123,
      "productOptionId": 123
    }
  ],
  "taxes": [
    {
      "taxId": 123,
      "amount": 123,
      "description": "<string>",
      "rate": "<string>",
      "amountBeforeExemption": 123,
      "amountExempted": 123,
      "included": true,
      "exemptable": true,
      "tier": "<string>",
      "type": "<string>",
      "normalRate": "<string>"
    }
  ],
  "returns": [
    {
      "id": 123,
      "refundType": "<string>",
      "refundInitial": 123,
      "refundTotal": 123,
      "creditsTotal": 123,
      "discountsTotal": 123,
      "adjustmentAmount": 123,
      "adjustmentDescription": "<string>",
      "paymentTypeName": "<string>",
      "loyaltyTotal": 123,
      "voidedAt": "<string>",
      "voidedReason": "<string>",
      "createdAt": "<string>",
      "lineItems": [
        {
          "orderLineItemId": 123,
          "type": "<string>",
          "inventoryAction": "<string>",
          "quantity": 123,
          "reason": "<string>",
          "fulfillAs": [
            {}
          ]
        }
      ],
      "taxes": [
        {
          "amount": 123,
          "description": "<string>",
          "refunded": true,
          "rate": 123,
          "included": true,
          "exemptable": true
        }
      ],
      "createdBy": {
        "id": 123,
        "email": "<string>",
        "firstName": "<string>",
        "lastName": "<string>"
      },
      "voidedBy": {
        "id": 123,
        "email": "<string>",
        "firstName": "<string>",
        "lastName": "<string>"
      }
    }
  ],
  "address": {
    "street1": "<string>",
    "street2": "<string>",
    "city": "<string>",
    "state": "<string>",
    "postalCode": "<string>"
  },
  "shift": {
    "name": "<string>"
  }
}

Authorizations

X-Consumer-Key
string
header
required

The key assigned to your company and provided via Meadow

X-Client-Key
string
header
required

The key generated and provided by our mutual client

Query Parameters

startingAfter
string

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.

startingOn
string

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.

fulfilledOnly
boolean

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.

type
enum<string>

Only orders of that type will be returned if this parameter is sent.

Available options:
delivery,
pickup,
in-store
userId
number

Retrieves orders by user. You can get user IDs from List customers or after Creating an order.

Response

List orders response

id
string

The ID of the order

totalPrice
number

The subtotal price before discounts, credits, adjustments are taken into account.

netPrice
number

The final price of the order before payment & delivery fees. Includes taxes

customerGrandTotal
number

The final price of the order after all fees

createdAt
string

The datetime the order was created

packedAt
string | null

The datetime the order was packed on

fulfilledAt
string | null

The date the order was fulfilled

type
enum<string>

The type of this order

Available options:
delivery,
pickup,
in-store
status
enum<string>

The status of the order.

  • draft is an order submitted without inventory taken out
  • new is an order that has had inventory associated with it
  • packed signifies an order has been processed and is waiting for pickup/delivery
  • fulfilled is an order that has been fully completed
  • canceled is an order that has been canceled
Available options:
draft,
new,
packed,
fulfilled,
canceled
cancelationReason
string | null

A description of why the order was canceled

canceledAt
string | null

When the order was canceled

taxExempt
boolean

Whether this order was marked as tax exempt or not

refundTotal
number

The amount refunded by returns on this order

isMedical
boolean

Whether this order was for a medical customer or not

customerName
string | null

The name of the customer for express pickup or kiosk orders.

deliveryFee
number

The delivery fee for the order

deliveryFeeDescription
string | null

A description of the delivery fee that can be shown to the customer

lineItems
object[]

All of the products purchased with this order

payments
object[]

All of the payments applied to this order

customer
object

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)

placedBy
object

The employee that created this order. Will be an empty object {} if this order was created by a customer and not an employee.

fulfilledBy
object

The employee that fulfilled this order. Will be an empty object {} if there is no employee that fulfilled it.

adjustments
object[]

Adjustments either made automatically such as even dollar rounding or custom adjustments by an employee

credits
object[]

Credits used on this order

discounts
object[]

The discounts applied to this order

loyaltyRedemptions
object[]

The loyalty redemptions used on this order

taxes
object[]

The taxes applied to this order

returns
object[]

The returns applied to this order

address
object

The address if this order is a delivery order. Otherwise, null

shift
object

The shift this order is attached to. Otherwise null