NAV

Distru API

Stay Up To Date

To stay up to date with the latest breaking changes to the Distru public API, please sign up for our email list.

Overview

Distru's public API allows you to easily access and manipulate your data in our system automatically.

Base URL

All API requests should be made to the base URL: https://app.distru.com

Getting Started

To integrate with Distru, you'll need to contact a representative that will can enable your account's API access. From there, have a look at the following information on how to authenticate with Distru.

Authentication

An admin user can generate API keys in the Distru app by following these steps.

Steps:

  1. Log in to Distru with your admin account.
  2. Navigate to the Settings page from the left menu.
  3. Click on Distru API under the Integrations section.
  4. Use the Create API Key option to generate your API token.

Models

Strain

A strain as shown in Distru

{
  "id": "12345",
  "name": "Strain 123"
}
Property Description Type Required
id Unique ID for this strain string false
name Name of the strain string false

Product

A product as shown in Distru

{
  "brand": {
    "name": "Brand 123"
  },
  "category": {
    "id": "89c8323f-aaaa-45v3-88f9-64009d68h3n8",
    "name": "Super Dank Buds"
  },
  "id": "02c88a3f-d759-4973-88f9-60049d682524",
  "images": [
    {
      "id": "12345",
      "name": "image.jpg",
      "url": "https://example.com/image.jpg"
    }
  ],
  "is_active": true,
  "msrp": 100.1,
  "name": "Blue Dream Preroll 1G",
  "sku": "BDP-1G",
  "unit_price": 1.5,
  "unit_type": {
    "name": "Gram"
  },
  "units_per_case": 6
}
Property Description Type Required
brand A brand as shown in Distru Brand false
category A product category as shown in Distru ProductCategory false
company A company as shown in Distru Company false
description The description of this product string false
id Unique ID for this product string false
images The images associated with the product array(Image) false
is_active Is this product active? boolean false
msrp The MSRP of the product number false
name Human readable name for this product string false
sku The SKU configured for the product string false
strain A strain as shown in Distru Strain false
subcategory A product subcategory as shown in Distru ProductSubcategory false
unit_price The price of one unit of this product number false
unit_type A unit type as shown in Distru UnitType false
units_per_case The number of units of this product that come in one case, if any number false
updated_datetime The datetime this product was last updated at string false

AdditionalCost

An additional cost for an assembly as shown in Distru

Property Description Type Required
cost_per_unit The cost per unit of the additional cost number false
description The description of the additional cost string false
name The name of the additional cost string false
quantity The quantity of the additional cost number false
unit_type A unit type as shown in Distru UnitType false

Products

A collection of Products

Property Description Type Required

Assembly

An assembly as shown in Distru

Property Description Type Required
completion_datetime The datetime this assembly was completed at string false
compliance_type The compliance type for this assembly. Options include METRC, BIOTRACK or NONE string false
creation_source The creation source for this assembly string false
description The description for this assembly string false
estimated_work_hours The estimated work hours for this assembly integer false
estimated_work_minutes The estimated work minutes for this assembly integer false
fulfilled True if all assembly inputs have been fulfilled with batches or packages, false otherwise. boolean false
id Unique ID for this assembly string false
is_metrc_processing_job True if this assembly is associated with a Metrc processing job, false otherwise boolean false
license The license number for this assembly string false
outputs The outputs for this assembly array(AssemblyOutput) false
owner_id The ID of the user that owns this assembly string false
status The status of this assembly string false

OrderItemsRequest

A collection of Order item params

Property Description Type Required

Locations

A collection of Locations

Property Description Type Required

Charge

A line representing a Tax, Discount, or Charge added to an order

Property Description Type Required
id Unique ID for this charge string false
name The name for this charge string false
percent The percent to charge for this line if it is a percentage number false
price The price of this line if it is a flat charge number false
type What type of additional line is this array(any) false
unit_type Determines if this line is tracked as a percentage or a flat charge array(any) false
tax.id Unique ID for this Tax string false
tax.name The name of this tax string false
tax.percent The amount of tax levied string false

Strains

A collection of Strains. Note: This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.

Property Description Type Required

Role

A user role as shown in Distru

{
  "id": "12345",
  "name": "Admin"
}
Property Description Type Required
id Unique ID for this role string false
name Name of the role string false

OrderTransferTemplateTransporterInfoRequest

A Metrc-specific Order transfer template transporter info

Property Description Type Required
driver_license_number The driver's license number string false
driver_name The driver's name string false
driver_occupational_license_number The driver's occupational license number string false
driver_phone_number The driver's phone number string false
transporter_license_number The transporter's license number string false
vehicle_license_plate_number The vehicle's license plate number string false
vehicle_make The vehicle's make string false
vehicle_model The vehicle's model string false

InvoiceItemsRequest

A collection of invoice item params

Property Description Type Required

InvoiceItem

A invoice line item as shown in Distru

Property Description Type Required
batch A batch for a product as shown in Distru Batch false
id Unique ID for this invoice item string false
package A package as shown in Distru Package false
price Price per unit of this invoice item number false
product A product as shown in Distru Product false
quantity Quantity used on this invoice item number false

RelationshipType

A relationship type as shown in Distru

{
  "id": "12345",
  "name": "Supplier"
}
Property Description Type Required
id Unique ID for this relationship type string false
name Name of the relationship type string false

OrderItemRequest

Order item params

Property Description Type Required
batch_id The ID of the batch (if the product is batch-tracked) string false
id Unique ID for this order item. If it exists, an update will be performed; otherwise, it will be used as the ID of a new order item record string false
package_id The ID of the package (if the product is package-tracked) string false
price_base Price per unit of this order item (prior to price tier items being applied) number true
product_id The ID of the product (if the product is product-tracked) string false
quantity Quantity used on this order item number true

Batch

A batch for a product as shown in Distru

Property Description Type Required
id Unique ID for this batch string false
name Human readable name for this batch string false

PurchaseChargesRequest

A collection of Invoice charge params

Property Description Type Required

PurchaseItemRequest

Purchase item params

Property Description Type Required
batch_id The ID of the batch (if the product is batch-tracked) string false
id Unique ID for this order item. If it exists, an update will be performed; otherwise, it will be used as the ID of a new invoice item record string false
price Price per unit of the inventory being received on this line item number true
product_id The ID of the product (if the product is product-tracked) string false
quantity Quantity received in this order item number true

OrderTransferTemplateTransporterInfosRequest

A collection of Metrc-specific Order transfer template transporter info params

Property Description Type Required

InvoiceChargesRequest

A collection of Invoice charge params

Property Description Type Required

PurchaseOrderItem

An order line item as shown in Distru

Property Description Type Required
batch A batch for a product as shown in Distru Batch false
id Unique ID for this order item string false
package A package as shown in Distru Package false
price Price per unit of this order item (with discounts applied) number false
price_base Price per unit of this order item number false
product A product as shown in Distru Product false
quantity Quantity used on this order item number false
received_quantity Quantity received on this order item. Less than or equal to the quantity field number false

PageWithSize

Pagination information for a request

{
  "number": 1,
  "size": 100
}
Property Description Type Required
number Page number integer true
size Amount of records per page integer true

InvoicePayment

An invoice payment as shown in Distru

{
  "amount": 100.0,
  "description": "Payment for invoice 12345",
  "id": "12345",
  "method_id": "12345",
  "payment_datetime": "2024-12-12 20:26:19.297537",
  "payment_number": "12345",
  "quickbooks_deposit_account_id": "12345"
}
Property Description Type Required
amount The amount of the payment number false
descriptiontime The description of this payment string false
id Unique ID for this invoice payment string false
invoice_id The ID of the invoice this payment is for string false
method_id The ID of the payment method used for this payment string false
payment_date The date of this payment string false
payment_number The payment number for this payment string false
quickbooks_deposit_account_id The id of the Quickbooks deposit account used for this payment string false

InvoiceItemRequest

Invoice item params

Property Description Type Required
id Unique ID for this order item. If it exists, an update will be performed; otherwise, it will be used as the ID of a new invoice item record string false
order_item_id The ID of order item with which this invoice item is associated string false
quantity Quantity used on this order item number true

Image

An image as shown in Distru

{
  "id": "12345",
  "name": "image.jpg",
  "rank": 0,
  "url": "https://example.com/image.jpg"
}
Property Description Type Required
id Unique ID for this image string false
name Name of the file for this image string false
rank The rank of this image in the list of images for the product integer false
url URL to the image file string false

User

Information about a user in Distru

{
  "banned": false,
  "email": "jeanb@zorgindustries.com",
  "full_name": "Jean-Baptiste Emanuel Zorg",
  "id": "12345",
  "role": "Admin"
}
Property Description Type Required
banned Is this user banned by Distru? boolean false
email The email address of this user string false
full_name The full name of this user string false
id Unique ID for this user string false
role A user role as shown in Distru Role false

OrderChargeRequest

Order charge params

Property Description Type Required
id Unique ID for this order charge. If it exists, an update will be performed; otherwise, it will be used as the ID of a new order charge record string false
name The ID of the batch (if the product is batch-tracked) string false
percent The ID of the package (if the product is package-tracked) number false
price The ID of the product (if the product is product-tracked) number false
type What type of additional line is this string true
unit_type Determines if this line is tracked as a percentage or a flat charge string true

PurchasePayment

A purchase payment as shown in Distru

{
  "amount": 100.0,
  "description": "Payment for invoice 12345",
  "id": "12345",
  "method_id": "12345",
  "payment_datetime": "2024-12-12 20:26:19.297537",
  "payment_number": "12345",
  "quickbooks_deposit_account_id": "12345"
}
Property Description Type Required
amount The amount of the payment number false
descriptiontime The description of this payment string false
id Unique ID for this purchase payment string false
method_id The ID of the payment method used for this payment string false
payment_date The date of this payment string false
payment_number The payment number for this payment string false
purchase_id The ID of the purchase this payment is for string false
quickbooks_deposit_account_id The id of the Quickbooks deposit account used for this payment string false

Packages

A collection of Packages

Property Description Type Required

Batches

A collection of Batches

Property Description Type Required

Inventory

{
  "active": "500.000000000",
  "available": "400.000000000",
  "batch_number": "1234",
  "location_id": "1764da45-c1be-425c-9b31-b860cdb93e98",
  "product_id": "67ae9080-8dc2-4ab7-9704-19673f4d9f21"
}
Property Description Type Required
active Active quantity number true
available Available quantity (active - reserved) number true
batch_number The batch number of the batch or the package string false
location_id ID of the location string false
product_id ID of the product string true

Order

A sales order as shown in Distru. Ordered by order date

{
  "billing_location": {
    "address": "123 Compton Street, CA, USA, 12345",
    "id": "d06a5135-dccf-4d62-a922-804190213c10",
    "name": "Warehouse 1"
  },
  "charges": [
    {
      "id": "8h7512d2-g4h6-jj89-92h7-12f9ed9ls8f5",
      "name": "Friends and Family",
      "percent": -10,
      "type": "DISCOUNT",
      "unit_type": "PERCENT"
    },
    {
      "id": "duy67x9r-0d4k-mmk5-8u9u-l3k8ed9lj900",
      "name": "Excise Tax",
      "percent": 27,
      "tax": {
        "id": "9876",
        "name": "Excise Tax - CA 27%",
        "percent": 27.0
      },
      "type": "TAX",
      "unit_type": "PERCENT"
    },
    {
      "id": "ko38h9ju-ndn7-76h8-jio9-j98yhd93h6fh",
      "name": "Membership Fee",
      "price": 25.0,
      "type": "CHARGE",
      "unit_type": "PRICE"
    }
  ],
  "creator": {
    "banned": false,
    "email": "jeanb@zorgindustries.com",
    "full_name": "Jean-Baptiste Emanuel Zorg",
    "id": "3e98e590-85b6-4247-b2e9-96fc2f45802e"
  },
  "delivery_datetime": "2022‐07‐02T00:00:00Z",
  "due_datetime": "2022‐07‐02T00:00:00Z",
  "id": "193c12d2-bc68-46fa-a221-12f9ed958ef4",
  "inserted_datetime": "2022‐07‐02T00:00:00Z",
  "internal_notes": "Internal note example",
  "items": [
    {
      "id": "3e98e590-85b6-4247-b2e9-96fc2f45802e",
      "price": 0.006,
      "price_base": 0.006,
      "product": {
        "id": "4ec0ac89-a382-409c-ae67-4478e7e681ac",
        "name": "Crawdad Crippler - 1g - PreRoll",
        "sku": "WHODAT"
      },
      "quantity": 786
    }
  ],
  "order_datetime": "2022‐07‐02T00:00:00Z",
  "order_number": "SO-00012345",
  "shipping_location": {
    "address": "123 Compton Street, CA, USA, 12345",
    "id": "d06a5135-dccf-4d62-a922-804190213c10",
    "name": "Warehouse 1"
  },
  "status": "PENDING",
  "total": 150.23,
  "updated_datetime": "2022‐07‐02T00:00:00Z"
}
Property Description Type Required
billing_location A location as shown in Distru Location false
charges A collection of Charges array(Charge) false
company A company as shown in Distru Company false
creator Information about a user in Distru User false
delivery_datetime The datetime on which the order was / will be delivered string false
due_datetime The datetime by which the order should be completed for the customer string false
id Unique ID for this order string false
inserted_datetime The datetime at which the order was created in Distru string false
internal_notes Internal notes for this order string false
items A collection of SalesOrderItems array(SalesOrderItem) false
order_datetime The datetime on which the order was placed string false
order_number The order number as shown in the Distru UI string false
owner Information about a user in Distru User false
shipping_location A location as shown in Distru Location false
status The status of this sales order string false
total The total for this order including taxes, discounts, and all line items number false
updated_datetime The datetime at which the order was last updated in Distru string false

Contacts

A collection of Contacts

Property Description Type Required

Page

Pagination information for a request

{
  "number": 1
}
Property Description Type Required
number Page number integer true

Purchase

A purchase order as shown in Distru. Ordered by order date

{
  "charges": [
    {
      "id": "8h7512d2-g4h6-jj89-92h7-12f9ed9ls8f5",
      "name": "Friends and Family",
      "percent": -10,
      "type": "Discount",
      "unit_type": "Percent"
    },
    {
      "id": "duy67x9r-0d4k-mmk5-8u9u-l3k8ed9lj900",
      "name": "Excise Tax",
      "percent": 27,
      "tax": {
        "id": "9876",
        "name": "Excise Tax - CA 27%",
        "percent": 27.0
      },
      "type": "Tax",
      "unit_type": "Percent"
    },
    {
      "id": "ko38h9ju-ndn7-76h8-jio9-j98yhd93h6fh",
      "name": "Membership Fee",
      "price": 25.0,
      "type": "Charge",
      "unit_type": "Price"
    }
  ],
  "due_datetime": "2022‐07‐02T00:00:00Z",
  "id": "193c12d2-bc68-46fa-a221-12f9ed958ef4",
  "inserted_datetime": "2022‐07‐02T00:00:00Z",
  "items": [
    {
      "id": "3e98e590-85b6-4247-b2e9-96fc2f45802e",
      "price": 0.006,
      "product": {
        "id": "4ec0ac89-a382-409c-ae67-4478e7e681ac",
        "name": "Crawdad Crippler - 1g - PreRoll",
        "sku": "WHODAT"
      },
      "quantity": 786,
      "received_quantity": 786
    }
  ],
  "order_datetime": "2022‐07‐02T00:00:00Z",
  "purchase_number": "PO-00012345",
  "status": "Pending",
  "total": 150.23,
  "updated_datetime": "2022‐07‐02T00:00:00Z"
}
Property Description Type Required
charges A collection of Charges array(Charge) false
company A company as shown in Distru Company false
creator Information about a user in Distru User false
due_datetime The datetime by which the order should be completed for the customer string false
id Unique ID for this order string false
inserted_datetime The datetime at which the order was created in Distru string false
items A collection of PurchaseOrderItems array(PurchaseOrderItem) false
order_datetime The datetime on which the order was placed string false
order_number The order number as shown in the Distru UI string false
owner Information about a user in Distru User false
status The status of this purchase order string false
total The total for this order including taxes, discounts, and all line items number false
updated_datetime The datetime at which the order was last updated in Distru string false

PaymentMethod

A payment method as shown in Distru

{
  "id": "12345",
  "name": "Credit Card"
}
Property Description Type Required
id Unique ID for this payment method string false
name Name of the payment method string false

Package

A package as shown in Distru

Property Description Type Required
batch_number The non-compliance batch number for this package string false
compliance_label The compliance (e.g. Metrc) label for this package string false
id Unique ID for this package in Distru string false
status The status of this package array(any) false

BatchFull

Extended details about a batch for a product as shown in Distru

Property Description Type Required
batch_number The batch number for this batch string false
description The description for this batch string false
expiration_date The expiration date for this batch string false
id Unique ID for this batch string false
name Human readable name for this batch string false
owner_id The ID of the user that owns this batch string false
product_id The ID of the batch's product string false

Invoices

A collection of Invoices

Property Description Type Required

ProductSubcategory

A product subcategory as shown in Distru

{
  "id": "88c02a3f-57d9-9473-f8f9-40609d68bbh4",
  "name": "High Grade Flower"
}
Property Description Type Required
id Unique ID for this subcategory string false
name Human readable name for this subcategory string false

Orders

A collection of Orders

Property Description Type Required

SalesOrderItem

An order line item as shown in Distru

Property Description Type Required
batch A batch for a product as shown in Distru Batch false
id Unique ID for this order item string false
package A package as shown in Distru Package false
price Price per unit of this order item number false
product A product as shown in Distru Product false
quantity Quantity sold on this order item number false

Assemblies

A collection of Assemblies

Property Description Type Required

Invoice

An invoice as shown in Distru. Ordered by invoice date

{
  "creator": {
    "banned": false,
    "email": "jeanb@zorgindustries.com",
    "full_name": "Jean-Baptiste Emanuel Zorg",
    "id": "12345"
  },
  "due_datetime": "2022‐07‐02T00:00:00Z",
  "id": "193c12d2-bc68-46fa-a221-12f9ed958ef4",
  "inserted_datetime": "2022‐07‐02T00:00:00Z",
  "invoice_datetime": "2022‐07‐02T00:00:00Z",
  "invoice_number": "INV-00012345",
  "items": [
    {
      "id": "1",
      "price": 3.0,
      "product": {
        "id": "543",
        "name": "Crawdad Crippler - 1g - PreRoll",
        "sku": "WHODAT"
      },
      "quantity": 5
    }
  ],
  "order": {
    "id": "931c12d2-68bc-fa46-a221-12f9edcg5hd7",
    "order_number": "SO-0000657",
    "status": "Delivering",
    "total": 999.99
  },
  "status": "Pending",
  "total": 543.23,
  "updated_datetime": "2022‐07‐02T00:00:00Z"
}
Property Description Type Required
charges A collection of Charges array(Charge) false
company A company as shown in Distru Company false
creator Information about a user in Distru User false
due_datetime The datetime by which the invoice should be paid by the customer string false
id Unique ID for this invoice string false
inserted_datetime The datetime at which the invoice was created in Distru string false
invoice_datetime The datetime on which the invoice was placed string false
invoice_number The invoice number as shown in the Distru UI string false
items A collection of InvoiceItems array(InvoiceItem) false
owner Information about a user in Distru User false
paid_amount The payment amount recorded against this invoice so far. number false
status The status of this invoice string false
total The total for this invoice including taxes, discounts, and all line items number false
updated_datetime The datetime at which the invoice was last updated in Distru string false
order.id Unique ID for this order string false
order.order_number The order number for this sale as seen in the Distru UI string false
order.status Status of the associated order string false
order.total The total on the order number false

PurchaseChargeRequest

Purchase charge params

Property Description Type Required
id Unique ID for this purchase charge. If it exists, an update will be performed; otherwise, it will be used as the ID of a new purchase charge record string false
name The name of this charge string false
percent The percent (if it is percent-based) of this charge number false
price The flat price (if it is price-based) of this charge number false
type Determines if this is a charge or discount string true
unit_type Determines if this line is tracked as a percentage or a flat charge string true

PackageFull

A package with extended details as shown in Distru

Property Description Type Required
batch_number The non-compliance batch number for this package string false
compliance_label The compliance (e.g. Metrc) label for this package string false
expiration_date The date that this package expires string false
id Unique ID for this package in Distru string false
license A license as shown in Distru License false
product_unit_quantity The quantity of this package expressed in it's product's unit type string false
product_unit_type A unit type as shown in Distru UnitType false
quantity The last known accurate quantity of this package string false
quantity_assembling This quantity of this package currently allocated towards a pending assembly string false
quantity_available The quantity available for use of this package (i.e. inventory that is not held up on a sales order or assembly.) string false
status The status of this package array(any) false
unit_type A unit type as shown in Distru UnitType false
location.id Unique ID for this Location string false
location.name The name of this Location string false

License

A license as shown in Distru

Property Description Type Required
id Unique ID for this license string false
license_number License number string false

Purchases

A collection of Purchases

Property Description Type Required

AssemblyOutput

An output for an assembly as shown in Distru

Property Description Type Required
additional_costs The additional costs for this assembly output array(AdditionalCost) false
batch A batch for a product as shown in Distru Batch false
compliance_label The compliance label for this assembly output string false
compliance_quantity The quantity of this output expressed in the package's unit type. Null if this input is not package-tracked. number false
expiration_date The expiration date for this assembly output string false
ingredients The ingredients for this assembly output array(AssemblyInput) false
is_production_batch Is this output a production batch? boolean false
location A location as shown in Distru Location false
package A package as shown in Distru Package false
package_date The date that this package was created at string false
package_unit_type A unit type as shown in Distru UnitType false
product A product as shown in Distru Product false
quantity The quantity of this output in its product's unit number false

PurchaseItemsRequest

A collection of purchase item params

Property Description Type Required

Location

A location as shown in Distru

Property Description Type Required
address Human readable address for this location string false
company_id ID of the company that owns this location string false
id Unique ID for this location string false
license A license as shown in Distru License false
license_id ID of the license that this location is associated with, if null, then this location is not associated to a license string false
name Human readable name for this location string false

ProductCategory

A product category as shown in Distru

{
  "id": "88c02a3f-57d9-9473-f8f9-40609d68bbh4",
  "name": "Flower",
  "type": "FLOWER"
}
Property Description Type Required
id Unique ID for this category string false
name Human readable name for this category string false
type The type of this category string false

OrderChargesRequest

A collection of Order charge params

Property Description Type Required

Contact

Information about a contact in Distru's CRM

{
  "company": {
    "id": "3f128a34-cc59-4b49-8883-23bf10e59c6c"
  },
  "email": "contact@example.com",
  "full_name": "John Doe",
  "id": "12345",
  "owner": {
    "id": "02c88a3f-d759-4973-88f9-60049d682524"
  }
}
Property Description Type Required
company A company as shown in Distru Company false
email The email address of this contact string false
full_name The full name of this contact string false
id Unique ID for this contact string false
owner Information about a user in Distru User false
phone_number The phone number of this contact string false
title The title of this contact string false

PaymentMethods

A collection of Payment Methods

Property Description Type Required

InvoiceChargeRequest

Invoice charge params

Property Description Type Required
id Unique ID for this invoice charge. If it exists, an update will be performed; otherwise, it will be used as the ID of a new invoice charge record string false
name The name of this charge string false
percent The percent (if it is percent-based) of this charge number false
price The flat price (if it is price-based) of this charge number false
type Determines if this is a charge or discount string true
unit_type Determines if this line is tracked as a percentage or a flat charge string true

Companies

A collection of companies

Property Description Type Required

UnitType

A unit type as shown in Distru

{
  "name": "Gram"
}
Property Description Type Required
id Unique ID for this unit type string false
name Human readable name for this unit type string false

Company

A company as shown in Distru

Property Description Type Required
category The category of this company string false
id Unique ID for this company string false
licenses The license for the company array(License) false
locations The location for the company array(Location) false
name Human readable name for this company string false
relationship_type A relationship type as shown in Distru RelationshipType false
updated_datetime The datetime this company was last updated at string false

AssemblyInput

An input for an assembly as shown in Distru

Property Description Type Required
batch A batch for a product as shown in Distru Batch false
compliance_quantity The quantity of this input expressed in the package's unit type. Null if this input is not package-tracked. number false
cost The cost of this input number false
location A location as shown in Distru Location false
package A package as shown in Distru Package false
product A product as shown in Distru Product false
quantity The quantity of this input in its product's unit number false

Inventories

A list of active and available quantity for each group

Property Description Type Required

Brand

A brand as shown in Distru

{
  "name": "Brand 123"
}
Property Description Type Required
name Name of the brand string false

Users

A collection of Users

Property Description Type Required

Assembly

Get assemblies

GET /public/v1/assemblies returns proper data for non-compliance assembly

GET /public/v1/assemblies?creation_source=MANUALLY_CREATED&page[number]=1
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg2NDAsImlhdCI6MTc0MTQxOTA0MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTYwMDE1OWMtZjIyOC00OTU2LThlYzEtY2I1MWVjNmY4OTIxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE5MDM5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2OTk3ODYiLCJ0eXAiOiJhY2Nlc3MifQ.G20V7HwzOLwJRXhiOMTtgznygbu0lFI8456y_9HX3oo

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 232241faa46e8e000000000000000001-4596b30f404dd9ea-0
{
  "data": [
    {
      "completion_datetime": null,
      "compliance_type": "NONE",
      "creation_source": "MANUALLY_CREATED",
      "description": null,
      "estimated_work_hours": 1,
      "estimated_work_minutes": 5,
      "fulfilled": true,
      "id": "59b96ab9-512a-4fdc-870b-c9abc6971fd8",
      "is_metrc_processing_job": false,
      "license": null,
      "outputs": [
        {
          "additional_costs": [
            {
              "cost_per_unit": "1",
              "description": null,
              "name": "CostType 150",
              "quantity": "1",
              "unit_type": {
                "id": "00000000-0000-0000-0000-000009627eea",
                "name": "Unit Type 631"
              }
            }
          ],
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d73cb",
            "name": "B31747"
          },
          "compliance_label": null,
          "compliance_quantity": null,
          "expiration_datetime": null,
          "ingredients": [
            {
              "batch": {
                "batch_number": null,
                "id": "00000000-0000-0000-0000-0000003d73cb",
                "name": "B31747"
              },
              "compliance_quantity": null,
              "cost": 0,
              "location": {
                "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
                "company_id": "00000000-0000-0000-0000-000000a9ce3c",
                "id": "00000000-0000-0000-0000-00000043fc9f",
                "license_id": null,
                "name": "Place 11597"
              },
              "package": null,
              "product": {
                "id": "2225928e-606a-44de-a8a0-c76fdda1b9bf",
                "name": "Product 31739",
                "sku": "sku 31740",
                "updated_datetime": "2025-03-08T07:30:40.492556Z"
              },
              "quantity": "1"
            }
          ],
          "is_production_batch": false,
          "location": {
            "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
            "company_id": "00000000-0000-0000-0000-000000a9ce3c",
            "id": "00000000-0000-0000-0000-00000043fc9f",
            "license_id": null,
            "name": "Place 11597"
          },
          "package": null,
          "package_datetime": null,
          "package_unit_type": null,
          "product": {
            "id": "2225928e-606a-44de-a8a0-c76fdda1b9bf",
            "name": "Product 31739",
            "sku": "sku 31740",
            "updated_datetime": "2025-03-08T07:30:40.492556Z"
          },
          "quantity": "1"
        }
      ],
      "owner_id": "00000000-0000-0000-0000-000000e04d0a",
      "status": "PENDING"
    }
  ]
}

GET /public/v1/assemblies returns proper data for pending metrc assembly

GET /public/v1/assemblies?creation_source=MANUALLY_CREATED&license_number=CDPH-00007756&page[number]=1
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg2MzgsImlhdCI6MTc0MTQxOTAzOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzM3NDY3NzAtZjdlYi00ZGUyLTkwYjEtNjY4ODYwZDU3MDhiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE5MDM3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2OTkzMDkiLCJ0eXAiOiJhY2Nlc3MifQ.xeo_9pKDzyZZXisOx8nI0X8mkIlByql7w5j_Aw7zBUc

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 6975fce123241c000000000000000001-a947a088cec791e5-0
{
  "data": [
    {
      "completion_datetime": null,
      "compliance_type": "METRC",
      "creation_source": "MANUALLY_CREATED",
      "description": null,
      "estimated_work_hours": null,
      "estimated_work_minutes": null,
      "fulfilled": true,
      "id": "aeff4caa-4171-4a2e-82d1-ed6bff20c9d1",
      "is_metrc_processing_job": false,
      "license": {
        "id": "00000000-0000-0000-0000-0000002bb5f1",
        "license_number": "CDPH-00007756"
      },
      "outputs": [
        {
          "additional_costs": [],
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d7329",
            "name": "B31259"
          },
          "compliance_label": "1A4010200001234000000514",
          "compliance_quantity": "2",
          "expiration_datetime": null,
          "ingredients": [
            {
              "batch": {
                "batch_number": null,
                "id": "00000000-0000-0000-0000-0000003d7329",
                "name": "B31259"
              },
              "compliance_quantity": "0.0353",
              "cost": 0,
              "location": {
                "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
                "company_id": "00000000-0000-0000-0000-000000a9ccbe",
                "id": "00000000-0000-0000-0000-00000043fc0a",
                "license_id": "00000000-0000-0000-0000-0000002bb5f1",
                "name": "Place 11449"
              },
              "package": {
                "batch_number": "1234567890",
                "compliance_label": "ABCDEF012345670000075929",
                "id": "00000000-0000-0000-0000-0000001618a6",
                "metrc_label": "ABCDEF012345670000075929",
                "status": "active"
              },
              "product": {
                "id": "493f8b40-b5ce-417d-85c3-dfc075438466",
                "name": "Product 31244",
                "sku": "sku 31245",
                "updated_datetime": "2025-03-08T07:30:38.350437Z"
              },
              "quantity": "1"
            }
          ],
          "is_production_batch": false,
          "location": {
            "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
            "company_id": "00000000-0000-0000-0000-000000a9ccbe",
            "id": "00000000-0000-0000-0000-00000043fc0a",
            "license_id": "00000000-0000-0000-0000-0000002bb5f1",
            "name": "Place 11449"
          },
          "package": null,
          "package_datetime": "2025-03-07",
          "package_unit_type": {
            "id": "00000000-0000-0000-0000-0000096268f3",
            "name": "Gram"
          },
          "product": {
            "id": "493f8b40-b5ce-417d-85c3-dfc075438466",
            "name": "Product 31244",
            "sku": "sku 31245",
            "updated_datetime": "2025-03-08T07:30:38.350437Z"
          },
          "quantity": "2"
        }
      ],
      "owner_id": "00000000-0000-0000-0000-000000e04b2d",
      "status": "PENDING"
    }
  ]
}

GET /public/v1/assemblies returns proper data for completed metrc assembly

GET /public/v1/assemblies?completion_datetime=2025-03-08+06%3A30%3A39.572852Z%2C2025-03-08+08%3A30%3A39.572852Z&creation_source=MANUALLY_CREATED&license_number=CDPH-00007790&page[number]=1
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg2MzksImlhdCI6MTc0MTQxOTAzOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZmUxYmY5YTUtZjQ3My00ODE2LTlkZTItOTYwMWMwMTkzY2FjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE5MDM4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2OTk0OTQiLCJ0eXAiOiJhY2Nlc3MifQ.4Y0Vn1vny3vns8ismt4HlP0bBoZYiV30vnd0OhPW6P0

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 7049059fea294c000000000000000001-e67fb4a1b700f1cd-0
{
  "data": [
    {
      "completion_datetime": "2025-03-08T07:30:39.572852Z",
      "compliance_type": "METRC",
      "creation_source": "MANUALLY_CREATED",
      "description": null,
      "estimated_work_hours": null,
      "estimated_work_minutes": null,
      "fulfilled": true,
      "id": "28dfcebd-d481-429b-b88d-306e29f90568",
      "is_metrc_processing_job": false,
      "license": {
        "id": "00000000-0000-0000-0000-0000002bb612",
        "license_number": "CDPH-00007790"
      },
      "outputs": [
        {
          "additional_costs": [],
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d736b",
            "name": "B31475"
          },
          "compliance_label": "1A4010200001234000000519",
          "compliance_quantity": "2",
          "expiration_datetime": null,
          "ingredients": [
            {
              "batch": {
                "batch_number": null,
                "id": "00000000-0000-0000-0000-0000003d736b",
                "name": "B31475"
              },
              "compliance_quantity": "0.0353",
              "cost": 0,
              "location": {
                "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
                "company_id": "00000000-0000-0000-0000-000000a9cd5a",
                "id": "00000000-0000-0000-0000-00000043fc38",
                "license_id": "00000000-0000-0000-0000-0000002bb612",
                "name": "Place 11495"
              },
              "package": {
                "batch_number": "1234567890",
                "compliance_label": "ABCDEF012345670000075955",
                "id": "00000000-0000-0000-0000-0000001618b3",
                "metrc_label": "ABCDEF012345670000075955",
                "status": "active"
              },
              "product": {
                "id": "07074787-db02-4fb2-aac9-de79d3e976c3",
                "name": "Product 31470",
                "sku": "sku 31471",
                "updated_datetime": "2025-03-08T07:30:39.203322Z"
              },
              "quantity": "1"
            }
          ],
          "is_production_batch": false,
          "location": {
            "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
            "company_id": "00000000-0000-0000-0000-000000a9cd5a",
            "id": "00000000-0000-0000-0000-00000043fc38",
            "license_id": "00000000-0000-0000-0000-0000002bb612",
            "name": "Place 11495"
          },
          "package": {
            "batch_number": null,
            "compliance_label": "1A4010200001234000000519",
            "id": "00000000-0000-0000-0000-0000001618b9",
            "metrc_label": "1A4010200001234000000519",
            "status": "active"
          },
          "package_datetime": "2025-03-07",
          "package_unit_type": {
            "id": "00000000-0000-0000-0000-00000962719a",
            "name": "Gram"
          },
          "product": {
            "id": "07074787-db02-4fb2-aac9-de79d3e976c3",
            "name": "Product 31470",
            "sku": "sku 31471",
            "updated_datetime": "2025-03-08T07:30:39.203322Z"
          },
          "quantity": "2"
        }
      ],
      "owner_id": "00000000-0000-0000-0000-000000e04be6",
      "status": "COMPLETED"
    }
  ]
}

