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.
- Integrate your supply chain with the rest of your business Build your own custom connectors that support your most important workflows.
- Extend your reports Take data from Distru and pipe it into other systems for a unified view of your business.
- Maximize your efficiency Automate tasks based on changes in your distribution, manufacturing, and sales.
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:
- Log in to Distru with your admin account.
- Navigate to the Settings page from the left menu.
- Click on Distru API under the Integrations section.
- 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 |
StockAdjustments
A collection of Stock Adjustments
Property | Description | Type | Required |
---|
Product
A product as shown in Distru
{
"brand": {
"name": "Brand 123"
},
"category": {
"id": "89c8323f-aaaa-45v3-88f9-64009d68h3n8",
"name": "Super Dank Buds"
},
"external_name": "Blue Dream Preroll",
"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 |
custom_data | The custom data for this product | array(CustomField) | false |
description | The description of this product | string | false |
description_markdown | The description of this product in markdown format | string | false |
external_name | Customer-facing name for DistruCommerce menus and Order Tracker | 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 |
total_cost_actual | The total actual cost of the additional cost | number | false |
total_cost_default | The total default cost (from the configured cost type) 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 |
custom_data | The custom data for this assembly | array(CustomField) | 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 |
returned_quantity | Quantity returned on this invoice item. This is the sum of all return items associated with this invoice item allocated proportionally based on the quantity |
of the invoice item relative to its associated order item. For example, if an invoice item with a quantity of 1 has an order item with a quantity of 2, and a return item with a quantity of 2, the returned_quantity would be 1, calculated as (1 ÷ 2) × 2. |number|false| |total_cost_actual|Total cost of the non-returned quantity in this order item, in other words, this is the total cost of order_item.quantity minus order_item.returned quantity. The cost is allocated proportionally based on the quantity of the invoice item relative to its associated order item. For example, if an invoice item with a quantity of 1 has an order item with a quantity of 2 and a total cost of $10, the total_cost_actual would be $5, calculated as (1 ÷ 2) × $10. |number|false| |total_cost_default|Default cost of the non-returned quantity in this order item, in other words, this is the default cost of order_item.quantity minus order_item.returned quantity. The cost is allocated proportionally based on the quantity of the invoice item relative to its associated order item. For example, if an invoice item with a quantity of 1 has an order item with a quantity of 2 and a total cost of $10, the total_cost_default would be $5, calculated as (1 ÷ 2) × $10. |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 |
TestResults
A collection of Test Results
Property | Description | Type | Required |
---|
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 |
---|
FileAttachment
A file attachment
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 |
CustomField
A custom field as shown in Distru
{
"id": "12345",
"name": "Custom Field 1",
"value": "Custom Field Value 1"
}
Property | Description | Type | Required |
---|---|---|---|
id | Unique ID for this custom field | string | false |
name | The name of this custom field | string | false |
value | The value of the custom field in the context of the object it's associated with | string | false |
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 |
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 |
AdditionalTestResult
An additional test result object for a test result as shown in Distru
Property | Description | Type | Required |
---|---|---|---|
chlorfenapyr_ug_per_g | Pesticide | string | false |
dimethoxyethane_ug_per_g | Solvent | string | false |
etofenprox_ug_per_g | Pesticide | string | false |
formic_acid_ug_per_g | Other | string | false |
cbda_percentage | Cannabinoid | string | false |
methylcyclohexane_ug_per_g | Solvent | string | false |
cadmium_ug_per_g | Heavy Metal | string | false |
cbl_percentage | Cannabinoid | string | false |
daminozide_ug_per_g | Pesticide | string | false |
other_pesticides_ug_per_g | Pesticide | string | false |
diazinon_ug_per_g | Pesticide | string | false |
cannabinoids_mg_per_unit_total | Cannabinoid | string | false |
methiocarb_ug_per_g | Pesticide | string | false |
water_activity_aw | Water Activity | string | false |
cbt_percentage | Cannabinoid | string | false |
camphor_mg_per_unit | Terpene | string | false |
hexythiazox_ug_per_g | Pesticide | string | false |
linalool_mg_per_unit | Terpene | string | false |
ethoprophos_ug_per_g | Pesticide | string | false |
other_microbials_cfu_per_g | Microbial | string | false |
cbt_mg_per_unit | Cannabinoid | string | false |
ethylene_oxide_ug_per_g | Solvent | string | false |
thcva_percentage | Cannabinoid | string | false |
carbaryl_ug_per_g | Pesticide | string | false |
acetone_ug_per_g | Solvent | string | false |
ocimene_percentage | Terpene | string | false |
nickel_ug_per_g | Heavy Metal | string | false |
imidacloprid_ug_per_g | Pesticide | string | false |
acetic_acid_ug_per_g | Other | string | false |
beta_humulene_mg_per_unit | Terpene | string | false |
cypermethrin_ug_per_g | Pesticide | string | false |
pyrethrins_pyrethrin_ii_ug_per_g | Pesticide | string | false |
camphene_percentage | Terpene | string | false |
methoxybenzene_ug_per_g | Solvent | string | false |
limonene_percentage | Terpene | string | false |
nerolidol_percentage | Terpene | string | false |
fenchol_percentage | Terpene | string | false |
flonicamid_ug_per_g | Pesticide | string | false |
alpha_cyfluthrin_ug_per_g | Pesticide | string | false |
spinetoram_l_ug_per_g | Pesticide | string | false |
clothianidin_ug_per_g | Pesticide | string | false |
sabinene_percentage | Terpene | string | false |
chlormequat_chloride_ug_per_g | Other | string | false |
aflatoxins_ug_per_kg | Mycotoxin | string | false |
ethanol_ug_per_g | Solvent | string | false |
permethrin_trans_ug_per_g | Pesticide | string | false |
ethyl_acetate_ug_per_g | Solvent | string | false |
salmonella_cfu_per_g | Microbial | string | false |
valencene_percentage | Terpene | string | false |
beta_pinene_percentage | Terpene | string | false |
caryophyllene_oxide_mg_per_unit | Terpene | string | false |
pyridaben_ug_per_g | Pesticide | string | false |
beta_caryophyllene_percentage | Terpene | string | false |
oxamyl_ug_per_g | Pesticide | string | false |
methyl_butanol_ug_per_g | Solvent | string | false |
fenpyroximate_ug_per_g | Pesticide | string | false |
delta_8_thc_mg_per_unit | Cannabinoid | string | false |
cymene_percentage | Terpene | string | false |
caryophyllene_oxide_percentage | Terpene | string | false |
bifenthrin_ug_per_g | Pesticide | string | false |
methomyl_ug_per_g | Pesticide | string | false |
isopropyl_acetate_ug_per_g | Solvent | string | false |
alpha_myrcene_mg_per_unit | Terpene | string | false |
beta_cypermethrin_ug_per_g | Pesticide | string | false |
terpinolene_percentage | Terpene | string | false |
tert_butyl_methyl_ether_ug_per_g | Solvent | string | false |
acetic_acid_percentage | Other | string | false |
borneol_mg_per_unit | Terpene | string | false |
mercury_ug_per_g | Heavy Metal | string | false |
aflatoxin_g1_ug_per_kg | Mycotoxin | string | false |
linalool_percentage | Terpene | string | false |
pyrethrins_ug_per_g | Pesticide | string | false |
beta_myrcene_mg_per_unit | Terpene | string | false |
terpenes_percentage_total | Terpene | string | false |
aflatoxin_b1_ug_per_kg | Mycotoxin | string | false |
dimethyl_sulfoxide_ug_per_g | Solvent | string | false |
naled_ug_per_g | Pesticide | string | false |
spirotetramat_ug_per_g | Pesticide | string | false |
boscalid_ug_per_g | Pesticide | string | false |
geraniol_percentage | Terpene | string | false |
cbc_mg_per_unit | Cannabinoid | string | false |
butane_ug_per_g | Solvent | string | false |
cumene_ug_per_g | Solvent | string | false |
dimethomorph_ug_per_g | Pesticide | string | false |
piperonylbutoxide_ug_per_g | Pesticide | string | false |
moisture_percentage | Moisture | string | false |
cbn_percentage | Cannabinoid | string | false |
prallethrin_trans_ug_per_g | Pesticide | string | false |
aspergillus_cfu_per_g | Microbial | string | false |
lead_ug_per_g | Heavy Metal | string | false |
ancymidol_ug_per_g | Pesticide | string | false |
acephate_ug_per_g | Pesticide | string | false |
dimethylformamide_ug_per_g | Solvent | string | false |
candida_albicans_cfu_per_g | Microbial | string | false |
nitromethane_ug_per_g | Solvent | string | false |
pyrethrins_cinerin_i_ug_per_g | Pesticide | string | false |
mevinphos_ii_ug_per_g | Pesticide | string | false |
kresoxim_methyl_ug_per_g | Pesticide | string | false |
spinetoram_j_ug_per_g | Pesticide | string | false |
cyclohexane_ug_per_g | Solvent | string | false |
alpha_phellandrene_percentage | Terpene | string | false |
chloroform_ug_per_g | Solvent | string | false |
beta_cyfluthrin_ug_per_g | Pesticide | string | false |
borneol_percentage | Terpene | string | false |
propyl_acetate_ug_per_g | Solvent | string | false |
cyfluthrin_ug_per_g | Pesticide | string | false |
fenhexamid_ug_per_g | Pesticide | string | false |
cbdv_mg_per_unit | Cannabinoid | string | false |
alpha_humulene_percentage | Terpene | string | false |
pentachloronitrobenzene_ug_per_g | Pesticide | string | false |
xylene_ug_per_g_total | Solvent | string | false |
tebuconazole_ug_per_g | Pesticide | string | false |
propiconazole_cis_ug_per_g | Pesticide | string | false |
butanol_ug_per_g | Solvent | string | false |
fenoxycarb_ug_per_g | Pesticide | string | false |
antimony_ug_per_g | Heavy Metal | string | false |
alpha_cypermethrin_ug_per_g | Pesticide | string | false |
chromium_ug_per_g | Heavy Metal | string | false |
zinc_ug_per_g | Heavy Metal | string | false |
heptane_ug_per_g | Solvent | string | false |
spiromesifen_ug_per_g | Pesticide | string | false |
thca_percentage | Cannabinoid | string | false |
spiroxamine_ug_per_g | Pesticide | string | false |
nerolidol_mg_per_unit | Terpene | string | false |
tetrahydrofuran_ug_per_g | Solvent | string | false |
chlordane_cis_ug_per_g | Pesticide | string | false |
propanol_ug_per_g | Solvent | string | false |
yeast_cfu_per_g | Microbial | string | false |
beta_caryophyllene_mg_per_unit | Terpene | string | false |
enterobacteriacaea_cfu_per_g | Microbial | string | false |
dimethoate_ug_per_g | Pesticide | string | false |
pulegone_percentage | Terpene | string | false |
vitamin_e_acetate_percentage | Other | string | false |
pentanol_ug_per_g | Solvent | string | false |
formic_acid_percentage | Other | string | false |
isopulegol_percentage | Terpene | string | false |
other_terpenes_mg_per_unit | Terpene | string | false |
gamma_terpinene_percentage | Terpene | string | false |
spinosad_d_ug_per_g | Pesticide | string | false |
l_monocytogenes_cfu_per_g | Microbial | string | false |
thiabendazole_ug_per_g | Pesticide | string | false |
formamide_ug_per_g | Pesticide | string | false |
ethyl_formate_percentage | Other | string | false |
ethylene_glycol_ug_per_g | Other | string | false |
methyl_propanol_ug_per_g | Solvent | string | false |
eucalyptol_percentage | Terpene | string | false |
alpha_myrcene_percentage | Terpene | string | false |
thca_mg_per_unit | Cannabinoid | string | false |
cbg_percentage | Cannabinoid | string | false |
ethylene_glycol_percentage | Other | string | false |
copper_ug_per_g | Heavy Metal | string | false |
mold_cfu_per_g | Microbial | string | false |
phytol_mg_per_unit | Terpene | string | false |
thcv_percentage | Cannabinoid | string | false |
phosmet_ug_per_g | Pesticide | string | false |
trifloxystrobin_ug_per_g | Pesticide | string | false |
dichloromethane_ug_per_g | Solvent | string | false |
thcv_mg_per_unit | Cannabinoid | string | false |
delta_8_thc_percentage | Cannabinoid | string | false |
fenchol_mg_per_unit | Terpene | string | false |
bifenazate_ug_per_g | Pesticide | string | false |
cannabinoids_percentage_total | Cannabinoid | string | false |
eucalyptol_mg_per_unit | Terpene | string | false |
cbdv_percentage | Cannabinoid | string | false |
dichloroethane_ug_per_g | Solvent | string | false |
propiconazole_ug_per_g | Pesticide | string | false |
paclobutrazol_ug_per_g | Pesticide | string | false |
cbl_mg_per_unit | Cannabinoid | string | false |
delta_3_carene_percentage | Terpene | string | false |
myclobutanil_ug_per_g | Pesticide | string | false |
dichlorvos_ug_per_g | Pesticide | string | false |
pulegone_mg_per_unit | Terpene | string | false |
butyl_acetate_ug_per_g | Solvent | string | false |
aflatoxin_b2_ug_per_kg | Mycotoxin | string | false |
isopulegol_mg_per_unit | Terpene | string | false |
trichloroethylene_ug_per_g | Solvent | string | false |
sulfolane_ug_per_g | Solvent | string | false |
benzene_ug_per_g | Solvent | string | false |
terpineol_mg_per_unit | Terpene | string | false |
guaiol_percentage | Terpene | string | false |
acetonitrile_ug_per_g | Solvent | string | false |
chlordane_trans_ug_per_g | Pesticide | string | false |
camphene_mg_per_unit | Terpene | string | false |
alpha_humulene_mg_per_unit | Terpene | string | false |
isopropanol_ug_per_g | Solvent | string | false |
spinetoram_ug_per_g | Pesticide | string | false |
chlorpyrifos_ug_per_g | Pesticide | string | false |
permethrin_cis_ug_per_g | Pesticide | string | false |
methyl_butyl_ketone_ug_per_g | Solvent | string | false |
aspergillus_terreus_cfu_per_g | Microbial | string | false |
aflatoxin_g2_ug_per_kg | Mycotoxin | string | false |
metalaxyl_ug_per_g | Pesticide | string | false |
alpha_terpinene_mg_per_unit | Terpene | string | false |
spiroxamine_b_ug_per_g | Pesticide | string | false |
dimethomorph_e_ug_per_g | Pesticide | string | false |
tetralin_ug_per_g | Solvent | string | false |
n_methylpyrrolidone_ug_per_g | Solvent | string | false |
ethyl_formate_ug_per_g | Other | string | false |
dinotefuran_ug_per_g | Pesticide | string | false |
methanol_ug_per_g | Solvent | string | false |
dimethylacetamide_ug_per_g | Solvent | string | false |
fipronil_ug_per_g | Pesticide | string | false |
flurprimidol_ug_per_g | Pesticide | string | false |
dimethomorph_z_ug_per_g | Pesticide | string | false |
m_and_p_xylene_ug_per_g | Solvent | string | false |
sand_and_soil_and_cinders_and_dirt_percentage | Other | string | false |
terpineol_percentage | Terpene | string | false |
imazalil_ug_per_g | Pesticide | string | false |
filth_and_foreign_material_percentage | Other | string | false |
ethyl_ether_ug_per_g | Solvent | string | false |
alpha_bisabolol_percentage | Terpene | string | false |
acequinocyl_ug_per_g | Pesticide | string | false |
cbda_mg_per_unit | Cannabinoid | string | false |
permethrin_ug_per_g | Pesticide | string | false |
cymene_mg_per_unit | Terpene | string | false |
azoxystrobin_ug_per_g | Pesticide | string | false |
malathion_ug_per_g | Pesticide | string | false |
gamma_terpinene_mg_per_unit | Terpene | string | false |
methyl_parathion_ug_per_g | Pesticide | string | false |
clofentezine_ug_per_g | Pesticide | string | false |
alpha_pinene_percentage | Terpene | string | false |
terpenes_mg_per_unit_total | Terpene | string | false |
alpha_terpinene_percentage | Terpene | string | false |
coumaphos_ug_per_g | Pesticide | string | false |
acetamiprid_ug_per_g | Pesticide | string | false |
ocimene_mg_per_unit | Terpene | string | false |
ethephon_ug_per_g | Pesticide | string | false |
geraniol_mg_per_unit | Terpene | string | false |
cbc_percentage | Cannabinoid | string | false |
pyriproxyfen_ug_per_g | Pesticide | string | false |
cbga_mg_per_unit | Cannabinoid | string | false |
cbga_percentage | Cannabinoid | string | false |
phytol_percentage | Terpene | string | false |
chlordane_ug_per_g | Pesticide | string | false |
beta_humulene_percentage | Terpene | string | false |
terpinolene_mg_per_unit | Terpene | string | false |
thcva_mg_per_unit | Cannabinoid | string | false |
farnesene_mg_per_unit | Terpene | string | false |
camphor_percentage | Terpene | string | false |
lambda_cyhalothrin_ug_per_g | Pesticide | string | false |
e_coli_cfu_per_g | Microbial | string | false |
alpha_bisabolol_mg_per_unit | Terpene | string | false |
valencene_mg_per_unit | Terpene | string | false |
methoxyethanol_ug_per_g | Solvent | string | false |
isobutyl_acetate_ug_per_g | Solvent | string | false |
farnesene_percentage | Terpene | string | false |
propiconazole_trans_ug_per_g | Pesticide | string | false |
dioxane_ug_per_g | Solvent | string | false |
chlorobenzene_ug_per_g | Solvent | string | false |
alpha_phellandrene_mg_per_unit | Terpene | string | false |
cbg_mg_per_unit | Cannabinoid | string | false |
other_heavy_metals_ug_per_g | Heavy Metal | string | false |
diuron_ug_per_g | Pesticide | string | false |
delta_3_carene_mg_per_unit | Terpene | string | false |
ethoxyethanol_ug_per_g | Solvent | string | false |
aldicarb_ug_per_g | Pesticide | string | false |
aspergillus_fumigatus_cfu_per_g | Microbial | string | false |
captan_ug_per_g | Pesticide | string | false |
chlorantraniliprole_ug_per_g | Pesticide | string | false |
propane_ug_per_g | Solvent | string | false |
hexane_ug_per_g | Solvent | string | false |
other_terpenes_percentage | Terpene | string | false |
pyrethrins_pyrethrin_i_ug_per_g | Pesticide | string | false |
prallethrin_cis_ug_per_g | Pesticide | string | false |
chlormequat_chloride_percentage | Other | string | false |
spinosad_a_ug_per_g | Pesticide | string | false |
pyrethrins_jasmolin_ii_ug_per_g | Pesticide | string | false |
spiroxamine_a_ug_per_g | Pesticide | string | false |
guaiol_mg_per_unit | Terpene | string | false |
methyl_acetate_ug_per_g | Solvent | string | false |
aspergillus_flavus_cfu_per_g | Microbial | string | false |
etoxazole_ug_per_g | Pesticide | string | false |
methylisobutyl_ketone_ug_per_g | Solvent | string | false |
vitamin_e_acetate_ug_per_g | Other | string | false |
pyrethrins_cinerin_ii_ug_per_g | Pesticide | string | false |
cbn_mg_per_unit | Cannabinoid | string | false |
prallethrin_ug_per_g | Pesticide | string | false |
mgk_264_ug_per_g | Pesticide | string | false |
arsenic_ug_per_g | Heavy Metal | string | false |
limonene_mg_per_unit | Terpene | string | false |
alpha_pinene_mg_per_unit | Terpene | string | false |
mevinphos_ug_per_g | Pesticide | string | false |
pyridine_ug_per_g | Solvent | string | false |
thiamethoxam_ug_per_g | Pesticide | string | false |
toluene_ug_per_g | Solvent | string | false |
spinosad_ug_per_g | Pesticide | string | false |
pentane_ug_per_g | Solvent | string | false |
propoxur_ug_per_g | Pesticide | string | false |
ochratoxin_a_ug_per_kg | Mycotoxin | string | false |
fludioxonil_ug_per_g | Pesticide | string | false |
beta_myrcene_percentage | Terpene | string | false |
thiacloprid_ug_per_g | Pesticide | string | false |
aspergillus_niger_cfu_per_g | Microbial | string | false |
mevinphos_i_ug_per_g | Pesticide | string | false |
sabinene_mg_per_unit | Terpene | string | false |
other_solvents_ug_per_g | Solvent | string | false |
carbofuran_ug_per_g | Pesticide | string | false |
beta_pinene_mg_per_unit | Terpene | string | false |
other_mycotoxins_ug_per_kg | Mycotoxin | string | false |
pyrethrins_jasmolin_i_ug_per_g | Pesticide | string | false |
methyl_ethyl_ketone_ug_per_g | Solvent | string | 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 |
---|
StockAdjustment
A stock adjustment as shown in Distru
{
"batch_id": "12345",
"completion_datetime": "2024-12-12 20:26:19.297537",
"compliance_quantity": 10,
"description": "The description for this adjustment",
"id": "12345",
"license_id": "12345",
"location_id": "12345",
"owner_id": "12345",
"package_id": "12345",
"product_id": "12345",
"quantity": 10,
"reason": "Waste",
"total_cost": 100
}
Property | Description | Type | Required |
---|---|---|---|
batch_id | The ID of this adjustment's batch. Null if this adjustment is not associated with a batch-tracked product | string | false |
completion_datetime | The datetime this adjustment was completed at | datetime | false |
compliance_quantity | The quantity of this adjustment expressed in it's package's unit type. Null if this adjustment is not associated with a package-tracked product. | number | false |
description | The description for this adjustment | string | false |
id | Unique ID for this stock adjustment | string | false |
license_id | ID of the license that this adjustment is associated with | string | false |
location_id | ID of the location that this adjustment is associated with | string | false |
owner_id | The ID of the user that owns this adjustment | string | false |
package_id | The ID of this adjustment's package. Null if this adjustment is not associated with a package-tracked product | string | false |
product_id | The ID of this adjustment's product. Populated regardless of the product's inventory tracking method. | string | false |
quantity | The quantity of the adjustment | number | false |
reason | The reason for this adjustment | string | false |
total_cost | The total cost of this adjustment | number | false |
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 |
biotrack_id | The ID of the BioTrack manifest associated with this order | string | 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 |
custom_data | A collection of CustomData | array(CustomData) | 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 |
leaflink_order_number | The LeafLink order number for this order | string | false |
metrc_transfer_id | The ID of the Metrc transfer associated with this order | string | 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 |
custom_data | The custom data for this purchase order | array(CustomField) | 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 |
custom_data | The custom data for this batch | array(CustomField) | 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 |
returned_quantity | Quantity returned on this order item | number | false |
total_cost_actual | Total cost of the non-returned quantity in this order item, in other words, this is the total cost of order_item.quantity minus order_item.returned quantity. | number | false |
total_cost_default | Default cost of the non-returned quantity in this order item, in other words, this is the default cost of order_item.quantity minus order_item.returned quantity. | 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 |
custom_data | A collection of CustomData | array(CustomField) | 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 |
custom_data | The custom data for this package | array(CustomField) | false |
expiration_date | The date that this package expires | string | false |
id | Unique ID for this package in Distru | string | false |
is_trade_sample | True if this package is a Metrc trade sample | boolean | 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 |
TestResult
A test result as shown in Distru
Property | Description | Type | Required |
---|---|---|---|
additional_test_results | An additional test result object for a test result as shown in Distru | AdditionalTestResult | false |
cbd_mg_per_unit | The CBD mg per unit for this test result | string | false |
cbd_percentage | The CBD percentage for this test result | string | false |
id | Unique ID for this test result | string | false |
is_primary | True if this is the primary test result for the product | boolean | false |
lab_license_number | The license number for the lab that performed this test | string | false |
lab_name | The name of the lab that performed this test | string | false |
mg_per_unit_type | The unit type for the mg per unit fields | string | false |
name | The name of the test result | string | false |
release_date | The release date for this test result | string | false |
thc_mg_per_unit | The THC mg per unit for this test result | string | false |
thc_percentage | The THC percentage for this test result | string | false |
total_cbd_mg_per_unit | The total CBD mg per unit for this test result | string | false |
total_cbd_percentage | The total CBD percentage for this test result | string | false |
total_thc_mg_per_unit | The total THC mg per unit for this test result | string | false |
total_thc_percentage | The total THC percentage for this test result | string | false |
updated_datetime | The datetime this test result was updated at | 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 |
custom_data | The custom data for this contact | array(CustomField) | false |
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 |
custom_data | The custom data for this company | array(CustomField) | false |
default_email | The default email for this company | string | false |
default_purchase_order_notes | The default notes that will be automatically added to purchase orders when this company is the supplier | string | false |
default_sales_order_notes | The default external notes that will be automatically added to sales orders when this company is the customer | string | false |
id | Unique ID for this company | string | false |
invoice_email | The email address where sales order invoices are delivered | string | false |
legal_business_name | The legal business name 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 |
order_shipment_email | The email address where sales order shipment packing slips are delivered | string | false |
outstanding_balance_threshold | Threshold that determines when a company is considered to have a too high an outstanding balance. When exceeded, Distru will show a warning banner in the company's page and when selling to this company. | integer | false |
owner_id | The ID of the user that owns this company | string | false |
phone_number | The phone number for this company | string | false |
purchase_order_email | The email address where purchase order slips are delivered | string | false |
relationship_type | A relationship type as shown in Distru | RelationshipType | false |
sales_order_email | The email address where sales order slips are delivered | string | false |
updated_datetime | The datetime this company was last updated at | string | false |
website | The website for this company | 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 |
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 |
total_cost_actual | The total actual cost of this input | number | false |
total_cost_default | The total default cost (from the configured product unit cost) of this input | 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyMTYsImlhdCI6MTc1MTU3NTYxNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNjIxZjgwNjMtY2UzOS00ZDgyLWI1MTctZjI2ZDVjMTJhNjJhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjE1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTA5MjIiLCJ0eXAiOiJhY2Nlc3MifQ.SDPzS2Jwie_lUSlnW_JU25z1lqQNQokHpvoP8OYIOhg
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 63481ac1331c9c000000000000000001-33f2349becf20238-0
{
"data": [
{
"completion_datetime": null,
"compliance_type": "NONE",
"creation_source": "MANUALLY_CREATED",
"custom_data": [
{
"id": 77,
"name": "Custom Field 98",
"value": "Custom Field Value"
}
],
"description": null,
"estimated_work_hours": 1,
"estimated_work_minutes": 5,
"fulfilled": true,
"id": "fa4de429-ac2d-4f39-b5ad-3d282e20f426",
"is_metrc_processing_job": false,
"license": null,
"outputs": [
{
"additional_costs": [
{
"cost_per_unit": "-1",
"description": null,
"name": "CostType 36",
"quantity": "1",
"total_cost_actual": "-1",
"total_cost_default": "0",
"unit_type": {
"id": "00000000-0000-0000-0000-00000001c83d",
"name": "Unit Type 193"
}
}
],
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b18",
"name": "B9786"
},
"compliance_label": null,
"compliance_quantity": null,
"expiration_datetime": null,
"ingredients": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b18",
"name": "B9786"
},
"compliance_quantity": null,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000020ea",
"id": "00000000-0000-0000-0000-000000000d36",
"license_id": null,
"name": "Place 3357"
},
"package": null,
"product": {
"id": "f6db37a3-cb6a-40d7-b9b6-e1874ed8047f",
"name": "Product 9782",
"sku": "sku 9783",
"updated_datetime": "2025-07-03T20:46:56.878057Z"
},
"quantity": "1",
"total_cost_actual": null,
"total_cost_default": "1"
}
],
"is_production_batch": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000020ea",
"id": "00000000-0000-0000-0000-000000000d36",
"license_id": null,
"name": "Place 3357"
},
"package": null,
"package_datetime": null,
"package_unit_type": null,
"product": {
"id": "f6db37a3-cb6a-40d7-b9b6-e1874ed8047f",
"name": "Product 9782",
"sku": "sku 9783",
"updated_datetime": "2025-07-03T20:46:56.878057Z"
},
"quantity": "1"
}
],
"owner_id": "00000000-0000-0000-0000-000000002aaa",
"status": "PENDING"
}
]
}
GET /public/v1/assemblies returns proper data for pending metrc assembly
GET /public/v1/assemblies?creation_source=MANUALLY_CREATED&license_number=CDPH-00002486&page[number]=1
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyMTIsImlhdCI6MTc1MTU3NTYxMiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiODg1ZDFkY2MtZWE2Ny00ODc3LThiMzQtOTc2MzNlZWUyOWI4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjExLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTAyMDYiLCJ0eXAiOiJhY2Nlc3MifQ.bt8tpSRPZb3I4565rqEcbugnHksCKlsCuR0TVcvSBpQ
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 0b5100bf8c32d1800000000000000001-8ea525a6585bb388-0
{
"data": [
{
"completion_datetime": null,
"compliance_type": "METRC",
"creation_source": "MANUALLY_CREATED",
"custom_data": [
{
"id": 76,
"name": "Custom Field 97",
"value": null
}
],
"description": null,
"estimated_work_hours": null,
"estimated_work_minutes": null,
"fulfilled": true,
"id": "ad708ddb-941f-40c9-b4ac-c8a930ef9959",
"is_metrc_processing_job": false,
"license": {
"id": "00000000-0000-0000-0000-000000000879",
"license_number": "CDPH-00002486"
},
"outputs": [
{
"additional_costs": [],
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000a0f",
"name": "B8984"
},
"compliance_label": "1A4010200001234000000145",
"compliance_quantity": "2",
"expiration_datetime": null,
"ingredients": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000a0f",
"name": "B8984"
},
"compliance_quantity": "0.0353",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001ee7",
"id": "00000000-0000-0000-0000-000000000c7c",
"license_id": "00000000-0000-0000-0000-000000000879",
"name": "Place 3171"
},
"package": {
"batch_number": "1234567890",
"compliance_label": "ABCDEF012345670000002120",
"id": "00000000-0000-0000-0000-000000000325",
"metrc_label": "ABCDEF012345670000002120",
"status": "active"
},
"product": {
"id": "c1453573-8330-488e-a0cd-90c20f0c8612",
"name": "Product 8966",
"sku": "sku 8967",
"updated_datetime": "2025-07-03T20:46:52.744561Z"
},
"quantity": "1",
"total_cost_actual": null,
"total_cost_default": null
}
],
"is_production_batch": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001ee7",
"id": "00000000-0000-0000-0000-000000000c7c",
"license_id": "00000000-0000-0000-0000-000000000879",
"name": "Place 3171"
},
"package": null,
"package_datetime": "2025-07-03",
"package_unit_type": {
"id": "00000000-0000-0000-0000-00000001aafc",
"name": "Gram"
},
"product": {
"id": "c1453573-8330-488e-a0cd-90c20f0c8612",
"name": "Product 8966",
"sku": "sku 8967",
"updated_datetime": "2025-07-03T20:46:52.744561Z"
},
"quantity": "2"
}
],
"owner_id": "00000000-0000-0000-0000-0000000027de",
"status": "PENDING"
}
]
}
GET /public/v1/assemblies returns proper data for completed metrc assembly
GET /public/v1/assemblies?completion_datetime=2025-07-03+19%3A46%3A55.508400Z%2C2025-07-03+21%3A46%3A55.508400Z&creation_source=MANUALLY_CREATED&license_number=CDPH-00002575&page[number]=1
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyMTQsImlhdCI6MTc1MTU3NTYxNCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTVlZGZjMTAtYjEyYS00MWYzLWJhZTMtNTUwMDZiMmRlZjc5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjEzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTA2MzQiLCJ0eXAiOiJhY2Nlc3MifQ.wJyp0g84MJRfeHHeEMZ5v9A-mt4v6ET4yT6iySESb4I
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: e065f724a3bc10000000000000000001-076400b1d3f467fe-0
{
"data": [
{
"completion_datetime": "2025-07-03T20:46:55.508400Z",
"compliance_type": "METRC",
"creation_source": "MANUALLY_CREATED",
"custom_data": [],
"description": null,
"estimated_work_hours": null,
"estimated_work_minutes": null,
"fulfilled": true,
"id": "6206bfd0-1de0-47bd-a063-f9e34ef6443d",
"is_metrc_processing_job": false,
"license": {
"id": "00000000-0000-0000-0000-0000000008c2",
"license_number": "CDPH-00002575"
},
"outputs": [
{
"additional_costs": [],
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000a96",
"name": "B9397"
},
"compliance_label": "1A4010200001234000000159",
"compliance_quantity": "2",
"expiration_datetime": null,
"ingredients": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000a96",
"name": "B9397"
},
"compliance_quantity": "0.0353",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000202a",
"id": "00000000-0000-0000-0000-000000000cee",
"license_id": "00000000-0000-0000-0000-0000000008c2",
"name": "Place 3285"
},
"package": {
"batch_number": "1234567890",
"compliance_label": "ABCDEF012345670000002239",
"id": "00000000-0000-0000-0000-00000000034a",
"metrc_label": "ABCDEF012345670000002239",
"status": "active"
},
"product": {
"id": "5f7389da-b855-4c74-93bb-ab49683fe34a",
"name": "Product 9388",
"sku": "sku 9389",
"updated_datetime": "2025-07-03T20:46:55.154236Z"
},
"quantity": "1",
"total_cost_actual": null,
"total_cost_default": null
}
],
"is_production_batch": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000202a",
"id": "00000000-0000-0000-0000-000000000cee",
"license_id": "00000000-0000-0000-0000-0000000008c2",
"name": "Place 3285"
},
"package": {
"batch_number": null,
"compliance_label": "1A4010200001234000000159",
"id": "00000000-0000-0000-0000-00000000034e",
"metrc_label": "1A4010200001234000000159",
"status": "active"
},
"package_datetime": "2025-07-03",
"package_unit_type": {
"id": "00000000-0000-0000-0000-00000001bc6e",
"name": "Gram"
},
"product": {
"id": "5f7389da-b855-4c74-93bb-ab49683fe34a",
"name": "Product 9388",
"sku": "sku 9389",
"updated_datetime": "2025-07-03T20:46:55.154236Z"
},
"quantity": "2"
}
],
"owner_id": "00000000-0000-0000-0000-00000000298a",
"status": "COMPLETED"
}
]
}
GET /public/v1/assemblies returns proper data for biotrack assembly
GET /public/v1/assemblies?completion_datetime=2025-07-03+19%3A46%3A56.436138Z%2C2025-07-03+21%3A46%3A56.436138Z&creation_source=MANUALLY_CREATED&license_number=CDPH-00002611&page[number]=1
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyMTUsImlhdCI6MTc1MTU3NTYxNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTUzZDI4NDktZDhkNy00MDc5LWJiZGUtNDBiOWIxMjM1NTdjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjE0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTA3OTIiLCJ0eXAiOiJhY2Nlc3MifQ.-dNxJU1o4XXnHqWGawYrNSbcy7XKCmsCgNsthTphIqY
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 4e0dbc7e315640000000000000000001-306ab24f79d3b75f-0
{
"data": [
{
"completion_datetime": "2025-07-03T20:46:56.436138Z",
"compliance_type": "BIOTRACK",
"creation_source": "MANUALLY_CREATED",
"custom_data": [],
"description": null,
"estimated_work_hours": null,
"estimated_work_minutes": null,
"fulfilled": true,
"id": "c84cbcf3-4693-4250-bfd0-2942b9d9b36c",
"is_metrc_processing_job": false,
"license": {
"id": "00000000-0000-0000-0000-0000000008dd",
"license_number": "CDPH-00002611"
},
"outputs": [
{
"additional_costs": [],
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000ad5",
"name": "B9577"
},
"compliance_label": null,
"compliance_quantity": "1",
"expiration_datetime": null,
"ingredients": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000ad5",
"name": "B9577"
},
"compliance_quantity": "1",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000002095",
"id": "00000000-0000-0000-0000-000000000d15",
"license_id": "00000000-0000-0000-0000-0000000008dd",
"name": "Place 3324"
},
"package": {
"batch_number": null,
"compliance_label": "649",
"id": "00000000-0000-0000-0000-000000000358",
"metrc_label": "649",
"status": "active"
},
"product": {
"id": "6eac4a7b-f1b4-47d2-bb0d-6351ce422c92",
"name": "Product 9570",
"sku": "sku 9571",
"updated_datetime": "2025-07-03T20:46:56.090254Z"
},
"quantity": "1",
"total_cost_actual": null,
"total_cost_default": null
}
],
"is_production_batch": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000002095",
"id": "00000000-0000-0000-0000-000000000d15",
"license_id": "00000000-0000-0000-0000-0000000008dd",
"name": "Place 3324"
},
"package": {
"batch_number": null,
"compliance_label": null,
"id": "00000000-0000-0000-0000-00000000035c",
"metrc_label": null,
"status": "active"
},
"package_datetime": null,
"package_unit_type": {
"id": "00000000-0000-0000-0000-00000001c262",
"name": "Gram"
},
"product": {
"id": "6eac4a7b-f1b4-47d2-bb0d-6351ce422c92",
"name": "Product 9570",
"sku": "sku 9571",
"updated_datetime": "2025-07-03T20:46:56.090254Z"
},
"quantity": "1"
}
],
"owner_id": "00000000-0000-0000-0000-000000002a28",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjU0ODMsImlhdCI6MTc1MTU3NTg4MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDJhYzA3ZWQtOWVkZS00OWY3LTg5N2EtZTZhODczYzRhM2YyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1ODgyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTI1MDIiLCJ0eXAiOiJhY2Nlc3MifQ.SAuG6s3ikbljYofdQypTUoNM5o17UM3oI4gqApFZKBI
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 0ad0fa1ace55c7000000000000000001-f394ae0f2ec2635b-0
{
"data": [
{
"batch_number": null,
"custom_data": [
{
"id": 185,
"name": "Custom Field 206",
"value": "Custom Data 1"
}
],
"description": null,
"expiration_date": "2024-01-01T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-0000000030a4",
"name": "B40573",
"owner_id": "00000000-0000-0000-0000-00000000cd1a",
"primary_test_result": null,
"product_id": "46629e20-91cd-48ad-9e5c-2934c05f4238"
},
{
"batch_number": null,
"custom_data": [
{
"id": 185,
"name": "Custom Field 206",
"value": null
}
],
"description": null,
"expiration_date": null,
"id": "00000000-0000-0000-0000-0000000030a9",
"name": "B40586",
"owner_id": "00000000-0000-0000-0000-00000000cd22",
"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": "9a266a9f-7177-4b71-bf5a-a7ffd8977c91"
}
]
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjU0ODEsImlhdCI6MTc1MTU3NTg4MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzcxYmNhOWMtYjBmOS00M2Y5LWIzNzItNTUxZjZlMWEwY2NkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1ODgwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTIyMDQiLCJ0eXAiOiJhY2Nlc3MifQ.p73GkuzlPFP1wNqXAyvrhWPmKdXa_sHJZFOv-HUiDHA
{
"owner_id": "5e96810d-bbc1-4a13-b94b-6ad9acfe0f94",
"product_id": "b172d188-4717-4645-9dac-a53616951265"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 182fa628af7e12000000000000000001-44d657ef95159749-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjU0ODIsImlhdCI6MTc1MTU3NTg4MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGM0NDA0ZjktODVjMC00YmY0LWJkODEtY2QyNmU0MmNjMDFmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1ODgxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTI0NDkiLCJ0eXAiOiJhY2Nlc3MifQ.C95UQcumXcvl8lQVrODtucB2cOMG5CKvE1CdIAUphy4
{
"product_id": "93807e33-ba94-4b63-8003-2bf6137435cd"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: d4f97b7f68fcf0000000000000000001-04d26e09fc3c01c3-0
{
"data": {
"batch_number": null,
"custom_data": [],
"description": null,
"expiration_date": null,
"id": "00000000-0000-0000-0000-000000003096",
"name": "B1",
"owner_id": null,
"product_id": "93807e33-ba94-4b63-8003-2bf6137435cd"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjU0ODIsImlhdCI6MTc1MTU3NTg4MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOWY4MzM5NDItNzBhYi00MmRjLTk4MjktM2RmZDUyYjg5NmMxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1ODgxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTIzNDgiLCJ0eXAiOiJhY2Nlc3MifQ.XcNbJKHqZaIZMKkUV8GlhS3CgyoGWkmZnfjySmLVpGI
{
"batch_number": "B1",
"description": "Test batch",
"expiration_date": "2025-01-01T00:00:00.000000Z",
"owner_id": "00000000-0000-0000-0000-00000000cc89",
"product_id": "0a712fa3-6d4b-4af3-a45b-28960a6ffbfd"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 247154d886fa7e000000000000000001-c79d3bd2498376c3-0
{
"data": {
"batch_number": "B1",
"custom_data": [],
"description": "Test batch",
"expiration_date": "2025-01-01T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-000000003073",
"name": "B1",
"owner_id": "00000000-0000-0000-0000-00000000cc89",
"product_id": "0a712fa3-6d4b-4af3-a45b-28960a6ffbfd"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjU0MTEsImlhdCI6MTc1MTU3NTgxMSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDcxOWIxMjEtMDcyZS00NDhhLWI2YmQtYTY1OWZlMDc1NTRjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1ODEwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NDE4MTIiLCJ0eXAiOiJhY2Nlc3MifQ.Y3Ye4zb_dyQoemaUTaII5fLG7D_0wyiwAgxzYDyQYoU
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: cb1f62833f30a8000000000000000001-e7bed0089c97fda7-0
{
"data": [
{
"category": "Retailer",
"custom_data": [
{
"id": 157,
"name": "Custom Field 178",
"value": "Custom Data 1"
}
],
"default_email": "company-1@example.com",
"default_purchase_order_notes": "Default Purchase Order Notes 1",
"default_sales_order_notes": "Default Order External Notes 1",
"id": "00000000-0000-0000-0000-000000004026",
"invoice_email": "invoice email",
"legal_business_name": "Company Legal Name 1",
"licenses": [],
"locations": [
{
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000074ec",
"id": "00000000-0000-0000-0000-000000002f8a",
"license_id": null,
"name": "Place 11944"
}
],
"name": "Company 29830",
"order_shipment_email": "order shipment email",
"outstanding_balance_threshold": 1000,
"owner_id": "00000000-0000-0000-0000-00000000a363",
"phone_number": "1234567890",
"purchase_order_email": "purchase email",
"relationship_type": {
"id": "00000000-0000-0000-0000-000000000167",
"name": "Supplier"
},
"sales_order_email": "order email",
"updated_datetime": "2023-11-03T00:00:00.000000Z",
"website": "https://www.example.com"
},
{
"category": "Other",
"custom_data": [
{
"id": 157,
"name": "Custom Field 178",
"value": null
}
],
"default_email": "company-71612@example.com",
"default_purchase_order_notes": null,
"default_sales_order_notes": null,
"id": "00000000-0000-0000-0000-00000000402b",
"invoice_email": null,
"legal_business_name": "Company Legal Name 29834",
"licenses": [
{
"id": "00000000-0000-0000-0000-000000001fee",
"license_number": "CDPH-00009019"
}
],
"locations": [],
"name": "Company 29834",
"order_shipment_email": null,
"outstanding_balance_threshold": null,
"owner_id": null,
"phone_number": null,
"purchase_order_email": null,
"relationship_type": null,
"sales_order_email": null,
"updated_datetime": "2023-12-02T00:00:00.000000Z",
"website": null
}
]
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUxNTUsImlhdCI6MTc1MTU3NTU1NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiN2YzNzdkZmItNjA5Mi00Yjk2LWFlNTUtM2FkY2YxMTI3NDYzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NTU0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MzQ3IiwidHlwIjoiYWNjZXNzIn0.fk3wB9_Ank8WsTKklDEcy0F2ZEzNtlXjgO97gt2eqJs
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: a67d9a67031a50000000000000000001-c14928a7368676de-0
{
"data": [
{
"company": {
"id": "00000000-0000-0000-0000-000000000074"
},
"custom_data": [
{
"id": 9,
"name": "Custom Field 7",
"value": "Custom Data 1"
}
],
"email": "email1",
"full_name": "FirstName736 LastName737",
"id": "00000000-0000-0000-0000-000000000019",
"owner": {
"id": "00000000-0000-0000-0000-00000000015e"
},
"phone_number": "1234567890",
"title": null
},
{
"company": {
"id": "00000000-0000-0000-0000-000000000075"
},
"custom_data": [
{
"id": 9,
"name": "Custom Field 7",
"value": null
}
],
"email": "email2",
"full_name": "FirstName738 LastName739",
"id": "00000000-0000-0000-0000-00000000001a",
"owner": {
"id": "00000000-0000-0000-0000-000000000163"
},
"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 |
FileAttachment
Insert a file attachment
POST /public/v1/file-attachments uploads and creates a file attachment successfully with simplified reference
POST /public/v1/file-attachments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyOTQsImlhdCI6MTc1MTU3NTY5NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDJjZTE1ODctYTZhNy00MmFiLTk0ZTgtNWE3ZDM1YjNjOTQ3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjkzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjI5OTEiLCJ0eXAiOiJhY2Nlc3MifQ.V7SBbJyCDoM2Ya4_W5zx2Ahc-StOxTl0PoiCS-Z4NPE
{
"file": {
"content_type": "image/png",
"filename": "test-image.png"
},
"name": "My Test Image",
"product_id": "45abc240-f303-48a1-8049-78a5ccfbbf52"
}
Response
201
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: c87e48dbb5bef8000000000000000001-a7e320bdfa58ee7e-0
{
"data": {
"assembly_id": null,
"batch_id": null,
"company_relationship_id": null,
"contact_id": null,
"id": "00000000-0000-0000-0000-000000000066",
"invoice_id": null,
"license_id": null,
"mime_type": "image/png",
"name": "My Test Image",
"order_id": null,
"order_shipment_id": null,
"product_id": "45abc240-f303-48a1-8049-78a5ccfbbf52",
"purchase_id": null,
"request_id": null,
"return_id": null,
"size_in_bytes": 355974,
"stock_transfer_id": null,
"task_id": null,
"upload_datetime": "2025-07-03T20:48:14.707011Z",
"uploader": {
"id": "00000000-0000-0000-0000-0000000059cf",
"name": "FirstName45724 LastName45725"
},
"url": "/var/folders/j1/6rk0jm4s1l3bts_p6m88jd4r0000gn/T/bbbff086-a8dd-453a-976b-3d1650f97457/test-image.png"
}
}
Insert a new file attachment. The file will be uploaded to S3 and associated with the specified entity. Exactly one reference ID must be provided (product_id, order_id, purchase_id, etc.).
Request
POST /public/v1/file-attachments
Parameters
Parameter | Description | In | Type | Required | Default | Example |
---|---|---|---|---|---|---|
file | The file to upload | formData | file | true | ||
name | Display name for the attachment (defaults to filename if not provided) | formData | string | false | ||
product_id | Product ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
order_id | Order ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
purchase_id | Purchase ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
invoice_id | Invoice ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
batch_id | Batch ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
contact_id | Contact ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
company_relationship_id | Company relationship ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
request_id | Request ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
task_id | Task ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
stock_transfer_id | Stock transfer ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
assembly_id | Assembly ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
return_id | Return ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
order_shipment_id | Order shipment ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
license_id | License ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 |
Responses
Status | Description | Schema |
---|---|---|
201 | File attachment inserted successfully | FileAttachment |
400 | Invalid parameters | |
422 | Storage quota exceeded or other validation error |
Inventory
Get inventory levels
GET /public/inventory returns stock quantities filtered by product IDs
GET /public/v1/inventory?grouping[]=PRODUCT&product_ids[]=83c8812f-bc10-4c30-a97a-ae0ef48b1f0b
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyMjQsImlhdCI6MTc1MTU3NTYyNCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiODkyNTIwMDItN2UyOC00MmIwLTg3MTEtYTA5MGU1MzUxOWY2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjIzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTIxNDgiLCJ0eXAiOiJhY2Nlc3MifQ.dWptvQjRVqwZ2w4kDRNmp2I5Kbzb_Y7Xy30GVrFfXto
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 1d9b977a57044b000000000000000001-e157e3260bcacbb4-0
{
"data": [
{
"active": "10.000000000",
"available": "10.000000000",
"product_id": "83c8812f-bc10-4c30-a97a-ae0ef48b1f0b",
"updated_datetime": "2025-07-03T20:47:04.593335Z"
}
]
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyMTgsImlhdCI6MTc1MTU3NTYxOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZWRlNmUwODItYjBkNy00OGI0LTk5MDAtM2FhNWMyOWFhNjljIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjE3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTEzMTAiLCJ0eXAiOiJhY2Nlc3MifQ.W_qOGCfYO-ffOA8688ydDNpqSpKqGbSYsoWp05CtAN0
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 6f5d5f3482ac1c000000000000000001-e6559f1c65b77931-0
{
"data": [
{
"active": "50.000000000",
"available": "50.000000000",
"product_id": "2dc9c52c-649f-4dab-91a0-44beed970242",
"updated_datetime": "2023-11-05T00:00:00.000000Z"
},
{
"active": "100.000000000",
"available": "90.000000000",
"product_id": "47743fa9-97c6-4f6c-93fa-021cf5050b2c",
"updated_datetime": "2023-12-03T00:00:00.000000Z"
},
{
"active": "95.000000000",
"available": "80.000000000",
"product_id": "989cf629-e20d-4622-9e5a-6363075619e6",
"updated_datetime": "2023-11-06T00: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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyMTcsImlhdCI6MTc1MTU3NTYxNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNWNmNDdjOGEtZGRiYi00MTZhLWIyY2ItN2Q4OTQwMTFiNTFkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjE2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTA5OTEiLCJ0eXAiOiJhY2Nlc3MifQ.AbAlS00VrvE7etC-aT3vYEIzWtG65pbSQynaABq_OzA
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: bc38bb8aa8cdc0000000000000000001-a34dd17d93ac5cd1-0
{
"data": [
{
"active": "100.000000000",
"available": "100.000000000",
"location_id": "00000000-0000-0000-0000-000000000d44",
"product_id": "8c5c7334-a35b-47e5-b796-22c9d5ad7044",
"updated_datetime": "2030-09-01T00:00:00.000000Z"
},
{
"active": "30.000000000",
"available": "26.000000000",
"location_id": null,
"product_id": "8c5c7334-a35b-47e5-b796-22c9d5ad7044",
"updated_datetime": "2030-10-07T00:00:00.000000Z"
},
{
"active": "100.000000000",
"available": "90.000000000",
"location_id": "00000000-0000-0000-0000-000000000d43",
"product_id": "b01de187-86d0-4502-bf74-78d491706ea1",
"updated_datetime": "2030-10-01T00:00:00.000000Z"
},
{
"active": "0.000000000",
"available": "-1.000000000",
"location_id": "00000000-0000-0000-0000-000000000d44",
"product_id": "b01de187-86d0-4502-bf74-78d491706ea1",
"updated_datetime": "2030-10-02T00:00:00.000000Z"
},
{
"active": "100.000000000",
"available": "85.000000000",
"location_id": "00000000-0000-0000-0000-000000000d43",
"product_id": "bc5eaf8d-0797-414d-bd24-7d0884895388",
"updated_datetime": "2030-10-03T00:00:00.000000Z"
},
{
"active": "90.000000000",
"available": "82.000000000",
"location_id": "00000000-0000-0000-0000-000000000d44",
"product_id": "bc5eaf8d-0797-414d-bd24-7d0884895388",
"updated_datetime": "2030-10-04T00:00:00.000000Z"
},
{
"active": "150.000000000",
"available": "129.000000000",
"location_id": "00000000-0000-0000-0000-000000000d45",
"product_id": "bc5eaf8d-0797-414d-bd24-7d0884895388",
"updated_datetime": "2030-10-05T00:00:00.000000Z"
},
{
"active": "0.000000000",
"available": "-1.000000000",
"location_id": null,
"product_id": "bc5eaf8d-0797-414d-bd24-7d0884895388",
"updated_datetime": "2030-10-08T00: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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyMTcsImlhdCI6MTc1MTU3NTYxNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGVmYTFkMDctNDM1ZS00ZjQ3LWEwZDktNzg3NTFjZTk4MWFlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjE2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTExMDUiLCJ0eXAiOiJhY2Nlc3MifQ.JYO9EWoFoK1z4ZgVr6H6YZXjO2NglWHnXDu6Wg_Hpgw
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 5c8c97cd028ed4000000000000000001-26cb4ab2c3c9b0f5-0
{
"data": [
{
"active": "26.000000000",
"available": "26.000000000",
"batch_number": null,
"product_id": "5cea90ce-1b70-4c42-a20c-f2507b796b33",
"updated_datetime": "2030-12-01T00:00:00.000000Z"
},
{
"active": "27.000000000",
"available": "27.000000000",
"batch_number": "1",
"product_id": "5cea90ce-1b70-4c42-a20c-f2507b796b33",
"updated_datetime": "2030-12-02T00:00:00.000000Z"
},
{
"active": "8.000000000",
"available": "8.000000000",
"batch_number": "TEST-1",
"product_id": "9611e8b7-e1c1-4284-813a-9788dfb8804b",
"updated_datetime": "2030-09-01T00:00:00.000000Z"
},
{
"active": "19.000000000",
"available": "19.000000000",
"batch_number": null,
"product_id": "9e07213f-ecfc-44c5-bde5-b98bdb36673c",
"updated_datetime": "2030-10-02T00:00:00.000000Z"
},
{
"active": "13.000000000",
"available": "13.000000000",
"batch_number": "TEST-1",
"product_id": "9e07213f-ecfc-44c5-bde5-b98bdb36673c",
"updated_datetime": "2030-10-04T00:00:00.000000Z"
},
{
"active": "43.000000000",
"available": "43.000000000",
"batch_number": null,
"product_id": "ba1f21f2-a85c-40fa-81d7-d1520fc25b7f",
"updated_datetime": "2030-11-02T00:00:00.000000Z"
},
{
"active": "47.000000000",
"available": "47.000000000",
"batch_number": "1",
"product_id": "ba1f21f2-a85c-40fa-81d7-d1520fc25b7f",
"updated_datetime": "2030-11-04T00:00:00.000000Z"
},
{
"active": "25.000000000",
"available": "25.000000000",
"batch_number": "2",
"product_id": "ba1f21f2-a85c-40fa-81d7-d1520fc25b7f",
"updated_datetime": "2030-11-05T00: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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyMjMsImlhdCI6MTc1MTU3NTYyMywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZGQ1MGI3MTQtNjcxZi00ZDY4LTlmN2QtYzI2NDczYjA0ZDI4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjIyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTE5MjQiLCJ0eXAiOiJhY2Nlc3MifQ.aDGo_IVHRUiqMR5TYmTFZiLy_VF7UDssnAFtKEZQc5I
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: da61c83a365178000000000000000001-61bfb90b7411c4a7-0
{
"data": [
{
"active": "41.000000000",
"available": "41.000000000",
"batch_number": null,
"location_id": "00000000-0000-0000-0000-000000000e20",
"product_id": "70ea9709-240c-4eed-b02a-ac05d21f44b9",
"updated_datetime": "2031-01-02T00:00:00.000000Z"
},
{
"active": "49.000000000",
"available": "49.000000000",
"batch_number": "TEST-1",
"location_id": "00000000-0000-0000-0000-000000000e20",
"product_id": "70ea9709-240c-4eed-b02a-ac05d21f44b9",
"updated_datetime": "2031-02-02T00:00:00.000000Z"
},
{
"active": "45.000000000",
"available": "45.000000000",
"batch_number": null,
"location_id": "00000000-0000-0000-0000-000000000e21",
"product_id": "70ea9709-240c-4eed-b02a-ac05d21f44b9",
"updated_datetime": "2031-01-04T00:00:00.000000Z"
},
{
"active": "53.000000000",
"available": "53.000000000",
"batch_number": "TEST-1",
"location_id": "00000000-0000-0000-0000-000000000e21",
"product_id": "70ea9709-240c-4eed-b02a-ac05d21f44b9",
"updated_datetime": "2031-02-04T00:00:00.000000Z"
},
{
"active": "21.000000000",
"available": "21.000000000",
"batch_number": null,
"location_id": "00000000-0000-0000-0000-000000000e20",
"product_id": "d08539cd-66e1-49da-b981-a88f1857764a",
"updated_datetime": "2030-11-02T00:00:00.000000Z"
},
{
"active": "29.000000000",
"available": "29.000000000",
"batch_number": "TEST-1",
"location_id": "00000000-0000-0000-0000-000000000e20",
"product_id": "d08539cd-66e1-49da-b981-a88f1857764a",
"updated_datetime": "2030-12-02T00:00:00.000000Z"
},
{
"active": "25.000000000",
"available": "25.000000000",
"batch_number": null,
"location_id": "00000000-0000-0000-0000-000000000e21",
"product_id": "d08539cd-66e1-49da-b981-a88f1857764a",
"updated_datetime": "2030-11-04T00:00:00.000000Z"
},
{
"active": "33.000000000",
"available": "33.000000000",
"batch_number": "TEST-1",
"location_id": "00000000-0000-0000-0000-000000000e21",
"product_id": "d08539cd-66e1-49da-b981-a88f1857764a",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUzNTksImlhdCI6MTc1MTU3NTc1OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTljNmI1MDktNmJjZC00ODg0LTlmMzUtNDc5ZWMzNGNiOWUxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NzU4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MzM0MjQiLCJ0eXAiOiJhY2Nlc3MifQ.BkXLq9p1YfEMuyGYWwf-74KtK3GoS8m50FrY17GIVwA
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: cfb0ab42f1a640000000000000000001-dc71634248c5cbbc-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000000357c",
"name": "Company 24597",
"updated_datetime": "2025-07-03T20:49:19.811365Z"
},
"creator": {
"banned": false,
"email": "owner-33839@example.com",
"full_name": "FirstName66469 LastName66470",
"id": "00000000-0000-0000-0000-0000000082df",
"role": {
"id": "00000000-0000-0000-0000-00000000824b",
"name": "Admin 33313"
}
},
"custom_data": [
{
"id": 152,
"name": "Custom Field 173",
"value": null
}
],
"due_datetime": "2025-07-03T20:49:20.096013Z",
"id": "00000000-0000-0000-0000-0000000002ad",
"inserted_datetime": "2025-07-03T20:49:20.098082Z",
"invoice_datetime": "2025-07-03T20:49:20.096007Z",
"invoice_number": "Invoice #563",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001f36",
"name": "B26830"
},
"id": "00000000-0000-0000-0000-000000000323",
"order_item_id": "c1742ae2-29a1-44f6-a083-8aaa69cf5a00",
"package": null,
"price": "10.000000000",
"product": {
"id": "57f61b8e-c3a4-4c90-9e86-82a07321bb5f",
"name": "Product 26828",
"sku": "sku 26829",
"updated_datetime": "2025-07-03T20:49:19.855267Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001f38",
"name": "B26836"
},
"id": "00000000-0000-0000-0000-000000000324",
"order_item_id": "c117816d-657d-4af9-89c5-b8841f9c5b93",
"package": null,
"price": "10.000000000",
"product": {
"id": "f68ff3b2-1afe-47c5-a057-85e314c82cce",
"name": "Product 26832",
"sku": "sku 26833",
"updated_datetime": "2025-07-03T20:49:19.906853Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "d4e3c8d1-4548-470f-8185-e9356aad9b6f",
"order_number": "SO-1461",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"email": "owner-33839@example.com",
"full_name": "FirstName66469 LastName66470",
"id": "00000000-0000-0000-0000-0000000082df",
"role": {
"id": "00000000-0000-0000-0000-00000000824b",
"name": "Admin 33313"
}
},
"paid_amount": "0.0",
"status": "NOT_PAID",
"total": "32.00",
"updated_datetime": "2025-07-03T20:49:20.098082Z"
},
{
"charges": [
{
"id": "925f489f-50d1-495e-920c-9fcb08ae660f",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company": {
"id": "00000000-0000-0000-0000-00000000356c",
"name": "Company 24556",
"updated_datetime": "2025-07-03T20:49:19.421684Z"
},
"creator": {
"banned": false,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-00000000828b",
"role": {
"id": "00000000-0000-0000-0000-0000000081f7",
"name": "Admin 33229"
}
},
"custom_data": [
{
"id": 152,
"name": "Custom Field 173",
"value": "Custom Field Value 1"
}
],
"due_datetime": "2020-01-01T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-0000000002ab",
"inserted_datetime": "2025-07-03T20:49:19.496762Z",
"invoice_datetime": "2020-01-01T00:00:02.000000Z",
"invoice_number": "INV-123",
"items": [
{
"batch": {
"batch_number": "UID1",
"id": "00000000-0000-0000-0000-000000001f2b",
"name": "B1"
},
"id": "00000000-0000-0000-0000-000000000321",
"order_item_id": "06cbfcc7-5487-4a03-af7e-1f959b84e929",
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000074109",
"id": "00000000-0000-0000-0000-000000000bf5",
"metrc_label": "ABCDEF012345670000074109",
"status": "active"
},
"price": "10.000000000",
"product": {
"id": "87c11008-5f17-4840-bc5a-2e522847d28b",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2025-07-03T20:49:19.351963Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "4a4c9cef-b702-448f-bcad-7ba7a584b787",
"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-00000000828e",
"role": {
"id": "00000000-0000-0000-0000-0000000081fa",
"name": "Admin 33232"
}
},
"paid_amount": "5.00",
"status": "PARTIALLY_PAID",
"total": "8.00",
"updated_datetime": "2025-07-03T20:49:19.558424Z"
}
]
}
GET /invoices/ returns cost/returned_quantity data for invoice items
GET /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUzMzcsImlhdCI6MTc1MTU3NTczNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMWE1MGQ1YWQtMzY0OS00NmI5LTg0OTQtNGFiOTIxY2IxNDc4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NzM2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6Mjk0ODQiLCJ0eXAiOiJhY2Nlc3MifQ.dETUQ0dz-vZ4q-haR65SLMOPAfsdbjotdafHgeG6F94
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: c460cb42c86528000000000000000001-1aacb6b8cc855a88-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000002f1c",
"name": "Company 21640",
"updated_datetime": "2025-07-03T20:48:57.670675Z"
},
"creator": {
"banned": false,
"email": "owner-29958@example.com",
"full_name": "FirstName58801 LastName58802",
"id": "00000000-0000-0000-0000-0000000073a3",
"role": {
"id": "00000000-0000-0000-0000-000000007311",
"name": "Admin 29416"
}
},
"custom_data": [],
"due_datetime": "2025-07-03T20:48:57.985500Z",
"id": "00000000-0000-0000-0000-000000000258",
"inserted_datetime": "2025-07-03T20:48:57.986851Z",
"invoice_datetime": "2025-07-03T20:48:57.985496Z",
"invoice_number": "Invoice #506",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001ba4",
"name": "B23833"
},
"id": "00000000-0000-0000-0000-0000000002ae",
"order_item_id": "cfd6fd97-54e5-43af-bf6e-4eba94211419",
"package": null,
"price": "639322.000000000",
"product": {
"id": "8aaa87d9-4084-4467-a02c-3d3d619aeafc",
"name": "Product 23823",
"sku": "sku 23824",
"updated_datetime": "2025-07-03T20:48:57.501960Z"
},
"quantity": "2.000000000",
"returned_quantity": "2",
"total_cost_actual": "20.052",
"total_cost_default": "10"
}
],
"order": {
"id": "3c4fea51-435e-44ac-90e5-79bbe3fc2204",
"order_number": "SO-0000001",
"status": "Processing",
"total": "1278644.00"
},
"owner": {
"banned": false,
"email": "owner-29958@example.com",
"full_name": "FirstName58801 LastName58802",
"id": "00000000-0000-0000-0000-0000000073a3",
"role": {
"id": "00000000-0000-0000-0000-000000007311",
"name": "Admin 29416"
}
},
"paid_amount": "0.0",
"status": "NOT_PAID",
"total": "32.00",
"updated_datetime": "2025-07-03T20:48:57.986851Z"
}
]
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUzNDAsImlhdCI6MTc1MTU3NTc0MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTk1MzIxZGYtZGZhYy00NDQyLWE4N2QtODY1ZWQxOGY3Yzc4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NzM5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MzAxMzIiLCJ0eXAiOiJhY2Nlc3MifQ.UNX4dc6cwlZIyWZd6UKCy6x1K0I4Q6DOAVihOLiZA2U
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 381cd2fa1975b4000000000000000001-f8cf4cfd8c501333-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000003096",
"name": "Company 22269",
"updated_datetime": "2025-07-03T20:49:02.430659Z"
},
"creator": {
"banned": false,
"email": "owner-30716@example.com",
"full_name": "FirstName60329 LastName60330",
"id": "00000000-0000-0000-0000-00000000769d",
"role": {
"id": "00000000-0000-0000-0000-00000000760c",
"name": "Admin 30178"
}
},
"custom_data": [],
"due_datetime": "2025-07-03T20:49:02.741612Z",
"id": "00000000-0000-0000-0000-000000000268",
"inserted_datetime": "2025-07-03T20:49:02.744829Z",
"invoice_datetime": "2020-01-01T12:30:00.000000Z",
"invoice_number": "Invoice #519",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c9c",
"name": "B24546"
},
"id": "00000000-0000-0000-0000-0000000002c5",
"order_item_id": "375e1686-995c-43f4-af76-91fe3c990758",
"package": null,
"price": "10.000000000",
"product": {
"id": "80da434b-d7ed-4c05-8328-b9e8e3344182",
"name": "Product 24542",
"sku": "sku 24543",
"updated_datetime": "2025-07-03T20:49:02.487511Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001ca0",
"name": "B24552"
},
"id": "00000000-0000-0000-0000-0000000002c6",
"order_item_id": "98121e94-ea31-4fd4-a7db-db8ce1690d09",
"package": null,
"price": "10.000000000",
"product": {
"id": "1c5e9595-8a34-4a8b-ab45-21aec1fbac07",
"name": "Product 24550",
"sku": "sku 24551",
"updated_datetime": "2025-07-03T20:49:02.529062Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "1a2bef4b-d897-4c75-9a77-8b3fee875b5e",
"order_number": "SO-1309",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"email": "owner-30716@example.com",
"full_name": "FirstName60329 LastName60330",
"id": "00000000-0000-0000-0000-00000000769d",
"role": {
"id": "00000000-0000-0000-0000-00000000760c",
"name": "Admin 30178"
}
},
"paid_amount": "0.0",
"status": "NOT_PAID",
"total": "32.00",
"updated_datetime": "2025-07-03T20:49:02.744829Z"
},
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000003074",
"name": "Company 22209",
"updated_datetime": "2025-07-03T20:49:01.978807Z"
},
"creator": {
"banned": false,
"email": "owner-30634@example.com",
"full_name": "FirstName60167 LastName60168",
"id": "00000000-0000-0000-0000-00000000764b",
"role": {
"id": "00000000-0000-0000-0000-0000000075bb",
"name": "Admin 30096"
}
},
"custom_data": [],
"due_datetime": "2025-07-03T20:49:02.324534Z",
"id": "00000000-0000-0000-0000-000000000264",
"inserted_datetime": "2025-07-03T20:49:02.327460Z",
"invoice_datetime": "2020-01-01T12:20:00.000000Z",
"invoice_number": "Invoice #515",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c84",
"name": "B24476"
},
"id": "00000000-0000-0000-0000-0000000002c0",
"order_item_id": "424ddd53-eca3-4ef6-8b29-a5134e066616",
"package": null,
"price": "10.000000000",
"product": {
"id": "16d397bb-d666-4f93-be37-9769d8032a1e",
"name": "Product 24474",
"sku": "sku 24475",
"updated_datetime": "2025-07-03T20:49:02.029843Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c8a",
"name": "B24488"
},
"id": "00000000-0000-0000-0000-0000000002c1",
"order_item_id": "930c493a-e3cc-4c03-b8a2-1de81ddb3e35",
"package": null,
"price": "10.000000000",
"product": {
"id": "0a926b82-b454-4286-882d-ff907f2bd0d1",
"name": "Product 24486",
"sku": "sku 24487",
"updated_datetime": "2025-07-03T20:49:02.083613Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "049d142f-54a3-4dff-8315-12401ddb60a7",
"order_number": "SO-1305",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"email": "owner-30634@example.com",
"full_name": "FirstName60167 LastName60168",
"id": "00000000-0000-0000-0000-00000000764b",
"role": {
"id": "00000000-0000-0000-0000-0000000075bb",
"name": "Admin 30096"
}
},
"paid_amount": "0.0",
"status": "FULLY_PAID",
"total": "32.00",
"updated_datetime": "2025-07-03T20:49:02.327460Z"
},
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000000302b",
"name": "Company 22085",
"updated_datetime": "2025-07-03T20:49:01.003299Z"
},
"creator": {
"banned": false,
"email": "owner-30486@example.com",
"full_name": "FirstName59874 LastName59876",
"id": "00000000-0000-0000-0000-0000000075b7",
"role": {
"id": "00000000-0000-0000-0000-000000007526",
"name": "Admin 29949"
}
},
"custom_data": [],
"due_datetime": "2025-07-03T20:49:01.284070Z",
"id": "00000000-0000-0000-0000-000000000262",
"inserted_datetime": "2025-07-03T20:49:01.287106Z",
"invoice_datetime": "2020-01-01T12:00:00.000000Z",
"invoice_number": "Invoice #513",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c5a",
"name": "B24345"
},
"id": "00000000-0000-0000-0000-0000000002bc",
"order_item_id": "e46e2395-2e2c-4c35-ac11-0a0db8fc34e9",
"package": null,
"price": "10.000000000",
"product": {
"id": "c2548d71-4dfb-4890-a976-f9733bceb384",
"name": "Product 24343",
"sku": "sku 24344",
"updated_datetime": "2025-07-03T20:49:01.058569Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c5f",
"name": "B24355"
},
"id": "00000000-0000-0000-0000-0000000002bd",
"order_item_id": "6789cdd5-e259-41f0-886d-9cd8be8bd25a",
"package": null,
"price": "10.000000000",
"product": {
"id": "7a0b0820-8e2d-48b6-8a74-ba9621fe1959",
"name": "Product 24351",
"sku": "sku 24352",
"updated_datetime": "2025-07-03T20:49:01.095148Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "4446ae88-49f2-43de-841d-e15fbd6b0872",
"order_number": "SO-1298",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"email": "owner-30486@example.com",
"full_name": "FirstName59874 LastName59876",
"id": "00000000-0000-0000-0000-0000000075b7",
"role": {
"id": "00000000-0000-0000-0000-000000007526",
"name": "Admin 29949"
}
},
"paid_amount": "0.0",
"status": "FULLY_PAID",
"total": "32.00",
"updated_datetime": "2025-07-03T20:49:01.287106Z"
}
]
}
GET /invoices/:id returns cost/returned_quantity data for invoice items
GET /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUzNDQsImlhdCI6MTc1MTU3NTc0NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjljNWI1ZTctMjIxMS00YjM2LThkZGEtY2E2MjgxNDA2YzI5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NzQzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MzA3NzUiLCJ0eXAiOiJhY2Nlc3MifQ.fVFi7Ylqj2RO2ZM4KFFd3mbcBs064yh4D8xCLl4zumQ
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 6d685ed1aa42ec000000000000000001-c36de7f302f9b7c6-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000000313c",
"name": "Company 22569",
"updated_datetime": "2025-07-03T20:49:04.741593Z"
},
"creator": {
"banned": false,
"email": "owner-31210@example.com",
"full_name": "FirstName61301 LastName61302",
"id": "00000000-0000-0000-0000-00000000788c",
"role": {
"id": "00000000-0000-0000-0000-0000000077fa",
"name": "Admin 30672"
}
},
"custom_data": [],
"due_datetime": "2025-07-03T20:49:05.076171Z",
"id": "00000000-0000-0000-0000-00000000026e",
"inserted_datetime": "2025-07-03T20:49:05.077610Z",
"invoice_datetime": "2025-07-03T20:49:05.076168Z",
"invoice_number": "Invoice #524",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001d06",
"name": "B24844"
},
"id": "00000000-0000-0000-0000-0000000002d2",
"order_item_id": "28840065-0180-4ec0-83fb-311898194f82",
"package": null,
"price": "158541.000000000",
"product": {
"id": "20e6b6f9-856d-4abd-8cc6-e272979fea61",
"name": "Product 24842",
"sku": "sku 24843",
"updated_datetime": "2025-07-03T20:49:04.609159Z"
},
"quantity": "1.000000000",
"returned_quantity": "1",
"total_cost_actual": "10.026",
"total_cost_default": "5"
}
],
"order": {
"id": "dd76524e-8ff0-406f-aaf1-7abbc9d67f83",
"order_number": "SO-0000001",
"status": "Processing",
"total": "317082.00"
},
"owner": {
"banned": false,
"email": "owner-31210@example.com",
"full_name": "FirstName61301 LastName61302",
"id": "00000000-0000-0000-0000-00000000788c",
"role": {
"id": "00000000-0000-0000-0000-0000000077fa",
"name": "Admin 30672"
}
},
"paid_amount": "0.0",
"status": "NOT_PAID",
"total": "32.00",
"updated_datetime": "2025-07-03T20:49:05.077610Z"
}
]
}
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-00000000025b/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUzMzgsImlhdCI6MTc1MTU3NTczOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYmVhNWVkZTEtNzQ4Mi00MzdiLTgzMjctZDZjYzgxYjllMmNkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NzM3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6Mjk3NDAiLCJ0eXAiOiJhY2Nlc3MifQ.cEdACGkiqBISk786wBvV29NOTBUvvD4ztf0z6OX7vm0
{
"amount": 100.01,
"description": "Payment for invoice",
"payment_datetime": "2020-01-01T00:00:00.000000Z",
"payment_method_id": "00000000-0000-0000-0000-0000000000b2",
"quickbooks_deposit_account_id": "QBD-123"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 84f3567f1791a8000000000000000001-a8aa25dfb7b69531-0
{
"data": {
"amount": "100.01",
"description": "Payment for invoice",
"id": "00000000-0000-0000-0000-000000000094",
"inserted_datetime": "2025-07-03T20:48:58.748654Z",
"invoice_id": "00000000-0000-0000-0000-00000000025b",
"payment_date": "2020-01-01T00:00:00.000000Z",
"payment_method": {
"id": "00000000-0000-0000-0000-0000000000b2",
"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-00000000025b/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUzMzgsImlhdCI6MTc1MTU3NTczOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYmVhNWVkZTEtNzQ4Mi00MzdiLTgzMjctZDZjYzgxYjllMmNkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NzM3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6Mjk3NDAiLCJ0eXAiOiJhY2Nlc3MifQ.cEdACGkiqBISk786wBvV29NOTBUvvD4ztf0z6OX7vm0
{
"amount": 100.01,
"description": "Payment for invoice",
"payment_datetime": "2020-01-01T00:00:00.000000Z",
"payment_method_id": "00000000-0000-0000-0000-0000000000b2",
"quickbooks_deposit_account_name": "QBD-NAME"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 84f3567f1791a8000000000000000001-216436205933096b-0
{
"data": {
"amount": "100.01",
"description": "Payment for invoice",
"id": "00000000-0000-0000-0000-000000000095",
"inserted_datetime": "2025-07-03T20:48:58.910002Z",
"invoice_id": "00000000-0000-0000-0000-00000000025b",
"payment_date": "2020-01-01T00:00:00.000000Z",
"payment_method": {
"id": "00000000-0000-0000-0000-0000000000b2",
"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-0000000002b4
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUzNjEsImlhdCI6MTc1MTU3NTc2MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNzA2YjNkY2YtZmMyZS00MzU0LWFhNWEtN2M0ODcwNDVjYzRiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NzYwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MzM3NDgiLCJ0eXAiOiJhY2Nlc3MifQ.m8Di-c3LWJcpv5CJpvbKTlRxTNtGsFoQdG5V3Vny99A
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: dd7abdcdb9f930000000000000000001-5c506883f1894c28-0
{
"data": {
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000035cf",
"name": "Company 24747",
"updated_datetime": "2025-07-03T20:49:21.257981Z"
},
"creator": {
"banned": false,
"email": "owner-34090@example.com",
"full_name": "FirstName66947 LastName66948",
"id": "00000000-0000-0000-0000-0000000083db",
"role": {
"id": "00000000-0000-0000-0000-000000008344",
"name": "Admin 33562"
}
},
"custom_data": [
{
"id": 153,
"name": "Custom Field 174",
"value": "Custom Field Value 1"
}
],
"due_datetime": "2025-07-03T20:49:21.541351Z",
"id": "00000000-0000-0000-0000-0000000002b4",
"inserted_datetime": "2025-07-03T20:49:21.543715Z",
"invoice_datetime": "2025-07-03T20:49:21.541349Z",
"invoice_number": "Invoice #565",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001f6c",
"name": "B26986"
},
"id": "00000000-0000-0000-0000-00000000032a",
"order_item_id": "58078a27-97be-4cf1-94ba-e42846397346",
"package": null,
"price": "10.000000000",
"product": {
"id": "11fba632-99e9-4753-b62b-0d5492ec0aba",
"name": "Product 26984",
"sku": "sku 26985",
"updated_datetime": "2025-07-03T20:49:21.303449Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001f6d",
"name": "B26989"
},
"id": "00000000-0000-0000-0000-00000000032b",
"order_item_id": "065b8bab-c771-47a1-98a5-0105b078dbfc",
"package": null,
"price": "10.000000000",
"product": {
"id": "dd75f398-2363-4fdc-b19e-e9fa5f8886f6",
"name": "Product 26987",
"sku": "sku 26988",
"updated_datetime": "2025-07-03T20:49:21.343437Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "9e0d65af-d74e-4f1a-8f98-5ea1448b0bbc",
"order_number": "SO-1469",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"email": "owner-34090@example.com",
"full_name": "FirstName66947 LastName66948",
"id": "00000000-0000-0000-0000-0000000083db",
"role": {
"id": "00000000-0000-0000-0000-000000008344",
"name": "Admin 33562"
}
},
"paid_amount": "0.0",
"status": "NOT_PAID",
"total": "32.00",
"updated_datetime": "2025-07-03T20:49:21.543715Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUzMzQsImlhdCI6MTc1MTU3NTczNCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDg1OGFjMDUtMjRiOS00MTkyLTljY2YtZDIxYzhlNjI5MDYwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NzMzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjkwMTYiLCJ0eXAiOiJhY2Nlc3MifQ.oe7tJCqtsWss0uVF6ie_zTN7fki5wmhSqFR_f-667cs
{
"billing_location_id": "00000000-0000-0000-0000-000000001fda",
"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": "477716cf-8719-4e84-8c9c-d6707c132e55",
"quantity": "1.000000000"
},
{
"order_item_id": "a00198c3-fa8d-492b-8a93-5b15c3a3cc2c",
"quantity": "10.000000000"
}
],
"order_id": "f1a4ddd1-1a9d-437c-a63f-3c15b25a0495"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 445f14d7b2631c000000000000000001-32aa5b9dff90c59e-0
{
"data": {
"charges": [
{
"id": "9b7fb7a4-e033-4666-a32b-941bcf50d2eb",
"name": "C1",
"percent": "10.0000",
"price": "5.30",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "02bc556a-3446-4a4e-9ea1-45eeb9059194",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000002e0d",
"name": "Company 21228",
"updated_datetime": "2025-07-03T20:48:54.599574Z"
},
"creator": {
"banned": false,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000007158",
"role": {
"id": "00000000-0000-0000-0000-0000000070cd",
"name": "Admin 28844"
}
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-000000000252",
"inserted_datetime": "2025-07-03T20:48:54.930655Z",
"invoice_datetime": "2020-01-01T00:00:00.000000Z",
"invoice_number": "INV-0000001",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001b2d",
"name": "B1"
},
"id": "00000000-0000-0000-0000-0000000002a3",
"order_item_id": "477716cf-8719-4e84-8c9c-d6707c132e55",
"package": null,
"price": "3.000000000",
"product": {
"id": "7834db50-b17e-4fb3-9478-e81cf5fc25cc",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2025-07-03T20:48:54.662725Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001b2e",
"name": "B2"
},
"id": "00000000-0000-0000-0000-0000000002a4",
"order_item_id": "a00198c3-fa8d-492b-8a93-5b15c3a3cc2c",
"package": null,
"price": "5.000000000",
"product": {
"id": "246e2ca8-830c-454d-830f-a193c03a5be5",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2025-07-03T20:48:54.722555Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "f1a4ddd1-1a9d-437c-a63f-3c15b25a0495",
"order_number": "SO-1239",
"status": "Processing",
"total": "0.00"
},
"owner": null,
"paid_amount": "0.0",
"status": "NOT_PAID",
"total": "53.30",
"updated_datetime": "2025-07-03T20:48:54.969933Z"
}
}
POST /invoices updates an invoice
POST /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUzNTQsImlhdCI6MTc1MTU3NTc1NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzgzNmY5MTMtYmE4NS00MTliLTgwOWUtMTVjODdiOTVhZWNmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NzUzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MzI2NDQiLCJ0eXAiOiJhY2Nlc3MifQ.U7l3w-yq60tUV5ycamzZSXO9dqshwONXH3lc6MEwyrI
{
"billing_location_id": "00000000-0000-0000-0000-000000002466",
"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": "36de027d-9e99-4f5b-825d-71044dfff3cd",
"quantity": "1.000000000"
},
{
"order_item_id": "937efa96-6157-41d8-a667-9d18b3c7f3c7",
"quantity": "10.000000000"
}
],
"order_id": "f0302f04-864b-4c64-8aaa-3c7c20ebb3dc"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: d5f6e701fff190000000000000000001-6d2f19c52a002b22-0
{
"data": {
"charges": [
{
"id": "aa7d93d2-e8b3-439e-8ef0-1ba3779d8e09",
"name": "C1",
"percent": "10.0000",
"price": "5.30",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "ae64f28f-aa14-42fe-a83e-e88f35f642ba",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000003453",
"name": "Company 24077",
"updated_datetime": "2025-07-03T20:49:14.586176Z"
},
"creator": {
"banned": false,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000007f84",
"role": {
"id": "00000000-0000-0000-0000-000000007eef",
"name": "Admin 32453"
}
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-000000000296",
"inserted_datetime": "2025-07-03T20:49:14.807620Z",
"invoice_datetime": "2020-01-01T00:00:00.000000Z",
"invoice_number": "INV-0000001",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001e76",
"name": "B1"
},
"id": "00000000-0000-0000-0000-0000000002ff",
"order_item_id": "36de027d-9e99-4f5b-825d-71044dfff3cd",
"package": null,
"price": "3.000000000",
"product": {
"id": "371c107f-0d08-4b8d-a000-f568a35dcb95",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2025-07-03T20:49:14.642828Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001e78",
"name": "B2"
},
"id": "00000000-0000-0000-0000-000000000300",
"order_item_id": "937efa96-6157-41d8-a667-9d18b3c7f3c7",
"package": null,
"price": "5.000000000",
"product": {
"id": "6a6d23cf-cdca-4ffc-a27e-0503db8f02df",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2025-07-03T20:49:14.687350Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "f0302f04-864b-4c64-8aaa-3c7c20ebb3dc",
"order_number": "SO-1436",
"status": "Processing",
"total": "0.00"
},
"owner": null,
"paid_amount": "0.0",
"status": "NOT_PAID",
"total": "53.30",
"updated_datetime": "2025-07-03T20:49:14.832024Z"
}
}
POST /invoices updates an invoice
POST /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUzNTQsImlhdCI6MTc1MTU3NTc1NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzgzNmY5MTMtYmE4NS00MTliLTgwOWUtMTVjODdiOTVhZWNmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NzUzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MzI2NDQiLCJ0eXAiOiJhY2Nlc3MifQ.U7l3w-yq60tUV5ycamzZSXO9dqshwONXH3lc6MEwyrI
{
"billing_location_id": "00000000-0000-0000-0000-000000002467",
"charges": [
{
"id": "aa7d93d2-e8b3-439e-8ef0-1ba3779d8e09",
"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-000000000296",
"invoice_datetime": "2020-01-02T00:00:00.000000Z",
"items": [
{
"id": "00000000-0000-0000-0000-0000000002ff",
"order_item_id": "36de027d-9e99-4f5b-825d-71044dfff3cd",
"quantity": "1.000000000"
},
{
"order_item_id": "937efa96-6157-41d8-a667-9d18b3c7f3c7",
"quantity": "8.000000000"
}
],
"order_id": "f0302f04-864b-4c64-8aaa-3c7c20ebb3dc"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: d5f6e701fff190000000000000000001-94f28e5003c8ab90-0
{
"data": {
"charges": [
{
"id": "aa7d93d2-e8b3-439e-8ef0-1ba3779d8e09",
"name": "C1",
"percent": "10.0000",
"price": "4.30",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "8e834942-1118-44c1-9171-b2cac6198f0c",
"name": "C3",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000003453",
"name": "Company 24077",
"updated_datetime": "2025-07-03T20:49:14.586176Z"
},
"creator": {
"banned": false,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000007f84",
"role": {
"id": "00000000-0000-0000-0000-000000007eef",
"name": "Admin 32453"
}
},
"custom_data": [],
"due_datetime": "2020-01-28T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-000000000296",
"inserted_datetime": "2025-07-03T20:49:14.807620Z",
"invoice_datetime": "2020-01-02T00:00:00.000000Z",
"invoice_number": "INV-0000001",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001e76",
"name": "B1"
},
"id": "00000000-0000-0000-0000-0000000002ff",
"order_item_id": "36de027d-9e99-4f5b-825d-71044dfff3cd",
"package": null,
"price": "3.000000000",
"product": {
"id": "371c107f-0d08-4b8d-a000-f568a35dcb95",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2025-07-03T20:49:14.642828Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001e78",
"name": "B2"
},
"id": "00000000-0000-0000-0000-000000000302",
"order_item_id": "937efa96-6157-41d8-a667-9d18b3c7f3c7",
"package": null,
"price": "5.000000000",
"product": {
"id": "6a6d23cf-cdca-4ffc-a27e-0503db8f02df",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2025-07-03T20:49:14.687350Z"
},
"quantity": "8.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "f0302f04-864b-4c64-8aaa-3c7c20ebb3dc",
"order_number": "SO-1436",
"status": "Processing",
"total": "0.00"
},
"owner": null,
"paid_amount": "0.0",
"status": "NOT_PAID",
"total": "42.30",
"updated_datetime": "2025-07-03T20:49:15.023258Z"
}
}
POST /invoices reports various errors correctly on update
POST /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUzNDgsImlhdCI6MTc1MTU3NTc0OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGI5NGQ0NzEtYWE0NC00NmE4LWE2N2UtMjY1NGQ2ODIyZjg5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NzQ3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MzE0OTEiLCJ0eXAiOiJhY2Nlc3MifQ.GY-Qak8o-rkuNfbCqdf5W5qo-HiuG7gxX3l01i5-MyI
{
"billing_location_id": "00000000-0000-0000-0000-00000000233e",
"charges": [
{
"name": "C1",
"percent": "-1000.0000",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"due_datetime": "2020-01-30T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-000000000280",
"invoice_datetime": "2020-01-01T00:00:00.000000Z",
"items": [
{
"order_item_id": "00000000-0000-0000-0000-000000000000",
"quantity": "15.000"
},
{
"order_item_id": "e0548271-061b-4510-8577-2bbd78b0cedc",
"quantity": "19.000"
}
],
"order_id": "8bb45698-ad79-430d-8fb9-6efb3466ac9b"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 6e3690205a2db4000000000000000001-ed015e2f3b4a431f-0
{
"errors": [
{
"context": {
"id": "cbeb7e7f-2329-4629-a495-c75df213f1b3"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUzOTQsImlhdCI6MTc1MTU3NTc5NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZWNhZjQ4NjQtNTEyNi00NWZiLTg0MzctYjA5NWMwZGM1OTE0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NzkzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MzkwMDIiLCJ0eXAiOiJhY2Nlc3MifQ.gx83O356s9sE1Iq-kf-7VYgC57iFX9svhRsjASX__C8
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 4a026a14974bd8000000000000000001-ea8b48036a66e800-0
{
"data": [
{
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000006dfd",
"id": "00000000-0000-0000-0000-000000002c3b",
"license": null,
"license_id": null,
"name": "Place 11098"
},
{
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000006dfd",
"id": "00000000-0000-0000-0000-000000002c3c",
"license": {
"id": "00000000-0000-0000-0000-000000001dba",
"license_number": "CDPH-00008445"
},
"license_id": "00000000-0000-0000-0000-000000001dba",
"name": "Place 11099"
}
]
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyMjEsImlhdCI6MTc1MTU3NTYyMSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTExZmI1MDAtOGMyNi00ZDI0LThhYmItYzE0OWQ3MGUyZWZlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjIwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTE2NTYiLCJ0eXAiOiJhY2Nlc3MifQ.yn4zKeT8zTTqEyFWaXr2OfHAW0ZUoVOK6bOVr6woIvg
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: cc3b0c6898b710000000000000000001-63f177d65119f49c-0
{
"data": [
{
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000022ad",
"id": "00000000-0000-0000-0000-000000000dde",
"license_id": null,
"name": "Place 3523"
},
"biotrack_id": null,
"charges": [
{
"id": "38f25946-e3a9-43ae-94b4-07f3e189be9e",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000001460",
"name": "Company 8871",
"updated_datetime": "2030-11-01T00:00:00.000000Z"
},
"creator": {
"banned": false,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000002d80",
"role": {
"id": "00000000-0000-0000-0000-000000002d9e",
"name": "Admin 11665"
}
},
"custom_data": [
{
"id": 78,
"name": "Custom Field 99",
"value": "Custom Field Value 1"
}
],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "c790d8c8-6683-4176-a83d-fe3f41cd32f0",
"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-000000000be2",
"name": "B1"
},
"compliance_quantity": "10.0000",
"id": "6f67167c-77b4-443a-95a6-7a5b94cb624f",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000022ad",
"id": "00000000-0000-0000-0000-000000000dde",
"license_id": null,
"name": "Place 3523"
},
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000002494",
"id": "00000000-0000-0000-0000-0000000003b6",
"metrc_label": "ABCDEF012345670000002494",
"status": "active"
},
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "eaae6973-a8bd-4514-b72d-d8f4f34b6676",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2023-11-02T00:00:00.000000Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"leaflink_order_number": "639e41fb-378f-4f33-a260-791d1a50ab00",
"metrc_transfer_id": 1,
"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-000000002d83",
"role": {
"id": "00000000-0000-0000-0000-000000002da1",
"name": "Admin 11668"
}
},
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000022ad",
"id": "00000000-0000-0000-0000-000000000dde",
"license_id": null,
"name": "Place 3523"
},
"status": "COMPLETED",
"total": "11.00",
"updated_datetime": "2020-01-01T00:00:04.000000Z"
}
]
}
GET /public/v1/orders returns cost/returned_quantity data for order items
GET /public/v1/orders
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUxODYsImlhdCI6MTc1MTU3NTU4NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMWM2OGFiODktMjhkYi00MDEyLThlY2YtMzk2OTMwZTZmYmVkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NTg1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTY4NCIsInR5cCI6ImFjY2VzcyJ9.PyW-KoWDlurWN-F5F-GfG-iOcQD5z_jmz2kg_0cpy6I
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 98eac61382b170000000000000000001-964127f597aa7459-0
{
"data": [
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000952",
"name": "Company 4301",
"updated_datetime": "2025-07-03T20:46:27.057006Z"
},
"creator": {
"banned": false,
"email": "owner-5814@example.com",
"full_name": "FirstName11458 LastName11459",
"id": "00000000-0000-0000-0000-00000000165f",
"role": {
"id": "00000000-0000-0000-0000-00000000164d",
"name": "Admin 5699"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2025-07-03T20:46:27.060044Z",
"external_notes": null,
"id": "cbbccedc-b23b-47e7-8b06-12f8b71c4e4e",
"inserted_datetime": "2025-07-03T20:46:27.107288Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000049c",
"name": "B4011"
},
"compliance_quantity": null,
"id": "f886c15b-4ee4-4f6d-99c3-51b1e97823c1",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000010c3",
"id": "00000000-0000-0000-0000-00000000073d",
"license_id": null,
"name": "Place 1835"
},
"package": null,
"price": "233249.000000000",
"price_base": "233249",
"product": {
"id": "64bf181f-6ef2-422e-bb89-843f7bcd30e2",
"name": "Product 4007",
"sku": "sku 4008",
"updated_datetime": "2025-07-03T20:46:26.913007Z"
},
"quantity": "2.000000000",
"returned_quantity": "2",
"total_cost_actual": "20.052",
"total_cost_default": "10"
}
],
"leaflink_order_number": null,
"metrc_transfer_id": null,
"order_datetime": "2025-07-03T20:46:27.060045Z",
"order_number": "SO-0000001",
"owner": null,
"shipping_location": null,
"status": "PROCESSING",
"total": "466498.00",
"updated_datetime": "2025-07-03T20:46:27.107288Z"
}
]
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUxOTMsImlhdCI6MTc1MTU3NTU5MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMmI5NTM1MDQtYjFhMi00OWE5LTlmMzgtN2NjNjA5ZjQ1MzFkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NTkyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6Njk3OCIsInR5cCI6ImFjY2VzcyJ9.GFb1sjuIkuvnM7LDHjhHcglqcj3OS7qo5wwhdrQTfGw
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 28ad54b43b6dae000000000000000001-ea81f3a52f21d493-0
{
"data": [
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000c72",
"name": "Company 5483",
"updated_datetime": "2025-07-03T20:46:35.377475Z"
},
"creator": {
"banned": false,
"email": "owner-7307@example.com",
"full_name": "FirstName14442 LastName14443",
"id": "00000000-0000-0000-0000-000000001c37",
"role": {
"id": "00000000-0000-0000-0000-000000001c39",
"name": "Admin 7215"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2025-07-03T20:46:35.456242Z",
"external_notes": null,
"id": "ad3025f2-9cf0-4f0b-9739-35c8d1e77c0b",
"inserted_datetime": "2025-07-03T20:46:35.459422Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000066f",
"name": "B5631"
},
"compliance_quantity": null,
"id": "b3aacccd-6ac5-4b68-a8f3-faf2eabe51e6",
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "4c194e6c-60ba-4d51-949c-c0f09da3691c",
"name": "Product 5624",
"sku": "sku 5625",
"updated_datetime": "2025-07-03T20:46:35.509185Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000672",
"name": "B5641"
},
"compliance_quantity": null,
"id": "db9b14a9-5de8-479d-83df-2f6d5ea06f51",
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "704c8beb-5253-4c2c-b2c1-1f3c402f413b",
"name": "Product 5635",
"sku": "sku 5636",
"updated_datetime": "2025-07-03T20:46:35.570709Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000679",
"name": "B5660"
},
"compliance_quantity": null,
"id": "f3a36727-bb48-486d-992f-8438831ab51d",
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "afa293f7-f6d9-47b7-8649-a2c00354841b",
"name": "Product 5655",
"sku": "sku 5658",
"updated_datetime": "2025-07-03T20:46:35.618261Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000680",
"name": "B5679"
},
"compliance_quantity": null,
"id": "aad2c23c-bfcb-4cf7-957a-fe28adbc9ff5",
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "6644a94b-7368-4e39-a595-9a969a0f9710",
"name": "Product 5676",
"sku": "sku 5677",
"updated_datetime": "2025-07-03T20:46:35.662865Z"
},
"quantity": "2.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"leaflink_order_number": null,
"metrc_transfer_id": null,
"order_datetime": "2020-01-01T12:30:00.000000Z",
"order_number": "SO-405",
"owner": {
"banned": false,
"email": "owner-7307@example.com",
"full_name": "FirstName14442 LastName14443",
"id": "00000000-0000-0000-0000-000000001c37",
"role": {
"id": "00000000-0000-0000-0000-000000001c39",
"name": "Admin 7215"
}
},
"shipping_location": null,
"status": "CANCELED",
"total": "320.00",
"updated_datetime": "2025-07-03T20:46:35.794205Z"
},
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000c46",
"name": "Company 5409",
"updated_datetime": "2025-07-03T20:46:34.852830Z"
},
"creator": {
"banned": false,
"email": "owner-7224@example.com",
"full_name": "FirstName14276 LastName14277",
"id": "00000000-0000-0000-0000-000000001be4",
"role": {
"id": "00000000-0000-0000-0000-000000001be1",
"name": "Admin 7127"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2025-07-03T20:46:34.976608Z",
"external_notes": null,
"id": "0bb62636-58c7-4532-b41a-7ed79eb6bf03",
"inserted_datetime": "2025-07-03T20:46:34.979880Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000653",
"name": "B5534"
},
"compliance_quantity": null,
"id": "c8ad134d-970c-402c-b30c-58c1a9bc0161",
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "18cbe176-6404-4281-981d-73fc586498a3",
"name": "Product 5532",
"sku": "sku 5533",
"updated_datetime": "2025-07-03T20:46:35.072006Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000655",
"name": "B5546"
},
"compliance_quantity": null,
"id": "15a4f785-2c41-41db-9e32-c187ff504d28",
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "1428c0bd-c06b-4d41-bba4-bc5d7ded0ff2",
"name": "Product 5544",
"sku": "sku 5545",
"updated_datetime": "2025-07-03T20:46:35.128656Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000658",
"name": "B5555"
},
"compliance_quantity": null,
"id": "587fc392-f97f-447a-b09b-4f3d0067dd92",
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "6ad84fa4-3b48-4253-9d17-77ac5b1525ee",
"name": "Product 5553",
"sku": "sku 5554",
"updated_datetime": "2025-07-03T20:46:35.186608Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000065b",
"name": "B5570"
},
"compliance_quantity": null,
"id": "d9318f7c-6b67-405c-be9a-f4c0d5c7513b",
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "9d1d54bd-864d-4cd9-9f60-d5b1961cbfa5",
"name": "Product 5568",
"sku": "sku 5569",
"updated_datetime": "2025-07-03T20:46:35.237171Z"
},
"quantity": "2.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"leaflink_order_number": null,
"metrc_transfer_id": null,
"order_datetime": "2020-01-01T12:20:00.000000Z",
"order_number": "SO-401",
"owner": {
"banned": false,
"email": "owner-7224@example.com",
"full_name": "FirstName14276 LastName14277",
"id": "00000000-0000-0000-0000-000000001be4",
"role": {
"id": "00000000-0000-0000-0000-000000001be1",
"name": "Admin 7127"
}
},
"shipping_location": null,
"status": "COMPLETED",
"total": "320.00",
"updated_datetime": "2025-07-03T20:46:35.352210Z"
},
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000bf9",
"name": "Company 5294",
"updated_datetime": "2025-07-03T20:46:33.869041Z"
},
"creator": {
"banned": false,
"email": "owner-7067@example.com",
"full_name": "FirstName13962 LastName13963",
"id": "00000000-0000-0000-0000-000000001b47",
"role": {
"id": "00000000-0000-0000-0000-000000001b41",
"name": "Admin 6967"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2025-07-03T20:46:33.951489Z",
"external_notes": null,
"id": "6bc432e6-d81a-469e-a662-5707bed5a8b4",
"inserted_datetime": "2025-07-03T20:46:33.953022Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000620",
"name": "B5359"
},
"compliance_quantity": null,
"id": "043f1bf7-dbba-48af-a267-54827800ef94",
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "37b3247c-2e1d-4481-8f72-65f9a2eba55a",
"name": "Product 5357",
"sku": "sku 5358",
"updated_datetime": "2025-07-03T20:46:34.004437Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000622",
"name": "B5371"
},
"compliance_quantity": null,
"id": "9f2e5a49-6f87-4972-99bb-3f92b9a41730",
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "1e22b1b5-be2b-4294-b138-fd68582e2941",
"name": "Product 5369",
"sku": "sku 5370",
"updated_datetime": "2025-07-03T20:46:34.055676Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000628",
"name": "B5385"
},
"compliance_quantity": null,
"id": "5c592180-2c1b-4bda-bfcc-b1bf9ec1a251",
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "fa4765f3-523a-4d47-a1e0-1dd23beae4cc",
"name": "Product 5381",
"sku": "sku 5384",
"updated_datetime": "2025-07-03T20:46:34.093365Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000062c",
"name": "B5393"
},
"compliance_quantity": null,
"id": "4783d08d-458a-4f5a-a7e6-5697e0e4bbe1",
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "10d5a217-24b1-4f42-8e74-f43f12ce99d8",
"name": "Product 5391",
"sku": "sku 5392",
"updated_datetime": "2025-07-03T20:46:34.135612Z"
},
"quantity": "2.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"leaflink_order_number": null,
"metrc_transfer_id": null,
"order_datetime": "2020-01-01T12:00:00.000000Z",
"order_number": "SO-389",
"owner": {
"banned": false,
"email": "owner-7067@example.com",
"full_name": "FirstName13962 LastName13963",
"id": "00000000-0000-0000-0000-000000001b47",
"role": {
"id": "00000000-0000-0000-0000-000000001b41",
"name": "Admin 6967"
}
},
"shipping_location": null,
"status": "COMPLETED",
"total": "320.00",
"updated_datetime": "2025-07-03T20:46:34.233936Z"
}
]
}
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/ddaaa00d-f834-44c0-8413-fb777e96b13e
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUxODMsImlhdCI6MTc1MTU3NTU4MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTBiODgwNWQtN2U0MC00MzE0LTkwY2YtMzFhYTlmZmEyMzliIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NTgyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTEzNyIsInR5cCI6ImFjY2VzcyJ9.Vo02n58XvsuD4L83yfLcj7Y7_QXxxpuFXMyr7aZLRaA
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 7988af960717b8000000000000000001-7749dd2537cb6373-0
{
"data": {
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000829",
"name": "Company 3851",
"updated_datetime": "2025-07-03T20:46:23.879241Z"
},
"creator": {
"banned": false,
"email": "owner-5229@example.com",
"full_name": "FirstName10286 LastName10289",
"id": "00000000-0000-0000-0000-000000001416",
"role": {
"id": "00000000-0000-0000-0000-0000000013fb",
"name": "Admin 5105"
}
},
"custom_data": [
{
"id": 53,
"name": "Custom Field 43",
"value": "Custom Field Value 1"
}
],
"delivery_datetime": null,
"due_datetime": "2025-07-03T20:46:23.943460Z",
"external_notes": null,
"id": "ddaaa00d-f834-44c0-8413-fb777e96b13e",
"inserted_datetime": "2025-07-03T20:46:23.945369Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000413",
"name": "B3524"
},
"compliance_quantity": null,
"id": "a72a691d-bc3e-44b0-a17c-d14ee2bb4ac4",
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "9f0d18ba-2ded-40a9-aa0f-dadd235f19d7",
"name": "Product 3522",
"sku": "sku 3523",
"updated_datetime": "2025-07-03T20:46:23.967928Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000417",
"name": "B3534"
},
"compliance_quantity": null,
"id": "807eeea8-66b1-4a01-aa4d-ff07a9dcac79",
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "dc979f44-f162-4743-9ef3-5c3e11ec022a",
"name": "Product 3532",
"sku": "sku 3533",
"updated_datetime": "2025-07-03T20:46:24.014079Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000041c",
"name": "B3549"
},
"compliance_quantity": null,
"id": "ab8f016a-3132-4444-87df-4447b5d7f0cf",
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "324ff263-8d6f-4a52-ad56-0b90c333ab5c",
"name": "Product 3547",
"sku": "sku 3548",
"updated_datetime": "2025-07-03T20:46:24.045647Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000041f",
"name": "B3558"
},
"compliance_quantity": null,
"id": "328c4eaf-26b5-4188-9bac-3b0ac3f5d7d7",
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "a20463d6-fc0f-42f7-bc73-7f16cd897bfd",
"name": "Product 3556",
"sku": "sku 3557",
"updated_datetime": "2025-07-03T20:46:24.087665Z"
},
"quantity": "2.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"leaflink_order_number": null,
"metrc_transfer_id": null,
"order_datetime": "2025-07-03T20:46:23.943459Z",
"order_number": "SO-289",
"owner": {
"banned": false,
"email": "owner-5229@example.com",
"full_name": "FirstName10286 LastName10289",
"id": "00000000-0000-0000-0000-000000001416",
"role": {
"id": "00000000-0000-0000-0000-0000000013fb",
"name": "Admin 5105"
}
},
"shipping_location": null,
"status": "COMPLETED",
"total": "320.00",
"updated_datetime": "2025-07-03T20:46:24.147860Z"
}
}
GET /orders/:id returns cost data for order items
GET /public/v1/orders/3011191a-e1de-4b30-aa07-5e9c300d6c79
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyMjIsImlhdCI6MTc1MTU3NTYyMiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZGFmMWQ5MGQtNWQxYS00YjNjLWFkOWItMDFjNDM5NGM5ZGRhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjIxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTE4NTkiLCJ0eXAiOiJhY2Nlc3MifQ.7-d9PuCTk8jeEZqtHHKtH7mLXO2WPRpi2Lb4VkPoEfs
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 11f34c36aa715a000000000000000001-d049b34ff5eba83e-0
{
"data": {
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000014b1",
"name": "Company 9038",
"updated_datetime": "2025-07-03T20:47:03.080569Z"
},
"creator": {
"banned": false,
"email": "owner-11968@example.com",
"full_name": "FirstName23774 LastName23775",
"id": "00000000-0000-0000-0000-000000002e7e",
"role": {
"id": "00000000-0000-0000-0000-000000002ea1",
"name": "Admin 11924"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2025-07-03T20:47:03.085207Z",
"external_notes": null,
"id": "3011191a-e1de-4b30-aa07-5e9c300d6c79",
"inserted_datetime": "2025-07-03T20:47:03.132358Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000c52",
"name": "B10653"
},
"compliance_quantity": null,
"id": "2f337030-5dab-422c-a20e-60836289b1f2",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000234c",
"id": "00000000-0000-0000-0000-000000000e0f",
"license_id": null,
"name": "Place 3572"
},
"package": null,
"price": "914705.000000000",
"price_base": "914705",
"product": {
"id": "ee777d11-7caf-454f-8b97-7fa7b55e8199",
"name": "Product 10648",
"sku": "sku 10649",
"updated_datetime": "2025-07-03T20:47:02.880257Z"
},
"quantity": "2.000000000",
"returned_quantity": "0",
"total_cost_actual": "20.052",
"total_cost_default": "10"
}
],
"leaflink_order_number": null,
"metrc_transfer_id": null,
"order_datetime": "2025-07-03T20:47:03.085210Z",
"order_number": "SO-0000001",
"owner": null,
"shipping_location": null,
"status": "PROCESSING",
"total": "1829410.00",
"updated_datetime": "2025-07-03T20:47:03.132358Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUxODgsImlhdCI6MTc1MTU3NTU4OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMWM0YzBhN2QtNjQwZC00YjNlLTg5ZDQtZmJjMTVjZjk0ZTA0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NTg3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTk3MyIsInR5cCI6ImFjY2VzcyJ9.sHUDpimL6CzClUaedzkeRGaxDuMsCT7kGTHQ-mud07k
{
"billing_location_id": "00000000-0000-0000-0000-0000000007aa",
"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-0000000009ce",
"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-0000000007aa",
"price_base": "10.000000000",
"product_id": "46870fb9-3b4f-4105-b3fa-6f511b1779aa",
"quantity": "1.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"owner_id": "00000000-0000-0000-0000-000000001755",
"shipping_location_id": "00000000-0000-0000-0000-0000000007aa",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 958211565c31c8000000000000000001-8e06b30e3b21afec-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000119d",
"id": "00000000-0000-0000-0000-0000000007aa",
"license_id": "00000000-0000-0000-0000-000000000492",
"name": "Place 1944"
},
"biotrack_id": null,
"charges": [
{
"id": "730c723b-2a10-435e-8e0d-ce7df6402814",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "bb337b27-a8dc-4ff9-bba2-09aceec7c91d",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000009ce",
"name": "Company 4491",
"updated_datetime": "2025-07-03T20:46:28.112662Z"
},
"creator": {
"banned": false,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000001755",
"role": {
"id": "00000000-0000-0000-0000-000000001743",
"name": "Admin 5945"
}
},
"custom_data": [
{
"id": 55,
"name": "Custom Field 45",
"value": null
}
],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": "Thank you for ordering!",
"id": "05ae6d97-662d-49c5-9d0e-587350df851e",
"inserted_datetime": "2025-07-03T20:46:28.300490Z",
"internal_notes": "Internal notes for this order",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000004e6",
"name": "B1"
},
"compliance_quantity": null,
"id": "00f6c984-d873-4c39-834c-e20ba6f2ec3d",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000119d",
"id": "00000000-0000-0000-0000-0000000007aa",
"license_id": "00000000-0000-0000-0000-000000000492",
"name": "Place 1944"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "46870fb9-3b4f-4105-b3fa-6f511b1779aa",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2025-07-03T20:46:28.192337Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"leaflink_order_number": null,
"metrc_transfer_id": null,
"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-000000001755",
"role": {
"id": "00000000-0000-0000-0000-000000001743",
"name": "Admin 5945"
}
},
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000119d",
"id": "00000000-0000-0000-0000-0000000007aa",
"license_id": "00000000-0000-0000-0000-000000000492",
"name": "Place 1944"
},
"status": "PROCESSING",
"total": "6.00",
"updated_datetime": "2025-07-03T20:46:28.416652Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUxODEsImlhdCI6MTc1MTU3NTU4MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTY0MmQ0MjMtNDM0YS00NzdkLThkY2ItY2RkMDFlMTMzOWY5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NTgwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NDcyNyIsInR5cCI6ImFjY2VzcyJ9.2HUmDXNnMVd2JSPDMQqhVGjP_JJz7rso_Dfbgbb8EjM
{
"billing_location_id": "00000000-0000-0000-0000-0000000005e8",
"charges": [],
"company_id": "00000000-0000-0000-0000-00000000075e",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-0000000005e8",
"price_base": "10.000000000",
"product_id": "3deb1f23-a037-4105-bbb3-e60e78140b85",
"quantity": "1.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-0000000005e8",
"status": "PROCESSING"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 536140a08899d8000000000000000001-91ac00684a54f3ee-0
{
"errors": [
{
"context": {
"id": "372aac03-09cf-49d5-8b19-d6fed1105699"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUxODEsImlhdCI6MTc1MTU3NTU4MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTY0MmQ0MjMtNDM0YS00NzdkLThkY2ItY2RkMDFlMTMzOWY5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NTgwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NDcyNyIsInR5cCI6ImFjY2VzcyJ9.2HUmDXNnMVd2JSPDMQqhVGjP_JJz7rso_Dfbgbb8EjM
{
"billing_location_id": "00000000-0000-0000-0000-0000000005e8",
"blaze_payment_type": "CASH",
"charges": [],
"company_id": "00000000-0000-0000-0000-00000000075e",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-0000000005e8",
"price_base": "10.000000000",
"product_id": "3deb1f23-a037-4105-bbb3-e60e78140b85",
"quantity": "1.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-0000000005e8",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 536140a08899d8000000000000000001-be1086e195f88a7a-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000dc8",
"id": "00000000-0000-0000-0000-0000000005e8",
"license_id": "00000000-0000-0000-0000-000000000394",
"name": "Place 1496"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000000075e",
"name": "Company 3509",
"updated_datetime": "2025-07-03T20:46:21.255926Z"
},
"creator": {
"banned": false,
"email": "owner-4817@example.com",
"full_name": "FirstName9450 LastName9451",
"id": "00000000-0000-0000-0000-000000001277",
"role": {
"id": "00000000-0000-0000-0000-00000000125c",
"name": "Admin 4690"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "89673ee5-8904-4666-b8ef-c4649b9f9229",
"inserted_datetime": "2025-07-03T20:46:22.694189Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000003b5",
"name": "B1"
},
"compliance_quantity": null,
"id": "4006c2ed-6f01-4a77-affa-fb56335bcae8",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000dc8",
"id": "00000000-0000-0000-0000-0000000005e8",
"license_id": "00000000-0000-0000-0000-000000000394",
"name": "Place 1496"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "3deb1f23-a037-4105-bbb3-e60e78140b85",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2025-07-03T20:46:21.364289Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"leaflink_order_number": null,
"metrc_transfer_id": null,
"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-000000000dc8",
"id": "00000000-0000-0000-0000-0000000005e8",
"license_id": "00000000-0000-0000-0000-000000000394",
"name": "Place 1496"
},
"status": "PROCESSING",
"total": "10.00",
"updated_datetime": "2025-07-03T20:46:22.694189Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyMTIsImlhdCI6MTc1MTU3NTYxMiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjM4YWRiZTctOGEyYS00YmZmLWE4YzQtODY3NWM2NTBkNDkzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjExLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTAxMjYiLCJ0eXAiOiJhY2Nlc3MifQ.BEr9C2S2qKz4O9iWv0ukKa3IzaEv0n0AAvSh0DnA9t8
{
"billing_location_id": "00000000-0000-0000-0000-000000000c64",
"charges": [],
"company_id": "00000000-0000-0000-0000-0000000011e7",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000000c64",
"position": 1,
"price_base": "100.000000000",
"product_id": "5e39e34c-89bc-4280-bf76-ae60ebcf0dcc",
"quantity": "80.000000000"
},
{
"location_id": "00000000-0000-0000-0000-000000000c64",
"position": 2,
"price_base": "200.000000000",
"product_id": "5e39e34c-89bc-4280-bf76-ae60ebcf0dcc",
"quantity": "10.000000000"
},
{
"location_id": "00000000-0000-0000-0000-000000000c64",
"position": 3,
"price_base": "300.000000000",
"product_id": "d459351f-55b0-44d6-92d2-622ade9b45b0",
"quantity": "20.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-000000000c64",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 3932dac57e27da000000000000000001-3ff398c20c101f7c-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001e9a",
"id": "00000000-0000-0000-0000-000000000c64",
"license_id": "00000000-0000-0000-0000-000000000869",
"name": "Place 3147"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000011e7",
"name": "Company 7809",
"updated_datetime": "2025-07-03T20:46:52.150991Z"
},
"creator": {
"banned": false,
"email": "owner-10192@example.com",
"full_name": "FirstName20234 LastName20235",
"id": "00000000-0000-0000-0000-00000000278e",
"role": {
"id": "00000000-0000-0000-0000-0000000027a0",
"name": "Admin 10134"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "abf8cbb1-486e-4877-ae43-0c60a7001b22",
"inserted_datetime": "2025-07-03T20:46:52.567251Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000009ef",
"name": "B1"
},
"compliance_quantity": null,
"id": "eb10d752-1523-4c18-adb1-4f3e1e0ffde8",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001e9a",
"id": "00000000-0000-0000-0000-000000000c64",
"license_id": "00000000-0000-0000-0000-000000000869",
"name": "Place 3147"
},
"package": null,
"price": "80.000000000",
"price_base": "100.000000000",
"product": {
"id": "5e39e34c-89bc-4280-bf76-ae60ebcf0dcc",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2025-07-03T20:46:52.252190Z"
},
"quantity": "80.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000009ef",
"name": "B1"
},
"compliance_quantity": null,
"id": "ff167193-5785-41b1-bb58-ddc5b2e005eb",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001e9a",
"id": "00000000-0000-0000-0000-000000000c64",
"license_id": "00000000-0000-0000-0000-000000000869",
"name": "Place 3147"
},
"package": null,
"price": "180.000000000",
"price_base": "200.000000000",
"product": {
"id": "5e39e34c-89bc-4280-bf76-ae60ebcf0dcc",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2025-07-03T20:46:52.252190Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000009f6",
"name": "B2"
},
"compliance_quantity": null,
"id": "530f3685-2765-4160-a73f-1ace7bb8647b",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001e9a",
"id": "00000000-0000-0000-0000-000000000c64",
"license_id": "00000000-0000-0000-0000-000000000869",
"name": "Place 3147"
},
"package": null,
"price": "270.000000000",
"price_base": "300.000000000",
"product": {
"id": "d459351f-55b0-44d6-92d2-622ade9b45b0",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2025-07-03T20:46:52.337680Z"
},
"quantity": "20.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"leaflink_order_number": null,
"metrc_transfer_id": null,
"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-000000001e9a",
"id": "00000000-0000-0000-0000-000000000c64",
"license_id": "00000000-0000-0000-0000-000000000869",
"name": "Place 3147"
},
"status": "PROCESSING",
"total": "13600.00",
"updated_datetime": "2025-07-03T20:46:52.711491Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyMjIsImlhdCI6MTc1MTU3NTYyMiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiM2ViMDcyNTktMDQ2My00YWYwLWFmOWItNjA4ZTg4NzEwMzE0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjIxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTE3NDUiLCJ0eXAiOiJhY2Nlc3MifQ.sfwPUUnrfEEmnlvzptiZ3Em7CRoe-Y23VvYnRuMBgt0
{
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"batch_id": "00000000-0000-0000-0000-000000000bfb",
"location_id": "00000000-0000-0000-0000-000000000def",
"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: 7c6d2c42433518000000000000000001-1873d0c0c0789191-0
{
"data": {
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": null,
"creator": {
"banned": false,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000002de1",
"role": {
"id": "00000000-0000-0000-0000-000000002e01",
"name": "Admin 11764"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "d8a12f14-a171-49fe-9c38-cee4cee723e1",
"inserted_datetime": "2025-07-03T20:47:02.430198Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000bfb",
"name": "B1"
},
"compliance_quantity": null,
"id": "96971123-600d-4821-99ed-2b04b646d817",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000022e4",
"id": "00000000-0000-0000-0000-000000000def",
"license_id": "00000000-0000-0000-0000-000000000987",
"name": "Place 3540"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "e8659def-7599-4158-8ebd-edffb7319dfa",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2025-07-03T20:47:02.280182Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"leaflink_order_number": null,
"metrc_transfer_id": null,
"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-07-03T20:47:02.430198Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyMjAsImlhdCI6MTc1MTU3NTYyMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTdhNTA1YmMtYjJlNC00NjkzLWFmMDMtYjI2NzE4NWQzOGUzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjE5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTE1ODIiLCJ0eXAiOiJhY2Nlc3MifQ.iObteMYIuk3vhxmMCuxOY2T21H544KpP1tELR1S4mf4
{
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000000dd0",
"price_base": "10.000000000",
"product_id": "5483143a-d2e2-4d71-9140-d40a59028936",
"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: 4b834281fcbf84000000000000000001-f279f102ed6c0f98-0
{
"data": {
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": null,
"creator": {
"banned": false,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000002d3e",
"role": {
"id": "00000000-0000-0000-0000-000000002d5c",
"name": "Admin 11599"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "578f7b36-6bc0-4958-9986-d14ac50f6948",
"inserted_datetime": "2025-07-03T20:47:01.068504Z",
"internal_notes": null,
"items": [
{
"batch": null,
"compliance_quantity": null,
"id": "493f98b0-e295-4456-b39c-7812ba9a1cc7",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000002280",
"id": "00000000-0000-0000-0000-000000000dd0",
"license_id": "00000000-0000-0000-0000-000000000968",
"name": "Place 3509"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "5483143a-d2e2-4d71-9140-d40a59028936",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2025-07-03T20:47:01.004608Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"leaflink_order_number": null,
"metrc_transfer_id": null,
"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-07-03T20:47:01.068504Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyMDAsImlhdCI6MTc1MTU3NTYwMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjNjNTU0NTMtOGYwMi00OGVmLWE0N2MtNTE5ZTdmMzE4NzYyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NTk5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODI2NSIsInR5cCI6ImFjY2VzcyJ9.XWUXTo0knm7E51A8GJe9732d2IBfkNwNNswaOxQ7PdE
{
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"compliance_quantity": "1.0000",
"location_id": "00000000-0000-0000-0000-000000000a77",
"package_id": "00000000-0000-0000-0000-000000000268",
"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: 25c97e3b0cba00000000000000000001-93816dc5205a2225-0
{
"data": {
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": null,
"creator": {
"banned": false,
"email": "owner-8346@example.com",
"full_name": "FirstName16520 LastName16521",
"id": "00000000-0000-0000-0000-000000002049",
"role": {
"id": "00000000-0000-0000-0000-000000002051",
"name": "Admin 8263"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "f0424552-11c4-4428-9158-950ad1fcac25",
"inserted_datetime": "2025-07-03T20:46:40.828886Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000079d",
"name": "B1"
},
"compliance_quantity": "1.0000",
"id": "d49ed3b1-609a-491d-8602-3249b28c625d",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001855",
"id": "00000000-0000-0000-0000-000000000a77",
"license_id": "00000000-0000-0000-0000-0000000006d5",
"name": "Place 2656"
},
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000001577",
"id": "00000000-0000-0000-0000-000000000268",
"metrc_label": "ABCDEF012345670000001577",
"status": "selling"
},
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "2b33e900-8f3b-4281-a0e0-d7dc9000f490",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2025-07-03T20:46:40.633475Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"leaflink_order_number": null,
"metrc_transfer_id": null,
"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-07-03T20:46:40.828886Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUxOTksImlhdCI6MTc1MTU3NTU5OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZWE4MmUwZDEtMWM3YS00MmQ0LTliZGEtMzg2ODczY2Y2ZTM3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NTk4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6Nzk1NyIsInR5cCI6ImFjY2VzcyJ9.JYQ4bcl5_qTPYvJN5QsAUJNGtT8gW2FbD7UayzIWVvE
{
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000000a19",
"price_base": "10.000000000",
"product_id": "7f86912f-09f2-40c0-a95b-312c31b2fc6d",
"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: e9b4f3182b3cc0000000000000000001-5ab2d6cb8406088f-0
{
"data": {
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": null,
"creator": {
"banned": false,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000001f15",
"role": {
"id": "00000000-0000-0000-0000-000000001f1d",
"name": "Admin 7955"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "1ae9abf3-9aa8-45ff-92e3-09cffbf5d64b",
"inserted_datetime": "2025-07-03T20:46:39.498173Z",
"internal_notes": null,
"items": [
{
"batch": null,
"compliance_quantity": null,
"id": "1054a253-8ffe-47e6-8522-bf3e22b3efe9",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001781",
"id": "00000000-0000-0000-0000-000000000a19",
"license_id": "00000000-0000-0000-0000-000000000675",
"name": "Place 2563"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "7f86912f-09f2-40c0-a95b-312c31b2fc6d",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2025-07-03T20:46:39.450143Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"leaflink_order_number": null,
"metrc_transfer_id": null,
"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-07-03T20:46:39.498173Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyMDMsImlhdCI6MTc1MTU3NTYwMywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDZhZDdkNWUtY2Y3ZC00MzFiLThmYTgtMDhlNzhkNDRhYmRhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjAyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODcxNiIsInR5cCI6ImFjY2VzcyJ9.f9fi-f3rQM2CSAG5krI5a_g5gi-PdZrdY5b8Bwxkzq8
{
"billing_location_id": "00000000-0000-0000-0000-000000000ae6",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000000edb",
"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": "1f298218-a3ca-463f-a2df-ab3ba31e2092",
"location_id": "00000000-0000-0000-0000-000000000ae6",
"package_id": "00000000-0000-0000-0000-00000000028e",
"price_base": "10.000000000",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000000ae6",
"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-00000000220c",
"shipping_location_id": "00000000-0000-0000-0000-000000000ae6",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 35d3549d1ee6f6000000000000000001-6d3941985ab4f6ce-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000019db",
"id": "00000000-0000-0000-0000-000000000ae6",
"license_id": "00000000-0000-0000-0000-000000000736",
"name": "Place 2767"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000edb",
"name": "Company 6604",
"updated_datetime": "2025-07-03T20:46:43.620827Z"
},
"creator": {
"banned": false,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-00000000220c",
"role": {
"id": "00000000-0000-0000-0000-000000002216",
"name": "Admin 8716"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "e1adb561-2016-45fc-a8d4-368ff219d831",
"inserted_datetime": "2025-07-03T20:46:44.198940Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000810",
"name": "B2"
},
"compliance_quantity": "1.0000",
"id": "1f298218-a3ca-463f-a2df-ab3ba31e2092",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000019db",
"id": "00000000-0000-0000-0000-000000000ae6",
"license_id": "00000000-0000-0000-0000-000000000736",
"name": "Place 2767"
},
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000001730",
"id": "00000000-0000-0000-0000-00000000028e",
"metrc_label": "ABCDEF012345670000001730",
"status": "selling"
},
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "aba8f48f-e0e1-42c4-9177-f13243510662",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2025-07-03T20:46:43.763826Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"leaflink_order_number": null,
"metrc_transfer_id": null,
"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-00000000220c",
"role": {
"id": "00000000-0000-0000-0000-000000002216",
"name": "Admin 8716"
}
},
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000019db",
"id": "00000000-0000-0000-0000-000000000ae6",
"license_id": "00000000-0000-0000-0000-000000000736",
"name": "Place 2767"
},
"status": "PROCESSING",
"total": "10.00",
"updated_datetime": "2025-07-03T20:46:44.483642Z"
}
}
POST /public/v1/orders updates an order
POST /public/v1/orders
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyMTAsImlhdCI6MTc1MTU3NTYxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDBkOGZmMzctMzBlZi00NDc0LWI2NWUtOTJjNDg2MTJhZjc5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTgyNiIsInR5cCI6ImFjY2VzcyJ9.jzF4FHfBxNZKWLoydDw4QB-iK_XZ6UiAb4NQDBBgZHA
{
"billing_location_id": "00000000-0000-0000-0000-000000000c16",
"charges": [
{
"id": "4f357ce2-5ad3-46d7-83ad-7788693eb15d",
"name": "C1",
"percent": "10.0000",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "4495c9b7-da2b-4539-90b3-e5f1259722d6",
"name": "C2",
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company_id": "00000000-0000-0000-0000-00000000114f",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": "gonna make you sweat",
"id": "84bb9b12-6b95-45c6-86d7-7bc0c6c49f31",
"items": [
{
"id": "3274e074-f4cb-4ca1-9356-ec9b99d5e9cb",
"location_id": "00000000-0000-0000-0000-000000000c16",
"price_base": "10.000000000",
"product_id": "3c1bcdb1-7eca-4ca1-ad33-76b07ac85f05",
"quantity": "2.000000000"
},
{
"id": "0d292f36-9453-4177-867c-961d37f4b9fb",
"location_id": "00000000-0000-0000-0000-000000000c16",
"price_base": "100.000000000",
"product_id": "3c1bcdb1-7eca-4ca1-ad33-76b07ac85f05",
"quantity": "3.000000000"
},
{
"compliance_quantity": "1.0000",
"id": "7758a0a9-aba4-4b1a-bef4-0ae3bf890c4e",
"location_id": "00000000-0000-0000-0000-000000000c16",
"package_id": "00000000-0000-0000-0000-0000000002fc",
"price_base": "10.000000000",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000000c16",
"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-0000000026ab",
"shipping_location_id": "00000000-0000-0000-0000-000000000c16",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: a93683967d24c0000000000000000001-0d7cda38af990334-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001d97",
"id": "00000000-0000-0000-0000-000000000c16",
"license_id": "00000000-0000-0000-0000-00000000081f",
"name": "Place 3070"
},
"biotrack_id": null,
"charges": [
{
"id": "4f357ce2-5ad3-46d7-83ad-7788693eb15d",
"name": "C1",
"percent": "10.0000",
"price": "33.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "4495c9b7-da2b-4539-90b3-e5f1259722d6",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-00000000114f",
"name": "Company 7553",
"updated_datetime": "2025-07-03T20:46:50.164022Z"
},
"creator": {
"banned": false,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-00000000265e",
"role": {
"id": "00000000-0000-0000-0000-000000002671",
"name": "Admin 9831"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": "gonna make you sweat",
"id": "84bb9b12-6b95-45c6-86d7-7bc0c6c49f31",
"inserted_datetime": "2025-07-03T20:46:50.316221Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000098e",
"name": "B1"
},
"compliance_quantity": null,
"id": "3274e074-f4cb-4ca1-9356-ec9b99d5e9cb",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001d97",
"id": "00000000-0000-0000-0000-000000000c16",
"license_id": "00000000-0000-0000-0000-00000000081f",
"name": "Place 3070"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "3c1bcdb1-7eca-4ca1-ad33-76b07ac85f05",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2025-07-03T20:46:50.229701Z"
},
"quantity": "2.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000098e",
"name": "B1"
},
"compliance_quantity": null,
"id": "0d292f36-9453-4177-867c-961d37f4b9fb",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001d97",
"id": "00000000-0000-0000-0000-000000000c16",
"license_id": "00000000-0000-0000-0000-00000000081f",
"name": "Place 3070"
},
"package": null,
"price": "100.000000000",
"price_base": "100.000000000",
"product": {
"id": "3c1bcdb1-7eca-4ca1-ad33-76b07ac85f05",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2025-07-03T20:46:50.229701Z"
},
"quantity": "3.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000997",
"name": "B2"
},
"compliance_quantity": "1.0000",
"id": "7758a0a9-aba4-4b1a-bef4-0ae3bf890c4e",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001d97",
"id": "00000000-0000-0000-0000-000000000c16",
"license_id": "00000000-0000-0000-0000-00000000081f",
"name": "Place 3070"
},
"package": {
"batch_number": "B2",
"compliance_label": "ABCDEF012345670000002002",
"id": "00000000-0000-0000-0000-0000000002fc",
"metrc_label": "ABCDEF012345670000002002",
"status": "selling"
},
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "3ee3fcac-7d57-44b4-93e4-7c858c7f76e9",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2025-07-03T20:46:50.450129Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"leaflink_order_number": null,
"metrc_transfer_id": null,
"order_datetime": "2020-01-01T00:00:02.000000Z",
"order_number": "SO-514",
"owner": {
"banned": false,
"email": "owner-9965@example.com",
"full_name": "FirstName19780 LastName19781",
"id": "00000000-0000-0000-0000-0000000026ab",
"role": {
"id": "00000000-0000-0000-0000-0000000026bd",
"name": "Admin 9907"
}
},
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001d97",
"id": "00000000-0000-0000-0000-000000000c16",
"license_id": "00000000-0000-0000-0000-00000000081f",
"name": "Place 3070"
},
"status": "PROCESSING",
"total": "358.00",
"updated_datetime": "2025-07-03T20:46:51.176389Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyMDcsImlhdCI6MTc1MTU3NTYwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzAzYjRlMjAtOGYyNC00NDY3LWFiYzYtOTMxNWEwNTkwYjQ0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM0NyIsInR5cCI6ImFjY2VzcyJ9.GtqphqDb7laAQfRzHaQIRO_XhjEWQXW4CTUsYQP5EGo
{
"billing_location_id": "00000000-0000-0000-0000-000000000b94",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000001045",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000000b94",
"position": 1,
"price_base": "100.000000000",
"product_id": "a1ecf0da-3f22-4855-81bf-71a354bdd660",
"quantity": "10.000000000"
},
{
"location_id": "00000000-0000-0000-0000-000000000b94",
"position": 2,
"price_base": "200.000000000",
"product_id": "fd7ce79c-4497-4a8d-8cac-281ef6c23242",
"quantity": "10.000000000"
},
{
"location_id": "00000000-0000-0000-0000-000000000b94",
"position": 3,
"price_base": "300.000000000",
"product_id": "24f246a3-e1b3-4038-a79f-27ea6d7d3cd3",
"quantity": "10.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-000000000b94",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 459260543c05ec000000000000000001-fb7f0019f410409f-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001c0d",
"id": "00000000-0000-0000-0000-000000000b94",
"license_id": "00000000-0000-0000-0000-0000000007b6",
"name": "Place 2940"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000001045",
"name": "Company 7155",
"updated_datetime": "2025-07-03T20:46:47.322597Z"
},
"creator": {
"banned": false,
"email": "owner-9425@example.com",
"full_name": "FirstName18678 LastName18679",
"id": "00000000-0000-0000-0000-000000002483",
"role": {
"id": "00000000-0000-0000-0000-00000000248e",
"name": "Admin 9348"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "49aa7012-d614-4b40-8658-b6e0e7b394a3",
"inserted_datetime": "2025-07-03T20:46:47.797012Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000008f3",
"name": "B1"
},
"compliance_quantity": null,
"id": "8a335167-810a-4207-8231-87f178e6b16b",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001c0d",
"id": "00000000-0000-0000-0000-000000000b94",
"license_id": "00000000-0000-0000-0000-0000000007b6",
"name": "Place 2940"
},
"package": null,
"price": "90.000000000",
"price_base": "100.000000000",
"product": {
"id": "a1ecf0da-3f22-4855-81bf-71a354bdd660",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2025-07-03T20:46:47.394589Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000008f9",
"name": "B2"
},
"compliance_quantity": null,
"id": "ad47e300-a2c4-48b6-bd7e-27dcb44a3bf3",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001c0d",
"id": "00000000-0000-0000-0000-000000000b94",
"license_id": "00000000-0000-0000-0000-0000000007b6",
"name": "Place 2940"
},
"package": null,
"price": "200.000000000",
"price_base": "200.000000000",
"product": {
"id": "fd7ce79c-4497-4a8d-8cac-281ef6c23242",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2025-07-03T20:46:47.490367Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000900",
"name": "B3"
},
"compliance_quantity": null,
"id": "746234b7-8c1f-4604-a63f-166a44fd96a0",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001c0d",
"id": "00000000-0000-0000-0000-000000000b94",
"license_id": "00000000-0000-0000-0000-0000000007b6",
"name": "Place 2940"
},
"package": null,
"price": "290.000000000",
"price_base": "300.000000000",
"product": {
"id": "24f246a3-e1b3-4038-a79f-27ea6d7d3cd3",
"name": "P3",
"sku": "SKU3",
"updated_datetime": "2025-07-03T20:46:47.584212Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"leaflink_order_number": null,
"metrc_transfer_id": null,
"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-000000001c0d",
"id": "00000000-0000-0000-0000-000000000b94",
"license_id": "00000000-0000-0000-0000-0000000007b6",
"name": "Place 2940"
},
"status": "PROCESSING",
"total": "5800.00",
"updated_datetime": "2025-07-03T20:46:47.901957Z"
}
}
POST /public/v1/orders deleting order items & charges
POST /public/v1/orders
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUxODcsImlhdCI6MTc1MTU3NTU4NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzUwMTllY2ItZjQ0YS00ZDdhLWFlNGEtOWNhN2I1ZmVmNDRiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NTg2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTg1NCIsInR5cCI6ImFjY2VzcyJ9.Hwenr6lZyBQB5r6PNuVozS9SXXk4k2BMPywk5bB2AO8
{
"billing_location_id": "00000000-0000-0000-0000-00000000077b",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000000993",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"id": "bad58536-2851-4cbf-8e07-5cef59a8152b",
"items": [
{
"id": "466a84bf-90d7-46a8-8976-059c1698fa8e",
"location_id": "00000000-0000-0000-0000-00000000077b",
"price_base": "10.000000000",
"product_id": "1d959754-a4dc-4d82-8c71-152c521be5a5",
"quantity": "1.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-00000000077b",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 0f90952fba7de8000000000000000001-85db375ccd89c4b6-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001143",
"id": "00000000-0000-0000-0000-00000000077b",
"license_id": "00000000-0000-0000-0000-00000000047a",
"name": "Place 1897"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000993",
"name": "Company 4400",
"updated_datetime": "2025-07-03T20:46:27.639668Z"
},
"creator": {
"banned": false,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-0000000016de",
"role": {
"id": "00000000-0000-0000-0000-0000000016cb",
"name": "Admin 5825"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "bad58536-2851-4cbf-8e07-5cef59a8152b",
"inserted_datetime": "2025-07-03T20:46:27.752931Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000004c8",
"name": "B1"
},
"compliance_quantity": null,
"id": "466a84bf-90d7-46a8-8976-059c1698fa8e",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001143",
"id": "00000000-0000-0000-0000-00000000077b",
"license_id": "00000000-0000-0000-0000-00000000047a",
"name": "Place 1897"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "1d959754-a4dc-4d82-8c71-152c521be5a5",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2025-07-03T20:46:27.705087Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"leaflink_order_number": null,
"metrc_transfer_id": null,
"order_datetime": "2020-01-01T00:00:02.000000Z",
"order_number": "SO-330",
"owner": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001143",
"id": "00000000-0000-0000-0000-00000000077b",
"license_id": "00000000-0000-0000-0000-00000000047a",
"name": "Place 1897"
},
"status": "PROCESSING",
"total": "10.00",
"updated_datetime": "2025-07-03T20:46:27.955982Z"
}
}
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 |
---|---|---|---|---|---|---|
biotrack_id | The Biotrack ID for this order | query | string | false | ||
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_id | The Metrc transfer ID for this order | query | integer | 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUxOTgsImlhdCI6MTc1MTU3NTU5OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOWExOTYxMGEtMWZhYS00NTI3LWFlZGEtNjVmZDk0MzcxM2ExIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NTk3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzY4MCIsInR5cCI6ImFjY2VzcyJ9.AUObyoqHwUK4382r2ctQQ64AZUIi_u0UDRro9slUXzc
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: a31d0daec20fc8000000000000000001-4ad725d8ed931744-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000001397",
"custom_data": [
{
"id": 61,
"name": "Custom Field 51",
"value": "Custom Field Value 1"
}
],
"expiration_date": "2024-01-01T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-00000000022d",
"is_trade_sample": true,
"license": {
"id": "00000000-0000-0000-0000-00000000062c",
"license_number": "CDPH-00001797"
},
"location": {
"id": "00000000-0000-0000-0000-0000000009da",
"name": "Place 2501"
},
"metrc_label": "ABCDEF012345670000001397",
"primary_test_result": null,
"product_id": "f2a3ddb2-3cfa-402c-be18-d156f0d5788e",
"product_unit_quantity": "7.500000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-00000001391b",
"name": "3"
},
"quantity": "5.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "5.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-00000001391c",
"name": "2"
}
},
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000001408",
"custom_data": [
{
"id": 61,
"name": "Custom Field 51",
"value": null
}
],
"expiration_date": null,
"id": "00000000-0000-0000-0000-000000000232",
"is_trade_sample": false,
"license": {
"id": "00000000-0000-0000-0000-00000000062c",
"license_number": "CDPH-00001797"
},
"location": {
"id": "00000000-0000-0000-0000-0000000009ec",
"name": "Place 2519"
},
"metrc_label": "ABCDEF012345670000001408",
"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": "f2a3ddb2-3cfa-402c-be18-d156f0d5788e",
"product_unit_quantity": "15.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-00000001391b",
"name": "3"
},
"quantity": "20.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "20.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-00000001391d",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUzODEsImlhdCI6MTc1MTU3NTc4MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiODUyMjMyMWItNmZhOS00OWE3LTk1NDgtNGQwODNkYzBkZjBiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NzgwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MzcwMTIiLCJ0eXAiOiJhY2Nlc3MifQ.oHDITBMhTcrsllUPL2mfD0Mx6YBUBpdCGjTIfbvTNnY
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 8aabf6a64d6818000000000000000001-543353001add0d74-0
{
"data": [
{
"id": "00000000-0000-0000-0000-0000000000e5",
"name": "Payment Method 229"
}
]
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjU0MTksImlhdCI6MTc1MTU3NTgxOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDY0NTkwYjItNWI1Zi00ODE0LWEwN2QtYTliN2MxYjYxZTYxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1ODE4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NDI5MzAiLCJ0eXAiOiJhY2Nlc3MifQ.EI_CLSuFZ6PNCStbdmme-xr3DQ5hVEt_VF1-fF5l0Gs
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 5ac7d6cdfcafd8000000000000000001-7fd91e67eb3a62f2-0
{
"data": [
{
"brand": {
"id": "00000000-0000-0000-0000-0000000041c8",
"name": "Company 30568",
"updated_datetime": "2030-11-01T00:00:00.000000Z"
},
"category": {
"id": "00000000-0000-0000-0000-000000003588",
"name": "Some category 11944",
"type": "OTHER"
},
"custom_data": [
{
"id": 161,
"name": "Custom Field 182",
"value": "Custom Field Value 1"
}
],
"description": "test",
"description_markdown": "# test",
"external_name": "External Name",
"id": "11dfa63a-7d88-4c3e-ae75-747a39f8c0b5",
"images": [
{
"id": "00000000-0000-0000-0000-000000000074",
"name": "Image Name 733",
"rank": 0,
"url": "https://google.com/original-109.jpg"
},
{
"id": "00000000-0000-0000-0000-000000000075",
"name": "Image Name 734",
"rank": 1,
"url": "https://google.com/original-110.jpg"
}
],
"is_active": true,
"msrp": null,
"name": "Product 32396",
"sku": "sku 32397",
"strain": {
"id": "00000000-0000-0000-0000-000000000214",
"name": "Strain 529"
},
"subcategory": {
"id": "00000000-0000-0000-0000-0000000035ab",
"name": "Some subcategory 11354"
},
"unit_price": "1",
"unit_type": {
"id": "00000000-0000-0000-0000-000000069387",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2023-11-01T00:00:00.000000Z",
"vendor": {
"id": "00000000-0000-0000-0000-0000000041cc",
"name": "Company 30577",
"updated_datetime": "2030-11-03T00:00:00.000000Z"
}
},
{
"brand": {
"id": "00000000-0000-0000-0000-0000000041cb",
"name": "Company 30574",
"updated_datetime": "2030-11-02T00:00:00.000000Z"
},
"category": {
"id": "00000000-0000-0000-0000-00000000358a",
"name": "Some category 11946",
"type": "OTHER"
},
"custom_data": [
{
"id": 161,
"name": "Custom Field 182",
"value": null
}
],
"description": null,
"description_markdown": null,
"external_name": null,
"id": "e701ae48-429d-4217-91a0-351ae3d246af",
"images": [],
"is_active": false,
"msrp": "100",
"name": "Product 32400",
"sku": "sku 32401",
"strain": null,
"subcategory": {
"id": "00000000-0000-0000-0000-0000000035ad",
"name": "Some subcategory 11356"
},
"unit_price": "1",
"unit_type": {
"id": "00000000-0000-0000-0000-000000069385",
"name": "Pound"
},
"units_per_case": null,
"updated_datetime": "2023-11-02T00:00:00.000000Z",
"vendor": {
"id": "00000000-0000-0000-0000-0000000041cd",
"name": "Company 30578",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjU0MTQsImlhdCI6MTc1MTU3NTgxNCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZGNiYjc4ZDQtMzEzZC00ODM2LWI3ZGMtNjEyY2IxZTk4NTY0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1ODEzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NDIxOTMiLCJ0eXAiOiJhY2Nlc3MifQ.tJgm_5ser7aX_uWLp9bJD6WUijqhWX1rZCKo1OEcSK4
{
"unit_net_weight_and_serving_size_unit_type_id": "00000000-0000-0000-0000-0000000678e9",
"id": "cbf9cf2d-0673-4ced-ab0e-f7568c0ff15c",
"is_featured": true,
"description_markdown": "# My Product Description Markdown",
"wholesale_unit_price": "90.50",
"msrp": "100.5",
"unit_type_id": "00000000-0000-0000-0000-0000000678f0",
"quantity_available_threshold_min": "5.5",
"total_thc": "10.4",
"brand_id": "00000000-0000-0000-0000-0000000040b2",
"sku": "12345",
"unit_price": "100",
"category_id": "00000000-0000-0000-0000-0000000034e7",
"unit_serving_size": "2.2",
"tags": [
"00000000-0000-0000-0000-000000000118"
],
"total_cbd": "5.2",
"unit_cost": "50.4",
"group_id": "00000000-0000-0000-0000-000000002be6",
"is_inactive": true,
"units_per_case": "0.2",
"menus": [
"00000000-0000-0000-0000-0000000003dc"
],
"vendor_id": "00000000-0000-0000-0000-0000000040b0",
"total_cannabinoid_unit": "PERCENT",
"menu_visibility": "INCLUDE_IN_ALL",
"inventory_tracking_method": "PACKAGE",
"description": "My Product Description",
"owner_id": "00000000-0000-0000-0000-00000000a4ce",
"subcategory_id": "00000000-0000-0000-0000-0000000034fd",
"quantity_available_threshold_max": "10.5",
"upc": "036000291452",
"unit_net_weight": "3.1",
"strain_id": "00000000-0000-0000-0000-000000000212",
"name": "My Product"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 475b0bb3243974000000000000000001-ba713fd96e9be2e6-0
{
"data": {
"brand": {
"id": "00000000-0000-0000-0000-0000000040b2",
"name": "Company 30096",
"updated_datetime": "2025-07-03T20:50:15.055947Z"
},
"category": {
"id": "00000000-0000-0000-0000-0000000034e7",
"name": "Some category 11783",
"type": "OTHER"
},
"custom_data": [
{
"id": 158,
"name": "Custom Field 179",
"value": null
}
],
"description": "My Product Description",
"description_markdown": "# My Product Description Markdown",
"external_name": null,
"id": "cbf9cf2d-0673-4ced-ab0e-f7568c0ff15c",
"images": [],
"is_active": false,
"msrp": "100.5",
"name": "My Product",
"sku": "12345",
"strain": {
"id": "00000000-0000-0000-0000-000000000212",
"name": "Strain 527"
},
"subcategory": {
"id": "00000000-0000-0000-0000-0000000034fd",
"name": "Some subcategory 11180"
},
"unit_price": "100",
"unit_type": {
"id": "00000000-0000-0000-0000-0000000678f0",
"name": "Unit"
},
"units_per_case": "0.2",
"updated_datetime": "2025-07-03T20:50:15.451370Z",
"vendor": {
"id": "00000000-0000-0000-0000-0000000040b0",
"name": "Company 30091",
"updated_datetime": "2025-07-03T20:50:14.176769Z"
}
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjU0MTgsImlhdCI6MTc1MTU3NTgxOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTAwN2IwODktNzJlNS00MjlkLTlkNjItMzEzMWJjMDlhN2ZhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1ODE3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NDI3MjgiLCJ0eXAiOiJhY2Nlc3MifQ.p4Xup02Owpi3U7s-kKj6J8kRVCo2dQ3E2h67wZpMDUU
{
"category_id": "00000000-0000-0000-0000-00000000355e",
"id": "ab186e77-c15a-4a03-b95f-b682cb15fb12",
"inventory_tracking_method": "PACKAGE",
"name": "My Product",
"sku": "12345",
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-000000068c07",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-000000004179"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: d03e13aa33a220000000000000000001-2a52b717f2ffaa05-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-00000000355e",
"name": "Some category 11902",
"type": "OTHER"
},
"custom_data": [],
"description": null,
"description_markdown": null,
"external_name": null,
"id": "ab186e77-c15a-4a03-b95f-b682cb15fb12",
"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-000000068c07",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2025-07-03T20:50:18.973723Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000004179",
"name": "Company 30430",
"updated_datetime": "2025-07-03T20:50:18.854284Z"
}
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjU0MTgsImlhdCI6MTc1MTU3NTgxOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTAwN2IwODktNzJlNS00MjlkLTlkNjItMzEzMWJjMDlhN2ZhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1ODE3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NDI3MjgiLCJ0eXAiOiJhY2Nlc3MifQ.p4Xup02Owpi3U7s-kKj6J8kRVCo2dQ3E2h67wZpMDUU
{
"unit_net_weight_and_serving_size_unit_type_id": "00000000-0000-0000-0000-000000068c09",
"id": "ab186e77-c15a-4a03-b95f-b682cb15fb12",
"is_featured": true,
"wholesale_unit_price": "90.50",
"msrp": "100.5",
"unit_type_id": "00000000-0000-0000-0000-000000068c10",
"quantity_available_threshold_min": "5.5",
"total_thc": "10.4",
"brand_id": "00000000-0000-0000-0000-000000004199",
"sku": "45678",
"unit_price": "200",
"category_id": "00000000-0000-0000-0000-00000000356a",
"unit_serving_size": "2.2",
"tags": [
"00000000-0000-0000-0000-000000000119"
],
"total_cbd": "5.2",
"unit_cost": "50.4",
"group_id": "00000000-0000-0000-0000-000000002c72",
"is_inactive": true,
"units_per_case": "0.2",
"menus": [
"00000000-0000-0000-0000-0000000003e6"
],
"vendor_id": "00000000-0000-0000-0000-000000004193",
"total_cannabinoid_unit": "PERCENT",
"menu_visibility": "INCLUDE_IN_ALL",
"inventory_tracking_method": "PACKAGE",
"description": "My Product Description",
"owner_id": "00000000-0000-0000-0000-00000000a74c",
"subcategory_id": "00000000-0000-0000-0000-000000003588",
"external_name": "External Name",
"quantity_available_threshold_max": "10.5",
"upc": "036000291453",
"unit_net_weight": "3.1",
"strain_id": "00000000-0000-0000-0000-000000000213",
"name": "Updated Name"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: d03e13aa33a220000000000000000001-4dc4dd6c78d11b8b-0
{
"data": {
"brand": {
"id": "00000000-0000-0000-0000-000000004199",
"name": "Company 30488",
"updated_datetime": "2025-07-03T20:50:19.205473Z"
},
"category": {
"id": "00000000-0000-0000-0000-00000000356a",
"name": "Some category 11914",
"type": "OTHER"
},
"custom_data": [],
"description": "My Product Description",
"description_markdown": "My Product Description",
"external_name": "External Name",
"id": "ab186e77-c15a-4a03-b95f-b682cb15fb12",
"images": [],
"is_active": false,
"msrp": "100.5",
"name": "Updated Name",
"sku": "45678",
"strain": {
"id": "00000000-0000-0000-0000-000000000213",
"name": "Strain 528"
},
"subcategory": {
"id": "00000000-0000-0000-0000-000000003588",
"name": "Some subcategory 11319"
},
"unit_price": "200",
"unit_type": {
"id": "00000000-0000-0000-0000-000000068c10",
"name": "Unit"
},
"units_per_case": "0.2",
"updated_datetime": "2025-07-03T20:50:19.316028Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000004193",
"name": "Company 30475",
"updated_datetime": "2025-07-03T20:50:19.124456Z"
}
}
}
POST /public/v1/orders Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjU0MTcsImlhdCI6MTc1MTU3NTgxNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDFkNDVmYmMtZWJjZC00NDAxLTliNGYtMThkMDk3NzU0MGVjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1ODE2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NDI0MjYiLCJ0eXAiOiJhY2Nlc3MifQ.dJnUBWbY1zOTBPml0WQPfwco2pUEDm5mFVF3xsANQ1w
{
"category_id": "00000000-0000-0000-0000-00000000351a",
"id": "f83c1dd5-839c-4bb8-b0ca-3ff639f607bc",
"inventory_tracking_method": "PACKAGE",
"menu_visibility": "INCLUDE_IN_ALL",
"menus": [
"00000000-0000-0000-0000-0000000003e3"
],
"name": "My Product",
"sku": "12345",
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-0000000680eb",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-000000004103"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 85c61e32efcff0000000000000000001-37f962b6df8a97a0-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-00000000351a",
"name": "Some category 11834",
"type": "OTHER"
},
"custom_data": [],
"description": null,
"description_markdown": null,
"external_name": null,
"id": "f83c1dd5-839c-4bb8-b0ca-3ff639f607bc",
"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-0000000680eb",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2025-07-03T20:50:17.628602Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000004103",
"name": "Company 30234",
"updated_datetime": "2025-07-03T20:50:17.382163Z"
}
}
}
POST /public/v1/orders Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjU0MTcsImlhdCI6MTc1MTU3NTgxNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDFkNDVmYmMtZWJjZC00NDAxLTliNGYtMThkMDk3NzU0MGVjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1ODE2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NDI0MjYiLCJ0eXAiOiJhY2Nlc3MifQ.dJnUBWbY1zOTBPml0WQPfwco2pUEDm5mFVF3xsANQ1w
{
"category_id": "00000000-0000-0000-0000-00000000351a",
"id": "f83c1dd5-839c-4bb8-b0ca-3ff639f607bc",
"inventory_tracking_method": "PACKAGE",
"menu_visibility": "DO_NOT_INCLUDE",
"menus": [
"00000000-0000-0000-0000-0000000003e3",
"00000000-0000-0000-0000-0000000003e4"
],
"name": "My Product",
"sku": "12345",
"tags": [],
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-0000000680eb",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-000000004103"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 85c61e32efcff0000000000000000001-4ced8f1d6363ce2c-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-00000000351a",
"name": "Some category 11834",
"type": "OTHER"
},
"custom_data": [],
"description": null,
"description_markdown": null,
"external_name": null,
"id": "f83c1dd5-839c-4bb8-b0ca-3ff639f607bc",
"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-0000000680eb",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2025-07-03T20:50:17.880326Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000004103",
"name": "Company 30234",
"updated_datetime": "2025-07-03T20:50:17.382163Z"
}
}
}
POST /public/v1/orders Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjU0MTcsImlhdCI6MTc1MTU3NTgxNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDFkNDVmYmMtZWJjZC00NDAxLTliNGYtMThkMDk3NzU0MGVjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1ODE2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NDI0MjYiLCJ0eXAiOiJhY2Nlc3MifQ.dJnUBWbY1zOTBPml0WQPfwco2pUEDm5mFVF3xsANQ1w
{
"category_id": "00000000-0000-0000-0000-00000000351a",
"id": "f83c1dd5-839c-4bb8-b0ca-3ff639f607bc",
"inventory_tracking_method": "PACKAGE",
"menu_visibility": "INCLUDE_IN_SELECT",
"menus": [
"00000000-0000-0000-0000-0000000003e3",
"00000000-0000-0000-0000-0000000003e4"
],
"name": "My Product",
"sku": "12345",
"tags": [],
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-0000000680eb",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-000000004103"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 85c61e32efcff0000000000000000001-cabf810d46ec6bfe-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-00000000351a",
"name": "Some category 11834",
"type": "OTHER"
},
"custom_data": [],
"description": null,
"description_markdown": null,
"external_name": null,
"id": "f83c1dd5-839c-4bb8-b0ca-3ff639f607bc",
"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-0000000680eb",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2025-07-03T20:50:18.025565Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000004103",
"name": "Company 30234",
"updated_datetime": "2025-07-03T20:50:17.382163Z"
}
}
}
POST /public/v1/orders Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjU0MTcsImlhdCI6MTc1MTU3NTgxNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDFkNDVmYmMtZWJjZC00NDAxLTliNGYtMThkMDk3NzU0MGVjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1ODE2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NDI0MjYiLCJ0eXAiOiJhY2Nlc3MifQ.dJnUBWbY1zOTBPml0WQPfwco2pUEDm5mFVF3xsANQ1w
{
"category_id": "00000000-0000-0000-0000-00000000351a",
"id": "f83c1dd5-839c-4bb8-b0ca-3ff639f607bc",
"inventory_tracking_method": "PACKAGE",
"menu_visibility": "INCLUDE_IN_SELECT",
"menus": [
"00000000-0000-0000-0000-0000000003e4"
],
"name": "My Product",
"sku": "12345",
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-0000000680eb",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-000000004103"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 85c61e32efcff0000000000000000001-947e80402794c9df-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-00000000351a",
"name": "Some category 11834",
"type": "OTHER"
},
"custom_data": [],
"description": null,
"description_markdown": null,
"external_name": null,
"id": "f83c1dd5-839c-4bb8-b0ca-3ff639f607bc",
"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-0000000680eb",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2025-07-03T20:50:18.158808Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000004103",
"name": "Company 30234",
"updated_datetime": "2025-07-03T20:50:17.382163Z"
}
}
}
POST /public/v1/orders Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjU0MTcsImlhdCI6MTc1MTU3NTgxNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDFkNDVmYmMtZWJjZC00NDAxLTliNGYtMThkMDk3NzU0MGVjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1ODE2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NDI0MjYiLCJ0eXAiOiJhY2Nlc3MifQ.dJnUBWbY1zOTBPml0WQPfwco2pUEDm5mFVF3xsANQ1w
{
"category_id": "00000000-0000-0000-0000-00000000351a",
"id": "f83c1dd5-839c-4bb8-b0ca-3ff639f607bc",
"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-0000000680eb",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-000000004103"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 85c61e32efcff0000000000000000001-8b76e460e0d839a0-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-00000000351a",
"name": "Some category 11834",
"type": "OTHER"
},
"custom_data": [],
"description": null,
"description_markdown": null,
"external_name": null,
"id": "f83c1dd5-839c-4bb8-b0ca-3ff639f607bc",
"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-0000000680eb",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2025-07-03T20:50:18.253645Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000004103",
"name": "Company 30234",
"updated_datetime": "2025-07-03T20:50:17.382163Z"
}
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjU0MTksImlhdCI6MTc1MTU3NTgxOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDRmY2I1ODMtYzhmMS00NDk1LWI5MzAtYmI4MjAwMjMwYTFiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1ODE4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NDI4OTIiLCJ0eXAiOiJhY2Nlc3MifQ.BKaLm8J3tDut-NR8bSvp1oQo0Pr4azsP09gI-kA6Tuc
{
"id": "3a02c0c5-e7bb-415f-8070-1f11435dbe89",
"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: 6ba0f78a5ddcc0000000000000000001-e6e1e217e8d756ac-0
{
"errors": [
{
"context": {
"id": "3a02c0c5-e7bb-415f-8070-1f11435dbe89"
},
"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": "3a02c0c5-e7bb-415f-8070-1f11435dbe89"
},
"message": "Unit Serving Size can't be greater than Unit Net Weight/Volume",
"pointer": [
"unit_serving_size"
],
"section": "body"
},
{
"context": {
"id": "3a02c0c5-e7bb-415f-8070-1f11435dbe89"
},
"message": "Cannot be negative",
"pointer": [
"quantity_available_threshold_max"
],
"section": "body"
},
{
"context": {
"id": "3a02c0c5-e7bb-415f-8070-1f11435dbe89"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjU0MTMsImlhdCI6MTc1MTU3NTgxMywiaXNzIjoiRGlzdHJ1IiwianRpIjoiYTc1NTM3OTgtY2JhMi00OGE0LWE1M2YtMzBjZDA5ZDEwYTQyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1ODEyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NDIwODMiLCJ0eXAiOiJhY2Nlc3MifQ.r3zkhwDupocpDDkE6mUhY_QCiJMX0D2Tpcw2fYQla0A
{
"id": "77e93f62-1308-4b3e-8d07-967e18855964",
"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: 1259cf6afd02d6000000000000000001-120730c8c1d0404b-0
{
"errors": [
{
"context": {
"id": "77e93f62-1308-4b3e-8d07-967e18855964"
},
"message": "Must be greater than threshold min",
"pointer": [
"quantity_available_threshold_max"
],
"section": "body"
},
{
"context": {
"id": "77e93f62-1308-4b3e-8d07-967e18855964"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjU0MTIsImlhdCI6MTc1MTU3NTgxMiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYTcxZmVjYmMtOWUyNi00NDhhLTljNDItMzEzOTQxODdjNTM5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1ODExLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NDIwMDUiLCJ0eXAiOiJhY2Nlc3MifQ.I1h34pWN0KAS6oSEr-8m14HJByCkaEnsBJSNEgJZeYs
{
"brand_id": "00000000-0000-0000-0000-00000000407d",
"category_id": "00000000-0000-0000-0000-0000000034bf",
"cbd": "5.2",
"description": "My Product Description",
"description_markdown": "# My Product Description Markdown",
"group_id": "00000000-0000-0000-0000-000000002bc0",
"id": "27d96067-937b-41cf-b09d-b69b38a0cf54",
"inventory_tracking_method": "PACKAGE",
"is_featured": true,
"is_inactive": true,
"menu_visibility": "INCLUDE_IN_ALL",
"menus": [
"00000000-0000-0000-0000-0000000003d8",
"00000000-0000-0000-0000-0000000003d9",
"00000000-0000-0000-0000-0000000003da"
],
"msrp": "100.5",
"name": "My Product",
"owner_id": "00000000-0000-0000-0000-00000000a420",
"quantity_available_threshold_max": "10.5",
"quantity_available_threshold_min": "5.5555",
"sku": "12345",
"strain_id": "00000000-0000-0000-0000-000000000211",
"subcategory_id": "00000000-0000-0000-0000-0000000034d7",
"tags": [
"00000000-0000-0000-0000-000000000115",
"00000000-0000-0000-0000-000000000116",
"00000000-0000-0000-0000-000000000117"
],
"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-0000000672dd",
"unit_price": "100",
"unit_serving_size": "2.2",
"unit_type_id": "00000000-0000-0000-0000-0000000672e4",
"units_per_case": "0.2",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-000000004078",
"wholesale_unit_price": "90.50"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 2ca7048354b45a000000000000000001-d96a57c310452433-0
{
"errors": [
{
"context": {
"id": "27d96067-937b-41cf-b09d-b69b38a0cf54"
},
"message": "Brand does not exist",
"pointer": [
"brand_id"
],
"section": "body"
},
{
"context": {
"id": "27d96067-937b-41cf-b09d-b69b38a0cf54"
},
"message": "Category does not exist",
"pointer": [
"category_id"
],
"section": "body"
},
{
"context": {
"id": "27d96067-937b-41cf-b09d-b69b38a0cf54"
},
"message": "Vendor does not exist",
"pointer": [
"vendor_id"
],
"section": "body"
},
{
"context": {
"id": "27d96067-937b-41cf-b09d-b69b38a0cf54"
},
"message": "Group does not exist",
"pointer": [
"group_id"
],
"section": "body"
},
{
"context": {
"id": "27d96067-937b-41cf-b09d-b69b38a0cf54"
},
"message": "Serving unit type does not exist",
"pointer": [
"unit_net_weight_and_serving_size_unit_type_id"
],
"section": "body"
},
{
"context": {
"id": "27d96067-937b-41cf-b09d-b69b38a0cf54"
},
"message": "Owner does not exist",
"pointer": [
"owner_id"
],
"section": "body"
},
{
"context": {
"id": "27d96067-937b-41cf-b09d-b69b38a0cf54"
},
"message": "Strain does not exist",
"pointer": [
"strain_id"
],
"section": "body"
},
{
"context": {
"id": "27d96067-937b-41cf-b09d-b69b38a0cf54"
},
"message": "Subcategory does not belong to the product category",
"pointer": [
"subcategory_id"
],
"section": "body"
},
{
"context": {
"id": "27d96067-937b-41cf-b09d-b69b38a0cf54"
},
"message": "One or more of the provided tags do not exist",
"pointer": [
"tags"
],
"section": "body"
},
{
"context": {
"id": "27d96067-937b-41cf-b09d-b69b38a0cf54"
},
"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-0000000003d8"
],
"section": "body"
},
{
"context": {},
"message": "Menu does not exist",
"pointer": [
"menus",
1,
"00000000-0000-0000-0000-0000000003d9"
],
"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 | ||
external_name | Customer-facing name for DistruCommerce menus and Order Tracker. Defaults to Product Name if left blank | 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. If this field is provided and description_markdown is not, the description field will overwrite any existing description_markdown field. | query | string | false | A pack of 5 pre-rolls | |
description_markdown | The description of the product in markdown format. If this field is provided, description must also be provided. The markdown display only supports italic, bold, strikethrough and links. Use any other markdown formatting at your own risk. | 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. | query | number | false | ||
unit_serving_size | The serving size of the product per unit. | 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyODIsImlhdCI6MTc1MTU3NTY4MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNWIxZjM2N2EtOTM1OC00NzA5LTkwNWItZjY4YmNmMWFmZTlhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjgxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjA1OTgiLCJ0eXAiOiJhY2Nlc3MifQ.c2JlDa3zGGunENBlVjV2bIqgBUEX15aVWTgf5FlX_wA
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 4688376686db60000000000000000001-25b8fc2629f23e18-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000002042",
"name": "Company 15020",
"updated_datetime": "2025-07-03T20:48:02.917320Z"
},
"custom_data": [
{
"id": 108,
"name": "Custom Field 129",
"value": null
}
],
"due_datetime": "2025-07-03T20:48:03.007305Z",
"id": "00000000-0000-0000-0000-000000000129",
"inserted_datetime": "2025-07-03T20:48:03.009534Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001367",
"name": "B16566"
},
"compliance_quantity": null,
"id": "69d5973f-9085-4289-9659-d7a0786d8bf4",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003ab2",
"id": "00000000-0000-0000-0000-000000001802",
"license_id": null,
"name": "Place 6092"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "da68d3dc-f1cf-4343-b6b1-b560c89aa00c",
"name": "Product 16558",
"sku": "sku 16559",
"updated_datetime": "2025-07-03T20:48:03.082741Z"
},
"quantity": "5.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001368",
"name": "B16567"
},
"compliance_quantity": null,
"id": "4facf43d-846e-4bb7-af67-03b7648b55e1",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003ab2",
"id": "00000000-0000-0000-0000-000000001802",
"license_id": null,
"name": "Place 6092"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "024ee1c5-45ab-4964-90e8-042f3b3157d4",
"name": "Product 16560",
"sku": "sku 16561",
"updated_datetime": "2025-07-03T20:48:03.110238Z"
},
"quantity": "2.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001365",
"name": "B16562"
},
"compliance_quantity": null,
"id": "b734858f-02cd-489a-855f-a1f8e24111cd",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003ab2",
"id": "00000000-0000-0000-0000-000000001802",
"license_id": null,
"name": "Place 6092"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "a232c80c-d377-45fd-af9a-efdea594e8d5",
"name": "Product 16554",
"sku": "sku 16555",
"updated_datetime": "2025-07-03T20:48:03.034607Z"
},
"quantity": "15.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001366",
"name": "B16565"
},
"compliance_quantity": null,
"id": "8f14303e-3259-4e42-b25e-c2593e59b5a4",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003ab2",
"id": "00000000-0000-0000-0000-000000001802",
"license_id": null,
"name": "Place 6092"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "9162d320-f3ac-432d-a53f-d4bb16989bae",
"name": "Product 16556",
"sku": "sku 16557",
"updated_datetime": "2025-07-03T20:48:03.057072Z"
},
"quantity": "10.000000000",
"received_quantity": "0.000000000"
}
],
"order_datetime": "2025-07-03T20:48:03.007303Z",
"purchase_number": "Purchase #283",
"status": "PENDING",
"total": "32.00",
"updated_datetime": "2025-07-03T20:48:03.009534Z"
},
{
"charges": [
{
"id": "41faa9bf-ea0c-4f62-8634-61635f9dc164",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company": {
"id": "00000000-0000-0000-0000-00000000203d",
"name": "Company 15006",
"updated_datetime": "2030-11-01T00:00:00.000000Z"
},
"custom_data": [
{
"id": 108,
"name": "Custom Field 129",
"value": "Custom Field Value 1"
}
],
"due_datetime": "2020-01-01T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-000000000128",
"inserted_datetime": "2020-01-01T00:00:03.000000Z",
"items": [
{
"batch": {
"batch_number": "UID1",
"id": "00000000-0000-0000-0000-000000001359",
"name": "B1"
},
"compliance_quantity": "1.0000",
"id": "be4c5df3-1d65-4855-9bbe-fbbd3a35c65b",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003ab2",
"id": "00000000-0000-0000-0000-0000000017f4",
"license_id": "00000000-0000-0000-0000-000000000fff",
"name": "Place 6078"
},
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000004514",
"id": "00000000-0000-0000-0000-0000000006cc",
"metrc_label": "ABCDEF012345670000004514",
"status": "active"
},
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "b6c561d3-f958-44c1-95de-e2cebcb9dab6",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyNzQsImlhdCI6MTc1MTU3NTY3NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZWE3NDEzZTctYzk1Ny00NDc4LTg5MDAtNTVmNDExZGJkNDZiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjczLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg2NzkiLCJ0eXAiOiJhY2Nlc3MifQ.g7XR3qlUxUOwANXlI15qIf0QQ_xnHKwp42IOS876uf0
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 913bacac12b190000000000000000001-dccf7a789ebd3241-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000001dbd",
"name": "Company 13706",
"updated_datetime": "2025-07-03T20:47:55.367368Z"
},
"custom_data": [],
"due_datetime": "2025-07-03T20:47:55.458158Z",
"id": "00000000-0000-0000-0000-000000000103",
"inserted_datetime": "2025-07-03T20:47:55.460284Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000011ea",
"name": "B15437"
},
"compliance_quantity": null,
"id": "6b033eae-f5d2-4b35-a5d6-afe4196d440f",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000352e",
"id": "00000000-0000-0000-0000-0000000015de",
"license_id": null,
"name": "Place 5544"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "7f4be8f6-1ed7-4b48-800f-fe1069384601",
"name": "Product 15422",
"sku": "sku 15423",
"updated_datetime": "2025-07-03T20:47:55.488711Z"
},
"quantity": "15.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000011eb",
"name": "B15438"
},
"compliance_quantity": null,
"id": "257d0715-44ad-40c1-bfa7-0800973cd6b4",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000352e",
"id": "00000000-0000-0000-0000-0000000015de",
"license_id": null,
"name": "Place 5544"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "23dde2af-122b-4df8-a991-e706e66a79bd",
"name": "Product 15427",
"sku": "sku 15428",
"updated_datetime": "2025-07-03T20:47:55.510088Z"
},
"quantity": "10.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000011ed",
"name": "B15440"
},
"compliance_quantity": null,
"id": "b353c9c0-0803-4602-97e7-b6837da3fd89",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000352e",
"id": "00000000-0000-0000-0000-0000000015de",
"license_id": null,
"name": "Place 5544"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "2ad0980a-7e30-4d8f-9f17-bc2211599007",
"name": "Product 15430",
"sku": "sku 15431",
"updated_datetime": "2025-07-03T20:47:55.535222Z"
},
"quantity": "5.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000011ee",
"name": "B15441"
},
"compliance_quantity": null,
"id": "569d9abd-ac66-4cb4-aba4-98b192fcb4df",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000352e",
"id": "00000000-0000-0000-0000-0000000015de",
"license_id": null,
"name": "Place 5544"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "686638ef-5733-4d37-bd18-d7fd4ff61855",
"name": "Product 15435",
"sku": "sku 15436",
"updated_datetime": "2025-07-03T20:47:55.555979Z"
},
"quantity": "2.000000000",
"received_quantity": "0.000000000"
}
],
"order_datetime": "2020-01-01T12:30:00.000000Z",
"purchase_number": "Purchase #246",
"status": "PENDING",
"total": "32.00",
"updated_datetime": "2025-07-03T20:47:55.460284Z"
},
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000001db1",
"name": "Company 13667",
"updated_datetime": "2025-07-03T20:47:55.036517Z"
},
"custom_data": [],
"due_datetime": "2025-07-03T20:47:55.153576Z",
"id": "00000000-0000-0000-0000-000000000102",
"inserted_datetime": "2025-07-03T20:47:55.155265Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000011dc",
"name": "B15395"
},
"compliance_quantity": null,
"id": "27236135-6361-4ee9-9a2c-b1f23c12e997",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000352e",
"id": "00000000-0000-0000-0000-0000000015c8",
"license_id": null,
"name": "Place 5522"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "63f4c78c-a663-41d7-8e92-c8f23eb362fa",
"name": "Product 15378",
"sku": "sku 15379",
"updated_datetime": "2025-07-03T20:47:55.194372Z"
},
"quantity": "15.000000000",
"received_quantity": "15.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000011dd",
"name": "B15396"
},
"compliance_quantity": null,
"id": "f34698c6-8edd-4718-a249-d4bc0fc8b2aa",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000352e",
"id": "00000000-0000-0000-0000-0000000015c8",
"license_id": null,
"name": "Place 5522"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "68bc480b-dfab-4a0e-8012-2a7893ac3ac3",
"name": "Product 15385",
"sku": "sku 15386",
"updated_datetime": "2025-07-03T20:47:55.226549Z"
},
"quantity": "10.000000000",
"received_quantity": "10.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000011de",
"name": "B15397"
},
"compliance_quantity": null,
"id": "6e293285-a43e-49ed-b3ef-505afea17b9f",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000352e",
"id": "00000000-0000-0000-0000-0000000015c8",
"license_id": null,
"name": "Place 5522"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "d93a97c3-5bd7-40af-90f9-81cffa593633",
"name": "Product 15391",
"sku": "sku 15392",
"updated_datetime": "2025-07-03T20:47:55.270859Z"
},
"quantity": "5.000000000",
"received_quantity": "5.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000011df",
"name": "B15398"
},
"compliance_quantity": null,
"id": "92fb9bf3-fe13-45fa-8fa6-631ff4866f18",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000352e",
"id": "00000000-0000-0000-0000-0000000015c8",
"license_id": null,
"name": "Place 5522"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "6272a795-ce1a-4bcb-9afd-1acbe59b78d1",
"name": "Product 15393",
"sku": "sku 15394",
"updated_datetime": "2025-07-03T20:47:55.307911Z"
},
"quantity": "2.000000000",
"received_quantity": "2.000000000"
}
],
"order_datetime": "2020-01-01T12:20:00.000000Z",
"purchase_number": "Purchase #245",
"status": "COMPLETED",
"total": "32.00",
"updated_datetime": "2025-07-03T20:47:55.155265Z"
},
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000001d89",
"name": "Company 13582",
"updated_datetime": "2025-07-03T20:47:54.490477Z"
},
"custom_data": [],
"due_datetime": "2025-07-03T20:47:54.570242Z",
"id": "00000000-0000-0000-0000-000000000100",
"inserted_datetime": "2025-07-03T20:47:54.572438Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000011c5",
"name": "B15326"
},
"compliance_quantity": null,
"id": "daf4949c-eaf4-4b94-b6b0-978aacb1fb66",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000352e",
"id": "00000000-0000-0000-0000-0000000015a2",
"license_id": null,
"name": "Place 5486"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "b8353e17-92d3-4ec7-a5c3-58a8b609be19",
"name": "Product 15309",
"sku": "sku 15310",
"updated_datetime": "2025-07-03T20:47:54.598332Z"
},
"quantity": "15.000000000",
"received_quantity": "15.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000011c6",
"name": "B15329"
},
"compliance_quantity": null,
"id": "964c0792-6ff4-48c7-a158-a0606f5eadf6",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000352e",
"id": "00000000-0000-0000-0000-0000000015a2",
"license_id": null,
"name": "Place 5486"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "0e5c0d1e-a3c8-459e-83b3-92026ed9c748",
"name": "Product 15318",
"sku": "sku 15319",
"updated_datetime": "2025-07-03T20:47:54.628369Z"
},
"quantity": "10.000000000",
"received_quantity": "10.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000011c8",
"name": "B15331"
},
"compliance_quantity": null,
"id": "0a92f052-2a21-436f-82d0-6b29fce841cd",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000352e",
"id": "00000000-0000-0000-0000-0000000015a2",
"license_id": null,
"name": "Place 5486"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "e0ad79bc-e99f-4748-ad50-417230e8662a",
"name": "Product 15322",
"sku": "sku 15323",
"updated_datetime": "2025-07-03T20:47:54.657502Z"
},
"quantity": "5.000000000",
"received_quantity": "5.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000011c9",
"name": "B15332"
},
"compliance_quantity": null,
"id": "fe3629b3-772a-4cc3-8788-3614bf1f162c",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000352e",
"id": "00000000-0000-0000-0000-0000000015a2",
"license_id": null,
"name": "Place 5486"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "2955437a-2ea9-419d-8e9e-e53392905bc9",
"name": "Product 15324",
"sku": "sku 15325",
"updated_datetime": "2025-07-03T20:47:54.684742Z"
},
"quantity": "2.000000000",
"received_quantity": "2.000000000"
}
],
"order_datetime": "2020-01-01T12:00:00.000000Z",
"purchase_number": "Purchase #243",
"status": "COMPLETED",
"total": "32.00",
"updated_datetime": "2025-07-03T20:47:54.572438Z"
}
]
}
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-000000000104/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyNzUsImlhdCI6MTc1MTU3NTY3NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNGQ3Zjg3OGEtNTNiZC00M2MxLWI2YjktMWJiMGM0YjNiY2YxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1Njc0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg5MzkiLCJ0eXAiOiJhY2Nlc3MifQ.zJwfBvwnt7r8atA8F26PYiOtUOYw1-vp8oFLyv7BxJg
{
"amount": 100.01,
"description": "Payment for purchase",
"payment_datetime": "2020-01-01T00:00:00.000000Z",
"payment_method_id": "00000000-0000-0000-0000-000000000092",
"quickbooks_deposit_account_id": "QBD-123"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: b7cf8d0e60e5a8000000000000000001-aab9f16cd4df73df-0
{
"data": {
"amount": "100.01",
"description": "Payment for purchase",
"id": "00000000-0000-0000-0000-000000000033",
"inserted_datetime": "2025-07-03T20:47:56.013604Z",
"payment_date": "2020-01-01T00:00:00.000000Z",
"payment_method": {
"id": "00000000-0000-0000-0000-000000000092",
"name": "Payment Method 0"
},
"payment_number": "PYT-0000001",
"purchase_id": "00000000-0000-0000-0000-000000000104",
"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-000000000104/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyNzUsImlhdCI6MTc1MTU3NTY3NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNGQ3Zjg3OGEtNTNiZC00M2MxLWI2YjktMWJiMGM0YjNiY2YxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1Njc0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg5MzkiLCJ0eXAiOiJhY2Nlc3MifQ.zJwfBvwnt7r8atA8F26PYiOtUOYw1-vp8oFLyv7BxJg
{
"amount": 100.01,
"description": "Payment for purchase",
"payment_datetime": "2020-01-01T00:00:00.000000Z",
"payment_method_id": "00000000-0000-0000-0000-000000000092",
"quickbooks_deposit_account_name": "QBD-NAME"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: b7cf8d0e60e5a8000000000000000001-c7e9339f1ad2bc86-0
{
"data": {
"amount": "100.01",
"description": "Payment for purchase",
"id": "00000000-0000-0000-0000-000000000034",
"inserted_datetime": "2025-07-03T20:47:56.192063Z",
"payment_date": "2020-01-01T00:00:00.000000Z",
"payment_method": {
"id": "00000000-0000-0000-0000-000000000092",
"name": "Payment Method 0"
},
"payment_number": "PYT-0000002",
"purchase_id": "00000000-0000-0000-0000-000000000104",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyNjYsImlhdCI6MTc1MTU3NTY2NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMmJjZGMxZTYtNTA5MS00YTgwLTgwZGEtYjAyMDliMDFlMTMzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjY1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc0MzAiLCJ0eXAiOiJhY2Nlc3MifQ.p033Mfv-jzA0BOMVEGOPVA_GoO1p8GdOTj7gPchDp0M
{
"billing_location_id": "00000000-0000-0000-0000-0000000013e6",
"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-000000001bc1",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-0000000013e4",
"price": "10.000000000",
"product_id": "aca4eb92-1896-4c39-ae0d-b3d2c0239b47",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-0000000013e4",
"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: 1d09651f2d81a6000000000000000001-4080fefaef070f6a-0
{
"data": {
"charges": [
{
"id": "81ae7934-add1-411b-80ce-f055863b9dea",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "ac646bac-4e82-4daf-8e12-25157feddb4e",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000001bc1",
"name": "Company 12664",
"updated_datetime": "2025-07-03T20:47:46.281034Z"
},
"custom_data": [
{
"id": 99,
"name": "Custom Field 120",
"value": null
}
],
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-0000000000e5",
"inserted_datetime": "2025-07-03T20:47:46.555620Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000109b",
"name": "B1"
},
"compliance_quantity": null,
"id": "69259ef2-b90e-4277-9cb1-fa0149eb66bb",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003195",
"id": "00000000-0000-0000-0000-0000000013e4",
"license_id": "00000000-0000-0000-0000-000000000d99",
"name": "Place 5045"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "aca4eb92-1896-4c39-ae0d-b3d2c0239b47",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2025-07-03T20:47:46.417950Z"
},
"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-07-03T20:47:46.590999Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyNzgsImlhdCI6MTc1MTU3NTY3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDkzNDM4ZDYtMTViMi00ZDY2LWJkOTUtYzUxODFmODgyODA2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1Njc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTk1MjAiLCJ0eXAiOiJhY2Nlc3MifQ.0O9v3SboqdYiB6alSsZ-XcEHwGVP3ri7nd_kTMBJAyM
{
"billing_location_id": "00000000-0000-0000-0000-0000000016a3",
"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-000000001ead",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"batch_id": "00000000-0000-0000-0000-000000001262",
"location_id": "00000000-0000-0000-0000-0000000016a3",
"price": "10.000000000",
"product_id": "2eff69a0-360d-4187-8a48-7e3b7370eac8",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-0000000016a3",
"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: ad8f78459c9200000000000000000001-20c99a4e3c2fa00b-0
{
"data": {
"charges": [
{
"id": "eb5f5cfe-8e5b-45a8-8072-5a212909f3a0",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "1bb107bd-98ed-4886-b532-853de83b99d2",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000001ead",
"name": "Company 14227",
"updated_datetime": "2025-07-03T20:47:58.250132Z"
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-00000000010f",
"inserted_datetime": "2025-07-03T20:47:58.387774Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001262",
"name": "B1"
},
"compliance_quantity": null,
"id": "7acdb93a-cf8c-4993-bebd-f483b5859ff4",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000037bc",
"id": "00000000-0000-0000-0000-0000000016a3",
"license_id": "00000000-0000-0000-0000-000000000f2c",
"name": "Place 5741"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "2eff69a0-360d-4187-8a48-7e3b7370eac8",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2025-07-03T20:47:58.328790Z"
},
"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-07-03T20:47:58.408081Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyNjcsImlhdCI6MTc1MTU3NTY2NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTA3OWNhNWUtM2NlZC00YzVmLWJjMzktNzQxNzgxMmM3NTQxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjY2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc1NjUiLCJ0eXAiOiJhY2Nlc3MifQ.GiWmuM_X7g3KPiChUn8P3_Tbb2Nbc-haQWIIHBybKP4
{
"billing_location_id": "00000000-0000-0000-0000-00000000141f",
"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-000000001bff",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000000141f",
"price": "10.000000000",
"product_id": "4b5b180f-2a9b-45ba-9cd9-ca5ec9e41d07",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-00000000141f",
"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: 2f73164f7e2530000000000000000001-30bffa7f21a308f7-0
{
"data": {
"charges": [
{
"id": "82c81dd7-ed56-4b20-b548-93abf2adc100",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "c5c90e35-a426-485d-b71d-eae45f70d308",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000001bff",
"name": "Company 12768",
"updated_datetime": "2025-07-03T20:47:47.261955Z"
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-0000000000ea",
"inserted_datetime": "2025-07-03T20:47:47.474914Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000010bd",
"name": "B1"
},
"compliance_quantity": null,
"id": "604b5ed7-1734-4ffb-9da0-6d3b125d2365",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000031fe",
"id": "00000000-0000-0000-0000-00000000141f",
"license_id": "00000000-0000-0000-0000-000000000db1",
"name": "Place 5104"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "4b5b180f-2a9b-45ba-9cd9-ca5ec9e41d07",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2025-07-03T20:47:47.394855Z"
},
"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-07-03T20:47:47.500560Z"
}
}
POST /public/v1/purchases updates a purchase
POST /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyODMsImlhdCI6MTc1MTU3NTY4MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiN2YzZjhkNjItNTI2Ni00OTU4LWI0OWQtNmE2YjVmNWFiMTI3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjgyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjA4MjciLCJ0eXAiOiJhY2Nlc3MifQ.vbMncBbKaJl_KCipYFwHwM0c4viSeY1hf7EizhgdMiI
{
"billing_location_id": "00000000-0000-0000-0000-000000001818",
"charges": [
{
"name": "C1",
"percent": "10.0000",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company_id": "00000000-0000-0000-0000-000000002078",
"due_datetime": "2020-01-20T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000001818",
"price": "10.000000000",
"product_id": "93fced4d-fbff-4691-901d-ccaa41e83109",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000001818",
"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: a453eacd113de0000000000000000001-995608dc449318a6-0
{
"data": {
"charges": [
{
"id": "3269506a-9f94-463d-9f23-460e0e8dee28",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000002078",
"name": "Company 15110",
"updated_datetime": "2025-07-03T20:48:03.521088Z"
},
"custom_data": [],
"due_datetime": "2020-01-20T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-00000000012c",
"inserted_datetime": "2025-07-03T20:48:03.680279Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000137a",
"name": "B1"
},
"compliance_quantity": null,
"id": "ab2c60e1-1db8-40c0-aa9c-93ee47f1a37a",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003b35",
"id": "00000000-0000-0000-0000-000000001818",
"license_id": "00000000-0000-0000-0000-000000001024",
"name": "Place 6114"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "93fced4d-fbff-4691-901d-ccaa41e83109",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2025-07-03T20:48:03.596838Z"
},
"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-07-03T20:48:03.699942Z"
}
}
POST /public/v1/purchases updates a purchase
POST /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyODMsImlhdCI6MTc1MTU3NTY4MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiN2YzZjhkNjItNTI2Ni00OTU4LWI0OWQtNmE2YjVmNWFiMTI3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjgyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjA4MjciLCJ0eXAiOiJhY2Nlc3MifQ.vbMncBbKaJl_KCipYFwHwM0c4viSeY1hf7EizhgdMiI
{
"billing_location_id": "00000000-0000-0000-0000-000000001818",
"charges": [
{
"id": "3269506a-9f94-463d-9f23-460e0e8dee28",
"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-000000002078",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-00000000012c",
"items": [
{
"id": "ab2c60e1-1db8-40c0-aa9c-93ee47f1a37a",
"location_id": "00000000-0000-0000-0000-000000001818",
"price": "10.000000000",
"product_id": "93fced4d-fbff-4691-901d-ccaa41e83109",
"quantity": "1.000000000"
},
{
"batch_id": "00000000-0000-0000-0000-00000000137b",
"location_id": "00000000-0000-0000-0000-000000001818",
"price": "5.000000000",
"product_id": "6d5d9476-d659-4628-a981-71cf97fceabd",
"quantity": "2.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000001818",
"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: a453eacd113de0000000000000000001-4aa70cc76d331536-0
{
"data": {
"charges": [
{
"id": "3269506a-9f94-463d-9f23-460e0e8dee28",
"name": "C1",
"percent": "10.0000",
"price": "2.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "8c26bea1-4ad7-4a40-bed3-a7d351a458b0",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000002078",
"name": "Company 15110",
"updated_datetime": "2025-07-03T20:48:03.521088Z"
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-00000000012c",
"inserted_datetime": "2025-07-03T20:48:03.680279Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000137a",
"name": "B1"
},
"compliance_quantity": null,
"id": "ab2c60e1-1db8-40c0-aa9c-93ee47f1a37a",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003b35",
"id": "00000000-0000-0000-0000-000000001818",
"license_id": "00000000-0000-0000-0000-000000001024",
"name": "Place 6114"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "93fced4d-fbff-4691-901d-ccaa41e83109",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2025-07-03T20:48:03.596838Z"
},
"quantity": "1.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000137b",
"name": "B2"
},
"compliance_quantity": null,
"id": "ce462175-3641-4bf5-8440-ba37d5a36a5d",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003b35",
"id": "00000000-0000-0000-0000-000000001818",
"license_id": "00000000-0000-0000-0000-000000001024",
"name": "Place 6114"
},
"package": null,
"price": "5.000000000",
"price_base": "5.000000000",
"product": {
"id": "6d5d9476-d659-4628-a981-71cf97fceabd",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2025-07-03T20:48:03.634811Z"
},
"quantity": "2.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-07-03T20:48:03.908854Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyNzMsImlhdCI6MTc1MTU3NTY3MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiOWFkNWMyYmEtZjFiNS00Y2M5LTgyNmMtZDYyOWI4ZTg1NGI2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjcyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg1NjgiLCJ0eXAiOiJhY2Nlc3MifQ.hAVf6l9-T6x6y85ZB9h2SiUxJQYIMQmr2kBymtQz36s
{
"billing_location_id": "00000000-0000-0000-0000-000000001580",
"company_id": "00000000-0000-0000-0000-000000001d68",
"due_datetime": "2020-01-20T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000001580",
"price": "10",
"product_id": "7342ee4d-e4a6-43e0-887a-96c5b42915f4",
"quantity": "1"
}
],
"location_id": "00000000-0000-0000-0000-000000001580",
"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: 4d214a04013450000000000000000001-6f8a0280b68570b4-0
{
"data": {
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000001d68",
"name": "Company 13499",
"updated_datetime": "2025-07-03T20:47:53.898067Z"
},
"custom_data": [],
"due_datetime": "2020-01-20T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-0000000000ff",
"inserted_datetime": "2025-07-03T20:47:54.076940Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000011aa",
"name": "B15229"
},
"compliance_quantity": null,
"id": "d483f81b-39df-4902-8987-4adb1c5ede0a",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000034e1",
"id": "00000000-0000-0000-0000-000000001580",
"license_id": "00000000-0000-0000-0000-000000000e76",
"name": "Place 5452"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "7342ee4d-e4a6-43e0-887a-96c5b42915f4",
"name": "Product 15227",
"sku": "sku 15228",
"updated_datetime": "2025-07-03T20:47:53.973529Z"
},
"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-07-03T20:47:54.076940Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyNzMsImlhdCI6MTc1MTU3NTY3MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiOWFkNWMyYmEtZjFiNS00Y2M5LTgyNmMtZDYyOWI4ZTg1NGI2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjcyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg1NjgiLCJ0eXAiOiJhY2Nlc3MifQ.hAVf6l9-T6x6y85ZB9h2SiUxJQYIMQmr2kBymtQz36s
{
"company_id": "00000000-0000-0000-0000-000000001d68",
"id": "00000000-0000-0000-0000-0000000000ff",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000001580",
"price": "2",
"product_id": "7342ee4d-e4a6-43e0-887a-96c5b42915f4",
"quantity": "1"
}
]
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 4d214a04013450000000000000000001-aeea513f6c740177-0
{
"data": {
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000001d68",
"name": "Company 13499",
"updated_datetime": "2025-07-03T20:47:53.898067Z"
},
"custom_data": [],
"due_datetime": "2020-01-20T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-0000000000ff",
"inserted_datetime": "2025-07-03T20:47:54.076940Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000011aa",
"name": "B15229"
},
"compliance_quantity": null,
"id": "581ce11a-1176-47d1-b076-051f65ef31fd",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000034e1",
"id": "00000000-0000-0000-0000-000000001580",
"license_id": "00000000-0000-0000-0000-000000000e76",
"name": "Place 5452"
},
"package": null,
"price": "2.000000000",
"price_base": "2.000000000",
"product": {
"id": "7342ee4d-e4a6-43e0-887a-96c5b42915f4",
"name": "Product 15227",
"sku": "sku 15228",
"updated_datetime": "2025-07-03T20:47:53.973529Z"
},
"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-07-03T20:47:54.324825Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyNzksImlhdCI6MTc1MTU3NTY3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDQzYjE0NGYtYzYxMy00MzkzLTliMzQtNGY0NjkxMzYyNTFlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1Njc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTk4MTkiLCJ0eXAiOiJhY2Nlc3MifQ.Ao3xof52GMuOdfsKDdyi4-WKuu5v5RPr0qVvNSkFnaQ
{
"billing_location_id": "00000000-0000-0000-0000-00000000170f",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000001f29",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-000000000118",
"items": [
{
"batch_id": "00000000-0000-0000-0000-0000000012a5",
"id": "ed4ffa30-4db1-40ba-babc-9f39f8d86013",
"location_id": "00000000-0000-0000-0000-00000000170f",
"price": "10.000000000",
"product_id": "09669208-616f-4bf3-a341-cb4b2d0ecec7",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-00000000170f",
"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: 0fd0d3a7bb5bce000000000000000001-d18b3f7690d316a4-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyNjksImlhdCI6MTc1MTU3NTY2OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNGVjNTA2M2QtYzA4Yi00NmVhLWJhYzUtMDUxMGMzMzBmY2Q4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjY4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc4MjciLCJ0eXAiOiJhY2Nlc3MifQ.c7Avs0ecHpvIa1DarLSkLlbJ8D39T5_KWcPxXkXljuQ
{
"billing_location_id": "00000000-0000-0000-0000-000000001488",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000001c61",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000001488",
"price": "10.000000000",
"product_id": "c5028bbc-e0b9-4957-8551-e0432029ae3a",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000001488",
"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: 2a3191087690e6000000000000000001-b03dd0f0d9317b58-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyNjYsImlhdCI6MTc1MTU3NTY2NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiM2Y4ZTQ2NjItYzY0MS00MGE1LTkwNjQtYmI1YjQ3ODE5N2FlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjY1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc1MTIiLCJ0eXAiOiJhY2Nlc3MifQ.vo-lTJgyHAIwqjX-5gbz78gHJ2o-nr-tof_HoekYhpk
{
"billing_location_id": "00000000-0000-0000-0000-000000001403",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000001be6",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000001403",
"price": "10.000000000",
"product_id": "0eb01696-4754-42c2-8ef7-e61524bfaa5e",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000001403",
"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: ee971bf91dd710000000000000000001-29d222f88aae74f9-0
{
"errors": [
{
"context": {
"id": "a1453546-6645-41a0-9029-9f7ef8631819"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyNzksImlhdCI6MTc1MTU3NTY3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiN2U3MDZhZmEtNjI0MC00NTY3LTk0ZjYtNDViY2YxZmZjOTZkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1Njc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTk4OTciLCJ0eXAiOiJhY2Nlc3MifQ.dmtRY45zQQImeDgTxHBH0hjkP9d1sItfEgDleADcY5o
{
"billing_location_id": "00000000-0000-0000-0000-000000001731",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000001f3d",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"batch_id": "00000000-0000-0000-0000-0000000012b1",
"location_id": "00000000-0000-0000-0000-000000001731",
"price": "10.000000000",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000001731",
"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: 5838e344ebe3fc000000000000000001-27ae158f49b223f7-0
{
"errors": [
{
"context": {
"id": "53931a76-2ed4-4d63-af7f-57c65b757eb3"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyODMsImlhdCI6MTc1MTU3NTY4MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjRiZThjMDYtYjk3ZC00MTc5LTk4ZTItODZmNjRjY2E3NTA5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjgyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjA3OTUiLCJ0eXAiOiJhY2Nlc3MifQ.ItRzGy_snSvfQLeZWHgtNQ5GafEUluiwm_gfYWYJ0dg
{
"billing_location_id": "00000000-0000-0000-0000-000000001812",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000002065",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000001813",
"price": "10.000000000",
"product_id": "c99674e4-c669-4aae-9c28-3d8c73418e28",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000001813",
"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: 66d1b6b62afd98000000000000000001-97896db59668355b-0
{
"errors": [
{
"context": {
"id": "b6e87520-a8a0-492e-88a8-e6cb14af3e86"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyODIsImlhdCI6MTc1MTU3NTY4MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTNhNGRiM2QtMTYzOC00NTgxLTg3ZTUtODg1YjAyYWY3YjNhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjgxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjA1NTAiLCJ0eXAiOiJhY2Nlc3MifQ.ORf0oXtfjosvWwR9qOHOVQzSIm2VgZ_taLXOcft5G4g
{
"billing_location_id": "00000000-0000-0000-0000-0000000017e8",
"charges": [],
"company_id": "00000000-0000-0000-0000-00000000201f",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-0000000017e8",
"price": "10.000000000",
"product_id": "5ecc278d-0c0b-4ab9-b561-7a02cbb3c4b7",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-0000000017eb",
"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: 08d21a6a9a48d4800000000000000001-edaecf0e72ecbb7d-0
{
"errors": [
{
"context": {
"id": "f7db72c4-f414-420c-963c-eb3d28373053"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyNzYsImlhdCI6MTc1MTU3NTY3NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTQ4MDkyNTEtODk4Yi00M2ZmLWIxN2MtNWQ5ODUwMTkzYmJkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1Njc1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTkxMzMiLCJ0eXAiOiJhY2Nlc3MifQ.y919Iu13SV2PCyK0R7sd2xLAl9q79T4b6Cm-8QlVSEA
{
"billing_location_id": "00000000-0000-0000-0000-00000000163b",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000001e1a",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000001638",
"price": "10.000000000",
"product_id": "9e593680-ded4-4a74-a774-26752cb212b4",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000001638",
"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: c40000c6ea34b8000000000000000001-01d127c1b032121f-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 |
StockAdjustment
Get adjustments
GET /public/v1/adjustments returns proper data for stock adjustments of product/batch/package tracked
GET /public/v1/adjustments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUzODYsImlhdCI6MTc1MTU3NTc4NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDkwYjMzOTktNzA1NC00MGEwLTk2NGYtZDc2NTRjODhlOTQyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1Nzg1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6Mzc1NzciLCJ0eXAiOiJhY2Nlc3MifQ.rfLgGqpHCB2mHeZEn_fEhaHTDF-fXk0lBrgg_MsauBM
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 1063cc219529e2000000000000000001-e0218b89f15fc8c4-0
{
"data": [
{
"batch_id": null,
"completion_datetime": "2025-07-03T20:49:46.174333Z",
"compliance_quantity": null,
"description": null,
"id": "00000000-0000-0000-0000-00000000013d",
"license_id": null,
"location_id": null,
"owner_id": "00000000-0000-0000-0000-0000000092c9",
"package_id": null,
"product_id": "a62b6eb2-d869-4147-ae3f-8c716e8fb5c1",
"quantity": "10",
"reason": "revaluation",
"total_cost": "10000"
},
{
"batch_id": null,
"completion_datetime": "2025-07-03T20:49:46.456197Z",
"compliance_quantity": "1",
"description": "A default note describing this transaction",
"id": "00000000-0000-0000-0000-00000000013e",
"license_id": "00000000-0000-0000-0000-000000001c49",
"location_id": "00000000-0000-0000-0000-000000002a58",
"owner_id": null,
"package_id": "00000000-0000-0000-0000-000000000e1a",
"product_id": "b0f238c7-8f42-478f-86f4-49c24e776fd4",
"quantity": "1",
"reason": "Voluntary Surrender",
"total_cost": "900"
},
{
"batch_id": "00000000-0000-0000-0000-00000000225d",
"completion_datetime": "2025-07-03T20:49:46.633159Z",
"compliance_quantity": null,
"description": null,
"id": "00000000-0000-0000-0000-00000000013f",
"license_id": null,
"location_id": "00000000-0000-0000-0000-000000002a4f",
"owner_id": null,
"package_id": null,
"product_id": "6f043cd6-c55d-4099-8328-1ce7f668e934",
"quantity": "1",
"reason": "revaluation",
"total_cost": "-800"
}
]
}
Get stock adjustments sorted by their creation date and filtered by various attributes
Note: The page size for this endpoint is 5000 stock adjustments per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Request
GET /public/v1/adjustments
Parameters
Parameter | Description | In | Type | Required | Default | Example |
---|---|---|---|---|---|---|
inserted_datetime | Filter stock adjustments by their creation datetime | query | string | false | 2022-07-10T00:00:00Z, | |
page | Pagination information | body | Page | false |
Responses
Status | Description | Schema |
---|---|---|
200 | A list of stock adjustments | StockAdjustments |
Insert a stock adjustment
POST /public/v1/adjustments creates an adjustment for a product tracked product
POST /public/v1/adjustments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUzODQsImlhdCI6MTc1MTU3NTc4NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDRlMGM4OTMtYTMzMC00MTljLWFkZmEtODdhNTMzMGRkNDExIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NzgzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MzczMzMiLCJ0eXAiOiJhY2Nlc3MifQ.tLLoQ-GcvNx3x5tI-qEGpntDSZtHR8PeNqBh5ic0F8s
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "00000000-0000-0000-0000-0000000029eb",
"product_id": "46f96e88-49a3-4c97-934a-f3214df73c32",
"quantity": 10,
"reason": "expired"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: b3c9b5c200b7d8000000000000000001-f2c1be33daa52701-0
{
"data": {
"batch_id": null,
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": null,
"description": "test",
"id": "00000000-0000-0000-0000-000000000136",
"license_id": null,
"location_id": "00000000-0000-0000-0000-0000000029eb",
"owner_id": null,
"package_id": null,
"product_id": "46f96e88-49a3-4c97-934a-f3214df73c32",
"quantity": "10",
"reason": "expired",
"total_cost": null
}
}
POST /public/v1/adjustments creates an adjustment for a batch tracked product
POST /public/v1/adjustments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUzODQsImlhdCI6MTc1MTU3NTc4NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNWUxY2M4NWUtZDNiZi00OTVhLWE2ZDQtY2RlZmI5ODVmMTIyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NzgzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MzcyNjAiLCJ0eXAiOiJhY2Nlc3MifQ.VLwVPAop1IDPoZyUxssgyOA-Kl4jUxg38NnICLaVmkQ
{
"batch_id": "00000000-0000-0000-0000-000000002200",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "00000000-0000-0000-0000-0000000029d1",
"quantity": 10,
"reason": "expired",
"unit_cost": 1000
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: f923c4326f1158000000000000000001-377bdc21aa18e28d-0
{
"data": {
"batch_id": "00000000-0000-0000-0000-000000002200",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": null,
"description": "test",
"id": "00000000-0000-0000-0000-000000000135",
"license_id": null,
"location_id": "00000000-0000-0000-0000-0000000029d1",
"owner_id": null,
"package_id": null,
"product_id": "815edaab-ec1a-4dbe-8c16-cc86896c1d8b",
"quantity": "10",
"reason": "expired",
"total_cost": "10000"
}
}
POST /public/v1/adjustments creates an adjustment for a package tracked product
POST /public/v1/adjustments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUzODIsImlhdCI6MTc1MTU3NTc4MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDA0MmNlMDctNWMwOC00ODkwLTllNzItMmFkZTJjOTk1OTEyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NzgxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MzcxMjkiLCJ0eXAiOiJhY2Nlc3MifQ.aaPP1F-h8VPe482XJr_rpsk-OGk8N-updN64QJnQ4KM
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": 10,
"description": "test",
"package_id": "00000000-0000-0000-0000-000000000dc7",
"reason": "Damage (BCC)",
"unit_cost": 1000
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 63c3e78ffdbc00000000000000000001-75bb0082aa3ccffb-0
{
"data": {
"batch_id": null,
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": "10",
"description": "test",
"id": "00000000-0000-0000-0000-000000000134",
"license_id": "00000000-0000-0000-0000-000000001bdb",
"location_id": "00000000-0000-0000-0000-000000002994",
"owner_id": null,
"package_id": "00000000-0000-0000-0000-000000000dc7",
"product_id": "2e34a316-fcf1-4eb2-8521-1290f4131ab2",
"quantity": "0.35274",
"reason": "Damage (BCC)",
"total_cost": "10000.000000005834"
}
}
POST /public/v1/adjustments pointer translation works as intended
POST /public/v1/adjustments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUzODMsImlhdCI6MTc1MTU3NTc4MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzJhNDcxNWMtYWY5Yy00MjM4LTk5ZTktNThkZWU1MDM4MzE0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NzgyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MzcyMTYiLCJ0eXAiOiJhY2Nlc3MifQ.OPWGyIjzVGgnDB4KHMzUzn1ynJI5Uym2_6JTa5dORK8
{
"description": "test",
"package_id": "00000000-0000-0000-0000-000000000dda",
"quantity": 10,
"reason": "Damage (BCC)"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: cb68517607cfd0000000000000000001-06132b93f56d9aa3-0
{
"errors": [
{
"context": {},
"message": "can't be blank",
"pointer": [
"completion_datetime"
],
"section": "body"
},
{
"context": {},
"message": "Required for adjustments of package tracked products",
"pointer": [
"compliance_quantity"
],
"section": "body"
},
{
"context": {},
"message": "Cannot be set for adjustments of package tracked products",
"pointer": [
"quantity"
],
"section": "body"
}
]
}
POST /public/v1/adjustments pointer translation works for cost accounting as well
POST /public/v1/adjustments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUzODUsImlhdCI6MTc1MTU3NTc4NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTA0MDcyNGEtYzljYi00YzI0LWJkOGYtZmM3ZjkzZTgxNTk3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1Nzg0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6Mzc1MjQiLCJ0eXAiOiJhY2Nlc3MifQ.xrW_hHuYCP4uDym7ukDMzSd1z3wFsRo3XRQyq9u7yu4
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "00000000-0000-0000-0000-000000002a40",
"product_id": "3037ec31-095f-465c-bc8e-32ebfb2e2bf3",
"quantity": 10,
"reason": "expired"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 991ac367aa6c60000000000000000001-653e6e0a518d7aaa-0
{
"errors": [
{
"context": {},
"message": "Your company cost settings require a cost to be set when adding quantity",
"pointer": [
"unit_cost"
],
"section": "body"
}
]
}
POST /public/v1/adjustments validates quantity for non-compliance adjustments
POST /public/v1/adjustments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUzODQsImlhdCI6MTc1MTU3NTc4NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjcwNGRlNTAtYmUyYy00NmYxLThjYTAtYWMxNTZhYThlZjg2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NzgzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MzczNzkiLCJ0eXAiOiJhY2Nlc3MifQ.aKXCmqLQ1zpOzrY8_JLPzwx1J84YBpPOsVUGeJ2GqKA
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": 10,
"description": "test",
"location_id": "00000000-0000-0000-0000-0000000029fc",
"product_id": "9e9f5011-3249-4015-a1c2-edeabb6a1016",
"reason": "expired"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 948ff38cc894b8000000000000000001-b93b67ddc559567f-0
{
"errors": [
{
"context": {},
"message": "Cannot be set for adjustments of non-package tracked products",
"pointer": [
"compliance_quantity"
],
"section": "body"
},
{
"context": {},
"message": "Required for adjustments of non-package tracked products",
"pointer": [
"quantity"
],
"section": "body"
}
]
}
validates only one id can be passed
POST /public/v1/adjustments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUzODUsImlhdCI6MTc1MTU3NTc4NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTU1MmUwYmUtZGVhOS00ODQ5LWFiZTItNzUxNWVlM2NlNjMyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1Nzg0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6Mzc1NjAiLCJ0eXAiOiJhY2Nlc3MifQ.ZYOza5rN0L71sHZPGrC60vVR8dCIH4zgK1kEG0zUC-k
{
"batch_id": "ed73898b-6c90-46bc-a4a9-7d17499f3a1f",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "e6d93c9f-5e5e-49a4-98f6-0a64bb316f35",
"package_id": "1c4dbcc7-3105-4e8d-ad90-b37d8524436a",
"product_id": "1950ee62-5168-4e35-bc7e-0c41cedefa36",
"reason": "expired"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: fce8321ab94a40000000000000000001-07034d18c7c5461e-0
{
"errors": [
{
"context": {},
"message": "Only one of batch_id, package_id, or product_id can be set",
"pointer": [
"batch_id"
],
"section": "body"
},
{
"context": {},
"message": "Required for adjustments of package tracked products",
"pointer": [
"compliance_quantity"
],
"section": "body"
},
{
"context": {},
"message": "Cannot be set for adjustments of package tracked products because the source will automatically be set to the location of the package",
"pointer": [
"location_id"
],
"section": "body"
},
{
"context": {},
"message": "Only one of batch_id, package_id, or product_id can be set",
"pointer": [
"package_id"
],
"section": "body"
},
{
"context": {},
"message": "Only one of batch_id, package_id, or product_id can be set",
"pointer": [
"product_id"
],
"section": "body"
}
]
}
validates at least one id is passed
POST /public/v1/adjustments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUzODEsImlhdCI6MTc1MTU3NTc4MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDgxODExNDctYzg3OC00YjIyLWI4ZDctMzEzOWU5YjIwYWI3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NzgwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MzcwMDAiLCJ0eXAiOiJhY2Nlc3MifQ.R_ragZK3edQcmGo9VWMY-uYca74Gy3p7M4rKBfKyXJA
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "be3b73c2-5009-41ad-bf2c-146ed409cc93",
"reason": "expired"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 874ececef71968000000000000000001-5780dd39137515ba-0
{
"errors": [
{
"context": {},
"message": "At least one of batch_id, package_id, or product_id must be set",
"pointer": [
"batch_id"
],
"section": "body"
},
{
"context": {},
"message": "At least one of batch_id, package_id, or product_id must be set",
"pointer": [
"package_id"
],
"section": "body"
},
{
"context": {},
"message": "At least one of batch_id, package_id, or product_id must be set",
"pointer": [
"product_id"
],
"section": "body"
},
{
"context": {},
"message": "Required for adjustments of non-package tracked products",
"pointer": [
"quantity"
],
"section": "body"
}
]
}
validate waste must be negative
POST /public/v1/adjustments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUzODEsImlhdCI6MTc1MTU3NTc4MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjVmODhiNDktMTQ5NC00ZmFiLWJhNTctYTdkODQxYmVmYjM2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NzgwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MzY5NzQiLCJ0eXAiOiJhY2Nlc3MifQ.d8WEeaEt_8GHvRJ4Enynatn2hBaF4YQZ1cqlEvNn8_s
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "fecd964f-82e7-4127-8345-6ae134891569",
"product_id": "6e11021b-76a5-42e9-965f-bc869350df34",
"quantity": 10,
"reason": "waste"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 4a260bb8c8ef7c000000000000000001-a049c5750900cd55-0
{
"errors": [
{
"context": {},
"message": "Quantity must be negative for waste adjustments",
"pointer": [
"quantity"
],
"section": "body"
}
]
}
validate compliance adjustments must not include location_id
POST /public/v1/adjustments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUzODQsImlhdCI6MTc1MTU3NTc4NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYTA1YWFkMjItZTM2NC00NzUyLWI4OGQtOTk4NTM3YWMxNjI0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NzgzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6Mzc0MDMiLCJ0eXAiOiJhY2Nlc3MifQ.W2tfvUxo8cULLh10aSdtblWzigPyF5SvPQ5_1zdvs5A
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": 10,
"description": "test",
"location_id": "bcdca8a9-d4ed-482a-8c69-76a11538855f",
"package_id": "62abcb9e-d73e-4917-9155-841eecd243bd",
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 8741105dc2d6b0000000000000000001-0e2dec82b0720cd2-0
{
"errors": [
{
"context": {},
"message": "Cannot be set for adjustments of package tracked products because the source will automatically be set to the location of the package",
"pointer": [
"location_id"
],
"section": "body"
}
]
}
validate compliance adjustments must include location_id
POST /public/v1/adjustments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUzODEsImlhdCI6MTc1MTU3NTc4MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNWI3ZTBiZWYtZmFmZS00YmRkLWE4OWQtYjVmOWIxNDVlNTRjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NzgwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MzY5OTEiLCJ0eXAiOiJhY2Nlc3MifQ.uRmKjCes58au4q71qVjio7wWA5nBP5A0wMkTT1pWQi4
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"product_id": "0df099c2-009a-4722-8102-ce8316e17ed5",
"quantity": 10,
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 11dc26d9334f46000000000000000001-2c4c8ba371f1af53-0
{
"errors": [
{
"context": {},
"message": "Source location is required for non-compliance adjustments",
"pointer": [
"location_id"
],
"section": "body"
}
]
}
validates product exists
POST /public/v1/adjustments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUzODYsImlhdCI6MTc1MTU3NTc4NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTRjZDhlYWMtMzIzZi00NThkLThjNmMtNGQ5OGRhYTYxODIxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1Nzg1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6Mzc3MDEiLCJ0eXAiOiJhY2Nlc3MifQ.Jein7_YJHBYPiyU85ZVhwGkK3p9dKz1EI7kFOU_VvIo
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "3825e9a3-bde4-40a6-8e0e-c14cc2f42cdb",
"product_id": "77dee925-d463-42a3-ad8b-f396bd34a9ed",
"quantity": 10,
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 980da515a1f890000000000000000001-dd11b202a4d573d4-0
{
"errors": [
{
"context": {},
"message": "Product not found",
"pointer": [
"product_id"
],
"section": "body"
}
]
}
validates batch exists
POST /public/v1/adjustments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUzODQsImlhdCI6MTc1MTU3NTc4NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDk0NjI2OTAtZjc0NS00NjRjLTlhOGItNDU5M2JhYmY3NzFiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NzgzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MzczMDQiLCJ0eXAiOiJhY2Nlc3MifQ.ub6K92fgAYzWvMUHXdCneNkVf5NILLQd-FInf0A5Gow
{
"batch_id": "00000000-0000-0000-0000-00000000220a",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "56f25bb0-2d36-41ca-a8ed-12cc2629462a",
"quantity": 10,
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 0ea5499e023c4e800000000000000001-6620ca20105c0a76-0
{
"errors": [
{
"context": {},
"message": "Batch not found",
"pointer": [
"batch_id"
],
"section": "body"
}
]
}
validates package exists
POST /public/v1/adjustments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUzODUsImlhdCI6MTc1MTU3NTc4NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYmU3YTVjOWYtYTlhZi00YmEzLThmYmEtNzcyMWUwZTMzOWM5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1Nzg0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6Mzc0ODQiLCJ0eXAiOiJhY2Nlc3MifQ.S9P9YuZDXR0oWdTSF78y9K8KolokA7L9Dk24uvQQcd8
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": 10,
"description": "test",
"package_id": "00000000-0000-0000-0000-000000000e06",
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 3fd2a37817ff70000000000000000001-e6520adf5ceb2bb0-0
{
"errors": [
{
"context": {},
"message": "Package not found",
"pointer": [
"package_id"
],
"section": "body"
}
]
}
validates location exists
POST /public/v1/adjustments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUzODIsImlhdCI6MTc1MTU3NTc4MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZmIyOGQyM2EtZWZjOC00ZjU3LTk2YWUtMWVhNDU5NjNiYjdiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NzgxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MzcwOTgiLCJ0eXAiOiJhY2Nlc3MifQ.S06AK-4olY9CMOg_lthUySk9zvYHDDOo7b-2F6dWF3I
{
"batch_id": "00000000-0000-0000-0000-0000000021ca",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "00000000-0000-0000-0000-00000000298d",
"quantity": 10,
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 67844a4c7a4d98000000000000000001-a467cb8335452029-0
{
"errors": [
{
"context": {},
"message": "Location not found",
"pointer": [
"location_id"
],
"section": "body"
}
]
}
Request
POST /public/v1/adjustments
Parameters
Parameter | Description | In | Type | Required | Default | Example |
---|---|---|---|---|---|---|
product_id | The ID of the product to adjust. Must only be provided if the product is product-tracked. | query | string | false | ||
batch_id | The ID of the batch to adjust. Must only be provided if the batch's associated product is batch-tracked. | query | string | false | ||
package_id | The ID of the package to adjust. Must only be provided if the package's associated product is package-tracked. | query | string | false | ||
quantity | The quantity to adjust the stock by. Must only be provided for non-compliance adjustments. Must be negative if the adjustment reason is 'waste'. | query | number | false | ||
compliance_quantity | The quantity to adjust the stock by. Must only be provided for compliance adjustments. | query | number | false | ||
description | The description of the stock adjustment. Required for compliance adjustmenst. Has a max length of 800 characters for non-compliance adjustments, and 250 characters for compliance adjustments. | query | string | false | ||
unit_cost | The cost per unit of the stock adjustment. Can only be provided for companies with cost accounting enabled. Must be empty when the quantity is negative. Must be provided if the company setting 'Require Cost on Intake and Quantity Adjustments' is true. | query | number | false | ||
completion_datetime | The datetime of the stock adjustment. Must only be provided for compliance adjustments. | query | string | false | ||
reason | The reason for the stock adjustment. For non-compliance adjustments, must be one of the following: 'waste', 'stolen', 'damaged', 'fire', 'write-off', 'expired', 'lab-testing', 'revaluation', 'other.' For compliance adjustments, must be a reason that is accepted by the the compliance API | query | string | false | ||
location_id | The ID of the source location of the stock adjustment. Must only be provided for non-compliance adjustments. | query | string | false |
Responses
Status | Description | Schema |
---|---|---|
200 | The stock adjustment was inserted successfully | StockAdjustment |
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUzMTMsImlhdCI6MTc1MTU3NTcxMywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTM5N2ZlMjEtY2UxOC00ZjlkLWFmMzUtZWEwYzllYTgxZmNhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NzEyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjU4ODEiLCJ0eXAiOiJhY2Nlc3MifQ.TkuVFDcT4eNuuzMTwSoSll4TklicaJ1nNxx1SWiH32k
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: e6d471c26ad4d0000000000000000001-78a94b439139dbc0-0
{
"data": [
{
"id": "00000000-0000-0000-0000-00000000015f",
"name": "Strain 348"
},
{
"id": "00000000-0000-0000-0000-000000000160",
"name": "Strain 349"
}
]
}
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 |
TestResult
Get test results
GET /public/v1/test-results returns test results
GET /public/v1/test-results
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjU0MDYsImlhdCI6MTc1MTU3NTgwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiY2E1MGZmODAtYTdhMC00NGY1LThlNzAtMTA0ZjdkMWQ3NDc1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1ODA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NDA4MDEiLCJ0eXAiOiJhY2Nlc3MifQ.cg79Z3_cSuA-11UKg3kliLcAgzNobKXtBzJ7-xlizao
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 6961ddcb470250000000000000000001-e91d7da72dbf9eb8-0
{
"data": [
{
"additional_test_results": {
"thca_percentage": "12"
},
"batch_id": null,
"cbd_mg_per_unit": "1.12345",
"cbd_percentage": "60.1234",
"id": "00000000-0000-0000-0000-000000000176",
"is_primary": false,
"lab_license_number": "1234567890",
"lab_name": "Test Lab",
"mg_per_unit_type": "mg/g",
"name": "Test result 1",
"package_id": "00000000-0000-0000-0000-000000000f8b",
"release_date": "2025-07-03",
"thc_mg_per_unit": "2.12345",
"thc_percentage": "20.1234",
"total_cbd_mg_per_unit": "3.12345",
"total_cbd_percentage": "80.1234",
"total_thc_mg_per_unit": "4.12345",
"total_thc_percentage": "40.1234",
"updated_datetime": "2025-07-03T20:50:06.754282Z"
},
{
"additional_test_results": {
"thca_percentage": "12"
},
"batch_id": "00000000-0000-0000-0000-000000002452",
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-000000000177",
"is_primary": false,
"lab_license_number": null,
"lab_name": null,
"mg_per_unit_type": "mg/g",
"name": "File.pdf",
"package_id": null,
"release_date": null,
"thc_mg_per_unit": null,
"thc_percentage": null,
"total_cbd_mg_per_unit": null,
"total_cbd_percentage": null,
"total_thc_mg_per_unit": null,
"total_thc_percentage": null,
"updated_datetime": "2025-07-03T20:50:06.798180Z"
},
{
"additional_test_results": {},
"batch_id": null,
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-000000000178",
"is_primary": false,
"lab_license_number": null,
"lab_name": null,
"mg_per_unit_type": "mg/g",
"name": "File.pdf",
"package_id": "00000000-0000-0000-0000-000000000f8f",
"release_date": null,
"thc_mg_per_unit": null,
"thc_percentage": null,
"total_cbd_mg_per_unit": null,
"total_cbd_percentage": null,
"total_thc_mg_per_unit": null,
"total_thc_percentage": null,
"updated_datetime": "2025-07-03T20:50:06.944062Z"
}
]
}
GET /public/v1/test-results returns only the additional test results that are present in the test result settings
GET /public/v1/test-results
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjU0MDQsImlhdCI6MTc1MTU3NTgwNCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjk5MWYxZDgtZjZjZC00ZmFjLTk2ZDMtY2M2ZDNjM2MwN2JiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1ODAzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NDAzNjIiLCJ0eXAiOiJhY2Nlc3MifQ.h0SKbT0dSDDUkfDZvkuvFPmtWAJmTBD7aJcESKXBE34
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 4c13cc48a42628000000000000000001-d68ffe2a2dcf22e5-0
{
"data": [
{
"additional_test_results": {
"spiroxamine_a_ug_per_g": "13",
"thiacloprid_ug_per_g": "14"
},
"batch_id": "00000000-0000-0000-0000-00000000240a",
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-000000000166",
"is_primary": false,
"lab_license_number": null,
"lab_name": null,
"mg_per_unit_type": "mg/g",
"name": "File.pdf",
"package_id": null,
"release_date": null,
"thc_mg_per_unit": null,
"thc_percentage": null,
"total_cbd_mg_per_unit": null,
"total_cbd_percentage": null,
"total_thc_mg_per_unit": null,
"total_thc_percentage": null,
"updated_datetime": "2025-07-03T20:50:04.253290Z"
}
]
}
Get test results filtered by various attributes.
Note: The page size for this endpoint is 5000 test results per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Request
GET /public/v1/test-results
Parameters
Parameter | Description | In | Type | Required | Default | Example |
---|---|---|---|---|---|---|
updated_datetime | Filter test results by the datetime they were most recently modified | query | string | false | ,2022-07-10T00:00:00Z | |
page | Pagination information | body | Page | false |
Responses
Status | Description | Schema |
---|---|---|
200 | A list of test results | TestResults |
Upsert a test result
POST /public/v1/test-results creates a test result for a batch tracked product
POST /public/v1/test-results
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjU0MDQsImlhdCI6MTc1MTU3NTgwNCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiODAyN2NkNzktMWRjMi00ODUzLTkwOGItMzNkYWY3MTI3MmIzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1ODAzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NDAzOTQiLCJ0eXAiOiJhY2Nlc3MifQ.kYNiZTx-69yt1dNw7cNEZARjcRUTctnrYzq6tU7yEbI
{
"additional_test_results": {
"delta_8_thc_mg_per_unit": "17.3333",
"delta_8_thc_percentage": "12.55",
"thcva_percentage": "100"
},
"batch_id": "00000000-0000-0000-0000-000000002412",
"cbd_mg_per_unit": "1.1",
"cbd_percentage": "2.2",
"is_primary": true,
"lab_license_number": "1234567890",
"lab_name": "Test Lab",
"mg_per_unit_type": "mg/g",
"name": "Name",
"release_date": "2025-05-22",
"thc_mg_per_unit": "3.3",
"thc_percentage": "4.4",
"total_cbd_mg_per_unit": "5.5",
"total_cbd_percentage": "6.6",
"total_thc_mg_per_unit": "7.7",
"total_thc_percentage": "8.8"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: e88e6a53b39a08000000000000000001-e3babfce24f7da99-0
{
"data": {
"additional_test_results": {
"delta_8_thc_mg_per_unit": "17.3333",
"delta_8_thc_percentage": "12.55",
"thcva_percentage": "100"
},
"batch_id": "00000000-0000-0000-0000-000000002412",
"cbd_mg_per_unit": "1.1",
"cbd_percentage": "2.2",
"id": "00000000-0000-0000-0000-000000000167",
"is_primary": true,
"lab_license_number": "1234567890",
"lab_name": "Test Lab",
"mg_per_unit_type": "mg/g",
"name": "Name",
"package_id": null,
"release_date": "2025-05-22",
"thc_mg_per_unit": "3.3",
"thc_percentage": "4.4",
"total_cbd_mg_per_unit": "5.5",
"total_cbd_percentage": "6.6",
"total_thc_mg_per_unit": "7.7",
"total_thc_percentage": "8.8",
"updated_datetime": "2025-07-03T20:50:04.478311Z"
}
}
POST /public/v1/test-results creates a test result for a package tracked product
POST /public/v1/test-results
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjU0MDQsImlhdCI6MTc1MTU3NTgwNCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNzI3NGYzYTUtMjViOC00NDgxLTgxNTgtYzczODFjMDkwYmU4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1ODAzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NDA0NDQiLCJ0eXAiOiJhY2Nlc3MifQ.MRg5FTTuIy-Kl-pLIed-9Gy9eBB84Rwt3EP0n2qWuzo
{
"additional_test_results": {},
"is_primary": false,
"lab_license_number": "1234567890",
"lab_name": "Test Lab",
"mg_per_unit_type": "mg/mL",
"name": "Name",
"package_id": "00000000-0000-0000-0000-000000000f65"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: a716057265ddf8000000000000000001-21bfe8f3a2af5908-0
{
"data": {
"additional_test_results": {},
"batch_id": null,
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-000000000168",
"is_primary": true,
"lab_license_number": "1234567890",
"lab_name": "Test Lab",
"mg_per_unit_type": "mg/mL",
"name": "Name",
"package_id": "00000000-0000-0000-0000-000000000f65",
"release_date": null,
"thc_mg_per_unit": null,
"thc_percentage": null,
"total_cbd_mg_per_unit": null,
"total_cbd_percentage": null,
"total_thc_mg_per_unit": null,
"total_thc_percentage": null,
"updated_datetime": "2025-07-03T20:50:04.926847Z"
}
}
POST /public/v1/test-results properly transforms pointer on error
POST /public/v1/test-results
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjU0MDYsImlhdCI6MTc1MTU3NTgwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTczNjhiM2EtOTMxMC00NWMyLTkwNzMtOGZhNWFkNmQ4OTVmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1ODA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NDA3NzAiLCJ0eXAiOiJhY2Nlc3MifQ.8zLyFrErrs9gRZ-f7GlEOtergjyJ7KF2b3QMZJQASso
{
"batch_id": "00000000-0000-0000-0000-00000000244b",
"mg_per_unit_type": "mg/g",
"name": "Name"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: f3c604535cab50000000000000000001-29e74d263ef4035a-0
{
"errors": [
{
"context": {},
"message": "can't be blank",
"pointer": [
"additional_test_results"
],
"section": "body"
},
{
"context": {},
"message": "can't be blank",
"pointer": [
"is_primary"
],
"section": "body"
}
]
}
POST /public/v1/test-results properly transforms pointer on service function error
POST /public/v1/test-results
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjU0MDUsImlhdCI6MTc1MTU3NTgwNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMmYyMGRlOGYtNjBmOS00ZGE5LThhYTQtOTgyYzJkYzZiNDgyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1ODA0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NDA2NjYiLCJ0eXAiOiJhY2Nlc3MifQ.2VPm6jku5pvGibDlU6J-te_XqP8yMzi4qj-MJEv_iqc
{
"additional_test_results": {},
"batch_id": "00000000-0000-0000-0000-00000000243b",
"is_primary": false,
"mg_per_unit_type": "mg/g",
"name": "Name",
"total_cbd_mg_per_unit": "-3.3456",
"total_cbd_percentage": "2.234567",
"total_thc_mg_per_unit": "-4.4567",
"total_thc_percentage": "1.123456"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 43e74acbff0e88000000000000000001-969e3d59397a8fbe-0
{
"errors": [
{
"context": {},
"message": "must be greater than or equal to 0",
"pointer": [
"total_cbd_mg_per_unit"
],
"section": "body"
},
{
"context": {},
"message": "Must have at most 4 decimal digits",
"pointer": [
"total_cbd_percentage"
],
"section": "body"
},
{
"context": {},
"message": "must be greater than or equal to 0",
"pointer": [
"total_thc_mg_per_unit"
],
"section": "body"
},
{
"context": {},
"message": "Must have at most 4 decimal digits",
"pointer": [
"total_thc_percentage"
],
"section": "body"
}
]
}
POST /public/v1/test-results properly updates a test result
POST /public/v1/test-results
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjU0MDMsImlhdCI6MTc1MTU3NTgwMywiaXNzIjoiRGlzdHJ1IiwianRpIjoiODg0YWIwOTktNzA0MS00OTcyLWE4NGYtM2M1NmNkN2JmNWUzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1ODAyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NDAyODIiLCJ0eXAiOiJhY2Nlc3MifQ.X2kTw4PCoj4dWwss2vK0WoFJ5xl5b0ZtF2f7bh6dxgw
{
"additional_test_results": {
"thca_percentage": "15"
},
"id": "00000000-0000-0000-0000-000000000164",
"is_primary": true,
"lab_name": "after lab name",
"mg_per_unit_type": "mg/mL",
"name": "after name",
"release_date": "2025-05-23",
"total_thc_percentage": "14"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 95f6c64a80c018000000000000000001-f82a027a0e4ca399-0
{
"data": {
"additional_test_results": {
"thca_percentage": "15"
},
"batch_id": "00000000-0000-0000-0000-000000002401",
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-000000000164",
"is_primary": true,
"lab_license_number": null,
"lab_name": "after lab name",
"mg_per_unit_type": "mg/mL",
"name": "after name",
"package_id": null,
"release_date": "2025-05-23",
"thc_mg_per_unit": null,
"thc_percentage": null,
"total_cbd_mg_per_unit": null,
"total_cbd_percentage": null,
"total_thc_mg_per_unit": null,
"total_thc_percentage": "14",
"updated_datetime": "2025-07-03T20:50:03.852411Z"
}
}
Upsert a single test result. To update an existing test result, pass in an existing test result ID in the id field. When updating a test result, you must pass in all fields including all additional test results (no sparse update currently supported). Result percentage values can have no more than 4 decimal places.
Request
POST /public/v1/test-results
Parameters
Parameter | Description | In | Type | Required | Default | Example |
---|---|---|---|---|---|---|
id | Unique ID for this test result. If it exists, an update will be performed, and will otherwise throw an error. Only non-compliance tracked test results can be updated. | query | string | false | ||
package_id | The ID of the package this test result belongs to. Cannot be provided if either id or batch_id is provided. | query | string | false | 123e4567-e89b-12d3-a456-426614174000 | |
batch_id | The ID of the batch this test result belongs to. Cannot be provided if either id or package_id is provided. | query | string | false | 123e4567-e89b-12d3-a456-426614174000 | |
additional_test_results | The additional tests results for this test result. Check here for the valid options. | query | object | false | ||
mg_per_unit_type | The unit type for the mg per unit fields | query | string | false | mg/g | |
is_primary | Setting a test result to is_primary: true will propagate the test result to child packages if applicable. Cannot update a test_result from is_primary: true to is_primary: false. If you want to do this, you must set a different test result on the same package/batch to is_primary: true. Once done, this test_result will be set to is_primary: false automatically. | query | boolean | false | true | |
release_date | The release date for this test result | query | string | false | 2022-07-10 | |
lab_license_number | The license number of this test result's lab | query | string | false | 1234567890 | |
lab_name | The name of this test result's lab | query | string | false | Lab Name | |
name | The name of this test result | query | string | false | Test Result Name | |
thc_percentage | The THC percentage for this test result. Max precision is 4 decimal places. | query | decimal | false | 1.5 | |
total_thc_percentage | The total THC percentage for this test result. Max precision is 4 decimal places. | query | decimal | false | 1.5 | |
thc_mg_per_unit | The THC mg per unit for this test result. | query | decimal | false | 1.5 | |
total_thc_mg_per_unit | The total THC mg per unit for this test result. | query | decimal | false | 1.5 | |
cbd_percentage | The CBD percentage for this test result. Max precision is 4 decimal places. | query | decimal | false | 1.5 | |
total_cbd_percentage | The total CBD percentage for this test result. Max precision is 4 decimal places. | query | decimal | false | 1.5 | |
cbd_mg_per_unit | The CBD mg per unit for this test result. | query | decimal | false | 1.5 | |
total_cbd_mg_per_unit | The total CBD mg per unit for this test result. | query | decimal | false | 1.5 |
Responses
Status | Description | Schema |
---|---|---|
200 | A single test result | TestResult |
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE3ODMwMjUyMzQsImlhdCI6MTc1MTU3NTYzNCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZGY5MjczNjgtZjU2NC00NTkwLThlZDctNjdhNDE0NzZjMjYzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzUxNTc1NjMzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTM5MDciLCJ0eXAiOiJhY2Nlc3MifQ.smlfkvYUJMFjtuCdf3sMLzCGt5zSDRVuC75OX5-rTnE
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 0cff0be036fb99000000000000000001-5aedc85b0f87e8c4-0
{
"data": [
{
"banned": false,
"email": "owner-14171@example.com",
"full_name": "FirstName27780 LastName27781",
"id": "00000000-0000-0000-0000-000000003653",
"role": {
"id": "00000000-0000-0000-0000-000000003668",
"name": "Admin 13915"
}
},
{
"banned": false,
"email": "owner-14179@example.com",
"full_name": "FirstName27798 LastName27799",
"id": "00000000-0000-0000-0000-00000000365a",
"role": {
"id": "00000000-0000-0000-0000-000000003670",
"name": "Admin 13923"
}
}
]
}
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
- Added GET
/public/v1/strains
endpoint. - In endpoint GET /public/v1/companies, added fields category and relationship to the response.
2024-11-6
- Field thc of type string in the Product object was replaced with total_thc field of type number.
- Field cbd of type string in the Product object was replaced with total_cbd field of type number.
- Added total_cannabinoid_unit field to Product object. Allowed values are either "MG" or "PERCENT".
2024-12-24
- Added billing_location_id to POST
/public/v1/purchases
endpoint.
2024-12-26
- Added msrp, is_active, category.type and images.rank to GET
/public/v1/products
.
2025-01-08
- Added GET
/public/v1/payment-methods
endpoint.
2025-01-15
- Added POST
/public/v1/purchases/:id/payments
endpoint. - Added POST
/public/v1/invoices/:id/payments
endpoint.
2025-01-17
- Added
product_unit_quantity
to GET/public/v1/packages
endpoint. - Added
product_unit_type
to GET/public/v1/packages
endpoint.
2025-01-31
- Added POST
/public/v1/batches
endpoint. - Added batch_number, product_id, owner_id and description to GET
/public/v1/batches
endpoint. - Added title and phone_number to GET
/public/v1/contacts
endpoint.
2025-02-26
Page size change from 50,000 to 5000 for the following endpoints:
- GET
/public/v1/batches
- GET
/public/v1/companies
- GET
/public/v1/contacts
- GET
/public/v1/inventory
- GET
/public/v1/packages
- GET
/public/v1/products
- GET
/public/v1/purchases
- GET
All GET endpoints now return eventually consistent data, with changes taking up to 1 second to propagate in responses
2025-03-05
- Added GET
/public/v1/assemblies
endpoint.
2025-03-11
- Added
total_cost_actual
,total_cost_default
andreturned_quantity
to "items" in GET/public/v1/invoices
endpoint. - Added
total_cost_actual
,total_cost_default
andreturned_quantity
to "items" in GET/public/v1/invoices/:id
endpoint. - Added
total_cost_actual
,total_cost_default
andreturned_quantity
to "items" in GET/public/v1/orders
endpoint. - Added
total_cost_actual
,total_cost_default
andreturned_quantity
to "items" in GET/public/v1/orders/:id
endpoint.
2025-03-18
- Modified
unit_net_weight
andunit_serving_size
in GET/public/v1/products
endpoint: These fields can now be populated regardless of the product's unit type.
2025-04-09
- Added the following fields to GET
/public/v1/companies
endpoint:legal_business_name
default_email
phone_number
invoice_email
sales_order_email
purchase_order_email
order_shipment_email
website
default_sales_order_notes
default_purchase_order_notes
outstanding_balance_threshold
owner_id
2025-05-06
- Added
is_trade_sample
to GET/public/v1/packages
endpoint.
2025-05-13
- Added GET
/public/v1/adjustments
endpoint.
2025-05-14
Added
custom_data
to the response of the following endpoints:- GET
/public/v1/assemblies
- GET
/public/v1/batches
- POST
/public/v1/batches
- GET
/public/v1/companies
- GET
/public/v1/contacts
- GET
/public/v1/invoices
- GET
/public/v1/invoices/:id
- POST
/public/v1/invoices
- GET
/public/v1/orders
- GET
/public/v1/orders/:id
- POST
/public/v1/orders
- GET
/public/v1/packages
- GET
/public/v1/products
- POST
/public/v1/products
- GET
/public/v1/purchases
- POST
/public/v1/purchases
- GET
2025-05-15
- Added POST
/public/v1/stock_adjustments
endpoint.
2025-05-16
- Added GET
/public/v1/test-results
- Added POST
/public/v1/test-results
2025-05-18
- Added
leaflink_order_number
to GET/public/v1/orders
2025-05-22
- Added
external_name
to GET/POST/public/v1/products
2025-05-27
- Added
biotrack_id
andmetrc_transfer_id
to POST/public/v1/orders
2025-06-09
- Added POST
/public/v1/file-attachments
endpoint for uploading files and attaching them to business entities (products, orders, purchases, etc.).
2025-06-12
- Added
metrc_transfer_id
andbiotrack_id
to GET/public/v1/orders
2025-06-12
- Changed
cost
on GET/public/v1/assemblies
tototal_cost_actual
iningredients
- Added
total_cost_default
to GET/public/v1/assemblies
iningredients
- Added
total_cost_actual
to GET/public/v1/assemblies
inadditional_costs
- Added
total_cost_default
to GET/public/v1/assemblies
inadditional_costs
2025-07-01
- Added
description_markdown
to GET/POST/public/v1/products