Skip to main content
GET
/
api
/
v1
/
purchase-orders
cURL
curl --request GET \
  --url https://api-staging.getmeadow.com/api/v1/purchase-orders \
  --header 'X-Client-Key: <api-key>' \
  --header 'X-Consumer-Key: <api-key>'
{
  "id": 123,
  "status": "<string>",
  "notes": "<string>",
  "expectedAt": "<string>",
  "paymentStatus": "<string>",
  "paymentTerms": "<string>",
  "paymentTermsDueDate": "<string>",
  "totalAmount": "<string>",
  "totalAmountReceived": "<string>",
  "subtotal": 123,
  "finalTotal": 123,
  "caExciseTotal": 123,
  "shippingHandlingFee": 123,
  "shippingHandlingFeeExcise": 123,
  "amountPaid": 123,
  "amountOustanding": 123,
  "externalInvoiceNumber": "<string>",
  "createdAt": "<string>",
  "vendor": {
    "id": 123,
    "name": "<string>",
    "phone": "<string>",
    "notes": "<string>",
    "email": "<string>",
    "sellerPermitNumber": "<string>",
    "street1": "<string>",
    "street2": "<string>",
    "city": "<string>",
    "state": "<string>",
    "postalCode": "<string>",
    "createdAt": "<string>"
  },
  "lineItems": [
    {
      "id": 123,
      "amount": "<string>",
      "costPerUnit": "<string>",
      "subtotal": 123,
      "finalTotal": 123,
      "amountReceived": "<string>",
      "caExcisePerUnit": "<string>",
      "caExciseTotal": 123,
      "receptions": [
        {
          "inventoryLocationId": 123,
          "amount": "<string>",
          "createdAt": "<string>"
        }
      ],
      "product": {
        "id": 123,
        "name": "<string>",
        "unit": "<string>",
        "strainType": "<string>",
        "primaryCategory": {
          "id": 123,
          "name": "<string>",
          "cannabisType": "<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
integer<int64>

The id for a purchase order that you want to retrieve all purchase orders after this one. Pass in the last id in a response to retrieve the next page.

Response

List purchase orders response

id
number

The ID of the purchase order

status
string

Either open or closed

notes
string | null

User entered notes for this purchase order

expectedAt
string

A date for when this purchase order is expected in YYYY-MM-DD

paymentStatus
string

Either paid, unpaid, or partial

paymentTerms
string

One of net15, net30, net60, cod or custom

paymentTermsDueDate
string

The payment terms due date

totalAmount
string

The total amount (quantity) of product on this purchase order

totalAmountReceived
string

The total amount (quantity) of product received on this purchase order

subtotal
number

The subtotal of the purchase order in cents

finalTotal
number

The final total of the purchase order in cents

caExciseTotal
number

The number for pre-2023 California excise of this purchase order in cents

shippingHandlingFee
number

The shipping fee in cents

shippingHandlingFeeExcise
number

The number for pre-2023 California excise of the shipping and handling fee

amountPaid
number

The amount paid for this purchase order in cents

amountOustanding
number

The amount still left to be paid in cents

externalInvoiceNumber
string | null

The external invoice number

createdAt
string

When this purchase order was created

vendor
object

Information about the loyalty of the customer (Can be null)

lineItems
object[]

All of the line items for this purchase order