GET /public/v1/assemblies returns proper data for biotrack assembly

GET /public/v1/assemblies?completion_datetime=2025-03-08+06%3A30%3A40.173802Z%2C2025-03-08+08%3A30%3A40.173802Z&creation_source=MANUALLY_CREATED&license_number=CDPH-00007819&page[number]=1
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg2MzksImlhdCI6MTc0MTQxOTAzOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZmNlMGU1NTktYTYwMC00ZGM1LWJkY2QtYTdmODY4MDU4MTcxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE5MDM4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2OTk2NjUiLCJ0eXAiOiJhY2Nlc3MifQ.PcGKSkGjdKdeNGKJSu7PAwIblx69ZbLsp36qbJVPQxk

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 1e076aeb6ffa66000000000000000001-60a295058f53c1c8-0
{
  "data": [
    {
      "completion_datetime": "2025-03-08T07:30:40.173802Z",
      "compliance_type": "BIOTRACK",
      "creation_source": "MANUALLY_CREATED",
      "description": null,
      "estimated_work_hours": null,
      "estimated_work_minutes": null,
      "fulfilled": true,
      "id": "9edf7f58-1440-4d2e-9462-f5c4651de1a6",
      "is_metrc_processing_job": false,
      "license": {
        "id": "00000000-0000-0000-0000-0000002bb62f",
        "license_number": "CDPH-00007819"
      },
      "outputs": [
        {
          "additional_costs": [],
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d73ae",
            "name": "B31645"
          },
          "compliance_label": null,
          "compliance_quantity": "1",
          "expiration_datetime": null,
          "ingredients": [
            {
              "batch": {
                "batch_number": null,
                "id": "00000000-0000-0000-0000-0000003d73ae",
                "name": "B31645"
              },
              "compliance_quantity": "1",
              "cost": 0,
              "location": {
                "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
                "company_id": "00000000-0000-0000-0000-000000a9cde3",
                "id": "00000000-0000-0000-0000-00000043fc74",
                "license_id": "00000000-0000-0000-0000-0000002bb62f",
                "name": "Place 11555"
              },
              "package": {
                "batch_number": null,
                "compliance_label": "1840",
                "id": "00000000-0000-0000-0000-0000001618c1",
                "metrc_label": "1840",
                "status": "active"
              },
              "product": {
                "id": "d15d3eae-e8c1-4863-bf5b-0c06f5f7a5bb",
                "name": "Product 31641",
                "sku": "sku 31642",
                "updated_datetime": "2025-03-08T07:30:39.981046Z"
              },
              "quantity": "1"
            }
          ],
          "is_production_batch": false,
          "location": {
            "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
            "company_id": "00000000-0000-0000-0000-000000a9cde3",
            "id": "00000000-0000-0000-0000-00000043fc74",
            "license_id": "00000000-0000-0000-0000-0000002bb62f",
            "name": "Place 11555"
          },
          "package": {
            "batch_number": null,
            "compliance_label": null,
            "id": "00000000-0000-0000-0000-0000001618c6",
            "metrc_label": null,
            "status": "active"
          },
          "package_datetime": null,
          "package_unit_type": {
            "id": "00000000-0000-0000-0000-000009627928",
            "name": "Gram"
          },
          "product": {
            "id": "d15d3eae-e8c1-4863-bf5b-0c06f5f7a5bb",
            "name": "Product 31641",
            "sku": "sku 31642",
            "updated_datetime": "2025-03-08T07:30:39.981046Z"
          },
          "quantity": "1"
        }
      ],
      "owner_id": "00000000-0000-0000-0000-000000e04c91",
      "status": "COMPLETED"
    }
  ]
}

Get assemblies ordered from oldest to newest by their last modified date.

Note: The page size for this endpoint is 500 assemblies per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.

Request

GET /public/v1/assemblies

Parameters

Parameter Description In Type Required Default Example
completion_datetime Filter assemblies by their completion datetime query string false 2022-07-10T00:00:00Z,
page Pagination information body Page false
creation_source Filter assemblies by their creation source. Options include MANUALLY_CREATED, SPLIT_PACKAGE, SALES_ORDER and LAB_TESTING query string false
license_number Filter assemblies by their license number query string false

Responses

Status Description Schema
200 A list of assemblies Assemblies

Batch

Get batches

GET /public/v1/batches returns batches related to the company

GET /public/v1/batches
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg1NTUsImlhdCI6MTc0MTQxODk1NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTBmNGQ4ZmUtYmU0Yi00NzNhLWJlYTAtZWI2M2VlNzhmYjhmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4OTU0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2ODA3NTQiLCJ0eXAiOiJhY2Nlc3MifQ.QpT8yRMmO32ZPymGRoThLlpN5Qf6UXZoD-3A48jQjS4

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 4e36cf877dfa50000000000000000001-3c282d20d2be4bd9-0
{
  "data": [
    {
      "batch_number": null,
      "description": null,
      "expiration_date": "2024-01-01T00:00:00.000000Z",
      "id": "00000000-0000-0000-0000-0000003d5fb5",
      "name": "B15736",
      "owner_id": "00000000-0000-0000-0000-000000e002b4",
      "primary_test_result": null,
      "product_id": "b043b8c8-dca9-4059-a2d4-e815642f051e"
    },
    {
      "batch_number": null,
      "description": null,
      "expiration_date": null,
      "id": "00000000-0000-0000-0000-0000003d5fb6",
      "name": "B15739",
      "owner_id": "00000000-0000-0000-0000-000000e002b9",
      "primary_test_result": {
        "cbd_mg_per_unit": "1",
        "cbd_mg_per_unit_total": "2",
        "cbd_percentage": "3",
        "cbd_percentage_total": "4",
        "mg_per_unit_type": "mg/mL",
        "name": "File.pdf",
        "thc_mg_per_unit": "5",
        "thc_mg_per_unit_total": "6",
        "thc_percentage": "7",
        "thc_percentage_total": "8"
      },
      "product_id": "798d73d6-4a1b-47d6-a3be-9b466f87f4e1"
    }
  ]
}

Get batches sorted by their creation date and filtered by various attributes.

Note: The page size for this endpoint is 5000 batches per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.

Request

GET /public/v1/batches

Parameters

Parameter Description In Type Required Default Example
inserted_datetime Filter batches by their creation datetime query string false 2022-07-10T00:00:00Z,
page Pagination information body Page false
updated_datetime Filter batches by the datetime they were most recently modified query string false ,2022-07-10T00:00:00Z

Responses

Status Description Schema
200 A list of batches Batches

Create a batch

POST /public/v1/batches Errors from service messages are properly reflected in the response

POST /public/v1/batches
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg1NTMsImlhdCI6MTc0MTQxODk1MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiN2RlMDkxNDgtODRjNC00OGFkLTk3NjItNmUyZTIzNDcwMzU2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4OTUyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2ODA0MTQiLCJ0eXAiOiJhY2Nlc3MifQ.nkr4kLP5KwY4CrI5Dd6oiThU1XMV8oJRc2T9VjReLjo
{
  "owner_id": "d62bb073-c9a5-4993-8aa3-493dff3c3713",
  "product_id": "f8c8906a-c883-4fc8-8463-dfd3a900e1d8"
}

Response

400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 1cf4ccbc05ab66000000000000000001-8e722ba9ba679295-0
{
  "errors": [
    {
      "context": {},
      "message": "Owner not found",
      "pointer": ["owner_id"],
      "section": "body"
    },
    {
      "context": {},
      "message": "Product not found",
      "pointer": ["product_id"],
      "section": "body"
    },
    {
      "context": {},
      "message": "Unable to verify inventory tracking method",
      "pointer": ["product_id"],
      "section": "body"
    }
  ]
}

POST /public/v1/batches Can create batch with all optional fields missing

POST /public/v1/batches
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg1NTMsImlhdCI6MTc0MTQxODk1MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNWM1ZGU3NmEtNzY0Ni00M2U0LTgwOGMtOGQ3YWIwNzk1ZmVhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4OTUyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2ODA0MzkiLCJ0eXAiOiJhY2Nlc3MifQ.lZiuSUElskXhgIL0v-fFjVp5L3GoeTwMrrdLun6e1nw
{
  "product_id": "b77b29c1-e9ba-4cd5-9e1a-e68bc4d91a0a"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: fedb758d950d68000000000000000001-027f342f327bf5db-0
{
  "data": {
    "batch_number": null,
    "description": null,
    "expiration_date": null,
    "id": "00000000-0000-0000-0000-0000003d5f5a",
    "name": "B1",
    "owner_id": null,
    "product_id": "b77b29c1-e9ba-4cd5-9e1a-e68bc4d91a0a"
  }
}

POST /public/v1/batches Can create batch with all optional fields provided

POST /public/v1/batches
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg1NTUsImlhdCI6MTc0MTQxODk1NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZGY0N2IxMDItMTgwNS00MTc2LTgyNmItOTQyMmE2Mzc0MzRmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4OTU0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2ODA3OTQiLCJ0eXAiOiJhY2Nlc3MifQ.nok2io8o7AKL1bMVxxQ-tpKPqWJ2eabCt5-z82ETogE
{
  "batch_number": "B1",
  "description": "Test batch",
  "expiration_date": "2025-01-01T00:00:00.000000Z",
  "owner_id": "00000000-0000-0000-0000-000000e002e8",
  "product_id": "03c68966-dec5-4257-8c84-377ec61108de"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 684f970f73f4e4000000000000000001-35ac342c2004d698-0
{
  "data": {
    "batch_number": "B1",
    "description": "Test batch",
    "expiration_date": "2025-01-01T00:00:00.000000Z",
    "id": "00000000-0000-0000-0000-0000003d5fc2",
    "name": "B1",
    "owner_id": "00000000-0000-0000-0000-000000e002e8",
    "product_id": "03c68966-dec5-4257-8c84-377ec61108de"
  }
}

Create a single batch.

Request

POST /public/v1/batches

Parameters

Parameter Description In Type Required Default Example
product_id The ID of the product that this batch belongs to. query string false
batch_number The batch number of the batch. query string false
expiration_date The expiration date of the batch. query string false
owner_id The ID of the user that is the designated owner of this batch. query string false
description The description of the batch. query string false

Responses

Status Description Schema
200 A single batch Batch

Company

Get companies

GET /public/companies returns companies related to the company

GET /public/v1/companies
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0NjcsImlhdCI6MTc0MTQxODg2NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiM2FjYzIxNjYtMWY0OS00MWQ5LTgxMDQtN2RlNWUyMzVmZTVmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODY2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2NzAyMzEiLCJ0eXAiOiJhY2Nlc3MifQ.h1y8qAr5Eb-n15zw1wizf7qs3slzA6Cefh7SffQRXMU

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 57da3c15d7b75c000000000000000001-57e0ae63a1d3af25-0
{
  "data": [
    {
      "category": "Retailer",
      "id": "00000000-0000-0000-0000-00000063cba3",
      "licenses": [],
      "locations": [
        {
          "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
          "company_id": "00000000-0000-0000-0000-000000a97532",
          "id": "00000000-0000-0000-0000-00000043d7d1",
          "license_id": null,
          "name": "Place 2266"
        }
      ],
      "name": "Company 5022",
      "relationship_type": {
        "id": "00000000-0000-0000-0000-0000000310e0",
        "name": "Supplier"
      },
      "updated_datetime": "2023-11-03T00:00:00.000000Z"
    },
    {
      "category": "Dispensary",
      "id": "00000000-0000-0000-0000-00000063cba4",
      "licenses": [
        {
          "id": "00000000-0000-0000-0000-0000002b9f73",
          "license_number": "CDPH-00001326"
        }
      ],
      "locations": [],
      "name": "Company 5024",
      "relationship_type": null,
      "updated_datetime": "2023-12-02T00:00:00.000000Z"
    }
  ]
}

Get companies sorted by their creation date and filtered by various attributes

Note: The page size for this endpoint is 5000 companies per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.

Request

GET /public/v1/companies

Parameters

Parameter Description In Type Required Default Example
inserted_datetime Filter companies by their creation datetime query string false 2022-07-10T00:00:00Z,
page Pagination information body Page false
updated_datetime Filter companies by the datetime they were most recently modified query string false ,2022-07-10T00:00:00Z

Responses

Status Description Schema
200 A list of companies Companies

Contact

Get contacts

GET /public/v1/contacts returns contacts related to the company

GET /public/v1/contacts
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg1NzMsImlhdCI6MTc0MTQxODk3MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiYmRmODVlN2ItNmZmNy00ZmQ5LWIyMTktYTM4ZWI0MTYzNWVlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4OTcyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2ODQ4ODEiLCJ0eXAiOiJhY2Nlc3MifQ.ras1RdRzBlA8qA_B4krcjmF1ghxe9wuhROpjxXTC0MI

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: c505937b549230000000000000000001-935ed8a76bed32da-0
{
  "data": [
    {
      "company": {
        "id": "00000000-0000-0000-0000-00000063e651"
      },
      "email": "email1",
      "full_name": "FirstName43735 LastName43736",
      "id": "00000000-0000-0000-0000-00000000ea8d",
      "owner": {
        "id": "00000000-0000-0000-0000-000000e012d8"
      },
      "phone_number": "1234567890",
      "title": null
    },
    {
      "company": {
        "id": "00000000-0000-0000-0000-00000063e654"
      },
      "email": "email2",
      "full_name": "FirstName43739 LastName43740",
      "id": "00000000-0000-0000-0000-00000000ea8e",
      "owner": {
        "id": "00000000-0000-0000-0000-000000e012e1"
      },
      "phone_number": "1234567890",
      "title": null
    }
  ]
}

Get contacts sorted by their creation date and filtered by various attributes

Note: The page size for this endpoint is 1000 contacts per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.

Request

GET /public/v1/contacts

Parameters

Parameter Description In Type Required Default Example
inserted_datetime Filter contacts by their creation datetime query string false 2022-07-10T00:00:00Z,
page Pagination information body Page false
updated_datetime Filter contacts by the datetime they were most recently modified query string false ,2022-07-10T00:00:00Z

Responses

Status Description Schema
200 A list of contacts Contacts

Inventory

Get inventory levels

GET /public/inventory returns stock quantities filtered by product IDs

GET /public/v1/inventory?grouping[]=PRODUCT&product_ids[]=dbf5ebf3-9d8b-4d17-bcec-cc261f988ca6
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0MjUsImlhdCI6MTc0MTQxODgyNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTM1YjNkMGMtMWI0Mi00YTA1LTliNTItNjZjZjM3MzMzNzUxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODI0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2NjU5NDgiLCJ0eXAiOiJhY2Nlc3MifQ.j_-xQAtC6OwR4zm_kypA3z_YhkYhojz1W3buTvAyvWs

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 09491075a364be000000000000000001-718b6dad7dead86c-0
{
  "data": [
    {
      "active": "10.000000000",
      "available": "10.000000000",
      "product_id": "dbf5ebf3-9d8b-4d17-bcec-cc261f988ca6",
      "updated_datetime": "2025-03-08T07:27:06.077706Z"
    }
  ]
}

GET /public/inventory returns stock quantities grouped by product

GET /public/v1/inventory?grouping[]=PRODUCT
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0MjIsImlhdCI6MTc0MTQxODgyMiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjIyZmQ3NWUtMzIwYy00OTE1LWIwYjYtNWFkMjBmZGIyMmQwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODIxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2NjU1OTgiLCJ0eXAiOiJhY2Nlc3MifQ.WATPjT1kPBSOwpmmfPP7O8USZVacysJklhT3l7Ef_7g

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 0d6013e7d124ac000000000000000001-5bba7a90fef13815-0
{
  "data": [
    {
      "active": "50.000000000",
      "available": "50.000000000",
      "product_id": "2ef29a70-1765-40f5-9f60-e509b35a90bc",
      "updated_datetime": "2023-11-05T00:00:00.000000Z"
    },
    {
      "active": "95.000000000",
      "available": "80.000000000",
      "product_id": "39b8ed24-f379-40d0-b761-f8b292a20aba",
      "updated_datetime": "2023-11-06T00:00:00.000000Z"
    },
    {
      "active": "100.000000000",
      "available": "90.000000000",
      "product_id": "7ac2ef9b-47f9-4682-8f53-cc847c17482f",
      "updated_datetime": "2023-12-03T00:00:00.000000Z"
    }
  ]
}

GET /public/inventory returns stock quantities grouped by product & location

GET /public/v1/inventory?grouping[]=PRODUCT&grouping[]=LOCATION
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0MTcsImlhdCI6MTc0MTQxODgxNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiYWZiNmNjY2QtYzMxZC00Mzk2LTg3YWQtNzczMjYwNzVkMGFmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODE2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2NjQ4NjgiLCJ0eXAiOiJhY2Nlc3MifQ.qmkTW_WaRGtlUS0fBJtS6ClNeSHREnRxoxRUbFfDV1Y

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 05a21289594f93000000000000000001-e9d0f761adcc9780-0
{
  "data": [
    {
      "active": "100.000000000",
      "available": "85.000000000",
      "location_id": "00000000-0000-0000-0000-00000043d0fe",
      "product_id": "1f71df3c-f13a-4fa5-b589-98c325a9e6eb",
      "updated_datetime": "2030-10-03T00:00:00.000000Z"
    },
    {
      "active": "90.000000000",
      "available": "82.000000000",
      "location_id": "00000000-0000-0000-0000-00000043d0ff",
      "product_id": "1f71df3c-f13a-4fa5-b589-98c325a9e6eb",
      "updated_datetime": "2030-10-04T00:00:00.000000Z"
    },
    {
      "active": "150.000000000",
      "available": "129.000000000",
      "location_id": "00000000-0000-0000-0000-00000043d100",
      "product_id": "1f71df3c-f13a-4fa5-b589-98c325a9e6eb",
      "updated_datetime": "2030-10-05T00:00:00.000000Z"
    },
    {
      "active": "0.000000000",
      "available": "-1.000000000",
      "location_id": null,
      "product_id": "1f71df3c-f13a-4fa5-b589-98c325a9e6eb",
      "updated_datetime": "2030-10-08T00:00:00.000000Z"
    },
    {
      "active": "100.000000000",
      "available": "90.000000000",
      "location_id": "00000000-0000-0000-0000-00000043d0fe",
      "product_id": "80b6123c-fdd4-4af1-9c21-7e0cd669f57b",
      "updated_datetime": "2030-10-01T00:00:00.000000Z"
    },
    {
      "active": "0.000000000",
      "available": "-1.000000000",
      "location_id": "00000000-0000-0000-0000-00000043d0ff",
      "product_id": "80b6123c-fdd4-4af1-9c21-7e0cd669f57b",
      "updated_datetime": "2030-10-02T00:00:00.000000Z"
    },
    {
      "active": "100.000000000",
      "available": "100.000000000",
      "location_id": "00000000-0000-0000-0000-00000043d0ff",
      "product_id": "9cb6b77b-1510-488a-876a-98ab5c5f57fc",
      "updated_datetime": "2030-09-01T00:00:00.000000Z"
    },
    {
      "active": "30.000000000",
      "available": "26.000000000",
      "location_id": null,
      "product_id": "9cb6b77b-1510-488a-876a-98ab5c5f57fc",
      "updated_datetime": "2030-10-07T00:00:00.000000Z"
    }
  ]
}

GET /public/inventory returns stock quantities grouped by product & batch number

GET /public/v1/inventory?grouping[]=PRODUCT&grouping[]=BATCH_NUMBER
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0MTgsImlhdCI6MTc0MTQxODgxOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYmY2ZTY5OTQtMjc4Yi00ZWY1LWFjMTEtOTJlMzNjNDIxMTUwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODE3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2NjQ5NDMiLCJ0eXAiOiJhY2Nlc3MifQ.Zn3oZfRWRFkaJoxm6NDkGgHrDVG9iOCm-ejSU940OzA

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: b7ca795131b828000000000000000001-5af4637ba5cf7a46-0
{
  "data": [
    {
      "active": "26.000000000",
      "available": "26.000000000",
      "batch_number": null,
      "product_id": "47069974-7d48-4fcc-879c-42ac6321aa31",
      "updated_datetime": "2030-12-01T00:00:00.000000Z"
    },
    {
      "active": "27.000000000",
      "available": "27.000000000",
      "batch_number": "1",
      "product_id": "47069974-7d48-4fcc-879c-42ac6321aa31",
      "updated_datetime": "2030-12-02T00:00:00.000000Z"
    },
    {
      "active": "8.000000000",
      "available": "8.000000000",
      "batch_number": "TEST-1",
      "product_id": "5372018f-2709-4e1d-bf28-9244230ae4c2",
      "updated_datetime": "2030-09-01T00:00:00.000000Z"
    },
    {
      "active": "43.000000000",
      "available": "43.000000000",
      "batch_number": null,
      "product_id": "690841ef-98ed-4ff4-90c2-254b8e63e748",
      "updated_datetime": "2030-11-02T00:00:00.000000Z"
    },
    {
      "active": "47.000000000",
      "available": "47.000000000",
      "batch_number": "1",
      "product_id": "690841ef-98ed-4ff4-90c2-254b8e63e748",
      "updated_datetime": "2030-11-04T00:00:00.000000Z"
    },
    {
      "active": "25.000000000",
      "available": "25.000000000",
      "batch_number": "2",
      "product_id": "690841ef-98ed-4ff4-90c2-254b8e63e748",
      "updated_datetime": "2030-11-05T00:00:00.000000Z"
    },
    {
      "active": "19.000000000",
      "available": "19.000000000",
      "batch_number": null,
      "product_id": "fa68a554-773e-404f-aa15-3eb8fd5619ff",
      "updated_datetime": "2030-10-02T00:00:00.000000Z"
    },
    {
      "active": "13.000000000",
      "available": "13.000000000",
      "batch_number": "TEST-1",
      "product_id": "fa68a554-773e-404f-aa15-3eb8fd5619ff",
      "updated_datetime": "2030-10-04T00:00:00.000000Z"
    }
  ]
}

GET /public/inventory returns stock quantities grouped by product & location & batch number

GET /public/v1/inventory?grouping[]=PRODUCT&grouping[]=LOCATION&grouping[]=BATCH_NUMBER
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0MTksImlhdCI6MTc0MTQxODgxOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGJmZWEzM2MtMDAwYi00Y2I3LTk5NTMtMWM4N2I0YTg3ZGUyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODE4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2NjUxMTgiLCJ0eXAiOiJhY2Nlc3MifQ.RGXlPpMrAeOFJsrf7W6iut2k35WXyKKD7PBeztM4xYQ

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 95b80994b1edb0000000000000000001-72c81f4c07eca8f5-0
{
  "data": [
    {
      "active": "41.000000000",
      "available": "41.000000000",
      "batch_number": null,
      "location_id": "00000000-0000-0000-0000-00000043d158",
      "product_id": "dc7f9aa7-feb4-482e-b50b-15449a7753b8",
      "updated_datetime": "2031-01-02T00:00:00.000000Z"
    },
    {
      "active": "49.000000000",
      "available": "49.000000000",
      "batch_number": "TEST-1",
      "location_id": "00000000-0000-0000-0000-00000043d158",
      "product_id": "dc7f9aa7-feb4-482e-b50b-15449a7753b8",
      "updated_datetime": "2031-02-02T00:00:00.000000Z"
    },
    {
      "active": "45.000000000",
      "available": "45.000000000",
      "batch_number": null,
      "location_id": "00000000-0000-0000-0000-00000043d159",
      "product_id": "dc7f9aa7-feb4-482e-b50b-15449a7753b8",
      "updated_datetime": "2031-01-04T00:00:00.000000Z"
    },
    {
      "active": "53.000000000",
      "available": "53.000000000",
      "batch_number": "TEST-1",
      "location_id": "00000000-0000-0000-0000-00000043d159",
      "product_id": "dc7f9aa7-feb4-482e-b50b-15449a7753b8",
      "updated_datetime": "2031-02-04T00:00:00.000000Z"
    },
    {
      "active": "21.000000000",
      "available": "21.000000000",
      "batch_number": null,
      "location_id": "00000000-0000-0000-0000-00000043d158",
      "product_id": "f1b095b2-a5a0-497c-832d-876ea656c330",
      "updated_datetime": "2030-11-02T00:00:00.000000Z"
    },
    {
      "active": "29.000000000",
      "available": "29.000000000",
      "batch_number": "TEST-1",
      "location_id": "00000000-0000-0000-0000-00000043d158",
      "product_id": "f1b095b2-a5a0-497c-832d-876ea656c330",
      "updated_datetime": "2030-12-02T00:00:00.000000Z"
    },
    {
      "active": "25.000000000",
      "available": "25.000000000",
      "batch_number": null,
      "location_id": "00000000-0000-0000-0000-00000043d159",
      "product_id": "f1b095b2-a5a0-497c-832d-876ea656c330",
      "updated_datetime": "2030-11-04T00:00:00.000000Z"
    },
    {
      "active": "33.000000000",
      "available": "33.000000000",
      "batch_number": "TEST-1",
      "location_id": "00000000-0000-0000-0000-00000043d159",
      "product_id": "f1b095b2-a5a0-497c-832d-876ea656c330",
      "updated_datetime": "2030-12-04T00:00:00.000000Z"
    }
  ]
}

Get active and available quantities grouped by a specified list of attributes. Groups with 0 active and 0 available quantity won't be returned. Groups are sorted by the IDs of the attributes they are grouped by. Note: The page size for this endpoint is 5000 groups per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.

Request

GET /public/v1/inventory

Parameters

Parameter Description In Type Required Default Example
grouping Attributes to group inventory by. PRODUCT is required to be in the list. Accepted values are "BATCH_NUMBER", "LOCATION" and "PRODUCT". query array false ["PRODUCT","LOCATION"]
page Pagination information body Page false
product_ids Filter inventory levels by product IDs query array false ["67ae9080-8dc2-4ab7-9704-19673f4d9f21","213c7080-8dc2-4ab7-9704-19673f4d9f22"]

Responses

Status Description Schema
200 A list of active and available quantity for each group Inventories

Invoice

Get invoices

GET /invoices/ returns invoices related to the access token's company

GET /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg2MTEsImlhdCI6MTc0MTQxOTAxMSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMGZmN2VjNWYtYzBmZC00ZjhiLWJkOGYtNDI5MGFiYzAyYTFiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE5MDEwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2OTM2MjMiLCJ0eXAiOiJhY2Nlc3MifQ.KzxkXdSfFC-2duoQD2e_X80C_2ZBj0YpUW4nQ7mZNBc

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 878bc2dc8dea50000000000000000001-351ae9a034f22818-0
{
  "data": [
    {
      "charges": [],
      "company": {
        "id": "00000000-0000-0000-0000-00000063f45c",
        "name": "Company 23013",
        "updated_datetime": "2025-03-08T07:30:12.336230Z"
      },
      "creator": {
        "banned": false,
        "email": "owner-31530@example.com",
        "full_name": "FirstName61220 LastName61221",
        "id": "00000000-0000-0000-0000-000000e03566",
        "role": {
          "id": "00000000-0000-0000-0000-000000dec44c",
          "name": "Admin 30649"
        }
      },
      "due_datetime": "2025-03-08T07:30:12.598983Z",
      "id": "00000000-0000-0000-0000-000000056e3f",
      "inserted_datetime": "2025-03-08T07:30:12.600927Z",
      "invoice_datetime": "2025-03-08T07:30:12.598981Z",
      "invoice_number": "Invoice #717",
      "items": [
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d6cf5",
            "name": "B26168"
          },
          "id": "00000000-0000-0000-0000-00000006bafc",
          "order_item_id": "8c93f3d1-67e7-449c-98db-ab39b1657561",
          "package": null,
          "price": "10.000000000",
          "product": {
            "id": "8e15dcc9-9bfd-42df-a4f8-e1d16554ef33",
            "name": "Product 26164",
            "sku": "sku 26165",
            "updated_datetime": "2025-03-08T07:30:12.381377Z"
          },
          "quantity": "10.000000000"
        },
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d6cfa",
            "name": "B26179"
          },
          "id": "00000000-0000-0000-0000-00000006bafd",
          "order_item_id": "89cc1cb2-72e1-4209-9339-3b24ba714103",
          "package": null,
          "price": "10.000000000",
          "product": {
            "id": "6db67eea-01a6-4efb-a370-697e3259a6f6",
            "name": "Product 26177",
            "sku": "sku 26178",
            "updated_datetime": "2025-03-08T07:30:12.420102Z"
          },
          "quantity": "10.000000000"
        }
      ],
      "order": {
        "id": "6f9a605c-4cd4-4e8f-8a5a-da9984b685cc",
        "order_number": "SO-1596",
        "status": "Pending",
        "total": "320.00"
      },
      "owner": {
        "banned": false,
        "email": "owner-31530@example.com",
        "full_name": "FirstName61220 LastName61221",
        "id": "00000000-0000-0000-0000-000000e03566",
        "role": {
          "id": "00000000-0000-0000-0000-000000dec44c",
          "name": "Admin 30649"
        }
      },
      "paid_amount": "0.0",
      "status": "NOT_PAID",
      "total": "32.00",
      "updated_datetime": "2025-03-08T07:30:12.600927Z"
    },
    {
      "charges": [
        {
          "id": "31d27fdd-3996-4187-b024-455914cceefb",
          "name": "C1",
          "percent": "10.0000",
          "price": "1.00",
          "type": "CHARGE",
          "unit_type": "PERCENT"
        }
      ],
      "company": {
        "id": "00000000-0000-0000-0000-00000063f434",
        "name": "Company 22938",
        "updated_datetime": "2025-03-08T07:30:11.954105Z"
      },
      "creator": {
        "banned": false,
        "email": "user1@a.com",
        "full_name": "John Foo",
        "id": "00000000-0000-0000-0000-000000e034f0",
        "role": {
          "id": "00000000-0000-0000-0000-000000dec3d3",
          "name": "Admin 30528"
        }
      },
      "due_datetime": "2020-01-01T00:00:01.000000Z",
      "id": "00000000-0000-0000-0000-000000056e3e",
      "inserted_datetime": "2025-03-08T07:30:12.020457Z",
      "invoice_datetime": "2020-01-01T00:00:02.000000Z",
      "invoice_number": "INV-123",
      "items": [
        {
          "batch": {
            "batch_number": "UID1",
            "id": "00000000-0000-0000-0000-0000003d6ccf",
            "name": "B1"
          },
          "id": "00000000-0000-0000-0000-00000006bafb",
          "order_item_id": "289cfa54-5a44-453d-ac89-92814db0b640",
          "package": {
            "batch_number": "B1",
            "compliance_label": "ABCDEF012345670000074637",
            "id": "00000000-0000-0000-0000-000000161718",
            "metrc_label": "ABCDEF012345670000074637",
            "status": "active"
          },
          "price": "10.000000000",
          "product": {
            "id": "43125561-a2e6-4c98-bdb8-992243c20672",
            "name": "P1",
            "sku": "SKU1",
            "updated_datetime": "2025-03-08T07:30:11.815891Z"
          },
          "quantity": "1.000000000"
        }
      ],
      "order": {
        "id": "8aced65c-29cb-43ec-992d-dac3dd36d0ee",
        "order_number": "SO-123",
        "status": "Completed",
        "total": "10.00"
      },
      "owner": {
        "banned": false,
        "email": "user2@a.com",
        "full_name": "John Bar",
        "id": "00000000-0000-0000-0000-000000e034f4",
        "role": {
          "id": "00000000-0000-0000-0000-000000dec3d7",
          "name": "Admin 30532"
        }
      },
      "paid_amount": "5.00",
      "status": "PARTIALLY_PAID",
      "total": "8.00",
      "updated_datetime": "2025-03-08T07:30:12.089631Z"
    }
  ]
}

GET /invoices/ allows filtering by several statuses

GET /public/v1/invoices?status[]=Fully+Paid&status[]=Not+Paid
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg1OTUsImlhdCI6MTc0MTQxODk5NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjE1NzA5NzMtOTQ1Ni00ZWU1LWExNjYtMDY2ZGFlZTFjMjBjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4OTk0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2OTAxODAiLCJ0eXAiOiJhY2Nlc3MifQ.xIoKC2VLqwYoFJs4B3CLNsTS4c5j_1CKOWsl837qnBk

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 0c2c87b2c349cf800000000000000001-5865b77ba468370d-0
{
  "data": [
    {
      "charges": [],
      "company": {
        "id": "00000000-0000-0000-0000-00000063eee4",
        "name": "Company 20553",
        "updated_datetime": "2025-03-08T07:29:56.708656Z"
      },
      "creator": {
        "banned": false,
        "email": "owner-28296@example.com",
        "full_name": "FirstName54797 LastName54798",
        "id": "00000000-0000-0000-0000-000000e028b4",
        "role": {
          "id": "00000000-0000-0000-0000-000000deb7af",
          "name": "Admin 27421"
        }
      },
      "due_datetime": "2025-03-08T07:29:56.988980Z",
      "id": "00000000-0000-0000-0000-000000056e16",
      "inserted_datetime": "2025-03-08T07:29:56.991226Z",
      "invoice_datetime": "2020-01-01T12:30:00.000000Z",
      "invoice_number": "Invoice #681",
      "items": [
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d698e",
            "name": "B23512"
          },
          "id": "00000000-0000-0000-0000-00000006bac8",
          "order_item_id": "881acb02-2b52-43df-9666-01ac5bfbf523",
          "package": null,
          "price": "10.000000000",
          "product": {
            "id": "c0fa05c2-8d10-4ad0-8eab-3fa096f1b0ba",
            "name": "Product 23510",
            "sku": "sku 23511",
            "updated_datetime": "2025-03-08T07:29:56.728903Z"
          },
          "quantity": "10.000000000"
        },
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d6993",
            "name": "B23523"
          },
          "id": "00000000-0000-0000-0000-00000006bac9",
          "order_item_id": "f836d836-88f7-4d07-8585-9fca4b321532",
          "package": null,
          "price": "10.000000000",
          "product": {
            "id": "e1f7f81a-5b0b-4b4b-9705-8cc48456bf58",
            "name": "Product 23520",
            "sku": "sku 23521",
            "updated_datetime": "2025-03-08T07:29:56.792228Z"
          },
          "quantity": "10.000000000"
        }
      ],
      "order": {
        "id": "6ee5dae0-b990-416a-80ab-025c1a0443cb",
        "order_number": "SO-1410",
        "status": "Pending",
        "total": "320.00"
      },
      "owner": {
        "banned": false,
        "email": "owner-28296@example.com",
        "full_name": "FirstName54797 LastName54798",
        "id": "00000000-0000-0000-0000-000000e028b4",
        "role": {
          "id": "00000000-0000-0000-0000-000000deb7af",
          "name": "Admin 27421"
        }
      },
      "paid_amount": "0.0",
      "status": "NOT_PAID",
      "total": "32.00",
      "updated_datetime": "2025-03-08T07:29:56.991226Z"
    },
    {
      "charges": [],
      "company": {
        "id": "00000000-0000-0000-0000-00000063eebd",
        "name": "Company 20498",
        "updated_datetime": "2025-03-08T07:29:56.257334Z"
      },
      "creator": {
        "banned": false,
        "email": "owner-28205@example.com",
        "full_name": "FirstName54615 LastName54616",
        "id": "00000000-0000-0000-0000-000000e0285b",
        "role": {
          "id": "00000000-0000-0000-0000-000000deb755",
          "name": "Admin 27330"
        }
      },
      "due_datetime": "2025-03-08T07:29:56.520993Z",
      "id": "00000000-0000-0000-0000-000000056e15",
      "inserted_datetime": "2025-03-08T07:29:56.524520Z",
      "invoice_datetime": "2020-01-01T12:20:00.000000Z",
      "invoice_number": "Invoice #680",
      "items": [
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d696f",
            "name": "B23431"
          },
          "id": "00000000-0000-0000-0000-00000006bac6",
          "order_item_id": "c339590c-3acb-49e4-82a5-add238fbefbd",
          "package": null,
          "price": "10.000000000",
          "product": {
            "id": "bc8119bc-2f8f-475f-838c-49d26b8b5e51",
            "name": "Product 23429",
            "sku": "sku 23430",
            "updated_datetime": "2025-03-08T07:29:56.291397Z"
          },
          "quantity": "10.000000000"
        },
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d6975",
            "name": "B23449"
          },
          "id": "00000000-0000-0000-0000-00000006bac7",
          "order_item_id": "e088c8c6-9d8d-4977-9561-b64c4a402495",
          "package": null,
          "price": "10.000000000",
          "product": {
            "id": "0ce41a62-f62d-442f-a8e2-04c7ae562eac",
            "name": "Product 23445",
            "sku": "sku 23446",
            "updated_datetime": "2025-03-08T07:29:56.334703Z"
          },
          "quantity": "10.000000000"
        }
      ],
      "order": {
        "id": "504bb572-544a-4067-b71b-a17282be5800",
        "order_number": "SO-1407",
        "status": "Pending",
        "total": "320.00"
      },
      "owner": {
        "banned": false,
        "email": "owner-28205@example.com",
        "full_name": "FirstName54615 LastName54616",
        "id": "00000000-0000-0000-0000-000000e0285b",
        "role": {
          "id": "00000000-0000-0000-0000-000000deb755",
          "name": "Admin 27330"
        }
      },
      "paid_amount": "0.0",
      "status": "FULLY_PAID",
      "total": "32.00",
      "updated_datetime": "2025-03-08T07:29:56.524520Z"
    },
    {
      "charges": [],
      "company": {
        "id": "00000000-0000-0000-0000-00000063ee68",
        "name": "Company 20376",
        "updated_datetime": "2025-03-08T07:29:55.459812Z"
      },
      "creator": {
        "banned": false,
        "email": "owner-28000@example.com",
        "full_name": "FirstName54209 LastName54210",
        "id": "00000000-0000-0000-0000-000000e0278d",
        "role": {
          "id": "00000000-0000-0000-0000-000000deb687",
          "name": "Admin 27124"
        }
      },
      "due_datetime": "2025-03-08T07:29:55.773065Z",
      "id": "00000000-0000-0000-0000-000000056e13",
      "inserted_datetime": "2025-03-08T07:29:55.774559Z",
      "invoice_datetime": "2020-01-01T12:00:00.000000Z",
      "invoice_number": "Invoice #678",
      "items": [
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d692d",
            "name": "B23227"
          },
          "id": "00000000-0000-0000-0000-00000006bac2",
          "order_item_id": "fd92c174-0760-4118-8d73-eab4798df4f4",
          "package": null,
          "price": "10.000000000",
          "product": {
            "id": "5eaa9ddf-f5c8-4dc5-92ea-2e1b645c6774",
            "name": "Product 23225",
            "sku": "sku 23226",
            "updated_datetime": "2025-03-08T07:29:55.495949Z"
          },
          "quantity": "10.000000000"
        },
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d6930",
            "name": "B23240"
          },
          "id": "00000000-0000-0000-0000-00000006bac3",
          "order_item_id": "7d1ce7df-09a4-46a2-a560-a63511d275a2",
          "package": null,
          "price": "10.000000000",
          "product": {
            "id": "dd69742c-2612-4460-97aa-89b7d0edaf41",
            "name": "Product 23234",
            "sku": "sku 23235",
            "updated_datetime": "2025-03-08T07:29:55.539727Z"
          },
          "quantity": "10.000000000"
        }
      ],
      "order": {
        "id": "a03b278d-a286-48b7-ae8d-8aaa105fb6a7",
        "order_number": "SO-1402",
        "status": "Pending",
        "total": "320.00"
      },
      "owner": {
        "banned": false,
        "email": "owner-28000@example.com",
        "full_name": "FirstName54209 LastName54210",
        "id": "00000000-0000-0000-0000-000000e0278d",
        "role": {
          "id": "00000000-0000-0000-0000-000000deb687",
          "name": "Admin 27124"
        }
      },
      "paid_amount": "0.0",
      "status": "FULLY_PAID",
      "total": "32.00",
      "updated_datetime": "2025-03-08T07:29:55.774559Z"
    }
  ]
}

Get invoices sorted by Invoice Date descendingly date and filtered by various attributes

Note: The page size for this endpoint is 500 invoices per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.

Request

GET /public/v1/invoices

Parameters

Parameter Description In Type Required Default Example
due_datetime Filter invoices by the due datetime query string false ,2022-07-10T00:00:00Z
inserted_datetime Filter invoices by their creation datetime query string false 2022-07-10T00:00:00Z,2022-07-11T00:00:00Z
invoice_datetime Filter invoices by the invoice datetime query string false 2022-07-10T00:00:00Z,
invoice_number Filter invoices by whether their invoice number contains the given string query string false 001
order_id Filter invoices by order IDs query array false ["67ae9080-8dc2-4ab7-9704-19673f4d9f21","213c7080-8dc2-4ab7-9704-19673f4d9f22"]
page Pagination information body Page false
status Filter invoices by their status. Accepted values are "Not Paid", "Over Paid", "Fully Paid" and "Partially Paid". query array false ["Not Paid","Over Paid"]
updated_datetime Filter invoices by the datetime they were most recently modified query string false ,2022-07-10T00:00:00Z

Responses

Status Description Schema
200 A list of invoices Invoices

Insert a payment for an invoice

POST /invoices/:id/payments can create a payment for an invoice with both quickbooks id and name

POST /public/v1/invoices/00000000-0000-0000-0000-000000056e3c/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg2MTAsImlhdCI6MTc0MTQxOTAxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMWY5MWQ1MzgtMDk1OS00MmIxLWI4MWUtNmQwYzcwMWMyMjgwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE5MDA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2OTMzNjYiLCJ0eXAiOiJhY2Nlc3MifQ.9p-Et1RizyXYNWeqJ5k-q6RxtxJFmerv78SkGBPO6eU
{
  "amount": 100.01,
  "description": "Payment for invoice",
  "payment_datetime": "2020-01-01T00:00:00.000000Z",
  "payment_method_id": "00000000-0000-0000-0000-000000013090",
  "quickbooks_deposit_account_id": "QBD-123"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 6531abd21caa54000000000000000001-a694355082ba246d-0
{
  "data": {
    "amount": "100.01",
    "description": "Payment for invoice",
    "id": "00000000-0000-0000-0000-000000011f77",
    "inserted_datetime": "2025-03-08T07:30:10.752756Z",
    "invoice_id": "00000000-0000-0000-0000-000000056e3c",
    "payment_date": "2020-01-01T00:00:00.000000Z",
    "payment_method": {
      "id": "00000000-0000-0000-0000-000000013090",
      "name": "Payment Method 0"
    },
    "payment_number": "PYT-0000001",
    "quickbooks_deposit_account_id": "QBD-123"
  }
}

POST /invoices/:id/payments can create a payment for an invoice with both quickbooks id and name

POST /public/v1/invoices/00000000-0000-0000-0000-000000056e3c/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg2MTAsImlhdCI6MTc0MTQxOTAxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMWY5MWQ1MzgtMDk1OS00MmIxLWI4MWUtNmQwYzcwMWMyMjgwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE5MDA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2OTMzNjYiLCJ0eXAiOiJhY2Nlc3MifQ.9p-Et1RizyXYNWeqJ5k-q6RxtxJFmerv78SkGBPO6eU
{
  "amount": 100.01,
  "description": "Payment for invoice",
  "payment_datetime": "2020-01-01T00:00:00.000000Z",
  "payment_method_id": "00000000-0000-0000-0000-000000013090",
  "quickbooks_deposit_account_name": "QBD-NAME"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 6531abd21caa54000000000000000001-501a8dbde6ef0893-0
{
  "data": {
    "amount": "100.01",
    "description": "Payment for invoice",
    "id": "00000000-0000-0000-0000-000000011f78",
    "inserted_datetime": "2025-03-08T07:30:10.913432Z",
    "invoice_id": "00000000-0000-0000-0000-000000056e3c",
    "payment_date": "2020-01-01T00:00:00.000000Z",
    "payment_method": {
      "id": "00000000-0000-0000-0000-000000013090",
      "name": "Payment Method 0"
    },
    "payment_number": "PYT-0000002",
    "quickbooks_deposit_account_id": "QBD-123"
  }
}

Request

POST /public/v1/invoices/{id}/payments

Parameters

Parameter Description In Type Required Default Example
payment_method_id Payment method ID query string true
amount Amount of the payment. Will round to 2 decimal places query decimal true
payment_datetime Payment date query string true
description Description of the payment query string true
quickbooks_deposit_account_id Quickbooks deposit account ID. Cannot include both this and quickbooks_deposit_account_name. If user's company is integrated with Quickbooks, either this or quickbooks_deposit_account_name must be provided. Account type must be "Bank" or "Other Current Asset" query string false
quickbooks_deposit_account_name Quickbooks deposit account name. Cannot include both this and quickbooks_deposit_account_id. If user's company is integrated with Quickbooks, either this or quickbooks_deposit_account_id must be provided. Account type must be "Bank" or "Other Current Asset" query string false

Responses

Status Description Schema
200 A single payment InvoicePayment

Get an invoice

GET /invoices/:id returns the expected invoice

GET /public/v1/invoices/00000000-0000-0000-0000-000000056e00
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg1ODksImlhdCI6MTc0MTQxODk4OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDYzZDk2OWUtNDM3Yy00ZmY3LWJhYzItZGIzOGE1ZDFkMDlkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4OTg4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2ODg3NTkiLCJ0eXAiOiJhY2Nlc3MifQ.dQ1cgxpoaQTEPi390474Uu0BKqNrZUjKEXiDys-vyXc

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: c06b49a8697d20000000000000000001-793378cca239b073-0
{
  "data": {
    "charges": [],
    "company": {
      "id": "00000000-0000-0000-0000-00000063ec3e",
      "name": "Company 19413",
      "updated_datetime": "2025-03-08T07:29:49.842756Z"
    },
    "creator": {
      "banned": false,
      "email": "owner-26580@example.com",
      "full_name": "FirstName51389 LastName51390",
      "id": "00000000-0000-0000-0000-000000e021fb",
      "role": {
        "id": "00000000-0000-0000-0000-000000deb0f7",
        "name": "Admin 25700"
      }
    },
    "due_datetime": "2025-03-08T07:29:50.092026Z",
    "id": "00000000-0000-0000-0000-000000056e00",
    "inserted_datetime": "2025-03-08T07:29:50.094931Z",
    "invoice_datetime": "2025-03-08T07:29:50.092024Z",
    "invoice_number": "Invoice #665",
    "items": [
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d676c",
          "name": "B21905"
        },
        "id": "00000000-0000-0000-0000-00000006baa4",
        "order_item_id": "deb567d7-6717-416c-a8d2-6e455e79db15",
        "package": null,
        "price": "10.000000000",
        "product": {
          "id": "3554888f-7246-40b9-b6ea-d02c26ffcef8",
          "name": "Product 21903",
          "sku": "sku 21904",
          "updated_datetime": "2025-03-08T07:29:49.881172Z"
        },
        "quantity": "10.000000000"
      },
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d6772",
          "name": "B21919"
        },
        "id": "00000000-0000-0000-0000-00000006baa5",
        "order_item_id": "c4a0614e-c097-45c0-a71a-30c2ff98aed2",
        "package": null,
        "price": "10.000000000",
        "product": {
          "id": "c885059b-0c38-4e58-9df7-3e02f5351ecf",
          "name": "Product 21915",
          "sku": "sku 21916",
          "updated_datetime": "2025-03-08T07:29:49.919987Z"
        },
        "quantity": "10.000000000"
      }
    ],
    "order": {
      "id": "ad7f0f53-b2bd-4102-82e5-86202b2afb9a",
      "order_number": "SO-1351",
      "status": "Pending",
      "total": "320.00"
    },
    "owner": {
      "banned": false,
      "email": "owner-26580@example.com",
      "full_name": "FirstName51389 LastName51390",
      "id": "00000000-0000-0000-0000-000000e021fb",
      "role": {
        "id": "00000000-0000-0000-0000-000000deb0f7",
        "name": "Admin 25700"
      }
    },
    "paid_amount": "0.0",
    "status": "NOT_PAID",
    "total": "32.00",
    "updated_datetime": "2025-03-08T07:29:50.094931Z"
  }
}

Get a single invoice given the ID

Request

GET /public/v1/invoices/{id}

Parameters

Parameter Description In Type Required Default Example
id Unique ID for an invoice path string true

Responses

Status Description Schema
200 An invoice Invoice

Upsert an invoice

POST /invoices creates an invoice

POST /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg2MDQsImlhdCI6MTc0MTQxOTAwNCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGU5MmRlM2EtNmQ3NC00ZWM3LThkYjEtYzc0NDVmNThhZTc1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE5MDAzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2OTIwOTQiLCJ0eXAiOiJhY2Nlc3MifQ.fskyRuL6drKlPXjf16hFRD7maJlyvj3PhzcFyaWjnyw
{
  "billing_location_id": "00000000-0000-0000-0000-00000043f341",
  "charges": [
    {
      "name": "C1",
      "percent": "10.0000",
      "type": "CHARGE",
      "unit_type": "PERCENT"
    },
    {
      "name": "C2",
      "price": "-5.0000",
      "type": "DISCOUNT",
      "unit_type": "PRICE"
    }
  ],
  "due_datetime": "2020-01-30T00:00:01.000000Z",
  "invoice_datetime": "2020-01-01T00:00:00.000000Z",
  "items": [
    {
      "order_item_id": "6dc1a4fb-6bf5-4e8d-b026-2d1ab51440a3",
      "quantity": "1.000000000"
    },
    {
      "order_item_id": "084c74b6-e366-408c-858b-5d3ea963c35c",
      "quantity": "10.000000000"
    }
  ],
  "order_id": "da5e2d63-d420-4cdb-a6c7-c1e1c287eb57"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 041968af5f2c2fc00000000000000001-f0534795f36367de-0
{
  "data": {
    "charges": [
      {
        "id": "60530193-47cb-4a97-8d9e-04592aac79fc",
        "name": "C1",
        "percent": "10.0000",
        "price": "5.30",
        "type": "CHARGE",
        "unit_type": "PERCENT"
      },
      {
        "id": "cd4ad109-cc31-4d0f-902d-55ec09853ea5",
        "name": "C2",
        "percent": null,
        "price": "-5.00",
        "type": "DISCOUNT",
        "unit_type": "PRICE"
      }
    ],
    "company": {
      "id": "00000000-0000-0000-0000-00000063f14d",
      "name": "Company 21698",
      "updated_datetime": "2025-03-08T07:30:04.468485Z"
    },
    "creator": {
      "banned": false,
      "email": "user1@a.com",
      "full_name": "John Foo",
      "id": "00000000-0000-0000-0000-000000e02efe",
      "role": {
        "id": "00000000-0000-0000-0000-000000debdec",
        "name": "Admin 29017"
      }
    },
    "due_datetime": "2020-01-30T00:00:01.000000Z",
    "id": "00000000-0000-0000-0000-000000056e25",
    "inserted_datetime": "2025-03-08T07:30:04.699817Z",
    "invoice_datetime": "2020-01-01T00:00:00.000000Z",
    "invoice_number": "INV-0000001",
    "items": [
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d6b41",
          "name": "B1"
        },
        "id": "00000000-0000-0000-0000-00000006bae3",
        "order_item_id": "6dc1a4fb-6bf5-4e8d-b026-2d1ab51440a3",
        "package": null,
        "price": "3.000000000",
        "product": {
          "id": "42099a48-d684-4f7c-a893-f7a6f544f10c",
          "name": "P1",
          "sku": "SKU1",
          "updated_datetime": "2025-03-08T07:30:04.553097Z"
        },
        "quantity": "1.000000000"
      },
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d6b44",
          "name": "B2"
        },
        "id": "00000000-0000-0000-0000-00000006bae4",
        "order_item_id": "084c74b6-e366-408c-858b-5d3ea963c35c",
        "package": null,
        "price": "5.000000000",
        "product": {
          "id": "10c0f65e-0d17-406f-9f49-52058d88e014",
          "name": "P2",
          "sku": "SKU2",
          "updated_datetime": "2025-03-08T07:30:04.586269Z"
        },
        "quantity": "10.000000000"
      }
    ],
    "order": {
      "id": "da5e2d63-d420-4cdb-a6c7-c1e1c287eb57",
      "order_number": "SO-1478",
      "status": "Processing",
      "total": "0.00"
    },
    "owner": null,
    "paid_amount": "0.0",
    "status": "NOT_PAID",
    "total": "53.30",
    "updated_datetime": "2025-03-08T07:30:04.716085Z"
  }
}

POST /invoices updates an invoice

POST /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg1OTQsImlhdCI6MTc0MTQxODk5NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTFiZmEzNmUtNmY1Ny00N2VhLWE1MTItY2Y5ZTk1OWI5ZWQ0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4OTkzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2OTAwNDQiLCJ0eXAiOiJhY2Nlc3MifQ.3ERZkUOLZc4Fn4BHx-iXgI9Gpa8ER1__sBsuyFqERkM
{
  "billing_location_id": "00000000-0000-0000-0000-00000043f13a",
  "charges": [
    {
      "name": "C1",
      "percent": "10.0000",
      "type": "CHARGE",
      "unit_type": "PERCENT"
    },
    {
      "name": "C2",
      "price": "-5.0000",
      "type": "DISCOUNT",
      "unit_type": "PRICE"
    }
  ],
  "due_datetime": "2020-01-30T00:00:01.000000Z",
  "invoice_datetime": "2020-01-01T00:00:00.000000Z",
  "items": [
    {
      "order_item_id": "1107f9c5-37e7-4a75-99c2-91297f71c23a",
      "quantity": "1.000000000"
    },
    {
      "order_item_id": "1eb1ff99-6960-4557-9a99-a009e33ab810",
      "quantity": "10.000000000"
    }
  ],
  "order_id": "73b7d685-ec9d-4c53-90b3-dac02daf68fa"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 1e635c8bc9fd34000000000000000001-9fcb5fcd86c6339f-0
{
  "data": {
    "charges": [
      {
        "id": "7e04bbf7-c95c-4115-b0c4-395a7cd3b7fd",
        "name": "C1",
        "percent": "10.0000",
        "price": "5.30",
        "type": "CHARGE",
        "unit_type": "PERCENT"
      },
      {
        "id": "9d4a7e5d-8d92-4dca-a4a4-a7b0b224478c",
        "name": "C2",
        "percent": null,
        "price": "-5.00",
        "type": "DISCOUNT",
        "unit_type": "PRICE"
      }
    ],
    "company": {
      "id": "00000000-0000-0000-0000-00000063ee2f",
      "name": "Company 20284",
      "updated_datetime": "2025-03-08T07:29:54.868097Z"
    },
    "creator": {
      "banned": false,
      "email": "user1@a.com",
      "full_name": "John Foo",
      "id": "00000000-0000-0000-0000-000000e026fc",
      "role": {
        "id": "00000000-0000-0000-0000-000000deb5f7",
        "name": "Admin 26980"
      }
    },
    "due_datetime": "2020-01-30T00:00:01.000000Z",
    "id": "00000000-0000-0000-0000-000000056e12",
    "inserted_datetime": "2025-03-08T07:29:55.104481Z",
    "invoice_datetime": "2020-01-01T00:00:00.000000Z",
    "invoice_number": "INV-0000001",
    "items": [
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d6903",
          "name": "B1"
        },
        "id": "00000000-0000-0000-0000-00000006babf",
        "order_item_id": "1107f9c5-37e7-4a75-99c2-91297f71c23a",
        "package": null,
        "price": "3.000000000",
        "product": {
          "id": "716cc393-c49c-41dc-9c32-ae88d806fd09",
          "name": "P1",
          "sku": "SKU1",
          "updated_datetime": "2025-03-08T07:29:54.968644Z"
        },
        "quantity": "1.000000000"
      },
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d6904",
          "name": "B2"
        },
        "id": "00000000-0000-0000-0000-00000006bac0",
        "order_item_id": "1eb1ff99-6960-4557-9a99-a009e33ab810",
        "package": null,
        "price": "5.000000000",
        "product": {
          "id": "891ca7b5-2653-461e-9a85-eabeea6f89a3",
          "name": "P2",
          "sku": "SKU2",
          "updated_datetime": "2025-03-08T07:29:55.001912Z"
        },
        "quantity": "10.000000000"
      }
    ],
    "order": {
      "id": "73b7d685-ec9d-4c53-90b3-dac02daf68fa",
      "order_number": "SO-1398",
      "status": "Processing",
      "total": "0.00"
    },
    "owner": null,
    "paid_amount": "0.0",
    "status": "NOT_PAID",
    "total": "53.30",
    "updated_datetime": "2025-03-08T07:29:55.123497Z"
  }
}

POST /invoices updates an invoice

POST /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg1OTQsImlhdCI6MTc0MTQxODk5NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTFiZmEzNmUtNmY1Ny00N2VhLWE1MTItY2Y5ZTk1OWI5ZWQ0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4OTkzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2OTAwNDQiLCJ0eXAiOiJhY2Nlc3MifQ.3ERZkUOLZc4Fn4BHx-iXgI9Gpa8ER1__sBsuyFqERkM
{
  "billing_location_id": "00000000-0000-0000-0000-00000043f13b",
  "charges": [
    {
      "id": "7e04bbf7-c95c-4115-b0c4-395a7cd3b7fd",
      "name": "C1",
      "percent": "10.0000",
      "type": "CHARGE",
      "unit_type": "PERCENT"
    },
    {
      "name": "C3",
      "price": "-5.0000",
      "type": "DISCOUNT",
      "unit_type": "PRICE"
    }
  ],
  "due_datetime": "2020-01-28T00:00:01.000000Z",
  "id": "00000000-0000-0000-0000-000000056e12",
  "invoice_datetime": "2020-01-02T00:00:00.000000Z",
  "items": [
    {
      "id": "00000000-0000-0000-0000-00000006babf",
      "order_item_id": "1107f9c5-37e7-4a75-99c2-91297f71c23a",
      "quantity": "1.000000000"
    },
    {
      "order_item_id": "1eb1ff99-6960-4557-9a99-a009e33ab810",
      "quantity": "8.000000000"
    }
  ],
  "order_id": "73b7d685-ec9d-4c53-90b3-dac02daf68fa"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 1e635c8bc9fd34000000000000000001-f0fd1d57f4de60e4-0
{
  "data": {
    "charges": [
      {
        "id": "7e04bbf7-c95c-4115-b0c4-395a7cd3b7fd",
        "name": "C1",
        "percent": "10.0000",
        "price": "4.30",
        "type": "CHARGE",
        "unit_type": "PERCENT"
      },
      {
        "id": "bf7b6bce-af8b-4568-b636-3e5730d92499",
        "name": "C3",
        "percent": null,
        "price": "-5.00",
        "type": "DISCOUNT",
        "unit_type": "PRICE"
      }
    ],
    "company": {
      "id": "00000000-0000-0000-0000-00000063ee2f",
      "name": "Company 20284",
      "updated_datetime": "2025-03-08T07:29:54.868097Z"
    },
    "creator": {
      "banned": false,
      "email": "user1@a.com",
      "full_name": "John Foo",
      "id": "00000000-0000-0000-0000-000000e026fc",
      "role": {
        "id": "00000000-0000-0000-0000-000000deb5f7",
        "name": "Admin 26980"
      }
    },
    "due_datetime": "2020-01-28T00:00:01.000000Z",
    "id": "00000000-0000-0000-0000-000000056e12",
    "inserted_datetime": "2025-03-08T07:29:55.104481Z",
    "invoice_datetime": "2020-01-02T00:00:00.000000Z",
    "invoice_number": "INV-0000001",
    "items": [
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d6903",
          "name": "B1"
        },
        "id": "00000000-0000-0000-0000-00000006babf",
        "order_item_id": "1107f9c5-37e7-4a75-99c2-91297f71c23a",
        "package": null,
        "price": "3.000000000",
        "product": {
          "id": "716cc393-c49c-41dc-9c32-ae88d806fd09",
          "name": "P1",
          "sku": "SKU1",
          "updated_datetime": "2025-03-08T07:29:54.968644Z"
        },
        "quantity": "1.000000000"
      },
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d6904",
          "name": "B2"
        },
        "id": "00000000-0000-0000-0000-00000006bac1",
        "order_item_id": "1eb1ff99-6960-4557-9a99-a009e33ab810",
        "package": null,
        "price": "5.000000000",
        "product": {
          "id": "891ca7b5-2653-461e-9a85-eabeea6f89a3",
          "name": "P2",
          "sku": "SKU2",
          "updated_datetime": "2025-03-08T07:29:55.001912Z"
        },
        "quantity": "8.000000000"
      }
    ],
    "order": {
      "id": "73b7d685-ec9d-4c53-90b3-dac02daf68fa",
      "order_number": "SO-1398",
      "status": "Processing",
      "total": "0.00"
    },
    "owner": null,
    "paid_amount": "0.0",
    "status": "NOT_PAID",
    "total": "42.30",
    "updated_datetime": "2025-03-08T07:29:55.306354Z"
  }
}

POST /invoices reports various errors correctly on update

POST /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg2MDQsImlhdCI6MTc0MTQxOTAwNCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTRjNGI0MjYtNGFjNy00NjA0LWI4MzEtNDgwYmE3MWQ2ZmNjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE5MDAzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2OTIyMDYiLCJ0eXAiOiJhY2Nlc3MifQ.Ua-510n9vqod5IegdzZ6GX7K7EtX8ycP9vl6n_IJf_M
{
  "billing_location_id": "00000000-0000-0000-0000-00000043f36d",
  "charges": [
    {
      "name": "C1",
      "percent": "-1000.0000",
      "type": "CHARGE",
      "unit_type": "PERCENT"
    }
  ],
  "due_datetime": "2020-01-30T00:00:01.000000Z",
  "id": "00000000-0000-0000-0000-000000056e26",
  "invoice_datetime": "2020-01-01T00:00:00.000000Z",
  "items": [
    {
      "order_item_id": "00000000-0000-0000-0000-000000000000",
      "quantity": "15.000"
    },
    {
      "order_item_id": "9cf54a15-14fb-4968-91b7-0d4c4182c6d9",
      "quantity": "19.000"
    }
  ],
  "order_id": "d6e2c7e8-7c4b-4171-97e0-cab21774749a"
}

Response

400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: b2b1749e2d13d8000000000000000001-7c50e019ce9fabed-0
{
  "errors": [
    {
      "context": {
        "id": "0907deb6-e193-4900-aa61-c28e4891ff8f"
      },
      "message": "Must be less than or equal to 100",
      "pointer": ["charges", 0, "percent"],
      "section": "body"
    },
    {
      "context": {},
      "message": "Order item not found",
      "pointer": ["items", 2, "order_item_id"],
      "section": "body"
    },
    {
      "context": {},
      "message": "Only 10 left uninvoiced",
      "pointer": ["items", 3, "quantity"],
      "section": "body"
    }
  ]
}

Upsert a single invoice. To update an existing invoice, pass in an existing invoice ID in the id field. When updating an invoice, you must pass in all fields (no sparse update currently supported). Any existing invoice item or charge you do not pass in to items and charges respectively will be deleted

Request

POST /public/v1/invoices

Parameters

Parameter Description In Type Required Default Example
due_datetime The datetime at which the invoice is due query string false
id Unique ID for this invoice. If it exists, an update will be performed; otherwise, it will be used as the ID of a new invoice record query string false
invoice_datetime The datetime on which the invoice was placed query string false
charges The additional lines of Charge, Discount, or Tax added to this invoice body InvoiceChargesRequest false
items The invoice items present on this order body InvoiceItemsRequest false
billing_location_id The billing location's ID query string false

Responses

Status Description Schema
200 A single invoice Invoice

Location

Get locations

GET /public/v1/locations returns locations related to the company

GET /public/v1/locations
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg1NzUsImlhdCI6MTc0MTQxODk3NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTM0MGYwZDUtYzk2OC00Zjc4LWEzZGItYmMwY2M4MjNmY2JkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4OTc0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2ODUyNjIiLCJ0eXAiOiJhY2Nlc3MifQ.peu5osP_p4A738VHrMONRQ-9_I21HwL8fOHOx6oT2Ro

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 623c1e5b866a8c000000000000000001-1054ad03ed1de73b-0
{
  "data": [
    {
      "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
      "company_id": "00000000-0000-0000-0000-000000a9a28b",
      "id": "00000000-0000-0000-0000-00000043eca1",
      "license": null,
      "license_id": null,
      "name": "Place 7551"
    },
    {
      "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
      "company_id": "00000000-0000-0000-0000-000000a9a28b",
      "id": "00000000-0000-0000-0000-00000043eca2",
      "license": {
        "id": "00000000-0000-0000-0000-0000002bab37",
        "license_number": "CDPH-00004662"
      },
      "license_id": "00000000-0000-0000-0000-0000002bab37",
      "name": "Place 7552"
    }
  ]
}

Get locations sorted by their creation date and filtered by various attributes

Note: The page size for this endpoint is 1000 locations per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.

Request

GET /public/v1/locations

Parameters

Parameter Description In Type Required Default Example
inserted_datetime Filter locations by their creation datetime query string false 2022-07-10T00:00:00Z,
page Pagination information body Page false
updated_datetime Filter locations by the datetime they were most recently modified query string false ,2022-07-10T00:00:00Z

Responses

Status Description Schema
200 A list of locations Locations

Order

Get orders

GET /public/v1/orders returns orders related to the company

GET /public/v1/orders
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg2MzUsImlhdCI6MTc0MTQxOTAzNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTMxZTg5MzQtMWU1Zi00YTQ1LThmMDktMTJmZmZjZTNiOTQ1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE5MDM0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2OTg3NjQiLCJ0eXAiOiJhY2Nlc3MifQ.oAUT1VnO18_3NrF1zw_fmKVRcM6TvIglkrkM2BD9VYw

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: c382fe35969268000000000000000001-06a49041223fbadb-0
{
  "data": [
    {
      "billing_location": {
        "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
        "company_id": "00000000-0000-0000-0000-000000a9cb16",
        "id": "00000000-0000-0000-0000-00000043fb70",
        "license_id": null,
        "name": "Place 11295"
      },
      "charges": [
        {
          "id": "3694dc07-3fe2-41eb-b793-9547a25fe1b0",
          "name": "C1",
          "percent": "10.0000",
          "price": "1.00",
          "type": "CHARGE",
          "unit_type": "PERCENT"
        }
      ],
      "company": {
        "id": "00000000-0000-0000-0000-00000063fd52",
        "name": "Company 26992",
        "updated_datetime": "2030-11-01T00:00:00.000000Z"
      },
      "creator": {
        "banned": false,
        "email": "user1@a.com",
        "full_name": "John Foo",
        "id": "00000000-0000-0000-0000-000000e04904",
        "role": {
          "id": "00000000-0000-0000-0000-000000ded7e7",
          "name": "Admin 35668"
        }
      },
      "delivery_datetime": "2020-01-01T00:00:00.000000Z",
      "due_datetime": "2020-01-01T00:00:01.000000Z",
      "external_notes": null,
      "id": "f8c19fde-3ae5-4d67-a0ec-851699bb9813",
      "inserted_datetime": "2020-01-01T00:00:03.000000Z",
      "internal_notes": "Internal notes for this order",
      "items": [
        {
          "batch": {
            "batch_number": "UID1",
            "id": "00000000-0000-0000-0000-0000003d7299",
            "name": "B1"
          },
          "compliance_quantity": "10.0000",
          "id": "1191069a-f2ba-4906-b895-e7875c14ae3b",
          "location": {
            "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
            "company_id": "00000000-0000-0000-0000-000000a9cb16",
            "id": "00000000-0000-0000-0000-00000043fb70",
            "license_id": null,
            "name": "Place 11295"
          },
          "package": {
            "batch_number": "B1",
            "compliance_label": "ABCDEF012345670000075823",
            "id": "00000000-0000-0000-0000-00000016187e",
            "metrc_label": "ABCDEF012345670000075823",
            "status": "active"
          },
          "price": "10.000000000",
          "price_base": "10",
          "product": {
            "id": "f92c8000-fd42-4572-bfa0-d7ca4a29cd35",
            "name": "P1",
            "sku": "SKU1",
            "updated_datetime": "2023-11-02T00:00:00.000000Z"
          },
          "quantity": "1.000000000"
        }
      ],
      "order_datetime": "2020-01-01T00:00:02.000000Z",
      "order_number": "SO-123",
      "owner": {
        "banned": false,
        "email": "user2@a.com",
        "full_name": "John Bar",
        "id": "00000000-0000-0000-0000-000000e04908",
        "role": {
          "id": "00000000-0000-0000-0000-000000ded7eb",
          "name": "Admin 35672"
        }
      },
      "shipping_location": {
        "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
        "company_id": "00000000-0000-0000-0000-000000a9cb16",
        "id": "00000000-0000-0000-0000-00000043fb70",
        "license_id": null,
        "name": "Place 11295"
      },
      "status": "COMPLETED",
      "total": "11.00",
      "updated_datetime": "2020-01-01T00:00:04.000000Z"
    }
  ]
}

GET /public/v1/orders allows filtering by several statuses

GET /public/v1/orders?status[]=COMPLETED&status[]=CANCELED
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg2MTUsImlhdCI6MTc0MTQxOTAxNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTdkNTdkZjgtZDRhMy00MTY0LThiNWUtY2JmMzc2YTFhMGU2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE5MDE0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2OTQ0NjciLCJ0eXAiOiJhY2Nlc3MifQ.3BdB3FuwDyNmheXSKek80MHS_i-wq9g2uDcgKmiFSB8

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 50fcbd48501788000000000000000001-ac07093c65313f1d-0
{
  "data": [
    {
      "billing_location": null,
      "charges": [],
      "company": {
        "id": "00000000-0000-0000-0000-00000063f629",
        "name": "Company 23723",
        "updated_datetime": "2025-03-08T07:30:16.461443Z"
      },
      "creator": {
        "banned": false,
        "email": "owner-32485@example.com",
        "full_name": "FirstName63110 LastName63111",
        "id": "00000000-0000-0000-0000-000000e03924",
        "role": {
          "id": "00000000-0000-0000-0000-000000dec80d",
          "name": "Admin 31610"
        }
      },
      "delivery_datetime": null,
      "due_datetime": "2025-03-08T07:30:16.522289Z",
      "external_notes": null,
      "id": "9868da91-6a76-4115-b47b-ee0bcb608b88",
      "inserted_datetime": "2025-03-08T07:30:16.524953Z",
      "internal_notes": null,
      "items": [
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d6e48",
            "name": "B27179"
          },
          "compliance_quantity": null,
          "id": "6c55fa1f-5c3a-46e4-a9dc-ac09e974f8ea",
          "location": null,
          "package": null,
          "price": "10.000000000",
          "price_base": "10",
          "product": {
            "id": "e4ae269c-ee6e-409a-8c7a-9f7ff245f99b",
            "name": "Product 27177",
            "sku": "sku 27178",
            "updated_datetime": "2025-03-08T07:30:16.564035Z"
          },
          "quantity": "15.000000000"
        },
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d6e4b",
            "name": "B27186"
          },
          "compliance_quantity": null,
          "id": "6d92b43d-7642-468a-bee4-bc0c32f1851e",
          "location": null,
          "package": null,
          "price": "10.000000000",
          "price_base": "10",
          "product": {
            "id": "9c376c42-bdff-4fd6-bbc3-06829aa83a89",
            "name": "Product 27184",
            "sku": "sku 27185",
            "updated_datetime": "2025-03-08T07:30:16.602849Z"
          },
          "quantity": "10.000000000"
        },
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d6e4d",
            "name": "B27198"
          },
          "compliance_quantity": null,
          "id": "bfb45d0b-6fd8-4bb5-b9f1-e787b4496aa8",
          "location": null,
          "package": null,
          "price": "10.000000000",
          "price_base": "10",
          "product": {
            "id": "0e6eca7c-09e8-4284-8262-de3e4e6ba0db",
            "name": "Product 27192",
            "sku": "sku 27193",
            "updated_datetime": "2025-03-08T07:30:16.642007Z"
          },
          "quantity": "5.000000000"
        },
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d6e52",
            "name": "B27211"
          },
          "compliance_quantity": null,
          "id": "69b1eee1-6910-44b3-97f6-2ea7bc86b88b",
          "location": null,
          "package": null,
          "price": "10.000000000",
          "price_base": "10",
          "product": {
            "id": "d181ad91-ab72-4244-8c18-8cdf14cc3e30",
            "name": "Product 27205",
            "sku": "sku 27206",
            "updated_datetime": "2025-03-08T07:30:16.680274Z"
          },
          "quantity": "2.000000000"
        }
      ],
      "order_datetime": "2020-01-01T12:30:00.000000Z",
      "order_number": "SO-1653",
      "owner": {
        "banned": false,
        "email": "owner-32485@example.com",
        "full_name": "FirstName63110 LastName63111",
        "id": "00000000-0000-0000-0000-000000e03924",
        "role": {
          "id": "00000000-0000-0000-0000-000000dec80d",
          "name": "Admin 31610"
        }
      },
      "shipping_location": null,
      "status": "CANCELED",
      "total": "320.00",
      "updated_datetime": "2025-03-08T07:30:16.754377Z"
    },
    {
      "billing_location": null,
      "charges": [],
      "company": {
        "id": "00000000-0000-0000-0000-00000063f613",
        "name": "Company 23683",
        "updated_datetime": "2025-03-08T07:30:16.161243Z"
      },
      "creator": {
        "banned": false,
        "email": "owner-32430@example.com",
        "full_name": "FirstName63002 LastName63003",
        "id": "00000000-0000-0000-0000-000000e038ed",
        "role": {
          "id": "00000000-0000-0000-0000-000000dec7d5",
          "name": "Admin 31554"
        }
      },
      "delivery_datetime": null,
      "due_datetime": "2025-03-08T07:30:16.219737Z",
      "external_notes": null,
      "id": "710140d7-3f85-4bb2-822f-96d22ccc06a2",
      "inserted_datetime": "2025-03-08T07:30:16.221610Z",
      "internal_notes": null,
      "items": [
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d6e38",
            "name": "B27126"
          },
          "compliance_quantity": null,
          "id": "717bba69-a5f3-4738-bbb3-9359b00a4e55",
          "location": null,
          "package": null,
          "price": "10.000000000",
          "price_base": "10",
          "product": {
            "id": "5a6937be-ce2f-4f00-b873-b4f4d6205246",
            "name": "Product 27122",
            "sku": "sku 27123",
            "updated_datetime": "2025-03-08T07:30:16.250150Z"
          },
          "quantity": "15.000000000"
        },
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d6e3a",
            "name": "B27134"
          },
          "compliance_quantity": null,
          "id": "258d4bae-9178-4db0-ba62-f5f78e03be5c",
          "location": null,
          "package": null,
          "price": "10.000000000",
          "price_base": "10",
          "product": {
            "id": "b6354718-a30e-4104-8db8-316c3ce754d3",
            "name": "Product 27132",
            "sku": "sku 27133",
            "updated_datetime": "2025-03-08T07:30:16.287562Z"
          },
          "quantity": "10.000000000"
        },
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d6e3e",
            "name": "B27146"
          },
          "compliance_quantity": null,
          "id": "7d076987-f19e-4be7-8c98-d759bc14b894",
          "location": null,
          "package": null,
          "price": "10.000000000",
          "price_base": "10",
          "product": {
            "id": "b17d8a5f-254d-4db4-9751-ddc7b2814051",
            "name": "Product 27144",
            "sku": "sku 27145",
            "updated_datetime": "2025-03-08T07:30:16.321322Z"
          },
          "quantity": "5.000000000"
        },
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d6e42",
            "name": "B27154"
          },
          "compliance_quantity": null,
          "id": "11d50118-c028-43d3-b466-4f8491bd5fdb",
          "location": null,
          "package": null,
          "price": "10.000000000",
          "price_base": "10",
          "product": {
            "id": "54cff2ab-e53b-423e-9f93-362d1b67a6a7",
            "name": "Product 27152",
            "sku": "sku 27153",
            "updated_datetime": "2025-03-08T07:30:16.360944Z"
          },
          "quantity": "2.000000000"
        }
      ],
      "order_datetime": "2020-01-01T12:20:00.000000Z",
      "order_number": "SO-1652",
      "owner": {
        "banned": false,
        "email": "owner-32430@example.com",
        "full_name": "FirstName63002 LastName63003",
        "id": "00000000-0000-0000-0000-000000e038ed",
        "role": {
          "id": "00000000-0000-0000-0000-000000dec7d5",
          "name": "Admin 31554"
        }
      },
      "shipping_location": null,
      "status": "COMPLETED",
      "total": "320.00",
      "updated_datetime": "2025-03-08T07:30:16.441732Z"
    },
    {
      "billing_location": null,
      "charges": [],
      "company": {
        "id": "00000000-0000-0000-0000-00000063f5c5",
        "name": "Company 23562",
        "updated_datetime": "2025-03-08T07:30:15.514630Z"
      },
      "creator": {
        "banned": false,
        "email": "owner-32267@example.com",
        "full_name": "FirstName62676 LastName62678",
        "id": "00000000-0000-0000-0000-000000e03848",
        "role": {
          "id": "00000000-0000-0000-0000-000000dec731",
          "name": "Admin 31390"
        }
      },
      "delivery_datetime": null,
      "due_datetime": "2025-03-08T07:30:15.570471Z",
      "external_notes": null,
      "id": "653c0201-c0f2-4acc-a120-66ae6e8698d3",
      "inserted_datetime": "2025-03-08T07:30:15.572377Z",
      "internal_notes": null,
      "items": [
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d6e03",
            "name": "B26969"
          },
          "compliance_quantity": null,
          "id": "2feeded0-5eb9-4702-b252-0c91c00b835c",
          "location": null,
          "package": null,
          "price": "10.000000000",
          "price_base": "10",
          "product": {
            "id": "2681d867-f619-48aa-ba79-feef0ac66f70",
            "name": "Product 26965",
            "sku": "sku 26966",
            "updated_datetime": "2025-03-08T07:30:15.603692Z"
          },
          "quantity": "15.000000000"
        },
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d6e06",
            "name": "B26980"
          },
          "compliance_quantity": null,
          "id": "c77e960e-08ea-4af2-b6e3-08ec52ec90d5",
          "location": null,
          "package": null,
          "price": "10.000000000",
          "price_base": "10",
          "product": {
            "id": "3f75050d-12bf-4cd2-a589-67520f02ee91",
            "name": "Product 26978",
            "sku": "sku 26979",
            "updated_datetime": "2025-03-08T07:30:15.649436Z"
          },
          "quantity": "10.000000000"
        },
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d6e07",
            "name": "B26985"
          },
          "compliance_quantity": null,
          "id": "b8fc7632-4f94-4107-b4a5-b809613d654c",
          "location": null,
          "package": null,
          "price": "10.000000000",
          "price_base": "10",
          "product": {
            "id": "3892e08e-853d-4939-8965-8309b5beec9f",
            "name": "Product 26983",
            "sku": "sku 26984",
            "updated_datetime": "2025-03-08T07:30:15.696308Z"
          },
          "quantity": "5.000000000"
        },
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d6e0a",
            "name": "B26998"
          },
          "compliance_quantity": null,
          "id": "197f8b1c-c34a-4cc1-9ca4-dbfc8eb573dc",
          "location": null,
          "package": null,
          "price": "10.000000000",
          "price_base": "10",
          "product": {
            "id": "2a71a6b0-61ea-487f-ac76-e50ae7026d9c",
            "name": "Product 26994",
            "sku": "sku 26995",
            "updated_datetime": "2025-03-08T07:30:15.737397Z"
          },
          "quantity": "2.000000000"
        }
      ],
      "order_datetime": "2020-01-01T12:00:00.000000Z",
      "order_number": "SO-1642",
      "owner": {
        "banned": false,
        "email": "owner-32267@example.com",
        "full_name": "FirstName62676 LastName62678",
        "id": "00000000-0000-0000-0000-000000e03848",
        "role": {
          "id": "00000000-0000-0000-0000-000000dec731",
          "name": "Admin 31390"
        }
      },
      "shipping_location": null,
      "status": "COMPLETED",
      "total": "320.00",
      "updated_datetime": "2025-03-08T07:30:15.802501Z"
    }
  ]
}

Get orders sorted by Order Date descendingly date and filtered by various attributes

Note: The page size for this endpoint is 500 orders per page.

Request

GET /public/v1/orders

Parameters

Parameter Description In Type Required Default Example
delivery_datetime Filter orders by the delivery datetime query string false 2022-07-10T00:00:00Z,
due_datetime Filter orders by the due datetime query string false ,2022-07-10T00:00:00Z
inserted_datetime Filter orders by their creation datetime query string false 2022-07-10T00:00:00Z,
order_datetime Filter orders by the order datetime query string false 2022-07-10T00:00:00Z,2022-07-11T00:00:00Z
page Pagination information body Page false
status Filter orders by their status. Accepted values are "PENDING", "PROCESSING", "READY_TO_SHIP", "DELIVERING", "DELIVERED", "COMPLETED" and "CANCELED". query array false ["PENDING","PROCESSING"]
updated_datetime Filter orders by the datetime they were most recently modified query string false ,2022-07-10T00:00:00Z

Responses

Status Description Schema
200 A list of orders Orders

Get an order

GET /orders/:id returns the expected order

GET /public/v1/orders/54879c8a-e6a2-492b-86c5-c6765acc2654
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg2MjUsImlhdCI6MTc0MTQxOTAyNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGU0NTJhZjUtYzNlYy00NDYyLTgxNmMtZTA5YTA0MWQ4MGUxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE5MDI0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2OTY4MDkiLCJ0eXAiOiJhY2Nlc3MifQ.pFjTUW0YOp8Ai_D31nUQT4j35PD0bVzBVqBihDWtLoo

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: f174fda0371568000000000000000001-335a0c582a2d3d6e-0
{
  "data": {
    "billing_location": null,
    "charges": [],
    "company": {
      "id": "00000000-0000-0000-0000-00000063f9cc",
      "name": "Company 25259",
      "updated_datetime": "2025-03-08T07:30:25.931782Z"
    },
    "creator": {
      "banned": false,
      "email": "owner-34772@example.com",
      "full_name": "FirstName67296 LastName67297",
      "id": "00000000-0000-0000-0000-000000e0416e",
      "role": {
        "id": "00000000-0000-0000-0000-000000ded059",
        "name": "Admin 33734"
      }
    },
    "delivery_datetime": null,
    "due_datetime": "2025-03-08T07:30:25.991458Z",
    "external_notes": null,
    "id": "54879c8a-e6a2-492b-86c5-c6765acc2654",
    "inserted_datetime": "2025-03-08T07:30:25.992999Z",
    "internal_notes": null,
    "items": [
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d7096",
          "name": "B29063"
        },
        "compliance_quantity": null,
        "id": "0fb0d758-c67a-48fa-99b4-9862353a4c7f",
        "location": null,
        "package": null,
        "price": "10.000000000",
        "price_base": "10",
        "product": {
          "id": "315ec917-b03c-43c8-b248-5f59a1c60f14",
          "name": "Product 29056",
          "sku": "sku 29057",
          "updated_datetime": "2025-03-08T07:30:26.044155Z"
        },
        "quantity": "15.000000000"
      },
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d7099",
          "name": "B29078"
        },
        "compliance_quantity": null,
        "id": "69dff552-adbf-4257-98d6-2229be3053d6",
        "location": null,
        "package": null,
        "price": "10.000000000",
        "price_base": "10",
        "product": {
          "id": "acb082d6-13d4-4e5e-aea3-2b9aa04adcd2",
          "name": "Product 29074",
          "sku": "sku 29075",
          "updated_datetime": "2025-03-08T07:30:26.101743Z"
        },
        "quantity": "10.000000000"
      },
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d709d",
          "name": "B29090"
        },
        "compliance_quantity": null,
        "id": "cd572db1-3219-4791-9fae-cff21b0df5ff",
        "location": null,
        "package": null,
        "price": "10.000000000",
        "price_base": "10",
        "product": {
          "id": "b102e091-5a84-4402-9be1-55cd93e55f19",
          "name": "Product 29088",
          "sku": "sku 29089",
          "updated_datetime": "2025-03-08T07:30:26.137894Z"
        },
        "quantity": "5.000000000"
      },
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d70a0",
          "name": "B29097"
        },
        "compliance_quantity": null,
        "id": "44604bb5-fd3c-4107-9276-836f4fc326a8",
        "location": null,
        "package": null,
        "price": "10.000000000",
        "price_base": "10",
        "product": {
          "id": "846b5868-73bb-4054-9738-0928cd10dc99",
          "name": "Product 29094",
          "sku": "sku 29095",
          "updated_datetime": "2025-03-08T07:30:26.178384Z"
        },
        "quantity": "2.000000000"
      }
    ],
    "order_datetime": "2025-03-08T07:30:25.991455Z",
    "order_number": "SO-1784",
    "owner": {
      "banned": false,
      "email": "owner-34772@example.com",
      "full_name": "FirstName67296 LastName67297",
      "id": "00000000-0000-0000-0000-000000e0416e",
      "role": {
        "id": "00000000-0000-0000-0000-000000ded059",
        "name": "Admin 33734"
      }
    },
    "shipping_location": null,
    "status": "COMPLETED",
    "total": "320.00",
    "updated_datetime": "2025-03-08T07:30:26.257977Z"
  }
}

Get a single order given the ID. Note: This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.

Request

GET /public/v1/orders/{id}

Parameters

Parameter Description In Type Required Default Example
id Order ID path string true

Responses

Status Description Schema
200 A single order Order

Upsert an order

POST /public/v1/orders creates an order (with product-tracked item)

POST /public/v1/orders
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg2MzUsImlhdCI6MTc0MTQxOTAzNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTVmOWUwMDgtZDE0NC00OTFiLTg4YmYtNzhmYzdiOTg4NjRlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE5MDM0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2OTg2NTgiLCJ0eXAiOiJhY2Nlc3MifQ.WfaxqiXfvBICo8KEpQXIPLpAP5PxHCtGQi9yS-cCA3o
{
  "billing_location_id": "00000000-0000-0000-0000-00000043fb4f",
  "charges": [
    {
      "name": "C1",
      "percent": "10.0000",
      "type": "CHARGE",
      "unit_type": "PERCENT"
    },
    {
      "name": "C2",
      "price": "-5.0000",
      "type": "DISCOUNT",
      "unit_type": "PRICE"
    }
  ],
  "company_id": "00000000-0000-0000-0000-00000063fd1c",
  "delivery_datetime": "2020-01-01T00:00:00.000000Z",
  "due_datetime": "2020-01-01T00:00:01.000000Z",
  "external_notes": "Thank you for ordering!",
  "internal_notes": "Internal notes for this order",
  "items": [
    {
      "location_id": "00000000-0000-0000-0000-00000043fb4f",
      "price_base": "10.000000000",
      "product_id": "5396db66-dcaf-45c3-96b3-bbed517a1c4d",
      "quantity": "1.000000000"
    }
  ],
  "order_datetime": "2020-01-01T00:00:02.000000Z",
  "owner_id": "00000000-0000-0000-0000-000000e048a2",
  "shipping_location_id": "00000000-0000-0000-0000-00000043fb4f",
  "status": "PROCESSING"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 26d6b5f57691dc000000000000000001-d3ab9eb1620f62ec-0
{
  "data": {
    "billing_location": {
      "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
      "company_id": "00000000-0000-0000-0000-000000a9cac3",
      "id": "00000000-0000-0000-0000-00000043fb4f",
      "license_id": "00000000-0000-0000-0000-0000002bb559",
      "name": "Place 11263"
    },
    "charges": [
      {
        "id": "57a9ec0a-141c-4166-8671-6fc5cc0612fa",
        "name": "C1",
        "percent": "10.0000",
        "price": "1.00",
        "type": "CHARGE",
        "unit_type": "PERCENT"
      },
      {
        "id": "a3647927-86f0-4baf-9609-531e71e88db2",
        "name": "C2",
        "percent": null,
        "price": "-5.00",
        "type": "DISCOUNT",
        "unit_type": "PRICE"
      }
    ],
    "company": {
      "id": "00000000-0000-0000-0000-00000063fd1c",
      "name": "Company 26879",
      "updated_datetime": "2025-03-08T07:30:35.538960Z"
    },
    "creator": {
      "banned": false,
      "email": "user1@a.com",
      "full_name": "John Foo",
      "id": "00000000-0000-0000-0000-000000e048a2",
      "role": {
        "id": "00000000-0000-0000-0000-000000ded785",
        "name": "Admin 35570"
      }
    },
    "delivery_datetime": "2020-01-01T00:00:00.000000Z",
    "due_datetime": "2020-01-01T00:00:01.000000Z",
    "external_notes": "Thank you for ordering!",
    "id": "7d8ff0a8-1a3a-47e2-a663-63efd7c75fd0",
    "inserted_datetime": "2025-03-08T07:30:35.701720Z",
    "internal_notes": "Internal notes for this order",
    "items": [
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d727c",
          "name": "B1"
        },
        "compliance_quantity": null,
        "id": "03e7b2be-3f7c-44b5-a9c2-97c6bd886732",
        "location": {
          "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
          "company_id": "00000000-0000-0000-0000-000000a9cac3",
          "id": "00000000-0000-0000-0000-00000043fb4f",
          "license_id": "00000000-0000-0000-0000-0000002bb559",
          "name": "Place 11263"
        },
        "package": null,
        "price": "10.000000000",
        "price_base": "10.000000000",
        "product": {
          "id": "5396db66-dcaf-45c3-96b3-bbed517a1c4d",
          "name": "P1",
          "sku": "SKU1",
          "updated_datetime": "2025-03-08T07:30:35.625078Z"
        },
        "quantity": "1.000000000"
      }
    ],
    "order_datetime": "2020-01-01T00:00:02.000000Z",
    "order_number": "SO-0000001",
    "owner": {
      "banned": false,
      "email": "user1@a.com",
      "full_name": "John Foo",
      "id": "00000000-0000-0000-0000-000000e048a2",
      "role": {
        "id": "00000000-0000-0000-0000-000000ded785",
        "name": "Admin 35570"
      }
    },
    "shipping_location": {
      "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
      "company_id": "00000000-0000-0000-0000-000000a9cac3",
      "id": "00000000-0000-0000-0000-00000043fb4f",
      "license_id": "00000000-0000-0000-0000-0000002bb559",
      "name": "Place 11263"
    },
    "status": "PROCESSING",
    "total": "6.00",
    "updated_datetime": "2025-03-08T07:30:35.764525Z"
  }
}

POST /public/v1/orders creates an order (with product-tracked item) for a Blaze retailer, fails if payment type not specified

POST /public/v1/orders
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg2MjYsImlhdCI6MTc0MTQxOTAyNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZmU1MzU3OWItMDY3Ny00Zjg4LTgxOWUtNDA4MmExYzFiMTU2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE5MDI1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2OTY5MjgiLCJ0eXAiOiJhY2Nlc3MifQ.cCcX3QZd-h1iAhbFkTdUmtMz56rWgO6ty1Q-RSRVKJ8
{
  "billing_location_id": "00000000-0000-0000-0000-00000043f97a",
  "charges": [],
  "company_id": "00000000-0000-0000-0000-00000063f9fa",
  "delivery_datetime": "2020-01-01T00:00:00.000000Z",
  "due_datetime": "2020-01-01T00:00:01.000000Z",
  "items": [
    {
      "location_id": "00000000-0000-0000-0000-00000043f97a",
      "price_base": "10.000000000",
      "product_id": "60482546-7079-4e36-baa2-0498d61cfe76",
      "quantity": "1.000000000"
    }
  ],
  "order_datetime": "2020-01-01T00:00:02.000000Z",
  "shipping_location_id": "00000000-0000-0000-0000-00000043f97a",
  "status": "PROCESSING"
}

Response

400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 62b1d0ef0d5da0000000000000000001-07309f2ad42ec0bc-0
{
  "errors": [
    {
      "context": {
        "id": "110f2fcb-0ea5-4372-8273-a5c8d8ef3cb2"
      },
      "message": "can't be blank",
      "pointer": ["blaze_payment_type"],
      "section": "body"
    }
  ]
}

POST /public/v1/orders creates an order (with product-tracked item) for a Blaze retailer, fails if payment type not specified

POST /public/v1/orders
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg2MjYsImlhdCI6MTc0MTQxOTAyNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZmU1MzU3OWItMDY3Ny00Zjg4LTgxOWUtNDA4MmExYzFiMTU2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE5MDI1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2OTY5MjgiLCJ0eXAiOiJhY2Nlc3MifQ.cCcX3QZd-h1iAhbFkTdUmtMz56rWgO6ty1Q-RSRVKJ8
{
  "billing_location_id": "00000000-0000-0000-0000-00000043f97a",
  "blaze_payment_type": "CASH",
  "charges": [],
  "company_id": "00000000-0000-0000-0000-00000063f9fa",
  "delivery_datetime": "2020-01-01T00:00:00.000000Z",
  "due_datetime": "2020-01-01T00:00:01.000000Z",
  "items": [
    {
      "location_id": "00000000-0000-0000-0000-00000043f97a",
      "price_base": "10.000000000",
      "product_id": "60482546-7079-4e36-baa2-0498d61cfe76",
      "quantity": "1.000000000"
    }
  ],
  "order_datetime": "2020-01-01T00:00:02.000000Z",
  "shipping_location_id": "00000000-0000-0000-0000-00000043f97a",
  "status": "PROCESSING"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 62b1d0ef0d5da0000000000000000001-34405d5676900f42-0
{
  "data": {
    "billing_location": {
      "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
      "company_id": "00000000-0000-0000-0000-000000a9c4fb",
      "id": "00000000-0000-0000-0000-00000043f97a",
      "license_id": "00000000-0000-0000-0000-0000002bb39f",
      "name": "Place 10795"
    },
    "charges": [],
    "company": {
      "id": "00000000-0000-0000-0000-00000063f9fa",
      "name": "Company 25335",
      "updated_datetime": "2025-03-08T07:30:26.361174Z"
    },
    "creator": {
      "banned": false,
      "email": "owner-34886@example.com",
      "full_name": "FirstName67520 LastName67521",
      "id": "00000000-0000-0000-0000-000000e041e0",
      "role": {
        "id": "00000000-0000-0000-0000-000000ded0cb",
        "name": "Admin 33848"
      }
    },
    "delivery_datetime": "2020-01-01T00:00:00.000000Z",
    "due_datetime": "2020-01-01T00:00:01.000000Z",
    "external_notes": null,
    "id": "67f83376-df02-4595-8153-2307901bbce6",
    "inserted_datetime": "2025-03-08T07:30:26.548972Z",
    "internal_notes": null,
    "items": [
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d70b3",
          "name": "B1"
        },
        "compliance_quantity": null,
        "id": "0bfd9a5d-0bc4-4d51-922e-7f04d9d4e939",
        "location": {
          "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
          "company_id": "00000000-0000-0000-0000-000000a9c4fb",
          "id": "00000000-0000-0000-0000-00000043f97a",
          "license_id": "00000000-0000-0000-0000-0000002bb39f",
          "name": "Place 10795"
        },
        "package": null,
        "price": "10.000000000",
        "price_base": "10.000000000",
        "product": {
          "id": "60482546-7079-4e36-baa2-0498d61cfe76",
          "name": "P1",
          "sku": "SKU1",
          "updated_datetime": "2025-03-08T07:30:26.450735Z"
        },
        "quantity": "1.000000000"
      }
    ],
    "order_datetime": "2020-01-01T00:00:02.000000Z",
    "order_number": "SO-0000001",
    "owner": null,
    "shipping_location": {
      "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
      "company_id": "00000000-0000-0000-0000-000000a9c4fb",
      "id": "00000000-0000-0000-0000-00000043f97a",
      "license_id": "00000000-0000-0000-0000-0000002bb39f",
      "name": "Place 10795"
    },
    "status": "PROCESSING",
    "total": "10.00",
    "updated_datetime": "2025-03-08T07:30:26.548972Z"
  }
}

POST /public/v1/orders applies the best fit price tier items to order items

POST /public/v1/orders
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg2MTgsImlhdCI6MTc0MTQxOTAxOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDNkOWQ2NDctNjM1Ni00NDVjLTg5NDItOTNiOTcwOWJjZWQwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE5MDE3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2OTUyMzMiLCJ0eXAiOiJhY2Nlc3MifQ.gVRYfUAZ70Qh-RmLnmuJZjIC5AP-kRTkrqUkPr2fiZ4
{
  "billing_location_id": "00000000-0000-0000-0000-00000043f7c2",
  "charges": [],
  "company_id": "00000000-0000-0000-0000-00000063f6f8",
  "delivery_datetime": "2020-01-01T00:00:00.000000Z",
  "due_datetime": "2020-01-01T00:00:01.000000Z",
  "items": [
    {
      "location_id": "00000000-0000-0000-0000-00000043f7c2",
      "position": 1,
      "price_base": "100.000000000",
      "product_id": "c58e8220-7d83-4642-b55e-c0811e5a1cc5",
      "quantity": "80.000000000"
    },
    {
      "location_id": "00000000-0000-0000-0000-00000043f7c2",
      "position": 2,
      "price_base": "200.000000000",
      "product_id": "c58e8220-7d83-4642-b55e-c0811e5a1cc5",
      "quantity": "10.000000000"
    },
    {
      "location_id": "00000000-0000-0000-0000-00000043f7c2",
      "position": 3,
      "price_base": "300.000000000",
      "product_id": "c81a15ef-b9d1-48e2-ad6b-99bd78f2e192",
      "quantity": "20.000000000"
    }
  ],
  "order_datetime": "2020-01-01T00:00:02.000000Z",
  "shipping_location_id": "00000000-0000-0000-0000-00000043f7c2",
  "status": "PROCESSING"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 014db3b6b11276800000000000000001-1e9d87d7b68c090f-0
{
  "data": {
    "billing_location": {
      "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
      "company_id": "00000000-0000-0000-0000-000000a9c010",
      "id": "00000000-0000-0000-0000-00000043f7c2",
      "license_id": "00000000-0000-0000-0000-0000002bb242",
      "name": "Place 10357"
    },
    "charges": [],
    "company": {
      "id": "00000000-0000-0000-0000-00000063f6f8",
      "name": "Company 24079",
      "updated_datetime": "2025-03-08T07:30:18.826832Z"
    },
    "creator": {
      "banned": false,
      "email": "owner-33026@example.com",
      "full_name": "FirstName64168 LastName64171",
      "id": "00000000-0000-0000-0000-000000e03b41",
      "role": {
        "id": "00000000-0000-0000-0000-000000deca27",
        "name": "Admin 32149"
      }
    },
    "delivery_datetime": "2020-01-01T00:00:00.000000Z",
    "due_datetime": "2020-01-01T00:00:01.000000Z",
    "external_notes": null,
    "id": "cb1a9bba-c831-48cf-8d09-f6246f3e5fc1",
    "inserted_datetime": "2025-03-08T07:30:19.095352Z",
    "internal_notes": null,
    "items": [
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d6ed3",
          "name": "B1"
        },
        "compliance_quantity": null,
        "id": "f5802ac3-9f08-4efb-9fa5-65ec9a301e3a",
        "location": {
          "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
          "company_id": "00000000-0000-0000-0000-000000a9c010",
          "id": "00000000-0000-0000-0000-00000043f7c2",
          "license_id": "00000000-0000-0000-0000-0000002bb242",
          "name": "Place 10357"
        },
        "package": null,
        "price": "80.000000000",
        "price_base": "100.000000000",
        "product": {
          "id": "c58e8220-7d83-4642-b55e-c0811e5a1cc5",
          "name": "P1",
          "sku": "SKU1",
          "updated_datetime": "2025-03-08T07:30:18.897522Z"
        },
        "quantity": "80.000000000"
      },
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d6ed3",
          "name": "B1"
        },
        "compliance_quantity": null,
        "id": "2cc0984d-08fd-489f-a1f7-0d228e6dfb1f",
        "location": {
          "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
          "company_id": "00000000-0000-0000-0000-000000a9c010",
          "id": "00000000-0000-0000-0000-00000043f7c2",
          "license_id": "00000000-0000-0000-0000-0000002bb242",
          "name": "Place 10357"
        },
        "package": null,
        "price": "180.000000000",
        "price_base": "200.000000000",
        "product": {
          "id": "c58e8220-7d83-4642-b55e-c0811e5a1cc5",
          "name": "P1",
          "sku": "SKU1",
          "updated_datetime": "2025-03-08T07:30:18.897522Z"
        },
        "quantity": "10.000000000"
      },
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d6ed7",
          "name": "B2"
        },
        "compliance_quantity": null,
        "id": "78c4a3c9-08c9-4892-ae8c-60869fe30985",
        "location": {
          "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
          "company_id": "00000000-0000-0000-0000-000000a9c010",
          "id": "00000000-0000-0000-0000-00000043f7c2",
          "license_id": "00000000-0000-0000-0000-0000002bb242",
          "name": "Place 10357"
        },
        "package": null,
        "price": "270.000000000",
        "price_base": "300.000000000",
        "product": {
          "id": "c81a15ef-b9d1-48e2-ad6b-99bd78f2e192",
          "name": "P2",
          "sku": "SKU2",
          "updated_datetime": "2025-03-08T07:30:18.954385Z"
        },
        "quantity": "20.000000000"
      }
    ],
    "order_datetime": "2020-01-01T00:00:02.000000Z",
    "order_number": "SO-0000001",
    "owner": null,
    "shipping_location": {
      "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
      "company_id": "00000000-0000-0000-0000-000000a9c010",
      "id": "00000000-0000-0000-0000-00000043f7c2",
      "license_id": "00000000-0000-0000-0000-0000002bb242",
      "name": "Place 10357"
    },
    "status": "PROCESSING",
    "total": "13600.00",
    "updated_datetime": "2025-03-08T07:30:19.160969Z"
  }
}

POST /public/v1/orders creates an order (with batch-tracked item)

POST /public/v1/orders
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg2MTcsImlhdCI6MTc0MTQxOTAxNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZWM0YjUwN2QtOWE5My00MTY2LTkxNDgtMWVmOTM3NjIwYzJkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE5MDE2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2OTQ5NjUiLCJ0eXAiOiJhY2Nlc3MifQ.Vk-0zf3hgyFL47gxUVKwtTLD6WkP4KAp3msbs8Q7zQg
{
  "due_datetime": "2020-01-01T00:00:01.000000Z",
  "items": [
    {
      "batch_id": "00000000-0000-0000-0000-0000003d6e88",
      "location_id": "00000000-0000-0000-0000-00000043f762",
      "price_base": "10.000000000",
      "quantity": "1.000000000"
    }
  ],
  "order_datetime": "2020-01-01T00:00:02.000000Z",
  "status": "PROCESSING"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 83073ad7ac8dc0000000000000000001-577e1241e2561968-0
{
  "data": {
    "billing_location": null,
    "charges": [],
    "company": null,
    "creator": {
      "banned": false,
      "email": "user1@a.com",
      "full_name": "John Foo",
      "id": "00000000-0000-0000-0000-000000e03a35",
      "role": {
        "id": "00000000-0000-0000-0000-000000dec920",
        "name": "Admin 31885"
      }
    },
    "delivery_datetime": null,
    "due_datetime": "2020-01-01T00:00:01.000000Z",
    "external_notes": null,
    "id": "85759dd1-ed91-42ce-b8df-7cae1de7fba3",
    "inserted_datetime": "2025-03-08T07:30:17.945321Z",
    "internal_notes": null,
    "items": [
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d6e88",
          "name": "B1"
        },
        "compliance_quantity": null,
        "id": "5c65d862-63e2-4add-8913-0b997b8831e9",
        "location": {
          "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
          "company_id": "00000000-0000-0000-0000-000000a9bf5f",
          "id": "00000000-0000-0000-0000-00000043f762",
          "license_id": "00000000-0000-0000-0000-0000002bb1fa",
          "name": "Place 10261"
        },
        "package": null,
        "price": "10.000000000",
        "price_base": "10.000000000",
        "product": {
          "id": "03d49721-aa75-4b09-a8b6-1eacbfbdd1e0",
          "name": "P1",
          "sku": "SKU1",
          "updated_datetime": "2025-03-08T07:30:17.868299Z"
        },
        "quantity": "1.000000000"
      }
    ],
    "order_datetime": "2020-01-01T00:00:02.000000Z",
    "order_number": "SO-0000001",
    "owner": null,
    "shipping_location": null,
    "status": "PROCESSING",
    "total": "10.00",
    "updated_datetime": "2025-03-08T07:30:17.945321Z"
  }
}

POST /public/v1/orders creates an order (with batch-tracked item without batch set)

POST /public/v1/orders
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg2MzYsImlhdCI6MTc0MTQxOTAzNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYWI3M2QyZmMtY2RmMS00MjczLTkyOWItYmM0ZmNhMmMzNmE1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE5MDM1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2OTg4NDQiLCJ0eXAiOiJhY2Nlc3MifQ.QXarmq5iC9D2rWjmY0VHxZBOpzJE72aVohaoDRIZzmE
{
  "due_datetime": "2020-01-01T00:00:01.000000Z",
  "items": [
    {
      "location_id": "00000000-0000-0000-0000-00000043fb86",
      "price_base": "10.000000000",
      "product_id": "8b5feb4b-7671-4d68-b926-465c37656b46",
      "quantity": "1.000000000"
    }
  ],
  "order_datetime": "2020-01-01T00:00:02.000000Z",
  "status": "PROCESSING"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 11184d2cf03fc5000000000000000001-74f192dfcbaa4ab0-0
{
  "data": {
    "billing_location": null,
    "charges": [],
    "company": null,
    "creator": {
      "banned": false,
      "email": "user1@a.com",
      "full_name": "John Foo",
      "id": "00000000-0000-0000-0000-000000e0495c",
      "role": {
        "id": "00000000-0000-0000-0000-000000ded840",
        "name": "Admin 35757"
      }
    },
    "delivery_datetime": null,
    "due_datetime": "2020-01-01T00:00:01.000000Z",
    "external_notes": null,
    "id": "d70d8f4f-bbbd-4091-8999-700fb8a1e7c9",
    "inserted_datetime": "2025-03-08T07:30:36.441994Z",
    "internal_notes": null,
    "items": [
      {
        "batch": null,
        "compliance_quantity": null,
        "id": "c66fc0b4-b817-4b17-b32c-7b19f4b0ef7d",
        "location": {
          "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
          "company_id": "00000000-0000-0000-0000-000000a9cb5f",
          "id": "00000000-0000-0000-0000-00000043fb86",
          "license_id": "00000000-0000-0000-0000-0000002bb582",
          "name": "Place 11318"
        },
        "package": null,
        "price": "10.000000000",
        "price_base": "10.000000000",
        "product": {
          "id": "8b5feb4b-7671-4d68-b926-465c37656b46",
          "name": "P1",
          "sku": "SKU1",
          "updated_datetime": "2025-03-08T07:30:36.391113Z"
        },
        "quantity": "1.000000000"
      }
    ],
    "order_datetime": "2020-01-01T00:00:02.000000Z",
    "order_number": "SO-0000001",
    "owner": null,
    "shipping_location": null,
    "status": "PROCESSING",
    "total": "10.00",
    "updated_datetime": "2025-03-08T07:30:36.441994Z"
  }
}

POST /public/v1/orders creates an order (with package-tracked item)

POST /public/v1/orders
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg2MjYsImlhdCI6MTc0MTQxOTAyNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTk2MTYwYjctNzMyOS00OTMyLWJkODItNWJlNjRkZDNiYjhhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE5MDI1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2OTcwNzMiLCJ0eXAiOiJhY2Nlc3MifQ.0Rc2DpJZrWbuo0QEasYePrkIednaj8ccfj0y_K-7A-A
{
  "due_datetime": "2020-01-01T00:00:01.000000Z",
  "items": [
    {
      "compliance_quantity": "1.0000",
      "location_id": "00000000-0000-0000-0000-00000043f9a1",
      "package_id": "00000000-0000-0000-0000-000000161817",
      "price_base": "10.000000000",
      "quantity": "1.000000000"
    }
  ],
  "order_datetime": "2020-01-01T00:00:02.000000Z",
  "status": "PROCESSING"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: fb32c17c128500000000000000000001-f3fe9483a4c7516b-0
{
  "data": {
    "billing_location": null,
    "charges": [],
    "company": null,
    "creator": {
      "banned": false,
      "email": "owner-35030@example.com",
      "full_name": "FirstName67808 LastName67809",
      "id": "00000000-0000-0000-0000-000000e04271",
      "role": {
        "id": "00000000-0000-0000-0000-000000ded15a",
        "name": "Admin 33991"
      }
    },
    "delivery_datetime": null,
    "due_datetime": "2020-01-01T00:00:01.000000Z",
    "external_notes": null,
    "id": "10fc4628-6352-43ac-9de5-5da676040d6e",
    "inserted_datetime": "2025-03-08T07:30:27.239396Z",
    "internal_notes": null,
    "items": [
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d70dd",
          "name": "B1"
        },
        "compliance_quantity": "1.0000",
        "id": "7539b509-5757-4210-91ab-10f27e7a238f",
        "location": {
          "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
          "company_id": "00000000-0000-0000-0000-000000a9c562",
          "id": "00000000-0000-0000-0000-00000043f9a1",
          "license_id": "00000000-0000-0000-0000-0000002bb3c0",
          "name": "Place 10834"
        },
        "package": {
          "batch_number": "B1",
          "compliance_label": "ABCDEF012345670000075500",
          "id": "00000000-0000-0000-0000-000000161817",
          "metrc_label": "ABCDEF012345670000075500",
          "status": "selling"
        },
        "price": "10.000000000",
        "price_base": "10.000000000",
        "product": {
          "id": "9ac04adf-46ff-4f08-8f2e-cccaa266b1d6",
          "name": "P1",
          "sku": "SKU1",
          "updated_datetime": "2025-03-08T07:30:27.023227Z"
        },
        "quantity": "1.000000000"
      }
    ],
    "order_datetime": "2020-01-01T00:00:02.000000Z",
    "order_number": "SO-0000001",
    "owner": null,
    "shipping_location": null,
    "status": "PROCESSING",
    "total": "10.00",
    "updated_datetime": "2025-03-08T07:30:27.239396Z"
  }
}

POST /public/v1/orders creates an order (with package-tracked item without package set)

POST /public/v1/orders
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg2MjQsImlhdCI6MTc0MTQxOTAyNCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjQ1MWM2ZmMtNWM3OS00MWI4LThjZWQtODViOWZjZGNlMWIzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE5MDIzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2OTY1MDgiLCJ0eXAiOiJhY2Nlc3MifQ.fpoQjBWTfjDuutTImH9QdNi_Obb683oXMl92EnSPegA
{
  "due_datetime": "2020-01-01T00:00:01.000000Z",
  "items": [
    {
      "location_id": "00000000-0000-0000-0000-00000043f917",
      "price_base": "10.000000000",
      "product_id": "417ce301-7c31-4344-bb29-89f21ea51690",
      "quantity": "1.000000000"
    }
  ],
  "order_datetime": "2020-01-01T00:00:02.000000Z",
  "status": "PROCESSING"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: c5ed04978f7850000000000000000001-43a4e412c60ec52e-0
{
  "data": {
    "billing_location": null,
    "charges": [],
    "company": null,
    "creator": {
      "banned": false,
      "email": "user1@a.com",
      "full_name": "John Foo",
      "id": "00000000-0000-0000-0000-000000e0403c",
      "role": {
        "id": "00000000-0000-0000-0000-000000decf27",
        "name": "Admin 33428"
      }
    },
    "delivery_datetime": null,
    "due_datetime": "2020-01-01T00:00:01.000000Z",
    "external_notes": null,
    "id": "bb39c563-611f-47ba-a7f1-016b497da44f",
    "inserted_datetime": "2025-03-08T07:30:24.495032Z",
    "internal_notes": null,
    "items": [
      {
        "batch": null,
        "compliance_quantity": null,
        "id": "314407c4-b499-4f76-8570-1bfeaf6e94b9",
        "location": {
          "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
          "company_id": "00000000-0000-0000-0000-000000a9c3cb",
          "id": "00000000-0000-0000-0000-00000043f917",
          "license_id": "00000000-0000-0000-0000-0000002bb351",
          "name": "Place 10697"
        },
        "package": null,
        "price": "10.000000000",
        "price_base": "10.000000000",
        "product": {
          "id": "417ce301-7c31-4344-bb29-89f21ea51690",
          "name": "P1",
          "sku": "SKU1",
          "updated_datetime": "2025-03-08T07:30:24.452707Z"
        },
        "quantity": "1.000000000"
      }
    ],
    "order_datetime": "2020-01-01T00:00:02.000000Z",
    "order_number": "SO-0000001",
    "owner": null,
    "shipping_location": null,
    "status": "PROCESSING",
    "total": "10.00",
    "updated_datetime": "2025-03-08T07:30:24.495032Z"
  }
}

POST /public/v1/orders creates an order with metrc transfer template

POST /public/v1/orders
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg2MTgsImlhdCI6MTc0MTQxOTAxOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMWNmZmQxOWUtM2JkNS00NDIyLWEyZmItNjQzMzYxMWMyYWNjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE5MDE3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2OTUwNzYiLCJ0eXAiOiJhY2Nlc3MifQ.019hrQGVv-zHi-2FRTjjLmQGEI5SBEOyAwX009iMaa0
{
  "billing_location_id": "00000000-0000-0000-0000-00000043f78e",
  "charges": [],
  "company_id": "00000000-0000-0000-0000-00000063f6b7",
  "delivery_datetime": "2020-01-01T00:00:00.000000Z",
  "due_datetime": "2020-01-01T00:00:01.000000Z",
  "external_notes": null,
  "items": [
    {
      "compliance_quantity": "1.0000",
      "id": "41d96ff1-e73a-47f8-bfff-5d78a241bd9b",
      "location_id": "00000000-0000-0000-0000-00000043f78e",
      "package_id": "00000000-0000-0000-0000-00000016177b",
      "price_base": "10.000000000",
      "quantity": "1.000000000"
    }
  ],
  "location_id": "00000000-0000-0000-0000-00000043f78e",
  "metrc_transfer_template_directions": "Go to the store around the corner",
  "metrc_transfer_template_recipient_license_number": "C12-0123458-LIC",
  "metrc_transfer_template_status": "PENDING",
  "metrc_transfer_template_transporter_info": [
    {
      "driver_license_number": "1234567890",
      "driver_name": "John Doe",
      "driver_occupational_license_number": "1234567890",
      "driver_phone_number": "1234567890",
      "transporter_license_number": "C12-0123456-LIC",
      "vehicle_license_plate_number": "1234567890",
      "vehicle_make": "Toyota",
      "vehicle_model": "Prius"
    },
    {
      "driver_license_number": "1234567891",
      "driver_name": "Jane Doe",
      "driver_occupational_license_number": "1234567891",
      "driver_phone_number": "1234567891",
      "transporter_license_number": "C12-0123457-LIC",
      "vehicle_license_plate_number": "1234567891",
      "vehicle_make": "Toyota",
      "vehicle_model": "Corolla"
    }
  ],
  "metrc_transfer_template_type": "Transfer",
  "order_datetime": "2020-01-01T00:00:02.000000Z",
  "owner_id": "00000000-0000-0000-0000-000000e03aa4",
  "shipping_location_id": "00000000-0000-0000-0000-00000043f78e",
  "status": "PROCESSING"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 6a58c28a5283d4000000000000000001-1fbb9379e1a6be14-0
{
  "data": {
    "billing_location": {
      "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
      "company_id": "00000000-0000-0000-0000-000000a9bfa0",
      "id": "00000000-0000-0000-0000-00000043f78e",
      "license_id": "00000000-0000-0000-0000-0000002bb214",
      "name": "Place 10304"
    },
    "charges": [],
    "company": {
      "id": "00000000-0000-0000-0000-00000063f6b7",
      "name": "Company 23969",
      "updated_datetime": "2025-03-08T07:30:18.245538Z"
    },
    "creator": {
      "banned": false,
      "email": "user1@a.com",
      "full_name": "John Foo",
      "id": "00000000-0000-0000-0000-000000e03aa4",
      "role": {
        "id": "00000000-0000-0000-0000-000000dec98d",
        "name": "Admin 31994"
      }
    },
    "delivery_datetime": "2020-01-01T00:00:00.000000Z",
    "due_datetime": "2020-01-01T00:00:01.000000Z",
    "external_notes": null,
    "id": "4decd116-7823-4403-9cf1-cd2ee877ae16",
    "inserted_datetime": "2025-03-08T07:30:18.495951Z",
    "internal_notes": null,
    "items": [
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d6ea7",
          "name": "B2"
        },
        "compliance_quantity": "1.0000",
        "id": "41d96ff1-e73a-47f8-bfff-5d78a241bd9b",
        "location": {
          "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
          "company_id": "00000000-0000-0000-0000-000000a9bfa0",
          "id": "00000000-0000-0000-0000-00000043f78e",
          "license_id": "00000000-0000-0000-0000-0000002bb214",
          "name": "Place 10304"
        },
        "package": {
          "batch_number": "B1",
          "compliance_label": "ABCDEF012345670000075043",
          "id": "00000000-0000-0000-0000-00000016177b",
          "metrc_label": "ABCDEF012345670000075043",
          "status": "selling"
        },
        "price": "10.000000000",
        "price_base": "10.000000000",
        "product": {
          "id": "cf07f780-8748-42d4-9aba-2ed942fffa82",
          "name": "P1",
          "sku": "SKU1",
          "updated_datetime": "2025-03-08T07:30:18.291419Z"
        },
        "quantity": "1.000000000"
      }
    ],
    "order_datetime": "2020-01-01T00:00:02.000000Z",
    "order_number": "SO-0000001",
    "owner": {
      "banned": false,
      "email": "user1@a.com",
      "full_name": "John Foo",
      "id": "00000000-0000-0000-0000-000000e03aa4",
      "role": {
        "id": "00000000-0000-0000-0000-000000dec98d",
        "name": "Admin 31994"
      }
    },
    "shipping_location": {
      "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
      "company_id": "00000000-0000-0000-0000-000000a9bfa0",
      "id": "00000000-0000-0000-0000-00000043f78e",
      "license_id": "00000000-0000-0000-0000-0000002bb214",
      "name": "Place 10304"
    },
    "status": "PROCESSING",
    "total": "10.00",
    "updated_datetime": "2025-03-08T07:30:18.675529Z"
  }
}

POST /public/v1/orders updates an order

POST /public/v1/orders
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg2MzQsImlhdCI6MTc0MTQxOTAzNCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiY2JjYjg4YmMtZDhhYS00MjRiLWExZTEtZjJmZTYyMmM3NmE2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE5MDMzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2OTgzNzUiLCJ0eXAiOiJhY2Nlc3MifQ.MCqufSkq8fCAIvcdXEeXgrocmuH5AhZJD_GfBF73Yoc
{
  "billing_location_id": "00000000-0000-0000-0000-00000043faf9",
  "charges": [
    {
      "id": "934d7b9f-a73d-4310-a62a-e9503018dfc7",
      "name": "C1",
      "percent": "10.0000",
      "type": "CHARGE",
      "unit_type": "PERCENT"
    },
    {
      "id": "77338be0-a4f2-436e-bb6d-882c857961e8",
      "name": "C2",
      "price": "-5.00",
      "type": "DISCOUNT",
      "unit_type": "PRICE"
    }
  ],
  "company_id": "00000000-0000-0000-0000-00000063fca5",
  "delivery_datetime": "2020-01-01T00:00:00.000000Z",
  "due_datetime": "2020-01-01T00:00:01.000000Z",
  "external_notes": "gonna make you sweat",
  "id": "5b5845f8-3300-4ce2-9b9a-4b4236cb6a0c",
  "items": [
    {
      "id": "e5d39445-2d21-4d3f-8ce8-faaf49507579",
      "location_id": "00000000-0000-0000-0000-00000043faf9",
      "price_base": "10.000000000",
      "product_id": "9fa602b0-3222-497f-89c3-42ba9087e4f9",
      "quantity": "2.000000000"
    },
    {
      "id": "e0bcfeb8-9bae-4f6b-a21e-d52ca54aee48",
      "location_id": "00000000-0000-0000-0000-00000043faf9",
      "price_base": "100.000000000",
      "product_id": "9fa602b0-3222-497f-89c3-42ba9087e4f9",
      "quantity": "3.000000000"
    },
    {
      "compliance_quantity": "1.0000",
      "id": "469f4e38-1a83-4e44-b857-c8b62072ad14",
      "location_id": "00000000-0000-0000-0000-00000043faf9",
      "package_id": "00000000-0000-0000-0000-000000161866",
      "price_base": "10.000000000",
      "quantity": "1.000000000"
    }
  ],
  "location_id": "00000000-0000-0000-0000-00000043faf9",
  "metrc_transfer_template_directions": "Go to the store around the corner",
  "metrc_transfer_template_recipient_license_number": "C12-0123458-LIC",
  "metrc_transfer_template_status": "PENDING",
  "metrc_transfer_template_transporter_info": [
    {
      "driver_license_number": "1234567890",
      "driver_name": "John Doe",
      "driver_occupational_license_number": "1234567890",
      "driver_phone_number": "1234567890",
      "transporter_license_number": "C12-0123456-LIC",
      "vehicle_license_plate_number": "1234567890",
      "vehicle_make": "Toyota",
      "vehicle_model": "Prius"
    },
    {
      "driver_license_number": "1234567891",
      "driver_name": "Jane Doe",
      "driver_occupational_license_number": "1234567891",
      "driver_phone_number": "1234567891",
      "transporter_license_number": "C12-0123457-LIC",
      "vehicle_license_plate_number": "1234567891",
      "vehicle_make": "Toyota",
      "vehicle_model": "Corolla"
    }
  ],
  "metrc_transfer_template_type": "Transfer",
  "order_datetime": "2020-01-01T00:00:02.000000Z",
  "owner_id": "00000000-0000-0000-0000-000000e047dd",
  "shipping_location_id": "00000000-0000-0000-0000-00000043faf9",
  "status": "PROCESSING"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: f3726dfdde0c48000000000000000001-d821f8c36c703a1f-0
{
  "data": {
    "billing_location": {
      "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
      "company_id": "00000000-0000-0000-0000-000000a9c9df",
      "id": "00000000-0000-0000-0000-00000043faf9",
      "license_id": "00000000-0000-0000-0000-0000002bb50a",
      "name": "Place 11177"
    },
    "charges": [
      {
        "id": "934d7b9f-a73d-4310-a62a-e9503018dfc7",
        "name": "C1",
        "percent": "10.0000",
        "price": "33.00",
        "type": "CHARGE",
        "unit_type": "PERCENT"
      },
      {
        "id": "77338be0-a4f2-436e-bb6d-882c857961e8",
        "name": "C2",
        "percent": null,
        "price": "-5.00",
        "type": "DISCOUNT",
        "unit_type": "PRICE"
      }
    ],
    "company": {
      "id": "00000000-0000-0000-0000-00000063fca5",
      "name": "Company 26656",
      "updated_datetime": "2025-03-08T07:30:34.421355Z"
    },
    "creator": {
      "banned": false,
      "email": "user1@a.com",
      "full_name": "John Foo",
      "id": "00000000-0000-0000-0000-000000e04785",
      "role": {
        "id": "00000000-0000-0000-0000-000000ded668",
        "name": "Admin 35285"
      }
    },
    "delivery_datetime": "2020-01-01T00:00:00.000000Z",
    "due_datetime": "2020-01-01T00:00:01.000000Z",
    "external_notes": "gonna make you sweat",
    "id": "5b5845f8-3300-4ce2-9b9a-4b4236cb6a0c",
    "inserted_datetime": "2025-03-08T07:30:34.542347Z",
    "internal_notes": null,
    "items": [
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d723e",
          "name": "B1"
        },
        "compliance_quantity": null,
        "id": "e5d39445-2d21-4d3f-8ce8-faaf49507579",
        "location": {
          "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
          "company_id": "00000000-0000-0000-0000-000000a9c9df",
          "id": "00000000-0000-0000-0000-00000043faf9",
          "license_id": "00000000-0000-0000-0000-0000002bb50a",
          "name": "Place 11177"
        },
        "package": null,
        "price": "10.000000000",
        "price_base": "10.000000000",
        "product": {
          "id": "9fa602b0-3222-497f-89c3-42ba9087e4f9",
          "name": "P1",
          "sku": "SKU1",
          "updated_datetime": "2025-03-08T07:30:34.493862Z"
        },
        "quantity": "2.000000000"
      },
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d723e",
          "name": "B1"
        },
        "compliance_quantity": null,
        "id": "e0bcfeb8-9bae-4f6b-a21e-d52ca54aee48",
        "location": {
          "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
          "company_id": "00000000-0000-0000-0000-000000a9c9df",
          "id": "00000000-0000-0000-0000-00000043faf9",
          "license_id": "00000000-0000-0000-0000-0000002bb50a",
          "name": "Place 11177"
        },
        "package": null,
        "price": "100.000000000",
        "price_base": "100.000000000",
        "product": {
          "id": "9fa602b0-3222-497f-89c3-42ba9087e4f9",
          "name": "P1",
          "sku": "SKU1",
          "updated_datetime": "2025-03-08T07:30:34.493862Z"
        },
        "quantity": "3.000000000"
      },
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d7249",
          "name": "B2"
        },
        "compliance_quantity": "1.0000",
        "id": "469f4e38-1a83-4e44-b857-c8b62072ad14",
        "location": {
          "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
          "company_id": "00000000-0000-0000-0000-000000a9c9df",
          "id": "00000000-0000-0000-0000-00000043faf9",
          "license_id": "00000000-0000-0000-0000-0000002bb50a",
          "name": "Place 11177"
        },
        "package": {
          "batch_number": "B2",
          "compliance_label": "ABCDEF012345670000075751",
          "id": "00000000-0000-0000-0000-000000161866",
          "metrc_label": "ABCDEF012345670000075751",
          "status": "selling"
        },
        "price": "10.000000000",
        "price_base": "10.000000000",
        "product": {
          "id": "aa9d711c-9063-4f3e-b8a1-751cab53cbbd",
          "name": "P2",
          "sku": "SKU2",
          "updated_datetime": "2025-03-08T07:30:34.604267Z"
        },
        "quantity": "1.000000000"
      }
    ],
    "order_datetime": "2020-01-01T00:00:02.000000Z",
    "order_number": "SO-1860",
    "owner": {
      "banned": false,
      "email": "owner-36419@example.com",
      "full_name": "FirstName70554 LastName70555",
      "id": "00000000-0000-0000-0000-000000e047dd",
      "role": {
        "id": "00000000-0000-0000-0000-000000ded6c0",
        "name": "Admin 35373"
      }
    },
    "shipping_location": {
      "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
      "company_id": "00000000-0000-0000-0000-000000a9c9df",
      "id": "00000000-0000-0000-0000-00000043faf9",
      "license_id": "00000000-0000-0000-0000-0000002bb50a",
      "name": "Place 11177"
    },
    "status": "PROCESSING",
    "total": "358.00",
    "updated_datetime": "2025-03-08T07:30:34.976117Z"
  }
}

POST /public/v1/orders does not alter locked price tier items on update

POST /public/v1/orders
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg2MjcsImlhdCI6MTc0MTQxOTAyNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDgwZjdmMWEtMGYwYy00M2EwLTkwMGMtZTJjNTkzY2M1MTQ3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE5MDI2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2OTcyNTgiLCJ0eXAiOiJhY2Nlc3MifQ.Yblp8_eVhzBUYvVCdrop7JvQMhXlMBhvveuonOBLj84
{
  "billing_location_id": "00000000-0000-0000-0000-00000043f9d0",
  "charges": [],
  "company_id": "00000000-0000-0000-0000-00000063fa92",
  "delivery_datetime": "2020-01-01T00:00:00.000000Z",
  "due_datetime": "2020-01-01T00:00:01.000000Z",
  "items": [
    {
      "location_id": "00000000-0000-0000-0000-00000043f9d0",
      "position": 1,
      "price_base": "100.000000000",
      "product_id": "16d74b75-f094-468b-8c51-b9821bc00890",
      "quantity": "10.000000000"
    },
    {
      "location_id": "00000000-0000-0000-0000-00000043f9d0",
      "position": 2,
      "price_base": "200.000000000",
      "product_id": "e5e04da0-4861-4a8e-83c6-4a49e52aa531",
      "quantity": "10.000000000"
    },
    {
      "location_id": "00000000-0000-0000-0000-00000043f9d0",
      "position": 3,
      "price_base": "300.000000000",
      "product_id": "7c16a1e0-4e81-4f59-a828-4f4ac26d6670",
      "quantity": "10.000000000"
    }
  ],
  "order_datetime": "2020-01-01T00:00:02.000000Z",
  "shipping_location_id": "00000000-0000-0000-0000-00000043f9d0",
  "status": "PROCESSING"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: ea6322bb1c9d58000000000000000001-3ae1e0ed49e6d076-0
{
  "data": {
    "billing_location": {
      "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
      "company_id": "00000000-0000-0000-0000-000000a9c610",
      "id": "00000000-0000-0000-0000-00000043f9d0",
      "license_id": "00000000-0000-0000-0000-0000002bb3eb",
      "name": "Place 10880"
    },
    "charges": [],
    "company": {
      "id": "00000000-0000-0000-0000-00000063fa92",
      "name": "Company 25677",
      "updated_datetime": "2025-03-08T07:30:27.904754Z"
    },
    "creator": {
      "banned": false,
      "email": "owner-35215@example.com",
      "full_name": "FirstName68174 LastName68175",
      "id": "00000000-0000-0000-0000-000000e0432a",
      "role": {
        "id": "00000000-0000-0000-0000-000000ded212",
        "name": "Admin 34175"
      }
    },
    "delivery_datetime": "2020-01-01T00:00:00.000000Z",
    "due_datetime": "2020-01-01T00:00:01.000000Z",
    "external_notes": null,
    "id": "46f6251a-b6e9-4979-94fa-086a9e4ed969",
    "inserted_datetime": "2025-03-08T07:30:28.257879Z",
    "internal_notes": null,
    "items": [
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d7110",
          "name": "B1"
        },
        "compliance_quantity": null,
        "id": "108c6850-6846-4c1b-9289-984d5543bf6d",
        "location": {
          "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
          "company_id": "00000000-0000-0000-0000-000000a9c610",
          "id": "00000000-0000-0000-0000-00000043f9d0",
          "license_id": "00000000-0000-0000-0000-0000002bb3eb",
          "name": "Place 10880"
        },
        "package": null,
        "price": "90.000000000",
        "price_base": "100.000000000",
        "product": {
          "id": "16d74b75-f094-468b-8c51-b9821bc00890",
          "name": "P1",
          "sku": "SKU1",
          "updated_datetime": "2025-03-08T07:30:27.980715Z"
        },
        "quantity": "10.000000000"
      },
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d7114",
          "name": "B2"
        },
        "compliance_quantity": null,
        "id": "b6fca4eb-6458-4640-ab1d-8285fbf91416",
        "location": {
          "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
          "company_id": "00000000-0000-0000-0000-000000a9c610",
          "id": "00000000-0000-0000-0000-00000043f9d0",
          "license_id": "00000000-0000-0000-0000-0000002bb3eb",
          "name": "Place 10880"
        },
        "package": null,
        "price": "200.000000000",
        "price_base": "200.000000000",
        "product": {
          "id": "e5e04da0-4861-4a8e-83c6-4a49e52aa531",
          "name": "P2",
          "sku": "SKU2",
          "updated_datetime": "2025-03-08T07:30:28.036043Z"
        },
        "quantity": "10.000000000"
      },
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d7117",
          "name": "B3"
        },
        "compliance_quantity": null,
        "id": "74376983-3656-43e0-9a8f-ba037877bcb4",
        "location": {
          "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
          "company_id": "00000000-0000-0000-0000-000000a9c610",
          "id": "00000000-0000-0000-0000-00000043f9d0",
          "license_id": "00000000-0000-0000-0000-0000002bb3eb",
          "name": "Place 10880"
        },
        "package": null,
        "price": "290.000000000",
        "price_base": "300.000000000",
        "product": {
          "id": "7c16a1e0-4e81-4f59-a828-4f4ac26d6670",
          "name": "P3",
          "sku": "SKU3",
          "updated_datetime": "2025-03-08T07:30:28.089049Z"
        },
        "quantity": "10.000000000"
      }
    ],
    "order_datetime": "2020-01-01T00:00:02.000000Z",
    "order_number": "SO-0000001",
    "owner": null,
    "shipping_location": {
      "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
      "company_id": "00000000-0000-0000-0000-000000a9c610",
      "id": "00000000-0000-0000-0000-00000043f9d0",
      "license_id": "00000000-0000-0000-0000-0000002bb3eb",
      "name": "Place 10880"
    },
    "status": "PROCESSING",
    "total": "5800.00",
    "updated_datetime": "2025-03-08T07:30:28.325825Z"
  }
}

POST /public/v1/orders deleting order items & charges

POST /public/v1/orders
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg2MTMsImlhdCI6MTc0MTQxOTAxMywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDAzODczOTMtOTJmMi00ZTFmLTkwNzEtZjhhOGJjNDliM2Q5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE5MDEyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2OTQwMzIiLCJ0eXAiOiJhY2Nlc3MifQ.fu3LSTcZihTWHiyAaomYKR9190c5JdPv6lWaIkQx8tk
{
  "billing_location_id": "00000000-0000-0000-0000-00000043f646",
  "charges": [],
  "company_id": "00000000-0000-0000-0000-00000063f4e9",
  "delivery_datetime": "2020-01-01T00:00:00.000000Z",
  "due_datetime": "2020-01-01T00:00:01.000000Z",
  "id": "fb119881-faa5-49a5-a434-646d8ad21688",
  "items": [
    {
      "id": "fcbdfefd-62de-41d3-8f24-6c47af3e0ba0",
      "location_id": "00000000-0000-0000-0000-00000043f646",
      "price_base": "10.000000000",
      "product_id": "18693442-5871-44a0-b8d5-f430dd0fba59",
      "quantity": "1.000000000"
    }
  ],
  "order_datetime": "2020-01-01T00:00:02.000000Z",
  "shipping_location_id": "00000000-0000-0000-0000-00000043f646",
  "status": "PROCESSING"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: a4cd9f8a061ac0000000000000000001-51d0dd12e1449efa-0
{
  "data": {
    "billing_location": {
      "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
      "company_id": "00000000-0000-0000-0000-000000a9bcbf",
      "id": "00000000-0000-0000-0000-00000043f646",
      "license_id": "00000000-0000-0000-0000-0000002bb155",
      "name": "Place 9977"
    },
    "charges": [],
    "company": {
      "id": "00000000-0000-0000-0000-00000063f4e9",
      "name": "Company 23227",
      "updated_datetime": "2025-03-08T07:30:13.424896Z"
    },
    "creator": {
      "banned": false,
      "email": "user1@a.com",
      "full_name": "John Foo",
      "id": "00000000-0000-0000-0000-000000e03690",
      "role": {
        "id": "00000000-0000-0000-0000-000000dec577",
        "name": "Admin 30948"
      }
    },
    "delivery_datetime": "2020-01-01T00:00:00.000000Z",
    "due_datetime": "2020-01-01T00:00:01.000000Z",
    "external_notes": null,
    "id": "fb119881-faa5-49a5-a434-646d8ad21688",
    "inserted_datetime": "2025-03-08T07:30:13.555140Z",
    "internal_notes": null,
    "items": [
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d6d60",
          "name": "B1"
        },
        "compliance_quantity": null,
        "id": "fcbdfefd-62de-41d3-8f24-6c47af3e0ba0",
        "location": {
          "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
          "company_id": "00000000-0000-0000-0000-000000a9bcbf",
          "id": "00000000-0000-0000-0000-00000043f646",
          "license_id": "00000000-0000-0000-0000-0000002bb155",
          "name": "Place 9977"
        },
        "package": null,
        "price": "10.000000000",
        "price_base": "10.000000000",
        "product": {
          "id": "18693442-5871-44a0-b8d5-f430dd0fba59",
          "name": "P1",
          "sku": "SKU1",
          "updated_datetime": "2025-03-08T07:30:13.508022Z"
        },
        "quantity": "1.000000000"
      }
    ],
    "order_datetime": "2020-01-01T00:00:02.000000Z",
    "order_number": "SO-1612",
    "owner": null,
    "shipping_location": {
      "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
      "company_id": "00000000-0000-0000-0000-000000a9bcbf",
      "id": "00000000-0000-0000-0000-00000043f646",
      "license_id": "00000000-0000-0000-0000-0000002bb155",
      "name": "Place 9977"
    },
    "status": "PROCESSING",
    "total": "10.00",
    "updated_datetime": "2025-03-08T07:30:13.771450Z"
  }
}

Upsert a single order. To update an existing order, pass in an existing order ID in the id field. When updating an order, you must pass in all fields (no sparse update currently supported). Any existing order item or charge you do not pass in to items and charges respectively will be deleted

Request

POST /public/v1/orders

Parameters

Parameter Description In Type Required Default Example
blaze_payment_type The payment type for an order shipping to a Blaze-associated company. Required when the company being used is mapped to a Blaze retailer via the Distru integration. query string false CASH
company_id Company ID query string false
delivery_datetime The datetime on which the order was / will be delivered query string false
due_datetime The datetime by which the order should be completed for the customer query string false
external_notes This is a message that will be shown to the customer on order slips. This is the "Message to Customer" field in the Distru order form. query string false
id Unique ID for this order. If it exists, an update will be performed; otherwise, it will be used as the ID of a new order record query string false
order_datetime The datetime on which the order was placed query string false
charges The additional lines of Charge, Discount, or Tax added to this order body OrderChargesRequest false
items The order items present on this order body OrderItemsRequest false
internal_notes Internal notes for this order query string false
metrc_transfer_template_transporter_info The Metrc transfer template transporter(s) information about this order body OrderTransferTemplateTransporterInfosRequest false
metrc_transfer_template_directions The Metrc transfer template directions query string false
metrc_transfer_template_recipient_license_number The Metrc transfer template recipient license number query string false
metrc_transfer_template_status The Metrc transfer template status query string false
metrc_transfer_template_type The Metrc transfer template type query string false
billing_location_id The billing location's ID query string false
shipping_location_id The shipping location's ID query string false
owner_id The ID of the Distru user that owns this order query string false
status Filter orders by their status. Accepted values are "PENDING", "PROCESSING", "READY_TO_SHIP", "DELIVERING", "DELIVERED", "COMPLETED" and "CANCELED". query string false PENDING

Responses

Status Description Schema
200 A single order Order

Package

Get packages

GET /public/v1/packages returns packages related to the company

GET /public/v1/packages
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg1NzksImlhdCI6MTc0MTQxODk3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOWMzNzRlNGEtM2RkZC00NzFhLWI4NjktN2EyNWUwMzdmMDY5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4OTc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2ODYxMjIiLCJ0eXAiOiJhY2Nlc3MifQ.2cvLXy1S5SaG2vij4ZbHsRGvZW3NNdvTTLhGoavhEME

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 21467894547d36000000000000000001-315a8a7c49828133-0
{
  "data": [
    {
      "batch_number": null,
      "compliance_label": "ABCDEF012345670000073026",
      "expiration_date": "2024-01-01T00:00:00.000000Z",
      "id": "00000000-0000-0000-0000-000000161517",
      "license": {
        "id": "00000000-0000-0000-0000-0000002bac13",
        "license_number": "CDPH-00004889"
      },
      "location": {
        "id": "00000000-0000-0000-0000-00000043ed98",
        "name": "Place 7788"
      },
      "metrc_label": "ABCDEF012345670000073026",
      "primary_test_result": null,
      "product_id": "da1c008c-3fa6-4506-a870-3b20ecafe87f",
      "product_unit_quantity": "7.500000000",
      "product_unit_type": {
        "id": "00000000-0000-0000-0000-000009603efa",
        "name": "3"
      },
      "quantity": "5.000000000",
      "quantity_assembling": "0.000000000",
      "quantity_available": "5.000000000",
      "status": "active",
      "unit_type": {
        "id": "00000000-0000-0000-0000-000009603f07",
        "name": "2"
      }
    },
    {
      "batch_number": null,
      "compliance_label": "ABCDEF012345670000073038",
      "expiration_date": null,
      "id": "00000000-0000-0000-0000-00000016151a",
      "license": {
        "id": "00000000-0000-0000-0000-0000002bac13",
        "license_number": "CDPH-00004889"
      },
      "location": {
        "id": "00000000-0000-0000-0000-00000043eda1",
        "name": "Place 7797"
      },
      "metrc_label": "ABCDEF012345670000073038",
      "primary_test_result": {
        "cbd_mg_per_unit": "1",
        "cbd_mg_per_unit_total": "2",
        "cbd_percentage": "3",
        "cbd_percentage_total": "4",
        "mg_per_unit_type": "mg/mL",
        "name": "File.pdf",
        "thc_mg_per_unit": "5",
        "thc_mg_per_unit_total": "6",
        "thc_percentage": "7",
        "thc_percentage_total": "8"
      },
      "product_id": "da1c008c-3fa6-4506-a870-3b20ecafe87f",
      "product_unit_quantity": "15.000000000",
      "product_unit_type": {
        "id": "00000000-0000-0000-0000-000009603efa",
        "name": "3"
      },
      "quantity": "20.000000000",
      "quantity_assembling": "0.000000000",
      "quantity_available": "20.000000000",
      "status": "active",
      "unit_type": {
        "id": "00000000-0000-0000-0000-000009603f14",
        "name": "4"
      }
    }
  ]
}

Get packages sorted by their creation date and filtered by various attributes

Note: The page size for this endpoint is 5000 packages per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.

Request

GET /public/v1/packages

Parameters

Parameter Description In Type Required Default Example
inserted_datetime Filter packages by their creation datetime query string false 2022-07-10T00:00:00Z,
page Pagination information body Page false
location_ids A list of location UUIDs to filter packages by.
query array false ["123e4567-e89b-12d3-a456-426655440000","456e89b1-2d3a-4564-2665-544000000000"]
license_number Filter packages by license number query string false 1234567890
statuses Filter packages by their status query array false ["active","selling","sold"]
updated_datetime Filter packages by the datetime they were most recently modified query string false ,2022-07-10T00:00:00Z

Responses

Status Description Schema
200 A list of packages Packages

PaymentMethod

Get payment methods

GET /public/v1/payments/methods returns payment methods related to the user's company only

GET /public/v1/payment-methods
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg1ODgsImlhdCI6MTc0MTQxODk4OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzFlMTk4ZTYtNGZmYS00ZTI3LTgwN2MtNzZkNjYxYjlkZDdkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4OTg3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2ODg1NjciLCJ0eXAiOiJhY2Nlc3MifQ.ANmrR2sqx93DC8o7W7l2al4VCtUK5UKC0qiDXMH1PqQ

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 0da5af64b1df88000000000000000001-210b454915f5eeec-0
{
  "data": [
    {
      "id": "00000000-0000-0000-0000-00000001308b",
      "name": "Payment Method 217"
    }
  ]
}

Get payment methods. Note: This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.

Request

GET /public/v1/payment/methods

Responses

Status Description Schema
200 A list of payment methods PaymentMethods

Product

Get products

GET /public/products returns products related to the company

GET /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0NjQsImlhdCI6MTc0MTQxODg2NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTFlZjE5NGQtNjgwYS00ODA5LWJiZjItZmMzOGUwYzM2MzkyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODYzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2Njk5NzMiLCJ0eXAiOiJhY2Nlc3MifQ.RYSFwRzMPaZE-L75HQRrVIlzi9GmMREP4d5neTLZJzE

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: ee65542eff9bb8000000000000000001-79e1aee2c4614cc8-0
{
  "data": [
    {
      "brand": {
        "id": "00000000-0000-0000-0000-00000063cb2f",
        "name": "Company 4855",
        "updated_datetime": "2030-11-01T00:00:00.000000Z"
      },
      "category": {
        "id": "00000000-0000-0000-0000-0000005259e1",
        "name": "Some category 2185",
        "type": "OTHER"
      },
      "description": "test",
      "id": "0764ffd7-3940-49c1-8261-9f6fd3ed97d4",
      "images": [
        {
          "id": "00000000-0000-0000-0000-0000000078db",
          "name": "Image Name 42",
          "rank": 0,
          "url": "https://google.com/original-10.jpg"
        },
        {
          "id": "00000000-0000-0000-0000-0000000078dc",
          "name": "Image Name 43",
          "rank": 1,
          "url": "https://google.com/original-11.jpg"
        }
      ],
      "is_active": true,
      "msrp": null,
      "name": "Product 5834",
      "sku": "sku 5835",
      "strain": {
        "id": "00000000-0000-0000-0000-00000001bbaf",
        "name": "Strain 97"
      },
      "subcategory": {
        "id": "00000000-0000-0000-0000-00000052bab5",
        "name": "Some subcategory 2053"
      },
      "unit_price": "1",
      "unit_type": {
        "id": "00000000-0000-0000-0000-0000095d9f00",
        "name": "Gram"
      },
      "units_per_case": null,
      "updated_datetime": "2023-11-01T00:00:00.000000Z",
      "vendor": {
        "id": "00000000-0000-0000-0000-00000063cb33",
        "name": "Company 4859",
        "updated_datetime": "2030-11-03T00:00:00.000000Z"
      }
    },
    {
      "brand": {
        "id": "00000000-0000-0000-0000-00000063cb31",
        "name": "Company 4858",
        "updated_datetime": "2030-11-02T00:00:00.000000Z"
      },
      "category": {
        "id": "00000000-0000-0000-0000-0000005259e2",
        "name": "Some category 2186",
        "type": "OTHER"
      },
      "description": null,
      "id": "88b2c539-3517-4d74-a60f-f81e3c6d6bc4",
      "images": [],
      "is_active": false,
      "msrp": "100",
      "name": "Product 5837",
      "sku": "sku 5838",
      "strain": null,
      "subcategory": {
        "id": "00000000-0000-0000-0000-00000052bab6",
        "name": "Some subcategory 2054"
      },
      "unit_price": "1",
      "unit_type": {
        "id": "00000000-0000-0000-0000-0000095d9efe",
        "name": "Pound"
      },
      "units_per_case": null,
      "updated_datetime": "2023-11-02T00:00:00.000000Z",
      "vendor": {
        "id": "00000000-0000-0000-0000-00000063cb34",
        "name": "Company 4861",
        "updated_datetime": "2030-11-04T00:00:00.000000Z"
      }
    }
  ]
}

Get products sorted by their creation date and filtered by various attributes.

Note: The page size for this endpoint is 5000 products per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.

Request

GET /public/v1/products

Parameters

Parameter Description In Type Required Default Example
inserted_datetime Filter products by their creation datetime query string false 2022-07-10T00:00:00Z,
page Pagination information body Page false
updated_datetime Filter products by the datetime they were most recently modified query string false ,2022-07-10T00:00:00Z

Responses

Status Description Schema
200 A list of products Products

Upsert a product

POST /public/v1/orders Creates a product with all optional fields set

POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0NTcsImlhdCI6MTc0MTQxODg1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNmUwNGM0ZWEtZTU3Ny00NDUxLThmNDAtZmU5NzkyYmM5YmM1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2Njk0NDEiLCJ0eXAiOiJhY2Nlc3MifQ.5cl00XGEm_bKSZmwtmEqVEs26h0vb685dnbNUAGxAlY
{
  "brand_id": "00000000-0000-0000-0000-00000063ca38",
  "category_id": "00000000-0000-0000-0000-000000525928",
  "description": "My Product Description",
  "group_id": "00000000-0000-0000-0000-000000439a31",
  "id": "00837dcc-69ba-473b-a9a1-0079dd4ec4bd",
  "inventory_tracking_method": "PACKAGE",
  "is_featured": true,
  "is_inactive": true,
  "menu_visibility": "INCLUDE_IN_ALL",
  "menus": ["00000000-0000-0000-0000-0000000287b6"],
  "msrp": "100.5",
  "name": "My Product",
  "owner_id": "00000000-0000-0000-0000-000000dfd67e",
  "quantity_available_threshold_max": "10.5",
  "quantity_available_threshold_min": "5.5",
  "sku": "12345",
  "strain_id": "00000000-0000-0000-0000-00000001bbac",
  "subcategory_id": "00000000-0000-0000-0000-00000052b9ff",
  "tags": ["00000000-0000-0000-0000-000000007ec1"],
  "total_cannabinoid_unit": "PERCENT",
  "total_cbd": "5.2",
  "total_thc": "10.4",
  "unit_cost": "50.4",
  "unit_net_weight": "3.1",
  "unit_net_weight_and_serving_size_unit_type_id": "00000000-0000-0000-0000-0000095d885e",
  "unit_price": "100",
  "unit_serving_size": "2.2",
  "unit_type_id": "00000000-0000-0000-0000-0000095d8865",
  "units_per_case": "0.2",
  "upc": "036000291452",
  "vendor_id": "00000000-0000-0000-0000-00000063ca35",
  "wholesale_unit_price": "90.50"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 26601da1537e68000000000000000001-777696d0581c3489-0
{
  "data": {
    "brand": {
      "id": "00000000-0000-0000-0000-00000063ca38",
      "name": "Company 4457",
      "updated_datetime": "2025-03-08T07:27:37.928658Z"
    },
    "category": {
      "id": "00000000-0000-0000-0000-000000525928",
      "name": "Some category 2000",
      "type": "OTHER"
    },
    "description": "My Product Description",
    "id": "00837dcc-69ba-473b-a9a1-0079dd4ec4bd",
    "images": [],
    "is_active": false,
    "msrp": "100.5",
    "name": "My Product",
    "sku": "12345",
    "strain": {
      "id": "00000000-0000-0000-0000-00000001bbac",
      "name": "Strain 94"
    },
    "subcategory": {
      "id": "00000000-0000-0000-0000-00000052b9ff",
      "name": "Some subcategory 1871"
    },
    "unit_price": "100",
    "unit_type": {
      "id": "00000000-0000-0000-0000-0000095d8865",
      "name": "Unit"
    },
    "units_per_case": "0.2",
    "updated_datetime": "2025-03-08T07:27:39.004768Z",
    "vendor": {
      "id": "00000000-0000-0000-0000-00000063ca35",
      "name": "Company 4446",
      "updated_datetime": "2025-03-08T07:27:37.837825Z"
    }
  }
}

POST /public/v1/orders Updates a product with all optional fields set

POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0NTksImlhdCI6MTc0MTQxODg1OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiY2EzZDk3NGMtMDZjYS00ODIzLTg0ZWEtNzkyYjYxNjUyMTMzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODU4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2Njk1NTMiLCJ0eXAiOiJhY2Nlc3MifQ.E6UYXnXDI8kkchhrZsIbLJuMZI7z1Jyvd8OmB1R6_eQ
{
  "category_id": "00000000-0000-0000-0000-00000052594c",
  "id": "aa078ae1-647a-4da8-863b-bc2ab4074d92",
  "inventory_tracking_method": "PACKAGE",
  "name": "My Product",
  "sku": "12345",
  "unit_price": "100",
  "unit_type_id": "00000000-0000-0000-0000-0000095d8da7",
  "upc": "036000291452",
  "vendor_id": "00000000-0000-0000-0000-00000063ca65"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 2d2a7a587728e4000000000000000001-2a33ff5ac399798d-0
{
  "data": {
    "brand": null,
    "category": {
      "id": "00000000-0000-0000-0000-00000052594c",
      "name": "Some category 2036",
      "type": "OTHER"
    },
    "description": null,
    "id": "aa078ae1-647a-4da8-863b-bc2ab4074d92",
    "images": [],
    "is_active": true,
    "msrp": null,
    "name": "My Product",
    "sku": "12345",
    "strain": null,
    "subcategory": null,
    "unit_price": "100",
    "unit_type": {
      "id": "00000000-0000-0000-0000-0000095d8da7",
      "name": "Gram"
    },
    "units_per_case": null,
    "updated_datetime": "2025-03-08T07:27:39.928056Z",
    "vendor": {
      "id": "00000000-0000-0000-0000-00000063ca65",
      "name": "Company 4542",
      "updated_datetime": "2025-03-08T07:27:39.600735Z"
    }
  }
}

POST /public/v1/orders Updates a product with all optional fields set

POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0NTksImlhdCI6MTc0MTQxODg1OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiY2EzZDk3NGMtMDZjYS00ODIzLTg0ZWEtNzkyYjYxNjUyMTMzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODU4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2Njk1NTMiLCJ0eXAiOiJhY2Nlc3MifQ.E6UYXnXDI8kkchhrZsIbLJuMZI7z1Jyvd8OmB1R6_eQ
{
  "brand_id": "00000000-0000-0000-0000-00000063ca83",
  "category_id": "00000000-0000-0000-0000-00000052595e",
  "description": "My Product Description",
  "group_id": "00000000-0000-0000-0000-000000439a68",
  "id": "aa078ae1-647a-4da8-863b-bc2ab4074d92",
  "inventory_tracking_method": "PACKAGE",
  "is_featured": true,
  "is_inactive": true,
  "menu_visibility": "INCLUDE_IN_ALL",
  "menus": ["00000000-0000-0000-0000-0000000287b7"],
  "msrp": "100.5",
  "name": "Updated Name",
  "owner_id": "00000000-0000-0000-0000-000000dfd73e",
  "quantity_available_threshold_max": "10.5",
  "quantity_available_threshold_min": "5.5",
  "sku": "45678",
  "strain_id": "00000000-0000-0000-0000-00000001bbad",
  "subcategory_id": "00000000-0000-0000-0000-00000052ba34",
  "tags": ["00000000-0000-0000-0000-000000007ec2"],
  "total_cannabinoid_unit": "PERCENT",
  "total_cbd": "5.2",
  "total_thc": "10.4",
  "unit_cost": "50.4",
  "unit_net_weight": "3.1",
  "unit_net_weight_and_serving_size_unit_type_id": "00000000-0000-0000-0000-0000095d8da9",
  "unit_price": "200",
  "unit_serving_size": "2.2",
  "unit_type_id": "00000000-0000-0000-0000-0000095d8db0",
  "units_per_case": "0.2",
  "upc": "036000291453",
  "vendor_id": "00000000-0000-0000-0000-00000063ca79",
  "wholesale_unit_price": "90.50"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 2d2a7a587728e4000000000000000001-5d05a786f2816861-0
{
  "data": {
    "brand": {
      "id": "00000000-0000-0000-0000-00000063ca83",
      "name": "Company 4592",
      "updated_datetime": "2025-03-08T07:27:40.327836Z"
    },
    "category": {
      "id": "00000000-0000-0000-0000-00000052595e",
      "name": "Some category 2054",
      "type": "OTHER"
    },
    "description": "My Product Description",
    "id": "aa078ae1-647a-4da8-863b-bc2ab4074d92",
    "images": [],
    "is_active": false,
    "msrp": "100.5",
    "name": "Updated Name",
    "sku": "45678",
    "strain": {
      "id": "00000000-0000-0000-0000-00000001bbad",
      "name": "Strain 95"
    },
    "subcategory": {
      "id": "00000000-0000-0000-0000-00000052ba34",
      "name": "Some subcategory 1924"
    },
    "unit_price": "200",
    "unit_type": {
      "id": "00000000-0000-0000-0000-0000095d8db0",
      "name": "Unit"
    },
    "units_per_case": "0.2",
    "updated_datetime": "2025-03-08T07:27:40.572447Z",
    "vendor": {
      "id": "00000000-0000-0000-0000-00000063ca79",
      "name": "Company 4578",
      "updated_datetime": "2025-03-08T07:27:40.221078Z"
    }
  }
}

POST /public/v1/orders Menus act as expected

POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0NjUsImlhdCI6MTc0MTQxODg2NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjQxOTMxNmItZjMwYi00MmJkLWI5YTYtMzVhZDllYjdlYmQ2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODY0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2NzAwMjIiLCJ0eXAiOiJhY2Nlc3MifQ.506IMlZ8yauCG7ftT77AM1zS5qm-wnp2uRK41mEdVGY
{
  "category_id": "00000000-0000-0000-0000-0000005259ed",
  "id": "6ea4ba2e-ea3f-4968-be77-9df1003b5042",
  "inventory_tracking_method": "PACKAGE",
  "menu_visibility": "INCLUDE_IN_ALL",
  "menus": ["00000000-0000-0000-0000-0000000287bb"],
  "name": "My Product",
  "sku": "12345",
  "unit_price": "100",
  "unit_type_id": "00000000-0000-0000-0000-0000095da0d4",
  "upc": "036000291452",
  "vendor_id": "00000000-0000-0000-0000-00000063cb43"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: e9491dae86b8e0000000000000000001-172d8ef6c2004252-0
{
  "data": {
    "brand": null,
    "category": {
      "id": "00000000-0000-0000-0000-0000005259ed",
      "name": "Some category 2197",
      "type": "OTHER"
    },
    "description": null,
    "id": "6ea4ba2e-ea3f-4968-be77-9df1003b5042",
    "images": [],
    "is_active": true,
    "msrp": null,
    "name": "My Product",
    "sku": "12345",
    "strain": null,
    "subcategory": null,
    "unit_price": "100",
    "unit_type": {
      "id": "00000000-0000-0000-0000-0000095da0d4",
      "name": "Gram"
    },
    "units_per_case": null,
    "updated_datetime": "2025-03-08T07:27:45.306425Z",
    "vendor": {
      "id": "00000000-0000-0000-0000-00000063cb43",
      "name": "Company 4892",
      "updated_datetime": "2025-03-08T07:27:45.053484Z"
    }
  }
}

POST /public/v1/orders Menus act as expected

POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0NjUsImlhdCI6MTc0MTQxODg2NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjQxOTMxNmItZjMwYi00MmJkLWI5YTYtMzVhZDllYjdlYmQ2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODY0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2NzAwMjIiLCJ0eXAiOiJhY2Nlc3MifQ.506IMlZ8yauCG7ftT77AM1zS5qm-wnp2uRK41mEdVGY
{
  "category_id": "00000000-0000-0000-0000-0000005259ed",
  "id": "6ea4ba2e-ea3f-4968-be77-9df1003b5042",
  "inventory_tracking_method": "PACKAGE",
  "menu_visibility": "DO_NOT_INCLUDE",
  "menus": [
    "00000000-0000-0000-0000-0000000287bb",
    "00000000-0000-0000-0000-0000000287bc"
  ],
  "name": "My Product",
  "sku": "12345",
  "tags": [],
  "unit_price": "100",
  "unit_type_id": "00000000-0000-0000-0000-0000095da0d4",
  "upc": "036000291452",
  "vendor_id": "00000000-0000-0000-0000-00000063cb43"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: e9491dae86b8e0000000000000000001-b10fe10a8d4c2d7f-0
{
  "data": {
    "brand": null,
    "category": {
      "id": "00000000-0000-0000-0000-0000005259ed",
      "name": "Some category 2197",
      "type": "OTHER"
    },
    "description": null,
    "id": "6ea4ba2e-ea3f-4968-be77-9df1003b5042",
    "images": [],
    "is_active": true,
    "msrp": null,
    "name": "My Product",
    "sku": "12345",
    "strain": null,
    "subcategory": null,
    "unit_price": "100",
    "unit_type": {
      "id": "00000000-0000-0000-0000-0000095da0d4",
      "name": "Gram"
    },
    "units_per_case": null,
    "updated_datetime": "2025-03-08T07:27:45.609711Z",
    "vendor": {
      "id": "00000000-0000-0000-0000-00000063cb43",
      "name": "Company 4892",
      "updated_datetime": "2025-03-08T07:27:45.053484Z"
    }
  }
}

POST /public/v1/orders Menus act as expected

POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0NjUsImlhdCI6MTc0MTQxODg2NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjQxOTMxNmItZjMwYi00MmJkLWI5YTYtMzVhZDllYjdlYmQ2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODY0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2NzAwMjIiLCJ0eXAiOiJhY2Nlc3MifQ.506IMlZ8yauCG7ftT77AM1zS5qm-wnp2uRK41mEdVGY
{
  "category_id": "00000000-0000-0000-0000-0000005259ed",
  "id": "6ea4ba2e-ea3f-4968-be77-9df1003b5042",
  "inventory_tracking_method": "PACKAGE",
  "menu_visibility": "INCLUDE_IN_SELECT",
  "menus": [
    "00000000-0000-0000-0000-0000000287bb",
    "00000000-0000-0000-0000-0000000287bc"
  ],
  "name": "My Product",
  "sku": "12345",
  "tags": [],
  "unit_price": "100",
  "unit_type_id": "00000000-0000-0000-0000-0000095da0d4",
  "upc": "036000291452",
  "vendor_id": "00000000-0000-0000-0000-00000063cb43"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: e9491dae86b8e0000000000000000001-0a11da819747baa5-0
{
  "data": {
    "brand": null,
    "category": {
      "id": "00000000-0000-0000-0000-0000005259ed",
      "name": "Some category 2197",
      "type": "OTHER"
    },
    "description": null,
    "id": "6ea4ba2e-ea3f-4968-be77-9df1003b5042",
    "images": [],
    "is_active": true,
    "msrp": null,
    "name": "My Product",
    "sku": "12345",
    "strain": null,
    "subcategory": null,
    "unit_price": "100",
    "unit_type": {
      "id": "00000000-0000-0000-0000-0000095da0d4",
      "name": "Gram"
    },
    "units_per_case": null,
    "updated_datetime": "2025-03-08T07:27:45.883641Z",
    "vendor": {
      "id": "00000000-0000-0000-0000-00000063cb43",
      "name": "Company 4892",
      "updated_datetime": "2025-03-08T07:27:45.053484Z"
    }
  }
}

POST /public/v1/orders Menus act as expected

POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0NjUsImlhdCI6MTc0MTQxODg2NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjQxOTMxNmItZjMwYi00MmJkLWI5YTYtMzVhZDllYjdlYmQ2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODY0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2NzAwMjIiLCJ0eXAiOiJhY2Nlc3MifQ.506IMlZ8yauCG7ftT77AM1zS5qm-wnp2uRK41mEdVGY
{
  "category_id": "00000000-0000-0000-0000-0000005259ed",
  "id": "6ea4ba2e-ea3f-4968-be77-9df1003b5042",
  "inventory_tracking_method": "PACKAGE",
  "menu_visibility": "INCLUDE_IN_SELECT",
  "menus": ["00000000-0000-0000-0000-0000000287bc"],
  "name": "My Product",
  "sku": "12345",
  "unit_price": "100",
  "unit_type_id": "00000000-0000-0000-0000-0000095da0d4",
  "upc": "036000291452",
  "vendor_id": "00000000-0000-0000-0000-00000063cb43"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: e9491dae86b8e0000000000000000001-0a3e3d6240923619-0
{
  "data": {
    "brand": null,
    "category": {
      "id": "00000000-0000-0000-0000-0000005259ed",
      "name": "Some category 2197",
      "type": "OTHER"
    },
    "description": null,
    "id": "6ea4ba2e-ea3f-4968-be77-9df1003b5042",
    "images": [],
    "is_active": true,
    "msrp": null,
    "name": "My Product",
    "sku": "12345",
    "strain": null,
    "subcategory": null,
    "unit_price": "100",
    "unit_type": {
      "id": "00000000-0000-0000-0000-0000095da0d4",
      "name": "Gram"
    },
    "units_per_case": null,
    "updated_datetime": "2025-03-08T07:27:46.161282Z",
    "vendor": {
      "id": "00000000-0000-0000-0000-00000063cb43",
      "name": "Company 4892",
      "updated_datetime": "2025-03-08T07:27:45.053484Z"
    }
  }
}

POST /public/v1/orders Menus act as expected

POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0NjUsImlhdCI6MTc0MTQxODg2NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjQxOTMxNmItZjMwYi00MmJkLWI5YTYtMzVhZDllYjdlYmQ2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODY0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2NzAwMjIiLCJ0eXAiOiJhY2Nlc3MifQ.506IMlZ8yauCG7ftT77AM1zS5qm-wnp2uRK41mEdVGY
{
  "category_id": "00000000-0000-0000-0000-0000005259ed",
  "id": "6ea4ba2e-ea3f-4968-be77-9df1003b5042",
  "inventory_tracking_method": "PACKAGE",
  "menu_visibility": "INCLUDE_IN_SELECT",
  "menus": [],
  "name": "My Product",
  "sku": "12345",
  "unit_price": "100",
  "unit_type_id": "00000000-0000-0000-0000-0000095da0d4",
  "upc": "036000291452",
  "vendor_id": "00000000-0000-0000-0000-00000063cb43"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: e9491dae86b8e0000000000000000001-0da192cab1e7b755-0
{
  "data": {
    "brand": null,
    "category": {
      "id": "00000000-0000-0000-0000-0000005259ed",
      "name": "Some category 2197",
      "type": "OTHER"
    },
    "description": null,
    "id": "6ea4ba2e-ea3f-4968-be77-9df1003b5042",
    "images": [],
    "is_active": true,
    "msrp": null,
    "name": "My Product",
    "sku": "12345",
    "strain": null,
    "subcategory": null,
    "unit_price": "100",
    "unit_type": {
      "id": "00000000-0000-0000-0000-0000095da0d4",
      "name": "Gram"
    },
    "units_per_case": null,
    "updated_datetime": "2025-03-08T07:27:46.511766Z",
    "vendor": {
      "id": "00000000-0000-0000-0000-00000063cb43",
      "name": "Company 4892",
      "updated_datetime": "2025-03-08T07:27:45.053484Z"
    }
  }
}

POST /public/v1/orders Error pointers are properly transformed to reflect the field name that our api users expect

POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0NjYsImlhdCI6MTc0MTQxODg2NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOWFmNGM1MzgtZmNlOS00Zjk1LTk1MzUtZmQ3MzdjNzUyZjA0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODY1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2NzAxNzciLCJ0eXAiOiJhY2Nlc3MifQ.nPcQCdsnbaqh8lavzbmGPebHlntCBKv2SASiLf_HjTA
{
  "id": "bceca218-6442-4240-b0f1-7f25a2de6c40",
  "menu_visibility": "INCLUDE_IN_ALL",
  "quantity_available_threshold_max": "-4.5",
  "quantity_available_threshold_min": "-5.5",
  "unit_net_weight": "3.1",
  "unit_serving_size": "5.2"
}

Response

400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 112871a4436131000000000000000001-54d28a32c106bc19-0
{
  "errors": [
    {
      "context": {
        "id": "bceca218-6442-4240-b0f1-7f25a2de6c40"
      },
      "message": "A unit type needs to be selected when setting Unit Net Weight/Volume or Unit Serving Size",
      "pointer": ["unit_net_weight_and_serving_size_unit_type_id"],
      "section": "body"
    },
    {
      "context": {
        "id": "bceca218-6442-4240-b0f1-7f25a2de6c40"
      },
      "message": "Unit Serving Size can't be greater than Unit Net Weight/Volume",
      "pointer": ["unit_serving_size"],
      "section": "body"
    },
    {
      "context": {
        "id": "bceca218-6442-4240-b0f1-7f25a2de6c40"
      },
      "message": "Cannot be negative",
      "pointer": ["quantity_available_threshold_max"],
      "section": "body"
    },
    {
      "context": {
        "id": "bceca218-6442-4240-b0f1-7f25a2de6c40"
      },
      "message": "Cannot be negative",
      "pointer": ["quantity_available_threshold_min"],
      "section": "body"
    }
  ]
}

POST /public/v1/orders Errors when threshold max is less than threshold min

POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0NTQsImlhdCI6MTc0MTQxODg1NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOWJhYTk5MjktNTIwZS00MjE5LTkzZDUtNzlhN2E4YTVmNDFlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODUzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2NjkyMDgiLCJ0eXAiOiJhY2Nlc3MifQ.yXlQhS-7CWB4POvL_uYjQsHJxr5dbUmFTYogMCFVbOU
{
  "id": "4f2721ac-f5ca-429b-94c8-d38e4786714f",
  "quantity_available_threshold_max": "4.5",
  "quantity_available_threshold_min": "5.5"
}

Response

400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: c9d10ed7f92400000000000000000001-5ecf1ea2614d825b-0
{
  "errors": [
    {
      "context": {
        "id": "4f2721ac-f5ca-429b-94c8-d38e4786714f"
      },
      "message": "Must be greater than threshold min",
      "pointer": ["quantity_available_threshold_max"],
      "section": "body"
    },
    {
      "context": {
        "id": "4f2721ac-f5ca-429b-94c8-d38e4786714f"
      },
      "message": "Must be less than threshold max",
      "pointer": ["quantity_available_threshold_min"],
      "section": "body"
    }
  ]
}

POST /public/v1/orders Cannot use associations from another company

POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0NjAsImlhdCI6MTc0MTQxODg2MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYWZjODk0ZDUtNDJjYi00NmE1LWIxMDgtMmU0NjQ3ZDIzNTM3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODU5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2Njk2NzciLCJ0eXAiOiJhY2Nlc3MifQ.Mc7dCQu1euIqZVKVL_v9SerLzt12quYG0c-fuHztl3w
{
  "brand_id": "00000000-0000-0000-0000-00000063caa8",
  "category_id": "00000000-0000-0000-0000-00000052597a",
  "cbd": "5.2",
  "description": "My Product Description",
  "group_id": "00000000-0000-0000-0000-000000439a86",
  "id": "588569a1-04e9-4376-afbf-1ee01407c6fb",
  "inventory_tracking_method": "PACKAGE",
  "is_featured": true,
  "is_inactive": true,
  "menu_visibility": "INCLUDE_IN_ALL",
  "menus": [
    "00000000-0000-0000-0000-0000000287b8",
    "00000000-0000-0000-0000-0000000287b9",
    "00000000-0000-0000-0000-0000000287ba"
  ],
  "msrp": "100.5",
  "name": "My Product",
  "owner_id": "00000000-0000-0000-0000-000000dfd778",
  "quantity_available_threshold_max": "10.5",
  "quantity_available_threshold_min": "5.5555",
  "sku": "12345",
  "strain_id": "00000000-0000-0000-0000-00000001bbae",
  "subcategory_id": "00000000-0000-0000-0000-00000052ba52",
  "tags": [
    "00000000-0000-0000-0000-000000007ec3",
    "00000000-0000-0000-0000-000000007ec4",
    "00000000-0000-0000-0000-000000007ec5"
  ],
  "thc": "10.4",
  "unit_cost": "50.4",
  "unit_net_weight": "3.1",
  "unit_net_weight_and_serving_size_unit_type_id": "00000000-0000-0000-0000-0000095d93a7",
  "unit_price": "100",
  "unit_serving_size": "2.2",
  "unit_type_id": "00000000-0000-0000-0000-0000095d93ae",
  "units_per_case": "0.2",
  "upc": "036000291452",
  "vendor_id": "00000000-0000-0000-0000-00000063caa2",
  "wholesale_unit_price": "90.50"
}

Response

400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 06975a8ee879d8c00000000000000001-8fd79accc2ee5902-0
{
  "errors": [
    {
      "context": {
        "id": "588569a1-04e9-4376-afbf-1ee01407c6fb"
      },
      "message": "Brand does not exist",
      "pointer": ["brand_id"],
      "section": "body"
    },
    {
      "context": {
        "id": "588569a1-04e9-4376-afbf-1ee01407c6fb"
      },
      "message": "Category does not exist",
      "pointer": ["category_id"],
      "section": "body"
    },
    {
      "context": {
        "id": "588569a1-04e9-4376-afbf-1ee01407c6fb"
      },
      "message": "Vendor does not exist",
      "pointer": ["vendor_id"],
      "section": "body"
    },
    {
      "context": {
        "id": "588569a1-04e9-4376-afbf-1ee01407c6fb"
      },
      "message": "Group does not exist",
      "pointer": ["group_id"],
      "section": "body"
    },
    {
      "context": {
        "id": "588569a1-04e9-4376-afbf-1ee01407c6fb"
      },
      "message": "Serving unit type does not exist",
      "pointer": ["unit_net_weight_and_serving_size_unit_type_id"],
      "section": "body"
    },
    {
      "context": {
        "id": "588569a1-04e9-4376-afbf-1ee01407c6fb"
      },
      "message": "Owner does not exist",
      "pointer": ["owner_id"],
      "section": "body"
    },
    {
      "context": {
        "id": "588569a1-04e9-4376-afbf-1ee01407c6fb"
      },
      "message": "Strain does not exist",
      "pointer": ["strain_id"],
      "section": "body"
    },
    {
      "context": {
        "id": "588569a1-04e9-4376-afbf-1ee01407c6fb"
      },
      "message": "Subcategory does not belong to the product category",
      "pointer": ["subcategory_id"],
      "section": "body"
    },
    {
      "context": {
        "id": "588569a1-04e9-4376-afbf-1ee01407c6fb"
      },
      "message": "One or more of the provided tags do not exist",
      "pointer": ["tags"],
      "section": "body"
    },
    {
      "context": {
        "id": "588569a1-04e9-4376-afbf-1ee01407c6fb"
      },
      "message": "Unit type does not exist",
      "pointer": ["unit_type_id"],
      "section": "body"
    },
    {
      "context": {},
      "message": "Menu does not exist",
      "pointer": ["menus", 0, "00000000-0000-0000-0000-0000000287b8"],
      "section": "body"
    },
    {
      "context": {},
      "message": "Menu does not exist",
      "pointer": ["menus", 1, "00000000-0000-0000-0000-0000000287b9"],
      "section": "body"
    }
  ]
}

Upsert a single product. To update an existing product, pass in an existing product ID in the id field. When updating a product, you must pass in all fields (no sparse update currently supported).Any existing tag you do not pass in to tags will be deleted. If the menu_visibility field isset to INCLUDE_IN_SELECT, any existing menu that you do not pass into menus will be deleted.

Request

POST /public/v1/products

Parameters

Parameter Description In Type Required Default Example
id Unique ID for this product. If it exists, an update will be performed; otherwise, it will be used as the ID of a new product record query string false
inventory_tracking_method Once the tracking method is set for a product, it cannot be changed. The tracking method can be one of the following: PACKAGE: The inventory will be defined by packages. PRODUCT: Not grouped in any manner. The inventory simply exists on your product that you can add or remove as you transact. BATCH: Grouped by batches. Batches share common traits such as expiration dates and test results. query string false PACKAGE
sku Stock Keeping Unit (SKU) for this product query string false SKU123
name Name of the product query string false King Size Pre-rolls
vendor_id The ID of the company_relationship association with the vendor (company) that supplies this product. query string false
category_id The ID of the product category of the product. query string false
unit_type_id The ID of the unit type the product. query string false
unit_price The sale price of the product per unit. query number false
description Description of the product query string false A pack of 5 pre-rolls
upc Universal Product Code (UPC) for this product query string false 123456789012
subcategory_id The ID of the product subcategory of the product. The provided subcategory must be a child of the provided category. query string false
group_id The ID of the product's group. query string false
brand_id The ID of the company_relationship association with the brand (company) that is associated with this product. query query false
quantity_available_threshold_min The minimum quantity of the product you'd like to maintain. When the product inventory count dips below this number, it will automatically be included in scheduled Low Inventory Reports. query number false
quantity_available_threshold_max The maximum quantity of the product you'd like to maintain. When the product inventory count exceeds this number, it will automatically be included in scheduled Inventory Reports. query number false
units_per_case The number of units in a case of the product. query number false
unit_cost The cost of the product per unit. query number false
msrp The Manufacturer's Suggested Retail Price (MSRP) of the product per unit. If you have POS integrations enabled in Distru, this may be synced to your POS query number false
wholesale_unit_price The wholesale price of the product per unit. query number false
is_featured Whether the product is featured. Featured products will be displayed at the top of menus. query boolean false
strain_id The ID of the strain associated with the product. query string false
owner_id The ID of the user that is deemed to be the owner of the product. query string false
is_inactive Whether the product is inactive from use. Inactive products can be set to active at any time. query boolean false
total_cannabinoid_unit The unit of the THC/CBD content of the product (MG or PERCENT). query string false
total_thc The THC content of the product in the unit specified by total_cannabinoid_unit. Must also include total_cannabinoid_unit. query string false
total_cbd The CBD content of the product in the unit specified by total_cannabinoid_unit. Must also include total_cannabinoid_unit. query string false
menu_visibility This key is responsible for which menus (if any) the product will be displayed in. DO_NOT_INCLUDE: The product will not be displayed in any menus. INCLUDE_IN_ALL: The product will be displayed in all menus. INCLUDE_IN_SELECT: The product will be displayed in menus that have been explicitly selected (passed into the menus list). query string false
unit_net_weight The net weight of the product per unit. This field should be null unless the product's unit type is count-based. query number false
unit_serving_size The serving size of the product per unit. This field should be null unless the product's unit type is count-based. query number false
unit_net_weight_and_serving_size_unit_type_id The ID of the unit type that the net quantity per unit and serving size are measured in. This field should be null unless the product's unit type is count-based. If this field is set, the act of changing the category from 'Unit' will throw an error. query string false
tags A list of tags associated with the product. query array false ["0ef8347c-b714-4cd9-ba0e-872488bc9244", "daa0294c-833c-42bd-a133-b4c9e7f64017"]
menus A list of menus you would like this product to be included in. This field will only be used if the menu_visibility key is set to INCLUDE_IN_SELECT. query array false ["0ef8347c-b714-4cd9-ba0e-872488bc9244", "daa0294c-833c-42bd-a133-b4c9e7f64017"]

Responses

Status Description Schema
200 A single product Product

Purchase

Get purchases

GET /public/v1/purchases returns purchases related to the company

GET /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0NDgsImlhdCI6MTc0MTQxODg0OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNzk4YTdhM2EtMzA4OC00NTkzLTk3OTMtMTE4YmRjYzA4MDBkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODQ3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2Njg0MzgiLCJ0eXAiOiJhY2Nlc3MifQ.UEEiflw0mp57wjvYVwil8d8TcM4lFET5pbJNiLASB3s

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 8720bce7a694e0000000000000000001-c6931255755ff572-0
{
  "data": [
    {
      "charges": [],
      "company": {
        "id": "00000000-0000-0000-0000-00000063c880",
        "name": "Company 3775",
        "updated_datetime": "2025-03-08T07:27:28.428356Z"
      },
      "due_datetime": "2025-03-08T07:27:28.623287Z",
      "id": "00000000-0000-0000-0000-00000003de70",
      "inserted_datetime": "2025-03-08T07:27:28.625723Z",
      "items": [
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d5168",
            "name": "B4530"
          },
          "compliance_quantity": null,
          "id": "8d06c852-21ba-4e79-8871-74650a4bcda6",
          "location": {
            "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
            "company_id": "00000000-0000-0000-0000-000000a97038",
            "id": "00000000-0000-0000-0000-00000043d5d9",
            "license_id": null,
            "name": "Place 1765"
          },
          "package": null,
          "price": "10.000000000",
          "price_base": "10",
          "product": {
            "id": "dc38ee8c-27fb-47b9-a434-84d3d6a9de97",
            "name": "Product 4516",
            "sku": "sku 4517",
            "updated_datetime": "2025-03-08T07:27:28.671662Z"
          },
          "quantity": "15.000000000",
          "received_quantity": "0.000000000"
        },
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d5169",
            "name": "B4531"
          },
          "compliance_quantity": null,
          "id": "b02a096a-5221-4825-b101-db1a6ad4c0d2",
          "location": {
            "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
            "company_id": "00000000-0000-0000-0000-000000a97038",
            "id": "00000000-0000-0000-0000-00000043d5d9",
            "license_id": null,
            "name": "Place 1765"
          },
          "package": null,
          "price": "10.000000000",
          "price_base": "10",
          "product": {
            "id": "f227bf25-dece-4c93-be3d-dd54e50c3a58",
            "name": "Product 4521",
            "sku": "sku 4522",
            "updated_datetime": "2025-03-08T07:27:28.718914Z"
          },
          "quantity": "10.000000000",
          "received_quantity": "0.000000000"
        },
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d516a",
            "name": "B4532"
          },
          "compliance_quantity": null,
          "id": "dc60d7b5-a4a4-4a78-84ea-0cb4f1e4d01a",
          "location": {
            "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
            "company_id": "00000000-0000-0000-0000-000000a97038",
            "id": "00000000-0000-0000-0000-00000043d5d9",
            "license_id": null,
            "name": "Place 1765"
          },
          "package": null,
          "price": "10.000000000",
          "price_base": "10",
          "product": {
            "id": "bdd23a8b-9a4e-47b6-a236-83973700e578",
            "name": "Product 4523",
            "sku": "sku 4524",
            "updated_datetime": "2025-03-08T07:27:28.750189Z"
          },
          "quantity": "5.000000000",
          "received_quantity": "0.000000000"
        },
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d516b",
            "name": "B4533"
          },
          "compliance_quantity": null,
          "id": "21abb7be-0a06-4ce6-b093-a12dd6e56dff",
          "location": {
            "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
            "company_id": "00000000-0000-0000-0000-000000a97038",
            "id": "00000000-0000-0000-0000-00000043d5d9",
            "license_id": null,
            "name": "Place 1765"
          },
          "package": null,
          "price": "10.000000000",
          "price_base": "10",
          "product": {
            "id": "1c5d663c-f9af-4716-80df-c5f36409f35d",
            "name": "Product 4528",
            "sku": "sku 4529",
            "updated_datetime": "2025-03-08T07:27:28.786620Z"
          },
          "quantity": "2.000000000",
          "received_quantity": "0.000000000"
        }
      ],
      "order_datetime": "2025-03-08T07:27:28.623282Z",
      "purchase_number": "Purchase #65",
      "status": "PENDING",
      "total": "32.00",
      "updated_datetime": "2025-03-08T07:27:28.625723Z"
    },
    {
      "charges": [
        {
          "id": "44fdab7c-f8af-4a60-b987-b46103255a31",
          "name": "C1",
          "percent": "10.0000",
          "price": "1.00",
          "type": "CHARGE",
          "unit_type": "PERCENT"
        }
      ],
      "company": {
        "id": "00000000-0000-0000-0000-00000063c87c",
        "name": "Company 3767",
        "updated_datetime": "2030-11-01T00:00:00.000000Z"
      },
      "due_datetime": "2020-01-01T00:00:01.000000Z",
      "id": "00000000-0000-0000-0000-00000003de6f",
      "inserted_datetime": "2020-01-01T00:00:03.000000Z",
      "items": [
        {
          "batch": {
            "batch_number": "UID1",
            "id": "00000000-0000-0000-0000-0000003d515a",
            "name": "B1"
          },
          "compliance_quantity": "1.0000",
          "id": "e85e9354-6fd0-4d3a-b738-a0acde0a9b56",
          "location": {
            "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
            "company_id": "00000000-0000-0000-0000-000000a97038",
            "id": "00000000-0000-0000-0000-00000043d5c9",
            "license_id": "00000000-0000-0000-0000-0000002b9e5c",
            "name": "Place 1749"
          },
          "package": {
            "batch_number": "B1",
            "compliance_label": "ABCDEF012345670000001491",
            "id": "00000000-0000-0000-0000-000000160e2d",
            "metrc_label": "ABCDEF012345670000001491",
            "status": "active"
          },
          "price": "10.000000000",
          "price_base": "10",
          "product": {
            "id": "9cf7c4d2-af67-4ce3-b615-8739214b040e",
            "name": "P1",
            "sku": "SKU1",
            "updated_datetime": "2023-11-02T00:00:00.000000Z"
          },
          "quantity": "1.000000000",
          "received_quantity": "1.000000000"
        }
      ],
      "order_datetime": "2020-01-01T00:00:02.000000Z",
      "purchase_number": "SO-123",
      "status": "COMPLETED",
      "total": "10.00",
      "updated_datetime": "2020-01-01T00:00:04.000000Z"
    }
  ]
}

GET /public/v1/purchases allows filtering by several statuses

GET /public/v1/purchases?status[]=Completed&status[]=Pending
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0MjcsImlhdCI6MTc0MTQxODgyNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGE0ZWIxNjYtMDhiYS00NzhiLWJkODAtMzBhMDRmNDVjZjdiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODI2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2NjYxNTAiLCJ0eXAiOiJhY2Nlc3MifQ.gY93DEKZv3ifIc7lYGe7mC5Z96ROdIvAUxP_jJdUioA

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: e262c73f452188000000000000000001-303e0a37507d7140-0
{
  "data": [
    {
      "charges": [],
      "company": {
        "id": "00000000-0000-0000-0000-00000063c492",
        "name": "Company 2316",
        "updated_datetime": "2025-03-08T07:27:09.003517Z"
      },
      "due_datetime": "2025-03-08T07:27:09.118828Z",
      "id": "00000000-0000-0000-0000-00000003de39",
      "inserted_datetime": "2025-03-08T07:27:09.120868Z",
      "items": [
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d4eea",
            "name": "B2534"
          },
          "compliance_quantity": null,
          "id": "c0d0d3e8-3263-4b9d-90a1-703a7432e00b",
          "location": {
            "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
            "company_id": "00000000-0000-0000-0000-000000a96a3a",
            "id": "00000000-0000-0000-0000-00000043d2ec",
            "license_id": null,
            "name": "Place 1029"
          },
          "package": null,
          "price": "10.000000000",
          "price_base": "10",
          "product": {
            "id": "1066da28-987b-46ab-9919-eaf91de81a1d",
            "name": "Product 2510",
            "sku": "sku 2511",
            "updated_datetime": "2025-03-08T07:27:09.144243Z"
          },
          "quantity": "15.000000000",
          "received_quantity": "0.000000000"
        },
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d4eeb",
            "name": "B2535"
          },
          "compliance_quantity": null,
          "id": "d370e08b-06d6-43f2-b28f-4e82cdf65a2a",
          "location": {
            "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
            "company_id": "00000000-0000-0000-0000-000000a96a3a",
            "id": "00000000-0000-0000-0000-00000043d2ec",
            "license_id": null,
            "name": "Place 1029"
          },
          "package": null,
          "price": "10.000000000",
          "price_base": "10",
          "product": {
            "id": "50901210-5add-4af3-bd46-f594122e3959",
            "name": "Product 2513",
            "sku": "sku 2514",
            "updated_datetime": "2025-03-08T07:27:09.178853Z"
          },
          "quantity": "10.000000000",
          "received_quantity": "0.000000000"
        },
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d4eec",
            "name": "B2536"
          },
          "compliance_quantity": null,
          "id": "3e3d123a-914c-4187-8203-2b6ad6340245",
          "location": {
            "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
            "company_id": "00000000-0000-0000-0000-000000a96a3a",
            "id": "00000000-0000-0000-0000-00000043d2ec",
            "license_id": null,
            "name": "Place 1029"
          },
          "package": null,
          "price": "10.000000000",
          "price_base": "10",
          "product": {
            "id": "23c8d524-29d4-4110-b902-18f0b9f99dde",
            "name": "Product 2522",
            "sku": "sku 2523",
            "updated_datetime": "2025-03-08T07:27:09.219028Z"
          },
          "quantity": "5.000000000",
          "received_quantity": "0.000000000"
        },
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d4eed",
            "name": "B2537"
          },
          "compliance_quantity": null,
          "id": "bbd6991d-d6f3-4ce9-af1c-282cc4023190",
          "location": {
            "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
            "company_id": "00000000-0000-0000-0000-000000a96a3a",
            "id": "00000000-0000-0000-0000-00000043d2ec",
            "license_id": null,
            "name": "Place 1029"
          },
          "package": null,
          "price": "10.000000000",
          "price_base": "10",
          "product": {
            "id": "3ac5fc72-8979-4b93-ba03-f85716ce13f7",
            "name": "Product 2531",
            "sku": "sku 2532",
            "updated_datetime": "2025-03-08T07:27:09.243557Z"
          },
          "quantity": "2.000000000",
          "received_quantity": "0.000000000"
        }
      ],
      "order_datetime": "2020-01-01T12:30:00.000000Z",
      "purchase_number": "Purchase #14",
      "status": "PENDING",
      "total": "32.00",
      "updated_datetime": "2025-03-08T07:27:09.120868Z"
    },
    {
      "charges": [],
      "company": {
        "id": "00000000-0000-0000-0000-00000063c47c",
        "name": "Company 2288",
        "updated_datetime": "2025-03-08T07:27:08.600746Z"
      },
      "due_datetime": "2025-03-08T07:27:08.738174Z",
      "id": "00000000-0000-0000-0000-00000003de37",
      "inserted_datetime": "2025-03-08T07:27:08.741740Z",
      "items": [
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d4ed6",
            "name": "B2471"
          },
          "compliance_quantity": null,
          "id": "52bb8ab8-5e81-4333-a175-449fb46ab871",
          "location": {
            "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
            "company_id": "00000000-0000-0000-0000-000000a96a3a",
            "id": "00000000-0000-0000-0000-00000043d2dc",
            "license_id": null,
            "name": "Place 1013"
          },
          "package": null,
          "price": "10.000000000",
          "price_base": "10",
          "product": {
            "id": "208317f4-039b-4a7a-99d3-d08d078dc1d1",
            "name": "Product 2455",
            "sku": "sku 2456",
            "updated_datetime": "2025-03-08T07:27:08.785320Z"
          },
          "quantity": "15.000000000",
          "received_quantity": "15.000000000"
        },
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d4ed7",
            "name": "B2475"
          },
          "compliance_quantity": null,
          "id": "100952f1-c578-4d4a-bba6-3797f04f3f41",
          "location": {
            "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
            "company_id": "00000000-0000-0000-0000-000000a96a3a",
            "id": "00000000-0000-0000-0000-00000043d2dc",
            "license_id": null,
            "name": "Place 1013"
          },
          "package": null,
          "price": "10.000000000",
          "price_base": "10",
          "product": {
            "id": "5c34b7e5-98e5-473d-9758-b545317ba705",
            "name": "Product 2457",
            "sku": "sku 2458",
            "updated_datetime": "2025-03-08T07:27:08.823078Z"
          },
          "quantity": "10.000000000",
          "received_quantity": "10.000000000"
        },
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d4ed8",
            "name": "B2476"
          },
          "compliance_quantity": null,
          "id": "6e1de357-0e38-46fe-b60e-a8eecc25d0d6",
          "location": {
            "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
            "company_id": "00000000-0000-0000-0000-000000a96a3a",
            "id": "00000000-0000-0000-0000-00000043d2dc",
            "license_id": null,
            "name": "Place 1013"
          },
          "package": null,
          "price": "10.000000000",
          "price_base": "10",
          "product": {
            "id": "8f7556fc-92b9-4539-bc1d-b0a96d061ae5",
            "name": "Product 2465",
            "sku": "sku 2466",
            "updated_datetime": "2025-03-08T07:27:08.862642Z"
          },
          "quantity": "5.000000000",
          "received_quantity": "5.000000000"
        },
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d4ed9",
            "name": "B2477"
          },
          "compliance_quantity": null,
          "id": "e05ec6a1-c88c-4e51-b0dd-c4d0b6125fab",
          "location": {
            "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
            "company_id": "00000000-0000-0000-0000-000000a96a3a",
            "id": "00000000-0000-0000-0000-00000043d2dc",
            "license_id": null,
            "name": "Place 1013"
          },
          "package": null,
          "price": "10.000000000",
          "price_base": "10",
          "product": {
            "id": "d7a8aba5-af4c-47bd-88c0-a7f16c3a2ef9",
            "name": "Product 2467",
            "sku": "sku 2468",
            "updated_datetime": "2025-03-08T07:27:08.897737Z"
          },
          "quantity": "2.000000000",
          "received_quantity": "2.000000000"
        }
      ],
      "order_datetime": "2020-01-01T12:20:00.000000Z",
      "purchase_number": "Purchase #12",
      "status": "COMPLETED",
      "total": "32.00",
      "updated_datetime": "2025-03-08T07:27:08.741740Z"
    },
    {
      "charges": [],
      "company": {
        "id": "00000000-0000-0000-0000-00000063c44c",
        "name": "Company 2223",
        "updated_datetime": "2025-03-08T07:27:07.798292Z"
      },
      "due_datetime": "2025-03-08T07:27:07.898863Z",
      "id": "00000000-0000-0000-0000-00000003de33",
      "inserted_datetime": "2025-03-08T07:27:07.900647Z",
      "items": [
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d4eb5",
            "name": "B2367"
          },
          "compliance_quantity": null,
          "id": "1784a487-7311-4801-9447-f7fe42cb793e",
          "location": {
            "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
            "company_id": "00000000-0000-0000-0000-000000a96a3a",
            "id": "00000000-0000-0000-0000-00000043d2c2",
            "license_id": null,
            "name": "Place 987"
          },
          "package": null,
          "price": "10.000000000",
          "price_base": "10",
          "product": {
            "id": "5bbf0443-cb0d-46dc-94c5-e86108725fec",
            "name": "Product 2356",
            "sku": "sku 2357",
            "updated_datetime": "2025-03-08T07:27:07.922416Z"
          },
          "quantity": "15.000000000",
          "received_quantity": "15.000000000"
        },
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d4eb6",
            "name": "B2370"
          },
          "compliance_quantity": null,
          "id": "e92c3fd1-a3e0-49d2-89d6-42e6065efd35",
          "location": {
            "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
            "company_id": "00000000-0000-0000-0000-000000a96a3a",
            "id": "00000000-0000-0000-0000-00000043d2c2",
            "license_id": null,
            "name": "Place 987"
          },
          "package": null,
          "price": "10.000000000",
          "price_base": "10",
          "product": {
            "id": "92a4e112-2ad6-480a-ad9d-3e43ae1e1246",
            "name": "Product 2359",
            "sku": "sku 2360",
            "updated_datetime": "2025-03-08T07:27:07.971198Z"
          },
          "quantity": "10.000000000",
          "received_quantity": "10.000000000"
        },
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d4eb7",
            "name": "B2371"
          },
          "compliance_quantity": null,
          "id": "e9ab036c-2610-46a8-b127-dc452bc7ad0c",
          "location": {
            "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
            "company_id": "00000000-0000-0000-0000-000000a96a3a",
            "id": "00000000-0000-0000-0000-00000043d2c2",
            "license_id": null,
            "name": "Place 987"
          },
          "package": null,
          "price": "10.000000000",
          "price_base": "10",
          "product": {
            "id": "d808c403-4fb5-4f30-ad93-f0e09f807e28",
            "name": "Product 2363",
            "sku": "sku 2364",
            "updated_datetime": "2025-03-08T07:27:08.014574Z"
          },
          "quantity": "5.000000000",
          "received_quantity": "5.000000000"
        },
        {
          "batch": {
            "batch_number": null,
            "id": "00000000-0000-0000-0000-0000003d4eb8",
            "name": "B2372"
          },
          "compliance_quantity": null,
          "id": "0b53bc47-d438-405f-9dbe-e089c8b193a2",
          "location": {
            "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
            "company_id": "00000000-0000-0000-0000-000000a96a3a",
            "id": "00000000-0000-0000-0000-00000043d2c2",
            "license_id": null,
            "name": "Place 987"
          },
          "package": null,
          "price": "10.000000000",
          "price_base": "10",
          "product": {
            "id": "bf2484ce-3ed0-4b4b-92fe-b7b003fcabf9",
            "name": "Product 2365",
            "sku": "sku 2366",
            "updated_datetime": "2025-03-08T07:27:08.060342Z"
          },
          "quantity": "2.000000000",
          "received_quantity": "2.000000000"
        }
      ],
      "order_datetime": "2020-01-01T12:00:00.000000Z",
      "purchase_number": "Purchase #8",
      "status": "COMPLETED",
      "total": "32.00",
      "updated_datetime": "2025-03-08T07:27:07.900647Z"
    }
  ]
}

Get purchases sorted by Order Date descendingly date and filtered by various attributes.

Note: The page size for this endpoint is 500 purchase orders per page.

Request

GET /public/v1/purchases

Parameters

Parameter Description In Type Required Default Example
due_datetime Filter purchases by the due datetime query string false ,2022-07-10T00:00:00Z
inserted_datetime Filter purchases by their creation datetime query string false 2022-07-10T00:00:00Z,
order_datetime Filter purchases by the order datetime query string false 2022-07-10T00:00:00Z,2022-07-11T00:00:00Z
page Pagination information body Page false
status Filter purchases by their status. Accepted values are "Completed", "Delivering", "Partially Received", "Pending", "Processing". query array false ["Pending","Processing"]
updated_datetime Filter purchases by the datetime they were most recently modified query string false ,2022-07-10T00:00:00Z

Responses

Status Description Schema
200 A list of purchases Purchases

Insert a payment for a purchase

POST /purchases/:id/payments can create a payment for an purchase with both quickbooks id and name

POST /public/v1/purchases/00000000-0000-0000-0000-00000003de3c/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0MzEsImlhdCI6MTc0MTQxODgzMSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiM2FlZDFjYzEtN2Y5Mi00MTM1LThlNDEtMDNiYWIxMWQ0OGQxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODMwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2NjY1MTIiLCJ0eXAiOiJhY2Nlc3MifQ.HbKyaoAu7-dKxST0BcBUFtYFChLzMQxrUiy5vhIy9sk
{
  "amount": 100.01,
  "description": "Payment for purchase",
  "payment_datetime": "2020-01-01T00:00:00.000000Z",
  "payment_method_id": "00000000-0000-0000-0000-000000012fe0",
  "quickbooks_deposit_account_id": "QBD-123"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 3db93951e97da0000000000000000001-1b9d4ab89b796bb2-0
{
  "data": {
    "amount": "100.01",
    "description": "Payment for purchase",
    "id": "00000000-0000-0000-0000-0000000059a3",
    "inserted_datetime": "2025-03-08T07:27:12.038552Z",
    "payment_date": "2020-01-01T00:00:00.000000Z",
    "payment_method": {
      "id": "00000000-0000-0000-0000-000000012fe0",
      "name": "Payment Method 0"
    },
    "payment_number": "PYT-0000001",
    "purchase_id": "00000000-0000-0000-0000-00000003de3c",
    "quickbooks_deposit_account_id": "QBD-123"
  }
}

POST /purchases/:id/payments can create a payment for an purchase with both quickbooks id and name

POST /public/v1/purchases/00000000-0000-0000-0000-00000003de3c/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0MzEsImlhdCI6MTc0MTQxODgzMSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiM2FlZDFjYzEtN2Y5Mi00MTM1LThlNDEtMDNiYWIxMWQ0OGQxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODMwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2NjY1MTIiLCJ0eXAiOiJhY2Nlc3MifQ.HbKyaoAu7-dKxST0BcBUFtYFChLzMQxrUiy5vhIy9sk
{
  "amount": 100.01,
  "description": "Payment for purchase",
  "payment_datetime": "2020-01-01T00:00:00.000000Z",
  "payment_method_id": "00000000-0000-0000-0000-000000012fe0",
  "quickbooks_deposit_account_name": "QBD-NAME"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 3db93951e97da0000000000000000001-083442efe4c7eb26-0
{
  "data": {
    "amount": "100.01",
    "description": "Payment for purchase",
    "id": "00000000-0000-0000-0000-0000000059a5",
    "inserted_datetime": "2025-03-08T07:27:12.769234Z",
    "payment_date": "2020-01-01T00:00:00.000000Z",
    "payment_method": {
      "id": "00000000-0000-0000-0000-000000012fe0",
      "name": "Payment Method 0"
    },
    "payment_number": "PYT-0000002",
    "purchase_id": "00000000-0000-0000-0000-00000003de3c",
    "quickbooks_deposit_account_id": "QBD-123"
  }
}

Request

POST /public/v1/purchases/{id}/payments

Parameters

Parameter Description In Type Required Default Example
payment_method_id Payment method ID query string true
amount Amount of the payment. Will round to 2 decimal places query decimal true
payment_datetime Payment date query string true
description Description of the payment query string true
quickbooks_deposit_account_id Quickbooks deposit account ID. Cannot include both this and quickbooks_deposit_account_name. If user's company is integrated with Quickbooks, either this or quickbooks_deposit_account_name must be provided. Account type must be "Bank" or "Credit Card" query string false
quickbooks_deposit_account_name Quickbooks deposit account name. Cannot include both this and quickbooks_deposit_account_id. If user's company is integrated with Quickbooks, either this or quickbooks_deposit_account_id must be provided. Account type must be "Bank" or "Credit Card" query string false

Responses

Status Description Schema
200 A single payment PurchasePayment

Upsert a purchase order

POST /public/v1/purchases creates a purchase (with product-tracked item)

POST /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0NDAsImlhdCI6MTc0MTQxODg0MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTJkNTRiOTctMjUyYy00ZGRkLWE1MDgtYjQ0MDhjZWI5NDA3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODM5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2Njc1MDAiLCJ0eXAiOiJhY2Nlc3MifQ.BmRBNXs3kfm_xZy365cMSKFADrmyvqHpo1Ce3EBul-k
{
  "billing_location_id": "00000000-0000-0000-0000-00000043d496",
  "charges": [
    {
      "name": "C1",
      "percent": "10.0000",
      "type": "CHARGE",
      "unit_type": "PERCENT"
    },
    {
      "name": "C2",
      "price": "-5.0000",
      "type": "DISCOUNT",
      "unit_type": "PRICE"
    }
  ],
  "company_id": "00000000-0000-0000-0000-00000063c6bb",
  "due_datetime": "2020-01-30T00:00:00.000000Z",
  "items": [
    {
      "location_id": "00000000-0000-0000-0000-00000043d493",
      "price": "10.000000000",
      "product_id": "eb69a1a5-c3de-4a9d-b998-2b97fb26417b",
      "quantity": "1.000000000"
    }
  ],
  "location_id": "00000000-0000-0000-0000-00000043d493",
  "order_datetime": "2020-01-01T00:00:00.000000Z"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: a51cca99a17bb8000000000000000001-316971917f1d0891-0
{
  "data": {
    "charges": [
      {
        "id": "54a9b774-62bf-4e1c-9110-ec2d034f5446",
        "name": "C1",
        "percent": "10.0000",
        "price": "1.00",
        "type": "CHARGE",
        "unit_type": "PERCENT"
      },
      {
        "id": "5a96bc4e-7a18-4817-962d-8f89fa90d2fa",
        "name": "C2",
        "percent": null,
        "price": "-5.00",
        "type": "DISCOUNT",
        "unit_type": "PRICE"
      }
    ],
    "company": {
      "id": "00000000-0000-0000-0000-00000063c6bb",
      "name": "Company 3115",
      "updated_datetime": "2025-03-08T07:27:20.512827Z"
    },
    "due_datetime": "2020-01-30T00:00:00.000000Z",
    "id": "00000000-0000-0000-0000-00000003de51",
    "inserted_datetime": "2025-03-08T07:27:20.693839Z",
    "items": [
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d5043",
          "name": "B1"
        },
        "compliance_quantity": null,
        "id": "0984e460-989f-4347-8fa9-e8d679394634",
        "location": {
          "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
          "company_id": "00000000-0000-0000-0000-000000a96db8",
          "id": "00000000-0000-0000-0000-00000043d493",
          "license_id": "00000000-0000-0000-0000-0000002b9de4",
          "name": "Place 1447"
        },
        "package": null,
        "price": "10.000000000",
        "price_base": "10.000000000",
        "product": {
          "id": "eb69a1a5-c3de-4a9d-b998-2b97fb26417b",
          "name": "P1",
          "sku": "SKU1",
          "updated_datetime": "2025-03-08T07:27:20.641132Z"
        },
        "quantity": "1.000000000",
        "received_quantity": "0.000000000"
      }
    ],
    "order_datetime": "2020-01-01T00:00:00.000000Z",
    "purchase_number": "PO-0000001",
    "status": "PENDING",
    "total": "6.00",
    "updated_datetime": "2025-03-08T07:27:20.717193Z"
  }
}

POST /public/v1/purchases creates a purchase (with batch-tracked item)

POST /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0NDEsImlhdCI6MTc0MTQxODg0MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTcyZjUzZjMtYTIwZC00YTcwLWI1OTktM2U5MzQ4N2NjYWI4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODQwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2Njc1NzkiLCJ0eXAiOiJhY2Nlc3MifQ.YNVNkx5q_DJamaozZnx9OXbWcMPIM8unFwRIdFRFu_E
{
  "billing_location_id": "00000000-0000-0000-0000-00000043d4b2",
  "charges": [
    {
      "name": "C1",
      "percent": "10.0000",
      "type": "CHARGE",
      "unit_type": "PERCENT"
    },
    {
      "name": "C2",
      "price": "-5.0000",
      "type": "DISCOUNT",
      "unit_type": "PRICE"
    }
  ],
  "company_id": "00000000-0000-0000-0000-00000063c6d7",
  "due_datetime": "2020-01-30T00:00:00.000000Z",
  "items": [
    {
      "batch_id": "00000000-0000-0000-0000-0000003d5053",
      "location_id": "00000000-0000-0000-0000-00000043d4b2",
      "price": "10.000000000",
      "product_id": "4c23f490-1d17-4249-99bb-2bc0dda444b9",
      "quantity": "1.000000000"
    }
  ],
  "location_id": "00000000-0000-0000-0000-00000043d4b2",
  "order_datetime": "2020-01-01T00:00:00.000000Z"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: f51f378ec69d00000000000000000001-8f3bbe5710ea41f5-0
{
  "data": {
    "charges": [
      {
        "id": "d2a36bad-e38b-47ca-9159-adcff456e31d",
        "name": "C1",
        "percent": "10.0000",
        "price": "1.00",
        "type": "CHARGE",
        "unit_type": "PERCENT"
      },
      {
        "id": "4cfaa08e-70a0-4c7e-9fc3-86e1ded1e2e3",
        "name": "C2",
        "percent": null,
        "price": "-5.00",
        "type": "DISCOUNT",
        "unit_type": "PRICE"
      }
    ],
    "company": {
      "id": "00000000-0000-0000-0000-00000063c6d7",
      "name": "Company 3162",
      "updated_datetime": "2025-03-08T07:27:21.145652Z"
    },
    "due_datetime": "2020-01-30T00:00:00.000000Z",
    "id": "00000000-0000-0000-0000-00000003de53",
    "inserted_datetime": "2025-03-08T07:27:21.303299Z",
    "items": [
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d5053",
          "name": "B1"
        },
        "compliance_quantity": null,
        "id": "3d178fa1-6331-4bc8-b9ae-3bc1e240fb87",
        "location": {
          "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
          "company_id": "00000000-0000-0000-0000-000000a96de8",
          "id": "00000000-0000-0000-0000-00000043d4b2",
          "license_id": "00000000-0000-0000-0000-0000002b9def",
          "name": "Place 1477"
        },
        "package": null,
        "price": "10.000000000",
        "price_base": "10.000000000",
        "product": {
          "id": "4c23f490-1d17-4249-99bb-2bc0dda444b9",
          "name": "P1",
          "sku": "SKU1",
          "updated_datetime": "2025-03-08T07:27:21.239119Z"
        },
        "quantity": "1.000000000",
        "received_quantity": "0.000000000"
      }
    ],
    "order_datetime": "2020-01-01T00:00:00.000000Z",
    "purchase_number": "PO-0000001",
    "status": "PENDING",
    "total": "6.00",
    "updated_datetime": "2025-03-08T07:27:21.330020Z"
  }
}

POST /public/v1/purchases creates a purchase (with package-tracked item)

POST /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0MjUsImlhdCI6MTc0MTQxODgyNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjRjZjg2OGEtNTY0My00ZDQ2LTgzMzctN2EwOGEwNzdlYmE2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODI0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2NjU4NTkiLCJ0eXAiOiJhY2Nlc3MifQ.Jl3__v9kgduwxUgsbCsZK5SwboL4UoJ_wGKGOpwT8n4
{
  "billing_location_id": "00000000-0000-0000-0000-00000043d268",
  "charges": [
    {
      "name": "C1",
      "percent": "10.0000",
      "type": "CHARGE",
      "unit_type": "PERCENT"
    },
    {
      "name": "C2",
      "price": "-5.0000",
      "type": "DISCOUNT",
      "unit_type": "PRICE"
    }
  ],
  "company_id": "00000000-0000-0000-0000-00000063c3e1",
  "due_datetime": "2020-01-30T00:00:00.000000Z",
  "items": [
    {
      "location_id": "00000000-0000-0000-0000-00000043d268",
      "price": "10.000000000",
      "product_id": "1844e1c0-6acf-41a5-88ba-741f0eb27325",
      "quantity": "1.000000000"
    }
  ],
  "location_id": "00000000-0000-0000-0000-00000043d268",
  "order_datetime": "2020-01-01T00:00:00.000000Z"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: d09d1ff91023d0000000000000000001-af368ec1b7f592bd-0
{
  "data": {
    "charges": [
      {
        "id": "ed2e64a4-f21c-408b-b7df-59ea18c15e9b",
        "name": "C1",
        "percent": "10.0000",
        "price": "1.00",
        "type": "CHARGE",
        "unit_type": "PERCENT"
      },
      {
        "id": "28b7e258-e826-4b18-9705-d4eedfbe975a",
        "name": "C2",
        "percent": null,
        "price": "-5.00",
        "type": "DISCOUNT",
        "unit_type": "PRICE"
      }
    ],
    "company": {
      "id": "00000000-0000-0000-0000-00000063c3e1",
      "name": "Company 2040",
      "updated_datetime": "2025-03-08T07:27:04.938159Z"
    },
    "due_datetime": "2020-01-30T00:00:00.000000Z",
    "id": "00000000-0000-0000-0000-00000003de32",
    "inserted_datetime": "2025-03-08T07:27:06.796301Z",
    "items": [
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d4e60",
          "name": "B1"
        },
        "compliance_quantity": null,
        "id": "6893c6f2-380a-4a50-a1bb-16d3365316da",
        "location": {
          "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
          "company_id": "00000000-0000-0000-0000-000000a96980",
          "id": "00000000-0000-0000-0000-00000043d268",
          "license_id": "00000000-0000-0000-0000-0000002b9cd1",
          "name": "Place 897"
        },
        "package": null,
        "price": "10.000000000",
        "price_base": "10.000000000",
        "product": {
          "id": "1844e1c0-6acf-41a5-88ba-741f0eb27325",
          "name": "P1",
          "sku": "SKU1",
          "updated_datetime": "2025-03-08T07:27:05.069356Z"
        },
        "quantity": "1.000000000",
        "received_quantity": "0.000000000"
      }
    ],
    "order_datetime": "2020-01-01T00:00:00.000000Z",
    "purchase_number": "PO-0000001",
    "status": "PENDING",
    "total": "6.00",
    "updated_datetime": "2025-03-08T07:27:07.402114Z"
  }
}

POST /public/v1/purchases updates a purchase

POST /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0NDIsImlhdCI6MTc0MTQxODg0MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNjQ2M2FmZGMtODVjOS00MjhhLTk2MDMtNmZkMWMwMWQ5MGM3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODQxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2Njc4MjgiLCJ0eXAiOiJhY2Nlc3MifQ.yL5R5Es00aY22iRD2G-0_Mmsj4Jrg017DzQG80kZzRc
{
  "billing_location_id": "00000000-0000-0000-0000-00000043d501",
  "charges": [
    {
      "name": "C1",
      "percent": "10.0000",
      "type": "CHARGE",
      "unit_type": "PERCENT"
    }
  ],
  "company_id": "00000000-0000-0000-0000-00000063c740",
  "due_datetime": "2020-01-20T00:00:00.000000Z",
  "items": [
    {
      "location_id": "00000000-0000-0000-0000-00000043d501",
      "price": "10.000000000",
      "product_id": "55e927d6-a2b6-42b8-8f43-a0aae71eeecf",
      "quantity": "1.000000000"
    }
  ],
  "location_id": "00000000-0000-0000-0000-00000043d501",
  "order_datetime": "2020-01-02T00:00:00.000000Z"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 9eec556b9333f8000000000000000001-d93abfeb0d32332b-0
{
  "data": {
    "charges": [
      {
        "id": "1a771471-84bb-4f2d-ac9e-2ec75913fb5f",
        "name": "C1",
        "percent": "10.0000",
        "price": "1.00",
        "type": "CHARGE",
        "unit_type": "PERCENT"
      }
    ],
    "company": {
      "id": "00000000-0000-0000-0000-00000063c740",
      "name": "Company 3324",
      "updated_datetime": "2025-03-08T07:27:22.879213Z"
    },
    "due_datetime": "2020-01-20T00:00:00.000000Z",
    "id": "00000000-0000-0000-0000-00000003de5c",
    "inserted_datetime": "2025-03-08T07:27:23.083586Z",
    "items": [
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d508f",
          "name": "B1"
        },
        "compliance_quantity": null,
        "id": "c931cf81-0bd3-45ed-825e-3c2ae8655e84",
        "location": {
          "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
          "company_id": "00000000-0000-0000-0000-000000a96e89",
          "id": "00000000-0000-0000-0000-00000043d501",
          "license_id": "00000000-0000-0000-0000-0000002b9e10",
          "name": "Place 1556"
        },
        "package": null,
        "price": "10.000000000",
        "price_base": "10.000000000",
        "product": {
          "id": "55e927d6-a2b6-42b8-8f43-a0aae71eeecf",
          "name": "P1",
          "sku": "SKU1",
          "updated_datetime": "2025-03-08T07:27:22.949014Z"
        },
        "quantity": "1.000000000",
        "received_quantity": "0.000000000"
      }
    ],
    "order_datetime": "2020-01-02T00:00:00.000000Z",
    "purchase_number": "PO-0000001",
    "status": "PENDING",
    "total": "11.00",
    "updated_datetime": "2025-03-08T07:27:23.106058Z"
  }
}

POST /public/v1/purchases updates a purchase

POST /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0NDIsImlhdCI6MTc0MTQxODg0MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNjQ2M2FmZGMtODVjOS00MjhhLTk2MDMtNmZkMWMwMWQ5MGM3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODQxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2Njc4MjgiLCJ0eXAiOiJhY2Nlc3MifQ.yL5R5Es00aY22iRD2G-0_Mmsj4Jrg017DzQG80kZzRc
{
  "billing_location_id": "00000000-0000-0000-0000-00000043d501",
  "charges": [
    {
      "id": "1a771471-84bb-4f2d-ac9e-2ec75913fb5f",
      "name": "C1",
      "percent": "10.0000",
      "type": "CHARGE",
      "unit_type": "PERCENT"
    },
    {
      "name": "C2",
      "percent": null,
      "price": "-5.00",
      "type": "DISCOUNT",
      "unit_type": "PRICE"
    }
  ],
  "company_id": "00000000-0000-0000-0000-00000063c740",
  "due_datetime": "2020-01-30T00:00:00.000000Z",
  "id": "00000000-0000-0000-0000-00000003de5c",
  "items": [
    {
      "id": "c931cf81-0bd3-45ed-825e-3c2ae8655e84",
      "location_id": "00000000-0000-0000-0000-00000043d501",
      "price": "10.000000000",
      "product_id": "55e927d6-a2b6-42b8-8f43-a0aae71eeecf",
      "quantity": "1.000000000"
    },
    {
      "batch_id": "00000000-0000-0000-0000-0000003d5094",
      "location_id": "00000000-0000-0000-0000-00000043d501",
      "price": "5.000000000",
      "product_id": "e8de457c-4a2f-4526-90ab-bdcf8e717d51",
      "quantity": "2.000000000"
    }
  ],
  "location_id": "00000000-0000-0000-0000-00000043d501",
  "order_datetime": "2020-01-01T00:00:00.000000Z"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 9eec556b9333f8000000000000000001-cdbef8fc942dc0d0-0
{
  "data": {
    "charges": [
      {
        "id": "1a771471-84bb-4f2d-ac9e-2ec75913fb5f",
        "name": "C1",
        "percent": "10.0000",
        "price": "2.00",
        "type": "CHARGE",
        "unit_type": "PERCENT"
      },
      {
        "id": "1db510a1-6297-4fc8-811f-35006cebd5fc",
        "name": "C2",
        "percent": null,
        "price": "-5.00",
        "type": "DISCOUNT",
        "unit_type": "PRICE"
      }
    ],
    "company": {
      "id": "00000000-0000-0000-0000-00000063c740",
      "name": "Company 3324",
      "updated_datetime": "2025-03-08T07:27:22.879213Z"
    },
    "due_datetime": "2020-01-30T00:00:00.000000Z",
    "id": "00000000-0000-0000-0000-00000003de5c",
    "inserted_datetime": "2025-03-08T07:27:23.083586Z",
    "items": [
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d5094",
          "name": "B2"
        },
        "compliance_quantity": null,
        "id": "54da2a65-b3ce-4e58-bd53-0089a46ddb0e",
        "location": {
          "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
          "company_id": "00000000-0000-0000-0000-000000a96e89",
          "id": "00000000-0000-0000-0000-00000043d501",
          "license_id": "00000000-0000-0000-0000-0000002b9e10",
          "name": "Place 1556"
        },
        "package": null,
        "price": "5.000000000",
        "price_base": "5.000000000",
        "product": {
          "id": "e8de457c-4a2f-4526-90ab-bdcf8e717d51",
          "name": "P2",
          "sku": "SKU2",
          "updated_datetime": "2025-03-08T07:27:23.031773Z"
        },
        "quantity": "2.000000000",
        "received_quantity": "0.000000000"
      },
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d508f",
          "name": "B1"
        },
        "compliance_quantity": null,
        "id": "c931cf81-0bd3-45ed-825e-3c2ae8655e84",
        "location": {
          "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
          "company_id": "00000000-0000-0000-0000-000000a96e89",
          "id": "00000000-0000-0000-0000-00000043d501",
          "license_id": "00000000-0000-0000-0000-0000002b9e10",
          "name": "Place 1556"
        },
        "package": null,
        "price": "10.000000000",
        "price_base": "10.000000000",
        "product": {
          "id": "55e927d6-a2b6-42b8-8f43-a0aae71eeecf",
          "name": "P1",
          "sku": "SKU1",
          "updated_datetime": "2025-03-08T07:27:22.949014Z"
        },
        "quantity": "1.000000000",
        "received_quantity": "0.000000000"
      }
    ],
    "order_datetime": "2020-01-01T00:00:00.000000Z",
    "purchase_number": "PO-0000001",
    "status": "PENDING",
    "total": "17.00",
    "updated_datetime": "2025-03-08T07:27:23.469815Z"
  }
}

POST /public/v1/purchases updating a purchase removes line items that aren't included in the payload

POST /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0NDcsImlhdCI6MTc0MTQxODg0NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzA4ZmY2ZGItOTAwYS00MDZiLTg0YmItYjAxMGYwOTA0ZTdiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODQ2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2NjgzNTEiLCJ0eXAiOiJhY2Nlc3MifQ.bIAlhkEVhUst_eZrIqoL8v8iBqDyvyPwKjgRx0qd0LI
{
  "billing_location_id": "00000000-0000-0000-0000-00000043d5b6",
  "company_id": "00000000-0000-0000-0000-00000063c847",
  "due_datetime": "2020-01-20T00:00:00.000000Z",
  "items": [
    {
      "location_id": "00000000-0000-0000-0000-00000043d5b6",
      "price": "10",
      "product_id": "6bc1e345-ae56-49d9-8051-c9d8881fa9f6",
      "quantity": "1"
    }
  ],
  "location_id": "00000000-0000-0000-0000-00000043d5b6",
  "order_datetime": "2020-01-02T00:00:00.000000Z"
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: aeb06cee2741e8000000000000000001-99581a8045759d04-0
{
  "data": {
    "charges": [],
    "company": {
      "id": "00000000-0000-0000-0000-00000063c847",
      "name": "Company 3696",
      "updated_datetime": "2025-03-08T07:27:27.620039Z"
    },
    "due_datetime": "2020-01-20T00:00:00.000000Z",
    "id": "00000000-0000-0000-0000-00000003de6e",
    "inserted_datetime": "2025-03-08T07:27:27.763266Z",
    "items": [
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d5144",
          "name": "B4408"
        },
        "compliance_quantity": null,
        "id": "905a9fc1-fd76-49ba-828d-e4c7a36eddce",
        "location": {
          "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
          "company_id": "00000000-0000-0000-0000-000000a96fff",
          "id": "00000000-0000-0000-0000-00000043d5b6",
          "license_id": "00000000-0000-0000-0000-0000002b9e52",
          "name": "Place 1730"
        },
        "package": null,
        "price": "10.000000000",
        "price_base": "10.000000000",
        "product": {
          "id": "6bc1e345-ae56-49d9-8051-c9d8881fa9f6",
          "name": "Product 4401",
          "sku": "sku 4402",
          "updated_datetime": "2025-03-08T07:27:27.695246Z"
        },
        "quantity": "1.000000000",
        "received_quantity": "0.000000000"
      }
    ],
    "order_datetime": "2020-01-02T00:00:00.000000Z",
    "purchase_number": "PO-0000001",
    "status": "PENDING",
    "total": "10.00",
    "updated_datetime": "2025-03-08T07:27:27.763266Z"
  }
}

POST /public/v1/purchases updating a purchase removes line items that aren't included in the payload

POST /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0NDcsImlhdCI6MTc0MTQxODg0NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzA4ZmY2ZGItOTAwYS00MDZiLTg0YmItYjAxMGYwOTA0ZTdiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODQ2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2NjgzNTEiLCJ0eXAiOiJhY2Nlc3MifQ.bIAlhkEVhUst_eZrIqoL8v8iBqDyvyPwKjgRx0qd0LI
{
  "company_id": "00000000-0000-0000-0000-00000063c847",
  "id": "00000000-0000-0000-0000-00000003de6e",
  "items": [
    {
      "location_id": "00000000-0000-0000-0000-00000043d5b6",
      "price": "2",
      "product_id": "6bc1e345-ae56-49d9-8051-c9d8881fa9f6",
      "quantity": "1"
    }
  ]
}

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: aeb06cee2741e8000000000000000001-7c22e03576ca95b5-0
{
  "data": {
    "charges": [],
    "company": {
      "id": "00000000-0000-0000-0000-00000063c847",
      "name": "Company 3696",
      "updated_datetime": "2025-03-08T07:27:27.620039Z"
    },
    "due_datetime": "2020-01-20T00:00:00.000000Z",
    "id": "00000000-0000-0000-0000-00000003de6e",
    "inserted_datetime": "2025-03-08T07:27:27.763266Z",
    "items": [
      {
        "batch": {
          "batch_number": null,
          "id": "00000000-0000-0000-0000-0000003d5144",
          "name": "B4408"
        },
        "compliance_quantity": null,
        "id": "64be966f-8759-4434-b01a-8d198cdcb8fe",
        "location": {
          "address": "123 Fake Street, Beverly Hills, CA 88888, USA",
          "company_id": "00000000-0000-0000-0000-000000a96fff",
          "id": "00000000-0000-0000-0000-00000043d5b6",
          "license_id": "00000000-0000-0000-0000-0000002b9e52",
          "name": "Place 1730"
        },
        "package": null,
        "price": "2.000000000",
        "price_base": "2.000000000",
        "product": {
          "id": "6bc1e345-ae56-49d9-8051-c9d8881fa9f6",
          "name": "Product 4401",
          "sku": "sku 4402",
          "updated_datetime": "2025-03-08T07:27:27.695246Z"
        },
        "quantity": "1.000000000",
        "received_quantity": "0.000000000"
      }
    ],
    "order_datetime": "2020-01-02T00:00:00.000000Z",
    "purchase_number": "PO-0000001",
    "status": "PENDING",
    "total": "2.00",
    "updated_datetime": "2025-03-08T07:27:27.983106Z"
  }
}

POST /public/v1/purchases does not update a purchase that has moved beyond Pending status

POST /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0NDEsImlhdCI6MTc0MTQxODg0MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNjZmMmMzYjEtMTE1Zi00NjA4LWJiZjMtM2ZmMzhhOGUxZDczIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODQwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2Njc2MzIiLCJ0eXAiOiJhY2Nlc3MifQ.7TrpwbdUNoKgK3paggpuKihiYCE_jj324K5IpnzN2FM
{
  "billing_location_id": "00000000-0000-0000-0000-00000043d4be",
  "charges": [],
  "company_id": "00000000-0000-0000-0000-00000063c6f1",
  "due_datetime": "2020-01-30T00:00:00.000000Z",
  "id": "00000000-0000-0000-0000-00000003de54",
  "items": [
    {
      "batch_id": "00000000-0000-0000-0000-0000003d5062",
      "id": "0d3839ad-df8e-4146-9647-dbe544fc889d",
      "location_id": "00000000-0000-0000-0000-00000043d4be",
      "price": "10.000000000",
      "product_id": "e6d24e21-629c-4a63-afe4-ce734a0a0cf3",
      "quantity": "1.000000000"
    }
  ],
  "location_id": "00000000-0000-0000-0000-00000043d4be",
  "order_datetime": "2020-01-01T00:00:00.000000Z"
}

Response

400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: d861974ea23678000000000000000001-643b755928011ffb-0
{
  "errors": [
    {
      "context": {},
      "message": "Cannot change this PO through the Distru API because it's beyond Pending status",
      "pointer": ["status"],
      "section": "body"
    }
  ]
}

POST /public/v1/purchases does not create a purchase with a company relationship that belongs to another company

POST /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0MzMsImlhdCI6MTc0MTQxODgzMywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTExYjRkYjAtYmE4ZC00NGMzLWFkYjItNzkxMTc2M2EwMjE4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODMyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2NjY3MjAiLCJ0eXAiOiJhY2Nlc3MifQ.RlBRyTFVx2wi05QsKYrQdJeSnZXW6cKiPPMdBPeIdHk
{
  "billing_location_id": "00000000-0000-0000-0000-00000043d37f",
  "charges": [],
  "company_id": "00000000-0000-0000-0000-00000063c555",
  "due_datetime": "2020-01-30T00:00:00.000000Z",
  "items": [
    {
      "location_id": "00000000-0000-0000-0000-00000043d37f",
      "price": "10.000000000",
      "product_id": "78ff3c8c-ffda-4896-8071-5c233d6ce0f2",
      "quantity": "1.000000000"
    }
  ],
  "location_id": "00000000-0000-0000-0000-00000043d37f",
  "order_datetime": "2020-01-01T00:00:00.000000Z"
}

Response

400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 9afb3d4fd831e0000000000000000001-50f45e5a1c55c439-0
{
  "errors": [
    {
      "context": {},
      "message": "The provided supplier does not exist",
      "pointer": ["company_id"],
      "section": "body"
    }
  ]
}

POST /public/v1/purchases does not create a purchase with a product that belongs to another company

POST /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0MzAsImlhdCI6MTc0MTQxODgzMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjVhZGU4YzQtYTg0My00MWQ4LWJiMjMtNTQ0OTdiYzA5NjM0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODI5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2NjY0NzciLCJ0eXAiOiJhY2Nlc3MifQ.5COrjjSxp9-YLO9ZRa6XE2QgMvcp5JK99aN4P0pVcE0
{
  "billing_location_id": "00000000-0000-0000-0000-00000043d320",
  "charges": [],
  "company_id": "00000000-0000-0000-0000-00000063c4e9",
  "due_datetime": "2020-01-30T00:00:00.000000Z",
  "items": [
    {
      "location_id": "00000000-0000-0000-0000-00000043d320",
      "price": "10.000000000",
      "product_id": "afcabcd4-fb60-44c3-bbb5-177313516466",
      "quantity": "1.000000000"
    }
  ],
  "location_id": "00000000-0000-0000-0000-00000043d320",
  "order_datetime": "2020-01-01T00:00:00.000000Z"
}

Response

400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 9f09a714832578000000000000000001-a305a40cf005b63a-0
{
  "errors": [
    {
      "context": {
        "id": "dad9be17-9ce6-45bd-8d66-4f84431d5d7b"
      },
      "message": "This record does not belong to your company.",
      "pointer": ["items", 0, "product_id"],
      "section": "body"
    }
  ]
}

POST /public/v1/purchases does not create a purchase with a batch that belongs to another company

POST /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0NDksImlhdCI6MTc0MTQxODg0OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDg5MjllYjgtMzBhOS00Yjk5LTk2ZWItZTIxYTI1OWZkNTM1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODQ4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2Njg1MzAiLCJ0eXAiOiJhY2Nlc3MifQ.eEO-Y9lsZq5V1CElFH-oeuJfmSrnqhHGmOV9sBmt31I
{
  "billing_location_id": "00000000-0000-0000-0000-00000043d5e5",
  "charges": [],
  "company_id": "00000000-0000-0000-0000-00000063c894",
  "due_datetime": "2020-01-30T00:00:00.000000Z",
  "items": [
    {
      "batch_id": "00000000-0000-0000-0000-0000003d5171",
      "location_id": "00000000-0000-0000-0000-00000043d5e5",
      "price": "10.000000000",
      "quantity": "1.000000000"
    }
  ],
  "location_id": "00000000-0000-0000-0000-00000043d5e5",
  "order_datetime": "2020-01-01T00:00:00.000000Z"
}

Response

400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 22748312097f40000000000000000001-a796e708dec4b24b-0
{
  "errors": [
    {
      "context": {
        "id": "c928707d-c9d0-4140-ba8f-ea19fca0972c"
      },
      "message": "This record does not belong to your company.",
      "pointer": ["items", 0, "product_id"],
      "section": "body"
    }
  ]
}

POST /public/v1/purchases does not create a purchase with a location that belongs to another company

POST /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0NDIsImlhdCI6MTc0MTQxODg0MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMWM2MjVjMjUtZmUzNS00OGQxLWIzZDYtYmI5OGNkYTc1Mzc4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODQxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2Njc2OTMiLCJ0eXAiOiJhY2Nlc3MifQ.ZsflAoXqWbklV43TqNocn7EdUP1M1eTf-sNYJvYTbOo
{
  "billing_location_id": "00000000-0000-0000-0000-00000043d4cc",
  "charges": [],
  "company_id": "00000000-0000-0000-0000-00000063c700",
  "due_datetime": "2020-01-30T00:00:00.000000Z",
  "items": [
    {
      "location_id": "00000000-0000-0000-0000-00000043d4cf",
      "price": "10.000000000",
      "product_id": "4d57a89b-bced-45be-a33a-858ea04c9aef",
      "quantity": "1.000000000"
    }
  ],
  "location_id": "00000000-0000-0000-0000-00000043d4cf",
  "order_datetime": "2020-01-01T00:00:00.000000Z"
}

Response

400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: d0909ef4b4db78000000000000000001-9a2c7391bc77c5be-0
{
  "errors": [
    {
      "context": {
        "id": "9f46fe65-fc40-4f7b-82b2-401b08bff282"
      },
      "message": "This record does not belong to your company.",
      "pointer": ["items", 0, "location_id"],
      "section": "body"
    }
  ]
}

POST /public/v1/purchases does not create a purchase with a location different from the order items

POST /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0MzksImlhdCI6MTc0MTQxODgzOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYTY5ZjE1MjItNzE1Mi00MmM4LWEyNTktODJlZjU2MTQ3YmQ5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODM4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2Njc0MTMiLCJ0eXAiOiJhY2Nlc3MifQ.FUwGYQcNXGGmTFmlUH2iIweqLrW14xplu1ta131tdkc
{
  "billing_location_id": "00000000-0000-0000-0000-00000043d471",
  "charges": [],
  "company_id": "00000000-0000-0000-0000-00000063c693",
  "due_datetime": "2020-01-30T00:00:00.000000Z",
  "items": [
    {
      "location_id": "00000000-0000-0000-0000-00000043d471",
      "price": "10.000000000",
      "product_id": "c80c30f2-3fbf-4242-a499-6f5cf07cee17",
      "quantity": "1.000000000"
    }
  ],
  "location_id": "00000000-0000-0000-0000-00000043d475",
  "order_datetime": "2020-01-01T00:00:00.000000Z"
}

Response

400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 3fa37267490026000000000000000001-16d70f9c05879a87-0
{
  "errors": [
    {
      "context": {
        "id": "fffefabd-7f7e-408f-a202-8ff523b2cec7"
      },
      "message": "Purchase item delivery location must be the same as purchase delivery location.",
      "pointer": ["items", 0, "location_id"],
      "section": "body"
    }
  ]
}

POST /public/v1/purchases does not create a purchase with a billing location that belongs to another company

POST /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0NDAsImlhdCI6MTc0MTQxODg0MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTgxMGQ5NjAtYWMyNy00ZTk0LTkzMWYtNjI4ODc1NWJiMjJkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODM5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2Njc0NjQiLCJ0eXAiOiJhY2Nlc3MifQ.zlGvqY3lK6v7-xhHQ4whaOIAR7b-xSwOVPegisn480s
{
  "billing_location_id": "00000000-0000-0000-0000-00000043d485",
  "charges": [],
  "company_id": "00000000-0000-0000-0000-00000063c6a5",
  "due_datetime": "2020-01-30T00:00:00.000000Z",
  "items": [
    {
      "location_id": "00000000-0000-0000-0000-00000043d483",
      "price": "10.000000000",
      "product_id": "ad9e455d-aeaf-4217-befb-0979bb6c160b",
      "quantity": "1.000000000"
    }
  ],
  "location_id": "00000000-0000-0000-0000-00000043d483",
  "order_datetime": "2020-01-01T00:00:00.000000Z"
}

Response

400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: bc6c4fd5bd3a38000000000000000001-7091abb6e615f65a-0
{
  "errors": [
    {
      "context": {},
      "message": "The provided billing address does not exist",
      "pointer": ["billing_location_id"],
      "section": "body"
    }
  ]
}

Upsert a single purchase order. To update an existing purchase order, pass in an existing purchase order ID in the id field. When updating a purchase order, you must pass in all fields (no sparse update currently supported). Any existing order item or charge you do not pass in to items and charges respectively will be deleted

Request

POST /public/v1/purchases

Parameters

Parameter Description In Type Required Default Example
id Unique ID for this purchase order. If it exists, an update will be performed; otherwise, it will be used as the ID of a new purchase order record query string false
description A description of the purchase order query string false
location_id The location into which the inventory in this purchase will be received query string false
billing_location_id The billing address for this purchase order query string false
company_id The company that is the supplier for this purchase order query string false
order_datetime The datetime on which the purchase order was placed query string false
due_datetime The datetime by which the purchase order should be paid query string false
charges The additional lines of Charge, Discount, or Tax added to this purchase order body PurchaseChargesRequest false
items The items present on this purchase order body PurchaseItemsRequest false
billing_location_id The billing location's ID query string false

Responses

Status Description Schema
200 A single purchase orders Purchase

Strain

Get strains

GET /public/v1/strains returns strains related to the company

GET /public/v1/strains
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg1OTEsImlhdCI6MTc0MTQxODk5MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjVkYWY2YjUtYjhiNS00ZTBkLWE3NWYtMTVmNzM2YmY3M2NhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4OTkwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2ODkxMjkiLCJ0eXAiOiJhY2Nlc3MifQ.2jfVlqhUfzaATaOFnGLNNiG4LpyPTHjdM911_5BpGwE

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: c8a00f3e4edbe8000000000000000001-b46f14812cf1d19c-0
{
  "data": [
    {
      "id": "00000000-0000-0000-0000-00000001bc5b",
      "name": "Strain 264"
    },
    {
      "id": "00000000-0000-0000-0000-00000001bc5c",
      "name": "Strain 265"
    }
  ]
}

Get strains filtered by various attributes

Note: The page size for this endpoint is 50k strains per page.

Request

GET /public/v1/strains

Parameters

Parameter Description In Type Required Default Example
inserted_datetime Filter strains by their creation datetime query string false 2022-07-10T00:00:00Z,
page Pagination information body Page false
updated_datetime Filter strains by the datetime they were most recently modified query string false ,2022-07-10T00:00:00Z

Responses

Status Description Schema
200 A list of strains Strains

User

Get users

GET /public/v1/users returns users related to the company

GET /public/v1/users
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3NzI4Njg0OTIsImlhdCI6MTc0MTQxODg5MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiODhkOGQwYjQtYTA1OS00MjIzLWI4NmMtMjkzNDVlOGJlMTY3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzQxNDE4ODkxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQ2NzM0OTAiLCJ0eXAiOiJhY2Nlc3MifQ.6YLhp3dUqJhi_WeXE7gaSuaYnWX6fWAh5wLrAX6UK6Q

Response

200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 88d62aeb663490000000000000000001-9126b18f896bd103-0
{
  "data": [
    {
      "banned": false,
      "email": "owner-10738@example.com",
      "full_name": "FirstName21121 LastName21122",
      "id": "00000000-0000-0000-0000-000000dfe652",
      "role": {
        "id": "00000000-0000-0000-0000-000000de75ad",
        "name": "Admin 10573"
      }
    },
    {
      "banned": false,
      "email": "owner-10745@example.com",
      "full_name": "FirstName21133 LastName21136",
      "id": "00000000-0000-0000-0000-000000dfe659",
      "role": {
        "id": "00000000-0000-0000-0000-000000de75b4",
        "name": "Admin 10580"
      }
    }
  ]
}

Get users sorted by their creation date and filtered by various attributes

Note: The page size for this endpoint is 1000 users per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.

Request

GET /public/v1/users

Parameters

Parameter Description In Type Required Default Example
inserted_datetime Filter users by their creation datetime query string false 2022-07-10T00:00:00Z,
page Pagination information body Page false
updated_datetime Filter users by the datetime they were most recently modified query string false ,2022-07-10T00:00:00Z

Responses

Status Description Schema
200 A list of users Users

Changelog

2024-10-2

2024-11-6

2024-12-24

2024-12-26

2025-01-08

2025-01-15

2025-01-17

2025-01-31

2025-02-26

2025-03-05