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 |
| deleted_at | The datetime of deletion if the product was deleted | string | 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_cost | The cost (or purchase price) of the product per unit. | number | false |
| unit_net_weight | The net weight of the product per unit | number | false |
| unit_net_weight_and_serving_size_unit_type_id | A unit type as shown in Distru | UnitType | false |
| unit_price | The price of one unit of this product | number | false |
| unit_serving_size | The serving size of the product per unit | 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 |
|---|
CompanyGroup
A company group as shown in Distru
{
"id": "12345",
"name": "Group 123"
}
| Property | Description | Type | Required |
|---|---|---|---|
| id | Unique ID for this company group | string | false |
| name | Name of the company group | string | false |
Assembly
An assembly as shown in Distru
| Property | Description | Type | Required |
|---|---|---|---|
| assembly_number | The assembly number for this assembly | string | false |
| 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_start_date | The datetime this assembly is expected to start | 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 |
| estimated_arrival_datetime | The estimated arrival datetime (ISO 8601 format) | string | false |
| estimated_departure_datetime | The estimated departure datetime (ISO 8601 format) | 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 |
| cost_per_unit | The cost per unit of this invoice item. | number | false |
| cost_per_unit_default | The default cost per unit (from the configured product unit cost) of this invoice item. | number | 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 |
| is_sample | True if this order is a sample | boolean | 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 |
CustomFieldDefinition
A custom field definition
| Property | Description | Type | Required |
|---|---|---|---|
| description | Description of the custom field | string | false |
| field_options | Field options | array(any) | false |
| field_type | Field type | string | false |
| filterable | Whether the field is filterable | boolean | false |
| id | Custom field ID | string | false |
| name | Name of the custom field | string | false |
| parent_object | Parent object attached to the field | 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 |
| deleted_at | The datetime of deletion if the user was deleted | string | 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,
"compliance_unit_type": {
"id": "123",
"name": "Gram"
},
"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,
"unit_type": {
"id": "123",
"name": "Gram"
}
}
| 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 |
| compliance_unit_type | A unit type as shown in Distru | UnitType | 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 |
| unit_type | A unit type as shown in Distru | UnitType | 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",
"reserved": "100.000000000"
}
| 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 |
| cost_per_unit_actual | The cost per unit of the inventory. Note: This is calculated by dividing the total cost by the active quantity. | number | false |
| cost_per_unit_default | The cost per unit of the inventory. Note: This is calculated by dividing the total default cost by the active quantity. | number | false |
| location_id | ID of the location | string | false |
| product_id | ID of the product | string | true |
| reserved | Reserved quantity | number | true |
| total_cost_actual | The aggregated total cost of the inventory's active quantity | number | false |
| total_cost_default | The aggregated total default cost of the inventory's active quantity | number | false |
ProductPosMappingsResponse
| Property | Description | Type | Required |
|---|---|---|---|
| data | List of POS mappings | array(ProductPosMapping) | false |
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 |
ProductPosMappingResponse
| Property | Description | Type | Required |
|---|---|---|---|
| data | A mapping between a Distru product and a POS product | ProductPosMapping | 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 |
UpsertProductPosMapping
Parameters for creating or updating a POS mapping
{
"blaze_product_id": "blaze_123",
"blaze_retailer_id": "456e7890-e89b-12d3-a456-426614174000",
"product_id": "123e4567-e89b-12d3-a456-426614174000"
}
| Property | Description | Type | Required |
|---|---|---|---|
| blaze_product_id | Blaze product ID | string | false |
| blaze_retailer_id | Blaze retailer ID | string | false |
| dutchie_product_id | Dutchie product ID | integer | false |
| dutchie_retailer_id | Dutchie retailer ID | string | false |
| product_id | Distru product ID | string | true |
| treez_product_id | Treez product ID | string | false |
| treez_retailer_id | Treez retailer ID | string | false |
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 |
|---|---|---|---|
| deleted_at | The datetime of deletion if the payment method was deleted | string | false |
| 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 |
| cost_per_unit_actual | The cost per unit of this batch | number | false |
| cost_per_unit_default | The default cost per unit (from the configured product unit cost) of this batch | number | false |
| custom_data | The custom data for this batch | array(CustomField) | false |
| deleted_at | The date and time when this batch was deleted | string | false |
| description | The description for this batch | string | false |
| expiration_date | The expiration date for this batch | string | false |
| id | Unique ID for this batch | string | false |
| manufactured_datetime | The manufactured datetime for this batch (ISO 8601 format) | 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 |
| total_cost_actual | The total actual cost of this batch | number | false |
| total_cost_default | The total default cost (from the configured product unit cost) of this batch | number | 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 |
| cost_per_unit_actual | The cost per unit of this order item | number | 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
},
"remaining_amount": 43.23,
"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 |
| remaining_amount | The remaining amount for this invoice | 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 |
| cost_per_unit_actual | The cost per unit of this package | number | false |
| cost_per_unit_default | The default cost per unit (from the configured product unit cost) of this package | number | 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 |
| total_cost_actual | The total actual cost of this package | number | false |
| total_cost_default | The total default cost (from the configured product unit cost) of this package | number | 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 |
| cost_per_unit_actual | The cost per unit of this output | number | false |
| cost_per_unit_default | The default cost per unit (from the configured product unit cost) of this output | number | false |
| expiration_date | The expiration date for this assembly output | string | false |
| ingredients | The ingredients for this assembly output | array(AssemblyInput) | false |
| is_finished_good | Is this output a finished good? | boolean | 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 |
| total_cost_actual | The total actual cost of this output | number | false |
| total_cost_default | The total default cost (from the configured product unit cost) of this output | 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 |
| deleted_at | The datetime of deletion if the location was deleted | 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 |
| deleted_at | The datetime of deletion if the contact was deleted | string | false |
| description | The description of this contact | string | false |
| driver_license_issuing_state | Driver license issuing state for shipping manifests | string | false |
| driver_license_number | Driver license number for shipping manifests | string | false |
| The email address of this contact | string | false | |
| first_name | The first name of this contact | string | false |
| full_name | The full name of this contact | string | false |
| id | Unique ID for this contact | string | false |
| last_name | The last name of 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 |
| work_phone_number | The work phone number 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 |
ProductPosMapping
A mapping between a Distru product and a POS product
| Property | Description | Type | Required |
|---|---|---|---|
| blaze_product_id | Blaze product ID | string | false |
| blaze_retailer_id | Blaze retailer ID | string | false |
| dutchie_product_id | Dutchie product ID | integer | false |
| dutchie_retailer_id | Dutchie retailer ID | string | false |
| id | Mapping ID | string | false |
| inserted_at | Creation timestamp | string | false |
| pos_type | POS type (BLAZE, DUTCHIE, or TREEZ) | string | false |
| product_id | Distru product ID | string | false |
| treez_product_id | Treez product ID | string | false |
| treez_retailer_id | Treez retailer ID | string | false |
| updated_at | Last update timestamp | 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 |
| deleted_at | The datetime this company relationship was deleted at | string | false |
| group | A company group as shown in Distru | CompanyGroup | 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 |
| cost_per_unit_actual | The cost per unit of this input | number | false |
| cost_per_unit_default | The default cost per unit (from the configured product unit cost) of this input | number | false |
| location | A location as shown in Distru | Location | false |
| package | A package as shown in Distru | Package | false |
| product | A product as shown in Distru | Product | false |
| quantity | The quantity of this input in its product's unit | number | false |
| 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzksImlhdCI6MTc2OTE5Nzk3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNmRiN2Q5YzItNmEyMi00MmMzLTlmYzEtZWE1ZDljMjdjYzE4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQyMTUiLCJ0eXAiOiJhY2Nlc3MifQ.oeerwHCrmSP0BvrXGg5ewxRKBUCFivQEReQEvG3RtXs
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 1abc7fdcd2e15b000000000000000001-553164891e9203bb-0
{
"data": [
{
"assembly_number": "AS-0000001",
"completion_datetime": "2026-01-23T19:52:59.566581Z",
"compliance_type": "NONE",
"creation_source": "MANUALLY_CREATED",
"custom_data": [
{
"id": 358,
"name": "Custom Field 16",
"value": "Custom Field Value"
}
],
"description": null,
"estimated_start_date": "2024-01-02T03:04:05.000000Z",
"estimated_work_hours": 1,
"estimated_work_minutes": 5,
"fulfilled": true,
"id": "2d5e6bb4-708a-4fa7-8d11-6b7e3de77416",
"is_metrc_processing_job": false,
"license": null,
"outputs": [
{
"additional_costs": [
{
"cost_per_unit": "-1",
"description": null,
"name": "CostType 2",
"quantity": "1",
"total_cost_actual": "-1",
"total_cost_default": "0",
"unit_type": {
"id": "00000000-0000-0000-0000-0000000e7465",
"name": "Unit Type 5"
}
}
],
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005643",
"name": "B1306"
},
"compliance_label": null,
"compliance_quantity": null,
"cost_per_unit": "-0.3",
"cost_per_unit_default": "0.5",
"expiration_datetime": null,
"ingredients": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005643",
"name": "B1306"
},
"compliance_quantity": null,
"cost_per_unit": "0.2",
"cost_per_unit_default": "1",
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000107e7",
"id": "00000000-0000-0000-0000-000000006eb8",
"license_id": null,
"name": "Place 220"
},
"package": null,
"product": {
"id": "545b1790-2aa5-4152-9f68-3b7a1acd6c4f",
"name": "Product 1300",
"sku": "sku 1301",
"updated_datetime": "2026-01-23T19:52:59.500064Z"
},
"quantity": "2",
"total_cost_actual": "0.4",
"total_cost_default": "2"
}
],
"is_finished_good": false,
"is_production_batch": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000107e7",
"id": "00000000-0000-0000-0000-000000006eb8",
"license_id": null,
"name": "Place 220"
},
"package": null,
"package_datetime": null,
"package_unit_type": null,
"product": {
"id": "545b1790-2aa5-4152-9f68-3b7a1acd6c4f",
"name": "Product 1300",
"sku": "sku 1301",
"updated_datetime": "2026-01-23T19:52:59.500064Z"
},
"quantity": "2",
"total_cost_actual": "-0.6",
"total_cost_default": "1"
}
],
"owner_id": "00000000-0000-0000-0000-000000017007",
"status": "COMPLETED"
}
],
"next_page": null
}
GET /public/v1/assemblies returns proper data for pending metrc assembly
GET /public/v1/assemblies?creation_source=MANUALLY_CREATED&license_number=CDPH-00000047&page[number]=1
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzgsImlhdCI6MTc2OTE5Nzk3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjBiNDNkYWQtYTcwOC00YWM0LTkyZjItM2Q2ODFmZGNiNjEyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQwMzkiLCJ0eXAiOiJhY2Nlc3MifQ.2mNumvFPVLjvjkBEdor2qz2iJc7ohfszTYMu69NBMi8
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 9603499b333498000000000000000001-009e08ccc7912888-0
{
"data": [
{
"assembly_number": "AS-0000001",
"completion_datetime": null,
"compliance_type": "METRC",
"creation_source": "MANUALLY_CREATED",
"custom_data": [
{
"id": 357,
"name": "Custom Field 15",
"value": null
}
],
"description": null,
"estimated_start_date": null,
"estimated_work_hours": null,
"estimated_work_minutes": null,
"fulfilled": true,
"id": "5d8ad022-c314-4848-b16b-9fdc98a41a75",
"is_metrc_processing_job": false,
"license": {
"id": "00000000-0000-0000-0000-0000000045db",
"license_number": "CDPH-00000047"
},
"outputs": [
{
"additional_costs": [],
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000055dc",
"name": "B1013"
},
"compliance_label": "1A4010200001234000000002",
"compliance_quantity": "2",
"cost_per_unit": null,
"cost_per_unit_default": null,
"expiration_datetime": null,
"ingredients": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000055dc",
"name": "B1013"
},
"compliance_quantity": "0.0353",
"cost_per_unit": null,
"cost_per_unit_default": null,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000001075e",
"id": "00000000-0000-0000-0000-000000006e7b",
"license_id": "00000000-0000-0000-0000-0000000045db",
"name": "Place 159"
},
"package": {
"batch_number": "1234567890",
"compliance_label": "ABCDEF012345670000000066",
"id": "00000000-0000-0000-0000-000000002057",
"metrc_label": "ABCDEF012345670000000066",
"status": "active"
},
"product": {
"id": "14c58f42-7965-49d0-b94d-1b6b564de5d4",
"name": "Product 1006",
"sku": "sku 1007",
"updated_datetime": "2026-01-23T19:52:58.654725Z"
},
"quantity": "1",
"total_cost_actual": null,
"total_cost_default": null
}
],
"is_finished_good": false,
"is_production_batch": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000001075e",
"id": "00000000-0000-0000-0000-000000006e7b",
"license_id": "00000000-0000-0000-0000-0000000045db",
"name": "Place 159"
},
"package": null,
"package_datetime": "2026-01-23",
"package_unit_type": {
"id": "00000000-0000-0000-0000-0000000e6caa",
"name": "Gram"
},
"product": {
"id": "14c58f42-7965-49d0-b94d-1b6b564de5d4",
"name": "Product 1006",
"sku": "sku 1007",
"updated_datetime": "2026-01-23T19:52:58.654725Z"
},
"quantity": "2",
"total_cost_actual": null,
"total_cost_default": null
}
],
"owner_id": "00000000-0000-0000-0000-000000016f57",
"status": "PENDING"
}
],
"next_page": null
}
GET /public/v1/assemblies returns proper data for completed metrc assembly
GET /public/v1/assemblies?completion_datetime=2026-01-23+18%3A52%3A58.423201Z%2C2026-01-23+20%3A52%3A58.423201Z&creation_source=MANUALLY_CREATED&license_number=CDPH-00000038&page[number]=1
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzgsImlhdCI6MTc2OTE5Nzk3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjJhNmJkNDktODk0MC00YTAzLTgyMjgtOTcwZTYwNjdkMmI4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM5NDQiLCJ0eXAiOiJhY2Nlc3MifQ.uKcZ4S77ell2cdy0733So-D4BA8za00xgD94OAtbKv4
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 2031815a8444ac000000000000000001-defda108ab0e346d-0
{
"data": [
{
"assembly_number": "AS-0000001",
"completion_datetime": "2026-01-23T19:52:58.423201Z",
"compliance_type": "METRC",
"creation_source": "MANUALLY_CREATED",
"custom_data": [],
"description": null,
"estimated_start_date": null,
"estimated_work_hours": null,
"estimated_work_minutes": null,
"fulfilled": true,
"id": "6459488e-fb0c-4c0e-9006-e4a4be8661d8",
"is_metrc_processing_job": false,
"license": {
"id": "00000000-0000-0000-0000-0000000045d2",
"license_number": "CDPH-00000038"
},
"outputs": [
{
"additional_costs": [],
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000055b1",
"name": "B879"
},
"compliance_label": "1A4010200001234000000001",
"compliance_quantity": "2",
"cost_per_unit": null,
"cost_per_unit_default": null,
"expiration_datetime": null,
"ingredients": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000055b1",
"name": "B879"
},
"compliance_quantity": "0.0353",
"cost_per_unit": null,
"cost_per_unit_default": null,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000001070e",
"id": "00000000-0000-0000-0000-000000006e63",
"license_id": "00000000-0000-0000-0000-0000000045d2",
"name": "Place 135"
},
"package": {
"batch_number": "1234567890",
"compliance_label": "ABCDEF012345670000000048",
"id": "00000000-0000-0000-0000-00000000204d",
"metrc_label": "ABCDEF012345670000000048",
"status": "active"
},
"product": {
"id": "f974433c-c853-42d1-abf9-b7b9300a2edf",
"name": "Product 873",
"sku": "sku 874",
"updated_datetime": "2026-01-23T19:52:58.210081Z"
},
"quantity": "1",
"total_cost_actual": null,
"total_cost_default": null
}
],
"is_finished_good": false,
"is_production_batch": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000001070e",
"id": "00000000-0000-0000-0000-000000006e63",
"license_id": "00000000-0000-0000-0000-0000000045d2",
"name": "Place 135"
},
"package": {
"batch_number": null,
"compliance_label": "1A4010200001234000000001",
"id": "00000000-0000-0000-0000-000000002050",
"metrc_label": "1A4010200001234000000001",
"status": "active"
},
"package_datetime": "2026-01-23",
"package_unit_type": {
"id": "00000000-0000-0000-0000-0000000e6880",
"name": "Gram"
},
"product": {
"id": "f974433c-c853-42d1-abf9-b7b9300a2edf",
"name": "Product 873",
"sku": "sku 874",
"updated_datetime": "2026-01-23T19:52:58.210081Z"
},
"quantity": "2",
"total_cost_actual": null,
"total_cost_default": null
}
],
"owner_id": "00000000-0000-0000-0000-000000016ef8",
"status": "COMPLETED"
}
],
"next_page": null
}
GET /public/v1/assemblies returns proper data for biotrack assembly
GET /public/v1/assemblies?completion_datetime=2026-01-23+18%3A52%3A59.272533Z%2C2026-01-23+20%3A52%3A59.272533Z&creation_source=MANUALLY_CREATED&license_number=CDPH-00000063&page[number]=1
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzksImlhdCI6MTc2OTE5Nzk3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGQ3NTM4ZWMtMDQyOS00ZTk0LTgzZGMtNGM5OGM4MmI0MDk4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQxNDMiLCJ0eXAiOiJhY2Nlc3MifQ.VmVLP5GsI0JG0-7570R0W0WpVbmnRuQAsQoRvjefbVM
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: c13da978d79418000000000000000001-4bf0e8b89df7c46d-0
{
"data": [
{
"assembly_number": "AS-0000001",
"completion_datetime": "2026-01-23T19:52:59.272533Z",
"compliance_type": "BIOTRACK",
"creation_source": "MANUALLY_CREATED",
"custom_data": [],
"description": null,
"estimated_start_date": null,
"estimated_work_hours": null,
"estimated_work_minutes": null,
"fulfilled": true,
"id": "ea972d74-a1b5-4a2c-bc3e-ab736fec5530",
"is_metrc_processing_job": false,
"license": {
"id": "00000000-0000-0000-0000-0000000045eb",
"license_number": "CDPH-00000063"
},
"outputs": [
{
"additional_costs": [],
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005613",
"name": "B1176"
},
"compliance_label": null,
"compliance_quantity": "1",
"cost_per_unit": null,
"cost_per_unit_default": null,
"expiration_datetime": null,
"ingredients": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005613",
"name": "B1176"
},
"compliance_quantity": "1",
"cost_per_unit": null,
"cost_per_unit_default": null,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000107a9",
"id": "00000000-0000-0000-0000-000000006ea0",
"license_id": "00000000-0000-0000-0000-0000000045eb",
"name": "Place 196"
},
"package": {
"batch_number": null,
"compliance_label": "1",
"id": "00000000-0000-0000-0000-000000002068",
"metrc_label": "1",
"status": "active"
},
"product": {
"id": "8b3d818f-ab9b-4ea7-b230-cae240cfa788",
"name": "Product 1171",
"sku": "sku 1172",
"updated_datetime": "2026-01-23T19:52:59.128457Z"
},
"quantity": "1",
"total_cost_actual": null,
"total_cost_default": null
}
],
"is_finished_good": false,
"is_production_batch": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000107a9",
"id": "00000000-0000-0000-0000-000000006ea0",
"license_id": "00000000-0000-0000-0000-0000000045eb",
"name": "Place 196"
},
"package": {
"batch_number": null,
"compliance_label": null,
"id": "00000000-0000-0000-0000-00000000206b",
"metrc_label": null,
"status": "active"
},
"package_datetime": null,
"package_unit_type": {
"id": "00000000-0000-0000-0000-0000000e70a6",
"name": "Gram"
},
"product": {
"id": "8b3d818f-ab9b-4ea7-b230-cae240cfa788",
"name": "Product 1171",
"sku": "sku 1172",
"updated_datetime": "2026-01-23T19:52:59.128457Z"
},
"quantity": "1",
"total_cost_actual": null,
"total_cost_default": null
}
],
"owner_id": "00000000-0000-0000-0000-000000016fbf",
"status": "COMPLETED"
}
],
"next_page": null
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzUsImlhdCI6MTc2OTE5Nzk3NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYzg2YjFhNGUtZWEyMC00ZmE4LTk3MDMtY2Y0MGFiMzU1ODNjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTMzOTkiLCJ0eXAiOiJhY2Nlc3MifQ.SQwgW3X_pxMhULsnOjQ2G-hh_lCH8PljN3Pd84Ito4o
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 17def7f6ce3569000000000000000001-e55a1d33826c27a8-0
{
"data": [
{
"batch_number": null,
"custom_data": [
{
"id": 326,
"name": "Custom Field 1",
"value": "Custom Data 1"
}
],
"deleted_at": null,
"description": null,
"expiration_date": "2024-01-01T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-000000005503",
"manufactured_datetime": "2024-01-02T03:04:05.000000Z",
"name": "B283",
"owner_id": "00000000-0000-0000-0000-000000016cda",
"primary_test_result": null,
"product_id": "8530598a-e33a-43f5-9e83-146e89f533ae"
},
{
"batch_number": null,
"custom_data": [
{
"id": 326,
"name": "Custom Field 1",
"value": null
}
],
"deleted_at": null,
"description": null,
"expiration_date": null,
"id": "00000000-0000-0000-0000-000000005504",
"manufactured_datetime": "2024-01-02T03:04:05.000000Z",
"name": "B290",
"owner_id": "00000000-0000-0000-0000-000000016cdc",
"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": "8ad02de6-1e7a-4c16-9f4a-fba324d06d15"
}
],
"next_page": null
}
GET /public/v1/batches returns cost data when include_costs is true
GET /public/v1/batches?include_costs=true
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzYsImlhdCI6MTc2OTE5Nzk3NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYmI0M2M0OTctYzcxMC00MmJjLWI4ZTAtZTM5YTY4YjE3M2RiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM2NjIiLCJ0eXAiOiJhY2Nlc3MifQ.V0wZagYZScFBx4UjnOnaENYBHj_iijqVWdNI9ihReWc
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: fbb3a41c21c4a0000000000000000001-f9a827894d7d69b1-0
{
"data": [
{
"batch_number": null,
"cost_per_unit_actual": "2.11",
"cost_per_unit_default": "5",
"custom_data": [],
"deleted_at": null,
"description": null,
"expiration_date": null,
"id": "00000000-0000-0000-0000-000000005546",
"manufactured_datetime": "2026-01-23T19:52:56.808014Z",
"name": "B522",
"owner_id": "00000000-0000-0000-0000-000000016de9",
"primary_test_result": null,
"product_id": "f346f803-8d6e-4855-bd66-edd5510a4559",
"total_cost_actual": "21.1",
"total_cost_default": "50"
}
],
"next_page": null
}
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 |
|---|---|---|---|---|---|---|
| product_id | Filter batches by product ID | query | string | false | ||
| batch_number | Filter batches by batch number | query | string | false | ||
| inserted_datetime | Filter batches by their creation datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| deleted | Filter deleted batches. no returns non-deleted, only returns deleted, include returns both. |
query | string | false | no | |
| 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzQsImlhdCI6MTc2OTE5Nzk3NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjk5OTM3MDAtZjc0NC00ZWI2LTllODUtN2QwN2FlODMzM2U4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTczLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTMzMjIiLCJ0eXAiOiJhY2Nlc3MifQ.-q8NlMD_IgMHSBGcJnFP9sgiwteW4kLxbrYtjtBlCFM
{
"owner_id": "0e9c5cb7-4421-48b3-8042-99bda96fc442",
"product_id": "9e2a2c79-af4d-4d8a-833f-0f857fad692e"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: f037406a1695b0000000000000000001-f7947e7694e0d556-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzUsImlhdCI6MTc2OTE5Nzk3NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGRlNmQ5OTgtN2FiNS00YTg1LWFkZmYtMWI5Y2RhZDEwMjk2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM0OTYiLCJ0eXAiOiJhY2Nlc3MifQ.X1w7CiArtXCNZZFdRBTuVFzHhApVF_-Xek-bF8v-bLY
{
"product_id": "a0994199-b802-4aea-816b-adfbb7c37586"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 2900002a456bf0000000000000000001-713d4ee79fdc52b8-0
{
"data": {
"batch_number": null,
"custom_data": [],
"deleted_at": null,
"description": null,
"expiration_date": null,
"id": "00000000-0000-0000-0000-00000000551a",
"manufactured_datetime": "2026-01-23T19:52:55.853864Z",
"name": "B1",
"owner_id": null,
"product_id": "a0994199-b802-4aea-816b-adfbb7c37586"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzYsImlhdCI6MTc2OTE5Nzk3NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYzc4MDhlYWItZmJjYy00ZjgxLTg2OTYtYTFhNDNhMGNmMDRjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM1NDEiLCJ0eXAiOiJhY2Nlc3MifQ.qMN0QR659rhHXX-vs7fy2UczMjpfT4rmI6dDRovpYYo
{
"batch_number": "B1",
"description": "Test batch",
"expiration_date": "2025-01-01T00:00:00.000000Z",
"manufactured_datetime": "2025-01-02T03:04:05.000000Z",
"owner_id": "00000000-0000-0000-0000-000000016d6e",
"product_id": "27f5a468-e289-4489-a6fd-30fb7dadfbf6"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 43ac4589085370000000000000000001-c08bfbfae1304097-0
{
"data": {
"batch_number": "B1",
"custom_data": [],
"deleted_at": null,
"description": "Test batch",
"expiration_date": "2025-01-01T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-000000005525",
"manufactured_datetime": "2025-01-02T03:04:05.000000Z",
"name": "B1",
"owner_id": "00000000-0000-0000-0000-000000016d6e",
"product_id": "27f5a468-e289-4489-a6fd-30fb7dadfbf6"
}
}
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 | ||
| manufactured_datetime | The manufactured datetime of the batch (ISO 8601 format). | 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzQsImlhdCI6MTc2OTE5Nzk3NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNzlkZjg0YjctY2IyMC00ZmNkLTk1MTUtNTlmMTQxNmZhYTRlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTczLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTMyNzkiLCJ0eXAiOiJhY2Nlc3MifQ.sxcJzzBEMYSJrLoqtmc9uSQvdrvm-ZG8y-vfgbhKSQ4
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 3dbd497a79abc2000000000000000001-c99a7e71b4168f8d-0
{
"data": [
{
"category": "Retailer",
"custom_data": [
{
"id": 321,
"name": "Custom Field 0",
"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",
"deleted_at": null,
"group": {
"id": "00000000-0000-0000-0000-000000000031",
"name": "Comp Rel Group 0"
},
"id": "00000000-0000-0000-0000-00000000905b",
"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-000000010516",
"id": "00000000-0000-0000-0000-000000006dfe",
"license_id": null,
"name": "Place 34"
}
],
"name": "Company 121",
"order_shipment_email": "order shipment email",
"outstanding_balance_threshold": 1000,
"owner_id": "00000000-0000-0000-0000-000000016c74",
"phone_number": "1234567890",
"purchase_order_email": "purchase email",
"relationship_type": {
"id": "00000000-0000-0000-0000-0000000003b1",
"name": "Supplier"
},
"sales_order_email": "order email",
"updated_datetime": "2023-11-03T00:00:00.000000Z",
"website": "https://www.example.com"
},
{
"category": "Lab",
"custom_data": [
{
"id": 321,
"name": "Custom Field 0",
"value": null
}
],
"default_email": "company-322@example.com",
"default_purchase_order_notes": null,
"default_sales_order_notes": null,
"deleted_at": null,
"group": null,
"id": "00000000-0000-0000-0000-00000000905c",
"invoice_email": null,
"legal_business_name": "Company Legal Name 125",
"licenses": [
{
"id": "00000000-0000-0000-0000-0000000045b9",
"license_number": "CDPH-00000013"
}
],
"locations": [],
"name": "Company 125",
"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
}
],
"next_page": 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, | |
| deleted | Filter deleted companies. no returns non-deleted, only returns deleted, include returns both. |
query | string | false | no | |
| 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzYsImlhdCI6MTc2OTE5Nzk3NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTgxNjhlNWQtYzMwOS00MjQ0LTg2ODMtOTU2NzM0OWFmZjJiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM1MzgiLCJ0eXAiOiJhY2Nlc3MifQ.0laB1L6noUFHWciLKGL9AYB29WFyYC6P1dAFpWvDfzE
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 4f1bdb715fae1c000000000000000001-82633a0105ad4f8c-0
{
"data": [
{
"company": {
"id": "00000000-0000-0000-0000-0000000090c8"
},
"custom_data": [
{
"id": 346,
"name": "Custom Field 4",
"value": "Custom Data 1"
}
],
"deleted_at": null,
"description": "Description 1",
"driver_license_issuing_state": "CA",
"driver_license_number": "1234567890",
"email": "email1",
"first_name": "first",
"full_name": "first name1",
"id": "00000000-0000-0000-0000-000000000666",
"last_name": "name1",
"owner": {
"id": "00000000-0000-0000-0000-000000016d64"
},
"phone_number": "1234567890",
"title": null,
"work_phone_number": "1234567891"
},
{
"company": {
"id": "00000000-0000-0000-0000-0000000090ca"
},
"custom_data": [
{
"id": 346,
"name": "Custom Field 4",
"value": null
}
],
"deleted_at": null,
"description": "Description 2",
"driver_license_issuing_state": "NV",
"driver_license_number": "123456789",
"email": "email2",
"first_name": "first",
"full_name": "first name2",
"id": "00000000-0000-0000-0000-000000000667",
"last_name": "name2",
"owner": {
"id": "00000000-0000-0000-0000-000000016d67"
},
"phone_number": "1234567890",
"title": null,
"work_phone_number": "1234567892"
}
],
"next_page": 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, | |
| deleted | Filter deleted contacts. no returns non-deleted, only returns deleted, include returns both. |
query | string | false | no | |
| 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 |
Upsert a contact
POST /public/v1/contacts creating a contact with all optional fields succeeds with a 201 response containing the new contact
POST /public/v1/contacts
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzUsImlhdCI6MTc2OTE5Nzk3NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjgyYWFjYjUtMTMwMS00ZjFhLTk1NmMtOWVjMGI1NWMzMTI3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM0OTIiLCJ0eXAiOiJhY2Nlc3MifQ.46C8spyssP0JBHSHUwGdNYaBj8Ese_jkdkyvHzbZRbw
{
"company_id": "00000000-0000-0000-0000-0000000090b5",
"custom_data": {
"345": "Preferred"
},
"description": "Notes",
"driver_license_issuing_state": "CA",
"driver_license_number": "D123",
"email": "jane@example.com",
"first_name": "Jane",
"last_name": "Doe",
"owner_id": "00000000-0000-0000-0000-000000016d37",
"phone_number": "555-1111",
"title": "Buyer",
"work_phone_number": "555-2222"
}
Response
201
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 94115fae4624d8000000000000000001-f32abb9971806ce6-0
{
"data": {
"company": {
"id": "00000000-0000-0000-0000-0000000090b5"
},
"custom_data": [
{
"id": 345,
"name": "Custom Field 3",
"value": "Preferred"
}
],
"deleted_at": null,
"description": "Notes",
"driver_license_issuing_state": "CA",
"driver_license_number": "D123",
"email": "jane@example.com",
"first_name": "Jane",
"full_name": "Jane Doe",
"id": "00000000-0000-0000-0000-000000000665",
"last_name": "Doe",
"owner": {
"id": "00000000-0000-0000-0000-000000016d37"
},
"phone_number": "555-1111",
"title": "Buyer",
"work_phone_number": "555-2222"
}
}
Upsert a single contact. To update an existing contact, pass in an existing contact ID in the id field as well as the other fields you want to update. If you do not pass in an ID, a new contact will be created.
Request
POST /public/v1/contacts
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Unique ID for this contact. If given, the contact matching the ID will be updated. If not given, a new contact will be created. | query | string | false | ||
| first_name | First name for the contact | query | string | true | ||
| last_name | Last name for the contact | query | string | false | ||
| title | Job title for the contact | query | string | false | ||
| Email address for the contact | query | string | false | |||
| phone_number | Phone number for the contact | query | string | false | ||
| work_phone_number | Work phone number for the contact | query | string | false | ||
| description | Description for the contact | query | string | false | ||
| company_id | The ID of the company relationship (company) this contact belongs to | query | string | false | ||
| driver_license_number | Driver license number for shipping manifests | query | string | false | ||
| driver_license_issuing_state | Driver license issuing state for shipping manifests | query | string | false | ||
| owner_id | The ID of the user that owns this contact | query | string | false | ||
| custom_data | The custom data for this contact | query | object | false |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | An updated contact | Contact |
| 201 | A new contact | Contact |
| 400 | Bad request | |
| 404 | Not found |
CustomField
Create a custom field
POST /public/v1/custom-fields can create a custom field of type text
POST /public/v1/custom-fields
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzUsImlhdCI6MTc2OTE5Nzk3NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZGIxYjE2ODMtNzkxOC00NmE5LWJmMzUtMTExOWNlMzg1NTVkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTMzNzUiLCJ0eXAiOiJhY2Nlc3MifQ.NM56KBuPk4LHOVb8YSAQDke0uusXIJNimap6qZ0pwLI
{
"description": "Notes",
"field_type": "text",
"filterable": false,
"name": "Text Field",
"parent_object": "product"
}
Response
201
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 8e1b6ab2943118000000000000000001-b65f13b303554587-0
{
"data": {
"description": "Notes",
"field_options": [],
"field_type": "text",
"filterable": false,
"id": 324,
"name": "Text Field",
"parent_object": "product"
}
}
POST /public/v1/custom-fields can create a custom field of type date
POST /public/v1/custom-fields
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzUsImlhdCI6MTc2OTE5Nzk3NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTk0N2NiZWQtN2MwMy00ZGUyLWEwMDItYTRlZDY2ZGY4ZjI0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM0ODMiLCJ0eXAiOiJhY2Nlc3MifQ.eJUzrf-NWrRZIxSCoX9U-UF2hV4_oTK8q9dOloNc-l8
{
"field_type": "date",
"name": "Date Field",
"parent_object": "product"
}
Response
201
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 75fc2c4f75e730000000000000000001-80d88f6df226a192-0
{
"data": {
"description": null,
"field_options": [],
"field_type": "date",
"filterable": false,
"id": 343,
"name": "Date Field",
"parent_object": "product"
}
}
POST /public/v1/custom-fields can create a custom field of type dropdown
POST /public/v1/custom-fields
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzUsImlhdCI6MTc2OTE5Nzk3NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNzg2MDRkYWYtYjQwOC00ZmYyLWE3ZTQtMDczMGNlYmE3NGEyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM0NTkiLCJ0eXAiOiJhY2Nlc3MifQ.1AwJtLe6zpmqJ9459GCqJqoPKbn5DPGbRmT7uBBpiWY
{
"field_options": [
"A",
"B"
],
"field_type": "dropdown",
"filterable": true,
"name": "Dropdown Field",
"parent_object": "product"
}
Response
201
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 53a29099a734f8000000000000000001-633cfe599530e026-0
{
"data": {
"description": null,
"field_options": [
"A",
"B"
],
"field_type": "dropdown",
"filterable": true,
"id": 342,
"name": "Dropdown Field",
"parent_object": "product"
}
}
POST /public/v1/custom-fields can create a custom field of type checkbox
POST /public/v1/custom-fields
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzMsImlhdCI6MTc2OTE5Nzk3MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjZlYmY2MTUtNDgxYy00MTU5LWEwYzQtODlkYmE3ZjYzODMzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTcyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTMxMDIiLCJ0eXAiOiJhY2Nlc3MifQ.u3f2sxoHwM4LGIFM7aTe39u6K3NyQc7yK3vZ1VO6NkU
{
"field_options": [
"Option 1"
],
"field_type": "checkbox",
"filterable": true,
"name": "Checkbox Field",
"parent_object": "product"
}
Response
201
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 38c0a04bcd1b80000000000000000001-0773c9d1905dfd1c-0
{
"data": {
"description": null,
"field_options": [
"Option 1"
],
"field_type": "checkbox",
"filterable": true,
"id": 320,
"name": "Checkbox Field",
"parent_object": "product"
}
}
Create a custom field for the specified parent object. Updates are not supported for this endpoint.
Request
POST /public/v1/custom-fields
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| name | Name of the custom field | query | string | true | ||
| description | Description of the custom field | query | string | false | ||
| parent_object | Parent object attached to the field | query | string | true | ||
| field_type | Field type | query | string | true | ||
| filterable | Whether the field is filterable | query | boolean | false | ||
| field_options | Field options | query | array | false |
Responses
| Status | Description | Schema |
|---|---|---|
| 201 | Custom field created | CustomFieldDefinition |
| 400 | Invalid parameters |
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzUsImlhdCI6MTc2OTE5Nzk3NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDEwN2QzMGYtNGU1Mi00YmU4LTgwMGQtNjU1YzBlZDUyYjliIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM0MzAiLCJ0eXAiOiJhY2Nlc3MifQ.3VfLx32aeCHyWNdRF5CU3bhFu5B9Uk9lC46DUvY0f-w
{
"file": {
"content_type": "image/png",
"filename": "test-image.png"
},
"name": "My Test Image",
"product_id": "5f334583-2995-46f1-8bc3-c4582bd2dc38"
}
Response
201
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: a7d8869da01398000000000000000001-cd3af6e94a805e17-0
{
"data": {
"assembly_id": null,
"batch_id": null,
"company_relationship_id": null,
"contact_id": null,
"id": "00000000-0000-0000-0000-0000000000b4",
"invoice_id": null,
"license_id": null,
"mime_type": "image/png",
"name": "My Test Image",
"order_id": null,
"order_shipment_id": null,
"product_id": "5f334583-2995-46f1-8bc3-c4582bd2dc38",
"purchase_id": null,
"request_id": null,
"return_id": null,
"size_in_bytes": 355974,
"stock_transfer_id": null,
"task_id": null,
"upload_datetime": "2026-01-23T19:52:55.623378Z",
"uploader": {
"id": "00000000-0000-0000-0000-000000016cf6",
"name": "FirstName670 LastName671"
},
"url": "/var/folders/1_/9xjqcx314hl9sqvhtzs__tx80000gn/T/b4f55e2d-3bb3-4b70-87e2-1b8af0ac080b/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/v1/inventory returns stock quantities filtered by product IDs
GET /public/v1/inventory?grouping[]=PRODUCT&product_ids[]=5e3dbc64-ad87-47f2-b285-4e9c8a3f35bd
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzksImlhdCI6MTc2OTE5Nzk3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNjc4NzM4ZWYtNDZkZC00ZjZkLWJkOWEtYjhjOTdhMjNlYWIzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQyOTYiLCJ0eXAiOiJhY2Nlc3MifQ.W6YBesq6uCLcwIeRGkGDtOXS7YFAkEYAWYUgekQ_rKA
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: dec2c65e017b80000000000000000001-377b74260cbc6b5a-0
{
"data": [
{
"active": "10.000000000",
"available": "10.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "5e3dbc64-ad87-47f2-b285-4e9c8a3f35bd",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-01-23T19:53:00.051905Z"
}
],
"next_page": null
}
GET /public/v1/inventory returns stock quantities and costs grouped by product
GET /public/v1/inventory?grouping[]=PRODUCT
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzcsImlhdCI6MTc2OTE5Nzk3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiYzA1OTc3MTgtZGIyMS00ZGQ5LWI0Y2MtZTExN2ZmYTU0Mzk1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM4NzciLCJ0eXAiOiJhY2Nlc3MifQ.B1YHelomHhkbPhtFczji6ZWQYAHxpAVwAWTebH_OHow
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 053f44c6cc32c4000000000000000001-e527766780f1349f-0
{
"data": [
{
"active": "50.000000000",
"available": "50.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "17597e1a-9369-4e54-b389-eb903863598e",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-01-23T19:52:58.391623Z"
},
{
"active": "100.000000000",
"available": "90.000000000",
"cost_default_per_unit": "2.06",
"cost_per_unit_actual": "0.03",
"product_id": "1e1ccc4b-4f6d-4172-92d6-7baee7efa2a2",
"reserved": "10.000000000",
"total_cost_actual": "3",
"total_cost_default": "206",
"updated_datetime": "2026-01-23T19:52:58.493411Z"
},
{
"active": "95.000000000",
"available": "80.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "713d89b3-d8f4-40a1-b27c-16e684535739",
"reserved": "15.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-01-23T19:52:58.494574Z"
}
],
"next_page": null
}
GET /public/v1/inventory returns stock quantities and costs grouped by product & location
GET /public/v1/inventory?grouping[]=PRODUCT&grouping[]=LOCATION
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODIsImlhdCI6MTc2OTE5Nzk4MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiY2Q1ZTBmYzEtYzMxMi00NjkyLTk3MjQtYjQ2Mjk4NDNiOTM5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTgxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQ2NzkiLCJ0eXAiOiJhY2Nlc3MifQ.VEzmOr5JVKgIifQyuZf0JT8IoNJOPPftXHxHGuD65S4
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: cefa055d1fa850000000000000000001-a69016d67d4e1e52-0
{
"data": [
{
"active": "100.000000000",
"available": "90.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-000000006f32",
"product_id": "2fa3ae03-ef7c-4496-a466-e4225b67d0f5",
"reserved": "10.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-01-23T19:53:02.523770Z"
},
{
"active": "0.000000000",
"available": "-1.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-000000006f33",
"product_id": "2fa3ae03-ef7c-4496-a466-e4225b67d0f5",
"reserved": "1.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-01-23T19:53:02.524994Z"
},
{
"active": "0.000000000",
"available": "-15.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-000000006f32",
"product_id": "e61fd696-590f-4c15-a032-82adea69696f",
"reserved": "15.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-01-23T19:53:02.525706Z"
},
{
"active": "0.000000000",
"available": "-8.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-000000006f33",
"product_id": "e61fd696-590f-4c15-a032-82adea69696f",
"reserved": "8.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-01-23T19:53:02.526393Z"
},
{
"active": "190.000000000",
"available": "169.000000000",
"cost_default_per_unit": "1",
"cost_per_unit_actual": "0.5",
"location_id": "00000000-0000-0000-0000-000000006f3d",
"product_id": "e61fd696-590f-4c15-a032-82adea69696f",
"reserved": "21.000000000",
"total_cost_actual": "95",
"total_cost_default": "190",
"updated_datetime": "2026-01-23T19:53:02.527100Z"
},
{
"active": "80.000000000",
"available": "80.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-000000006f3e",
"product_id": "e61fd696-590f-4c15-a032-82adea69696f",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-01-23T19:53:02.460594Z"
},
{
"active": "0.000000000",
"available": "-1.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": null,
"product_id": "e61fd696-590f-4c15-a032-82adea69696f",
"reserved": "1.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-01-23T19:53:02.530830Z"
},
{
"active": "100.000000000",
"available": "100.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-000000006f33",
"product_id": "f7cb50ea-43c7-4d57-bfd3-bb7a130c063e",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-01-23T19:53:02.235039Z"
},
{
"active": "30.000000000",
"available": "26.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": null,
"product_id": "f7cb50ea-43c7-4d57-bfd3-bb7a130c063e",
"reserved": "4.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-01-23T19:53:02.528963Z"
}
],
"next_page": null
}
GET /public/v1/inventory returns stock quantities and costs grouped by product & batch number
GET /public/v1/inventory?grouping[]=PRODUCT&grouping[]=BATCH_NUMBER
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODIsImlhdCI6MTc2OTE5Nzk4MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZWFmNjJmM2EtODcxMy00ZDg1LTkxN2EtZWY4YWQ4YmE1M2YzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTgxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQ3NTgiLCJ0eXAiOiJhY2Nlc3MifQ.qchgAIxyNeVacXTLscts7YKdCHIMxKLxsGfeqlADJz8
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: c683b40db521f0000000000000000001-fb7990063be677ec-0
{
"data": [
{
"active": "43.000000000",
"available": "43.000000000",
"batch_number": null,
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "01ca0beb-0804-4fdf-ac74-92779d950aad",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-01-23T19:53:02.932645Z"
},
{
"active": "47.000000000",
"available": "47.000000000",
"batch_number": "1",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "01ca0beb-0804-4fdf-ac74-92779d950aad",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-01-23T19:53:03.017613Z"
},
{
"active": "25.000000000",
"available": "25.000000000",
"batch_number": "2",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "01ca0beb-0804-4fdf-ac74-92779d950aad",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-01-23T19:53:03.055604Z"
},
{
"active": "19.000000000",
"available": "19.000000000",
"batch_number": null,
"cost_default_per_unit": "2",
"cost_per_unit_actual": "1",
"product_id": "6f5dea5f-6c12-4629-9d74-101af4bff9d3",
"reserved": "0.000000000",
"total_cost_actual": "19",
"total_cost_default": "38",
"updated_datetime": "2026-01-23T19:53:02.754407Z"
},
{
"active": "13.000000000",
"available": "13.000000000",
"batch_number": "TEST-1",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "6f5dea5f-6c12-4629-9d74-101af4bff9d3",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-01-23T19:53:02.803127Z"
},
{
"active": "26.000000000",
"available": "26.000000000",
"batch_number": null,
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "b0ad99ce-1cea-4760-972b-ed0b78b2c668",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-01-23T19:53:03.110614Z"
},
{
"active": "27.000000000",
"available": "27.000000000",
"batch_number": "1",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "b0ad99ce-1cea-4760-972b-ed0b78b2c668",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-01-23T19:53:03.147837Z"
},
{
"active": "8.000000000",
"available": "8.000000000",
"batch_number": "TEST-1",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "fef7f881-cef5-42f8-be62-d964303f3edb",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-01-23T19:53:02.835799Z"
}
],
"next_page": null
}
GET /public/v1/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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzksImlhdCI6MTc2OTE5Nzk3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZmU1NGZiYzktYmU1My00ZTc5LWIwZGMtODQ3NTZhMTQwZDFmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQxNjAiLCJ0eXAiOiJhY2Nlc3MifQ.8uRbkxzkGfrvJvYH1RpVW1ndqmi5LtJqBTQE7iucb8w
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 4c7096e5dfe9f8000000000000000001-8269d94710abf22e-0
{
"data": [
{
"active": "21.000000000",
"available": "21.000000000",
"batch_number": null,
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-000000006ea7",
"product_id": "64a32e9d-4957-4225-8a27-9ca4e47d78dc",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-01-23T19:52:59.367500Z"
},
{
"active": "29.000000000",
"available": "29.000000000",
"batch_number": "TEST-1",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-000000006ea7",
"product_id": "64a32e9d-4957-4225-8a27-9ca4e47d78dc",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-01-23T19:52:59.466178Z"
},
{
"active": "25.000000000",
"available": "25.000000000",
"batch_number": null,
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-000000006ea8",
"product_id": "64a32e9d-4957-4225-8a27-9ca4e47d78dc",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-01-23T19:52:59.412366Z"
},
{
"active": "33.000000000",
"available": "33.000000000",
"batch_number": "TEST-1",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-000000006ea8",
"product_id": "64a32e9d-4957-4225-8a27-9ca4e47d78dc",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-01-23T19:52:59.504015Z"
},
{
"active": "41.000000000",
"available": "41.000000000",
"batch_number": null,
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-000000006ea7",
"product_id": "f101c2bd-e8b8-4c78-a553-c033630c4d3a",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-01-23T19:52:59.638258Z"
},
{
"active": "49.000000000",
"available": "49.000000000",
"batch_number": "TEST-1",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-000000006ea7",
"product_id": "f101c2bd-e8b8-4c78-a553-c033630c4d3a",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-01-23T19:52:59.822369Z"
},
{
"active": "45.000000000",
"available": "45.000000000",
"batch_number": null,
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-000000006ea8",
"product_id": "f101c2bd-e8b8-4c78-a553-c033630c4d3a",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-01-23T19:52:59.741608Z"
},
{
"active": "53.000000000",
"available": "53.000000000",
"batch_number": "TEST-1",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-000000006ea8",
"product_id": "f101c2bd-e8b8-4c78-a553-c033630c4d3a",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-01-23T19:52:59.913692Z"
}
],
"next_page": null
}
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"] | |
| location_ids | Filter inventory levels by location IDs | query | array | false | ["00000000-0000-0000-0000-000000000001","00000000-0000-0000-0000-000000000002"] | |
| batch_ids | Filter inventory levels by batch IDs | query | array | false | ["00000000-0000-0000-0000-000000000101","00000000-0000-0000-0000-000000000102"] |
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzksImlhdCI6MTc2OTE5Nzk3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNWQzYzJjZTQtZjU3My00ZDcxLWI1YzItMGIxYTU5NzViY2ZlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQyNjUiLCJ0eXAiOiJhY2Nlc3MifQ.FMn6EOHgwga0IKQdOTiDNpB3u4o64gqbvGhSgShW3KM
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: b1d42ca7e82e18000000000000000001-2c62493611e6a91f-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000009287",
"name": "Company 906",
"updated_datetime": "2026-01-23T19:52:59.946099Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1183@example.com",
"full_name": "FirstName2420 LastName2421",
"id": "00000000-0000-0000-0000-000000017050",
"role": {
"id": "00000000-0000-0000-0000-000000016f2b",
"name": "Admin 1164"
}
},
"custom_data": [
{
"id": 359,
"name": "Custom Field 17",
"value": null
}
],
"due_datetime": "2026-01-23T19:53:00.039169Z",
"id": "00000000-0000-0000-0000-000000000876",
"inserted_datetime": "2026-01-23T19:53:00.040164Z",
"invoice_datetime": "2026-01-23T19:53:00.039168Z",
"invoice_number": "Invoice #21",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000566e",
"name": "B1435"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000a72",
"order_item_id": "f62f3abd-cfaa-4006-a47a-7d2d131ee4cb",
"package": null,
"price": "10.000000000",
"product": {
"id": "097c58eb-3a95-45e4-a186-b7b6c6232fba",
"name": "Product 1433",
"sku": "sku 1434",
"updated_datetime": "2026-01-23T19:52:59.961858Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000566f",
"name": "B1438"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000a73",
"order_item_id": "223afafa-d9bc-44de-b28d-8271e55fa918",
"package": null,
"price": "10.000000000",
"product": {
"id": "aabad4b3-bd1f-48c3-89c0-b2276c5a8092",
"name": "Product 1436",
"sku": "sku 1437",
"updated_datetime": "2026-01-23T19:52:59.974706Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "6ee7f2e6-93f0-4b8c-96ac-d2436778fba9",
"order_number": "SO-38",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1183@example.com",
"full_name": "FirstName2420 LastName2421",
"id": "00000000-0000-0000-0000-000000017050",
"role": {
"id": "00000000-0000-0000-0000-000000016f2b",
"name": "Admin 1164"
}
},
"paid_amount": "0.0",
"remaining_amount": "200.00",
"status": "NOT_PAID",
"total": "200.00",
"updated_datetime": "2026-01-23T19:53:00.040164Z"
},
{
"charges": [
{
"id": "8616d819-6ae6-4afb-8015-0ccff1a0fffa",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000009277",
"name": "Company 887",
"updated_datetime": "2026-01-23T19:52:59.801147Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000017035",
"role": {
"id": "00000000-0000-0000-0000-000000016f12",
"name": "Admin 1139"
}
},
"custom_data": [
{
"id": 359,
"name": "Custom Field 17",
"value": "Custom Field Value 1"
}
],
"due_datetime": "2020-01-01T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-000000000875",
"inserted_datetime": "2026-01-23T19:52:59.826074Z",
"invoice_datetime": "2020-01-01T00:00:02.000000Z",
"invoice_number": "INV-123",
"items": [
{
"batch": {
"batch_number": "UID1",
"id": "00000000-0000-0000-0000-00000000565d",
"name": "B1"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000a71",
"order_item_id": "a0b3f8a6-50a3-4174-9e21-1b4ece5d8e7d",
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000000127",
"id": "00000000-0000-0000-0000-000000002077",
"metrc_label": "ABCDEF012345670000000127",
"status": "active"
},
"price": "10.000000000",
"product": {
"id": "9d8f5e1c-7870-4a18-9b02-77ca080d70b1",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-01-23T19:52:59.775912Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "51a4b387-7597-4b2b-9292-7956d338cc69",
"order_number": "SO-123",
"status": "Completed",
"total": "10.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "user2@a.com",
"full_name": "John Bar",
"id": "00000000-0000-0000-0000-000000017037",
"role": {
"id": "00000000-0000-0000-0000-000000016f14",
"name": "Admin 1141"
}
},
"paid_amount": "5.00",
"remaining_amount": "3.00",
"status": "PARTIALLY_PAID",
"total": "8.00",
"updated_datetime": "2026-01-23T19:52:59.877610Z"
}
],
"next_page": null
}
GET /invoices/ returns cost/returned_quantity data for invoice items
GET /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODQsImlhdCI6MTc2OTE5Nzk4NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDJlODMzY2ItODU3YS00ZjU5LWI2MGMtYWY0MTZkOWIxYjdmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTgzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQ5NjIiLCJ0eXAiOiJhY2Nlc3MifQ.GqBNFXI2ubdQwldPtr9b9cGqBQQQFfNQfhjtaGKGhEQ
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 3d4248997964f0000000000000000001-eae962b753c16168-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000000943d",
"name": "Company 1419",
"updated_datetime": "2026-01-23T19:53:04.770262Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1851@example.com",
"full_name": "FirstName3756 LastName3757",
"id": "00000000-0000-0000-0000-0000000172fd",
"role": {
"id": "00000000-0000-0000-0000-0000000171c1",
"name": "Admin 1826"
}
},
"custom_data": [],
"due_datetime": "2026-01-23T19:53:04.865108Z",
"id": "00000000-0000-0000-0000-00000000089c",
"inserted_datetime": "2026-01-23T19:53:04.865635Z",
"invoice_datetime": "2026-01-23T19:53:04.865107Z",
"invoice_number": "Invoice #53",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000057bd",
"name": "B2436"
},
"cost_per_unit": "10.026",
"cost_per_unit_default": "5",
"id": "00000000-0000-0000-0000-000000000aaa",
"order_item_id": "9cb2b3ab-0651-4988-bfaa-59002562ac1a",
"package": null,
"price": "521765.000000000",
"product": {
"id": "df1505c6-f026-43ae-a25f-65311a2b3893",
"name": "Product 2434",
"sku": "sku 2435",
"updated_datetime": "2026-01-23T19:53:04.725849Z"
},
"quantity": "2.000000000",
"returned_quantity": "2",
"total_cost_actual": "20.052",
"total_cost_default": "10"
}
],
"order": {
"id": "c9d6cb3e-50c7-4aec-b858-c39bc642cd37",
"order_number": "SO-0000001",
"status": "Processing",
"total": "1043530.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1851@example.com",
"full_name": "FirstName3756 LastName3757",
"id": "00000000-0000-0000-0000-0000000172fd",
"role": {
"id": "00000000-0000-0000-0000-0000000171c1",
"name": "Admin 1826"
}
},
"paid_amount": "0.0",
"remaining_amount": "32.00",
"status": "NOT_PAID",
"total": "32.00",
"updated_datetime": "2026-01-23T19:53:04.865635Z"
}
],
"next_page": null
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzUsImlhdCI6MTc2OTE5Nzk3NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDU5Y2EzYWEtYWYzOC00MjA3LTlmZjItMDZkYjEyYjJhN2Q1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM0NjgiLCJ0eXAiOiJhY2Nlc3MifQ.xS8kDMu46B73IOSaeDgIKbJw6XPwTSmEawogIUp525M
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 74b707c3176e70000000000000000001-1b75d6a226275631-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000090da",
"name": "Company 345",
"updated_datetime": "2026-01-23T19:52:56.291217Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-469@example.com",
"full_name": "FirstName948 LastName949",
"id": "00000000-0000-0000-0000-000000016d7f",
"role": {
"id": "00000000-0000-0000-0000-000000016c6e",
"name": "Admin 463"
}
},
"custom_data": [],
"due_datetime": "2026-01-23T19:52:56.432928Z",
"id": "00000000-0000-0000-0000-000000000868",
"inserted_datetime": "2026-01-23T19:52:56.434037Z",
"invoice_datetime": "2020-01-01T12:30:00.000000Z",
"invoice_number": "Invoice #7",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005529",
"name": "B432"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000a5c",
"order_item_id": "b5e358a4-6dbd-4601-90cc-ce448df7006b",
"package": null,
"price": "10.000000000",
"product": {
"id": "1ed6f1c3-74b3-44ab-9736-87ab5b14cf04",
"name": "Product 430",
"sku": "sku 431",
"updated_datetime": "2026-01-23T19:52:56.312286Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000552a",
"name": "B435"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000a5d",
"order_item_id": "680fde69-ebf5-4f3a-9c45-9409a3640c2d",
"package": null,
"price": "10.000000000",
"product": {
"id": "aa9d58f4-f780-4a3e-9b59-57d73f613232",
"name": "Product 433",
"sku": "sku 434",
"updated_datetime": "2026-01-23T19:52:56.329848Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "b91e7163-2906-42f3-b9fa-4c6fd70c2f4e",
"order_number": "SO-8",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-469@example.com",
"full_name": "FirstName948 LastName949",
"id": "00000000-0000-0000-0000-000000016d7f",
"role": {
"id": "00000000-0000-0000-0000-000000016c6e",
"name": "Admin 463"
}
},
"paid_amount": "0.0",
"remaining_amount": "200.00",
"status": "NOT_PAID",
"total": "200.00",
"updated_datetime": "2026-01-23T19:52:56.434037Z"
},
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000090c7",
"name": "Company 318",
"updated_datetime": "2026-01-23T19:52:56.117479Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-435@example.com",
"full_name": "FirstName876 LastName877",
"id": "00000000-0000-0000-0000-000000016d5d",
"role": {
"id": "00000000-0000-0000-0000-000000016c4c",
"name": "Admin 429"
}
},
"custom_data": [],
"due_datetime": "2026-01-23T19:52:56.242283Z",
"id": "00000000-0000-0000-0000-000000000867",
"inserted_datetime": "2026-01-23T19:52:56.243244Z",
"invoice_datetime": "2020-01-01T12:20:00.000000Z",
"invoice_number": "Invoice #6",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005523",
"name": "B405"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000a5a",
"order_item_id": "7bf5f8ac-c36f-4049-9cbe-9535afa2924e",
"package": null,
"price": "10.000000000",
"product": {
"id": "d215160b-06d7-4591-b0d5-fe875cd5105f",
"name": "Product 403",
"sku": "sku 404",
"updated_datetime": "2026-01-23T19:52:56.137384Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005524",
"name": "B410"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000a5b",
"order_item_id": "5a7a947f-e92e-478b-84cc-2dd2c6018b1c",
"package": null,
"price": "10.000000000",
"product": {
"id": "2faa0830-97e3-49fb-a819-c244e68255c0",
"name": "Product 408",
"sku": "sku 409",
"updated_datetime": "2026-01-23T19:52:56.157103Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "3063a607-5761-4f9c-913e-0a5e088df747",
"order_number": "SO-7",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-435@example.com",
"full_name": "FirstName876 LastName877",
"id": "00000000-0000-0000-0000-000000016d5d",
"role": {
"id": "00000000-0000-0000-0000-000000016c4c",
"name": "Admin 429"
}
},
"paid_amount": "0.0",
"remaining_amount": "200.00",
"status": "FULLY_PAID",
"total": "200.00",
"updated_datetime": "2026-01-23T19:52:56.243244Z"
},
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000090ad",
"name": "Company 278",
"updated_datetime": "2026-01-23T19:52:55.811397Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-371@example.com",
"full_name": "FirstName748 LastName749",
"id": "00000000-0000-0000-0000-000000016d1d",
"role": {
"id": "00000000-0000-0000-0000-000000016c0d",
"name": "Admin 366"
}
},
"custom_data": [],
"due_datetime": "2026-01-23T19:52:55.939230Z",
"id": "00000000-0000-0000-0000-000000000865",
"inserted_datetime": "2026-01-23T19:52:55.939903Z",
"invoice_datetime": "2020-01-01T12:00:00.000000Z",
"invoice_number": "Invoice #4",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005513",
"name": "B359"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000a56",
"order_item_id": "14a09dc7-09d5-4706-9a27-799a20575631",
"package": null,
"price": "10.000000000",
"product": {
"id": "c1277ecb-99f2-4a7f-a0e1-4eb74ab96702",
"name": "Product 357",
"sku": "sku 358",
"updated_datetime": "2026-01-23T19:52:55.830804Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005517",
"name": "B367"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000a57",
"order_item_id": "0414465b-3cf5-4d77-9364-5735323692e7",
"package": null,
"price": "10.000000000",
"product": {
"id": "24b5b9ed-8d88-415e-b1c0-9069b27b45df",
"name": "Product 365",
"sku": "sku 366",
"updated_datetime": "2026-01-23T19:52:55.850199Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "5bae0fee-bfb8-4367-97c4-4677d7083f79",
"order_number": "SO-5",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-371@example.com",
"full_name": "FirstName748 LastName749",
"id": "00000000-0000-0000-0000-000000016d1d",
"role": {
"id": "00000000-0000-0000-0000-000000016c0d",
"name": "Admin 366"
}
},
"paid_amount": "0.0",
"remaining_amount": "200.00",
"status": "FULLY_PAID",
"total": "200.00",
"updated_datetime": "2026-01-23T19:52:55.939903Z"
}
],
"next_page": null
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzcsImlhdCI6MTc2OTE5Nzk3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMWU0NTg4MDktZTI2YS00MzhmLWE5NzgtM2Q3ZDE5ZjA5NmQ4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM4ODQiLCJ0eXAiOiJhY2Nlc3MifQ.RpglKdE-1Dhc7AG1MvdG242IiCs-_5sYl5ay8R0-_NQ
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 94851d025236d0000000000000000001-4813093dfd411c00-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000009198",
"name": "Company 609",
"updated_datetime": "2026-01-23T19:52:57.995912Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-870@example.com",
"full_name": "FirstName1792 LastName1793",
"id": "00000000-0000-0000-0000-000000016f11",
"role": {
"id": "00000000-0000-0000-0000-000000016df9",
"name": "Admin 858"
}
},
"custom_data": [],
"due_datetime": "2026-01-23T19:52:58.263943Z",
"id": "00000000-0000-0000-0000-00000000086f",
"inserted_datetime": "2026-01-23T19:52:58.264678Z",
"invoice_datetime": "2026-01-23T19:52:58.263942Z",
"invoice_number": "Invoice #14",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000559a",
"name": "B800"
},
"cost_per_unit": "10.026",
"cost_per_unit_default": "5",
"id": "00000000-0000-0000-0000-000000000a68",
"order_item_id": "83b42115-855b-4607-939f-19943c26c8a1",
"package": null,
"price": "964731.000000000",
"product": {
"id": "da54b122-659d-4446-99f2-1434ab7da2cf",
"name": "Product 796",
"sku": "sku 797",
"updated_datetime": "2026-01-23T19:52:57.901824Z"
},
"quantity": "1.000000000",
"returned_quantity": "1",
"total_cost_actual": "10.026",
"total_cost_default": "5"
}
],
"order": {
"id": "e274808a-0b8f-4ec6-a724-3e78e25338a4",
"order_number": "SO-0000001",
"status": "Processing",
"total": "1929462.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-870@example.com",
"full_name": "FirstName1792 LastName1793",
"id": "00000000-0000-0000-0000-000000016f11",
"role": {
"id": "00000000-0000-0000-0000-000000016df9",
"name": "Admin 858"
}
},
"paid_amount": "0.0",
"remaining_amount": "32.00",
"status": "NOT_PAID",
"total": "32.00",
"updated_datetime": "2026-01-23T19:52:58.264678Z"
}
],
"next_page": null
}
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-000000000874/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzksImlhdCI6MTc2OTE5Nzk3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYTM3MjA0YWItZDM3Ni00YjQ0LWExOGItYTlhMGJkNzQ0NDBlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQyMDgiLCJ0eXAiOiJhY2Nlc3MifQ.MtKBvEm2jqlDFDEAK6Hz59bDER0kKgyvU9NhVRf_x6s
{
"amount": 100.01,
"description": "Payment for invoice",
"payment_datetime": "2020-01-01T00:00:00.000000Z",
"payment_method_id": "00000000-0000-0000-0000-000000000228",
"quickbooks_deposit_account_id": "QBD-123"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: f87db79fa1e700000000000000000001-0d6be69abb66ab5c-0
{
"data": {
"amount": "100",
"description": "Payment for invoice",
"id": "00000000-0000-0000-0000-000000000220",
"inserted_datetime": "2026-01-23T19:52:59.538020Z",
"invoice_id": "00000000-0000-0000-0000-000000000874",
"payment_date": "2020-01-01T00:00:00.000000Z",
"payment_method": {
"deleted_at": null,
"id": "00000000-0000-0000-0000-000000000228",
"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-000000000874/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzksImlhdCI6MTc2OTE5Nzk3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYTM3MjA0YWItZDM3Ni00YjQ0LWExOGItYTlhMGJkNzQ0NDBlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQyMDgiLCJ0eXAiOiJhY2Nlc3MifQ.MtKBvEm2jqlDFDEAK6Hz59bDER0kKgyvU9NhVRf_x6s
{
"amount": 100.01,
"description": "Payment for invoice",
"payment_datetime": "2020-01-01T00:00:00.000000Z",
"payment_method_id": "00000000-0000-0000-0000-000000000228",
"quickbooks_deposit_account_name": "QBD-NAME"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: f87db79fa1e700000000000000000001-c86fc81868dd7b80-0
{
"data": {
"amount": "100",
"description": "Payment for invoice",
"id": "00000000-0000-0000-0000-000000000221",
"inserted_datetime": "2026-01-23T19:52:59.694380Z",
"invoice_id": "00000000-0000-0000-0000-000000000874",
"payment_date": "2020-01-01T00:00:00.000000Z",
"payment_method": {
"deleted_at": null,
"id": "00000000-0000-0000-0000-000000000228",
"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-000000000893
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODMsImlhdCI6MTc2OTE5Nzk4MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiYTk1NzQxM2UtOTc1Yi00YWU5LWE4ZjEtNWZjNTM3NDE5YTY5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTgyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQ4NTQiLCJ0eXAiOiJhY2Nlc3MifQ.mp7POuFT2hOf699VaNZtZCI9sIT1O69Ltj6YBgMXklo
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: be0ffd2ec65e58000000000000000001-2e21b8c4581661cb-0
{
"data": {
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000093d5",
"name": "Company 1298",
"updated_datetime": "2026-01-23T19:53:03.606900Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1737@example.com",
"full_name": "FirstName3528 LastName3529",
"id": "00000000-0000-0000-0000-000000017287",
"role": {
"id": "00000000-0000-0000-0000-00000001714c",
"name": "Admin 1709"
}
},
"custom_data": [
{
"id": 362,
"name": "Custom Field 20",
"value": "Custom Field Value 1"
}
],
"due_datetime": "2026-01-23T19:53:03.668469Z",
"id": "00000000-0000-0000-0000-000000000893",
"inserted_datetime": "2026-01-23T19:53:03.669208Z",
"invoice_datetime": "2026-01-23T19:53:03.668466Z",
"invoice_number": "Invoice #46",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000576b",
"name": "B2188"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000a99",
"order_item_id": "47a11b49-dfaf-4646-bdfc-68a8a5ee07e2",
"package": null,
"price": "10.000000000",
"product": {
"id": "9214ac31-bc5e-4808-8c15-a1d82d417a1b",
"name": "Product 2186",
"sku": "sku 2187",
"updated_datetime": "2026-01-23T19:53:03.615549Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000576c",
"name": "B2191"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000a9a",
"order_item_id": "c943aa09-878a-40ad-a687-c43fc78c9498",
"package": null,
"price": "10.000000000",
"product": {
"id": "da00e14e-c28c-4665-99e4-9fb1eb615302",
"name": "Product 2189",
"sku": "sku 2190",
"updated_datetime": "2026-01-23T19:53:03.627765Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "9af9ab13-79dc-4482-adc0-bc862734e217",
"order_number": "SO-84",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1737@example.com",
"full_name": "FirstName3528 LastName3529",
"id": "00000000-0000-0000-0000-000000017287",
"role": {
"id": "00000000-0000-0000-0000-00000001714c",
"name": "Admin 1709"
}
},
"paid_amount": "0.0",
"remaining_amount": null,
"status": "NOT_PAID",
"total": "200.00",
"updated_datetime": "2026-01-23T19:53:03.669208Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODAsImlhdCI6MTc2OTE5Nzk4MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjI3OWUzODYtYTczMS00MjgzLWI5NTgtZjc1YjNmOTdhZGZlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQzMTUiLCJ0eXAiOiJhY2Nlc3MifQ._eilbqauf-wml4WRCWwddW1nmRHVgfHOiyMp9rQUBbM
{
"billing_location_id": "00000000-0000-0000-0000-000000006ed4",
"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": "860aa931-aa1e-4df6-a661-2e05aaed29b7",
"quantity": "1.000000000"
},
{
"order_item_id": "8b9a1590-c435-4c3c-ba8a-8e8ecccd11a5",
"quantity": "10.000000000"
}
],
"order_id": "3010307d-a2c8-4075-8ec0-8cd7dcd5d0bc"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 6f22b87a289b1c000000000000000001-77047d827bd8668f-0
{
"data": {
"charges": [
{
"id": "1046faaa-7fed-4814-8d70-5f40dd735952",
"name": "C1",
"percent": "10.0000",
"price": "5.30",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "60ae47e7-f375-4e72-ae71-8a99cbfb4122",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000009292",
"name": "Company 923",
"updated_datetime": "2026-01-23T19:53:00.124516Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-00000001706b",
"role": {
"id": "00000000-0000-0000-0000-000000016f46",
"name": "Admin 1191"
}
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-000000000878",
"inserted_datetime": "2026-01-23T19:53:00.353942Z",
"invoice_datetime": "2020-01-01T00:00:00.000000Z",
"invoice_number": "INV-0000001",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005681",
"name": "B1"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000a74",
"order_item_id": "860aa931-aa1e-4df6-a661-2e05aaed29b7",
"package": null,
"price": "3.000000000",
"product": {
"id": "9ceeebbd-439f-460a-9400-d65ded085f95",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-01-23T19:53:00.297775Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005683",
"name": "B2"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000a75",
"order_item_id": "8b9a1590-c435-4c3c-ba8a-8e8ecccd11a5",
"package": null,
"price": "5.000000000",
"product": {
"id": "30b2bc4b-2c3f-439a-9a81-01c69a7e48cf",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-01-23T19:53:00.309531Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "3010307d-a2c8-4075-8ec0-8cd7dcd5d0bc",
"order_number": "SO-40",
"status": "Processing",
"total": "0.00"
},
"owner": null,
"paid_amount": "0.0",
"remaining_amount": "53.30",
"status": "NOT_PAID",
"total": "53.30",
"updated_datetime": "2026-01-23T19:53:00.362092Z"
}
}
POST /invoices updates an invoice
POST /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODEsImlhdCI6MTc2OTE5Nzk4MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjI1MzNmOTUtMTI2Zi00MzAzLWIwMDEtNzIzZTVkNWM3ZDllIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTgwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQ0NzEiLCJ0eXAiOiJhY2Nlc3MifQ.MCK-Vnl6kTq3Dh9jaNX17Qu9AGUuRqUfz5zsCqZl3Uk
{
"billing_location_id": "00000000-0000-0000-0000-000000006ef4",
"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": "ba02d4ff-91f5-49d2-93b7-0dc019eb328b",
"quantity": "1.000000000"
},
{
"order_item_id": "60bc341a-cce0-452e-a68d-674aae500a1b",
"quantity": "10.000000000"
}
],
"order_id": "5a2c228a-b8b7-432d-8427-2679ecda8347"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 893ee77345f558000000000000000001-903b2342f8c08595-0
{
"data": {
"charges": [
{
"id": "deb2bf3f-feaa-4a5c-a185-e59cc894dc0d",
"name": "C1",
"percent": "10.0000",
"price": "5.30",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "85faf17b-0c9e-4458-b8ca-25a09486002e",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000092ec",
"name": "Company 1023",
"updated_datetime": "2026-01-23T19:53:00.819035Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000017107",
"role": {
"id": "00000000-0000-0000-0000-000000016fdf",
"name": "Admin 1343"
}
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-000000000880",
"inserted_datetime": "2026-01-23T19:53:01.320493Z",
"invoice_datetime": "2020-01-01T00:00:00.000000Z",
"invoice_number": "INV-0000001",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000056c7",
"name": "B1"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000a76",
"order_item_id": "ba02d4ff-91f5-49d2-93b7-0dc019eb328b",
"package": null,
"price": "3.000000000",
"product": {
"id": "7466b26c-955a-45cc-a6d1-fdbac574abf8",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-01-23T19:53:01.260154Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000056c8",
"name": "B2"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000a77",
"order_item_id": "60bc341a-cce0-452e-a68d-674aae500a1b",
"package": null,
"price": "5.000000000",
"product": {
"id": "3de4e56d-2bf7-45ac-8130-7a3e9bd2d7dc",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-01-23T19:53:01.273009Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "5a2c228a-b8b7-432d-8427-2679ecda8347",
"order_number": "SO-54",
"status": "Processing",
"total": "0.00"
},
"owner": null,
"paid_amount": "0.0",
"remaining_amount": "53.30",
"status": "NOT_PAID",
"total": "53.30",
"updated_datetime": "2026-01-23T19:53:01.330424Z"
}
}
POST /invoices updates an invoice
POST /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODEsImlhdCI6MTc2OTE5Nzk4MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjI1MzNmOTUtMTI2Zi00MzAzLWIwMDEtNzIzZTVkNWM3ZDllIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTgwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQ0NzEiLCJ0eXAiOiJhY2Nlc3MifQ.MCK-Vnl6kTq3Dh9jaNX17Qu9AGUuRqUfz5zsCqZl3Uk
{
"billing_location_id": "00000000-0000-0000-0000-000000006ef5",
"charges": [
{
"id": "deb2bf3f-feaa-4a5c-a185-e59cc894dc0d",
"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-000000000880",
"invoice_datetime": "2020-01-02T00:00:00.000000Z",
"items": [
{
"id": "00000000-0000-0000-0000-000000000a76",
"order_item_id": "ba02d4ff-91f5-49d2-93b7-0dc019eb328b",
"quantity": "1.000000000"
},
{
"order_item_id": "60bc341a-cce0-452e-a68d-674aae500a1b",
"quantity": "8.000000000"
}
],
"order_id": "5a2c228a-b8b7-432d-8427-2679ecda8347"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 893ee77345f558000000000000000001-bd6810f3d9f0acec-0
{
"data": {
"charges": [
{
"id": "deb2bf3f-feaa-4a5c-a185-e59cc894dc0d",
"name": "C1",
"percent": "10.0000",
"price": "4.30",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "d774be66-268b-48d1-94a4-a3ad7770a04b",
"name": "C3",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000092ec",
"name": "Company 1023",
"updated_datetime": "2026-01-23T19:53:00.819035Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000017107",
"role": {
"id": "00000000-0000-0000-0000-000000016fdf",
"name": "Admin 1343"
}
},
"custom_data": [],
"due_datetime": "2020-01-28T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-000000000880",
"inserted_datetime": "2026-01-23T19:53:01.320493Z",
"invoice_datetime": "2020-01-02T00:00:00.000000Z",
"invoice_number": "INV-0000001",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000056c7",
"name": "B1"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000a76",
"order_item_id": "ba02d4ff-91f5-49d2-93b7-0dc019eb328b",
"package": null,
"price": "3.000000000",
"product": {
"id": "7466b26c-955a-45cc-a6d1-fdbac574abf8",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-01-23T19:53:01.260154Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000056c8",
"name": "B2"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000a78",
"order_item_id": "60bc341a-cce0-452e-a68d-674aae500a1b",
"package": null,
"price": "5.000000000",
"product": {
"id": "3de4e56d-2bf7-45ac-8130-7a3e9bd2d7dc",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-01-23T19:53:01.273009Z"
},
"quantity": "8.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "5a2c228a-b8b7-432d-8427-2679ecda8347",
"order_number": "SO-54",
"status": "Processing",
"total": "0.00"
},
"owner": null,
"paid_amount": "0.0",
"remaining_amount": "42.30",
"status": "NOT_PAID",
"total": "42.30",
"updated_datetime": "2026-01-23T19:53:01.376088Z"
}
}
POST /invoices reports various errors correctly on update
POST /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODQsImlhdCI6MTc2OTE5Nzk4NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYmVhYzAxNTYtYzliMS00NDgxLThhZTAtMzc1NDBmYjYwYTdmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTgzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQ5MTQiLCJ0eXAiOiJhY2Nlc3MifQ.ArtTO637ZV54_xwrzQW_9_kpNrpyce7ur5Dhw5W5OG0
{
"billing_location_id": "00000000-0000-0000-0000-000000006f86",
"charges": [
{
"name": "C1",
"percent": "-1000.0000",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"due_datetime": "2020-01-30T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-000000000897",
"invoice_datetime": "2020-01-01T00:00:00.000000Z",
"items": [
{
"order_item_id": "00000000-0000-0000-0000-000000000000",
"quantity": "15.000"
},
{
"order_item_id": "361673f0-2713-4358-bdd9-f16dd207b01e",
"quantity": "19.000"
}
],
"order_id": "1df1ac9b-2993-42d4-85a9-c6607381603e"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 1508dc3a820c10000000000000000001-d9053aed72d1a26f-0
{
"errors": [
{
"context": {
"id": "6ea09526-5d6a-452f-9267-c6ed4be5ff5d"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzQsImlhdCI6MTc2OTE5Nzk3NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNjViZGUwN2UtYjM4Ni00YmY0LWJhMmEtMTYwZTVjNzkwZjY1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTczLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTMyNTAiLCJ0eXAiOiJhY2Nlc3MifQ.c95WYWkSnpcEoA-z9N_QFHjFanYitZI36eBhCmhlPQE
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: b9e3568f5f7840000000000000000001-87efe83947a38866-0
{
"data": [
{
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000104e9",
"deleted_at": null,
"id": "00000000-0000-0000-0000-000000006dec",
"license": null,
"license_id": null,
"name": "Place 16"
},
{
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000104e9",
"deleted_at": null,
"id": "00000000-0000-0000-0000-000000006dee",
"license": {
"id": "00000000-0000-0000-0000-0000000045b1",
"license_number": "CDPH-00000005"
},
"license_id": "00000000-0000-0000-0000-0000000045b1",
"name": "Place 18"
}
],
"next_page": null
}
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, | |
| deleted | Filter deleted locations. no returns non-deleted, only returns deleted, include returns both. |
query | string | false | no | |
| 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODEsImlhdCI6MTc2OTE5Nzk4MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYTA0YmY3ZDYtOGNkNC00NTE4LWIzYzAtOWJhMjY2NTUxNzQxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTgwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQ1NDAiLCJ0eXAiOiJhY2Nlc3MifQ.dEyA05ivaER0rUb4kMS9iIaBg4O7JyDT6KoHSdJbSUY
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 12b1cdd4700745000000000000000001-78ff08e9ff54fdc7-0
{
"data": [
{
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000108ad",
"id": "00000000-0000-0000-0000-000000006efc",
"license_id": null,
"name": "Place 288"
},
"biotrack_id": null,
"charges": [
{
"id": "0f650868-4fa2-4d02-ab66-bc7ec97afc7f",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company": {
"id": "00000000-0000-0000-0000-00000000930f",
"name": "Company 1070",
"updated_datetime": "2030-11-01T00:00:00.000000Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-00000001712b",
"role": {
"id": "00000000-0000-0000-0000-000000017003",
"name": "Admin 1380"
}
},
"custom_data": [
{
"id": 361,
"name": "Custom Field 19",
"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": "31b98a0b-afc2-472d-bbb7-c4c11117cee1",
"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-0000000056d1",
"name": "B1"
},
"compliance_quantity": "10.0000",
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "71b3351b-238b-49de-a279-e044a45675f7",
"is_sample": true,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000108ad",
"id": "00000000-0000-0000-0000-000000006efc",
"license_id": null,
"name": "Place 288"
},
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000000137",
"id": "00000000-0000-0000-0000-00000000207c",
"metrc_label": "ABCDEF012345670000000137",
"status": "active"
},
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "23794301-7066-489b-afd6-e866b12af65a",
"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": "85c2ba19-0ed8-4de9-b0a6-986467b1112d",
"metrc_transfer_id": 1,
"order_datetime": "2020-01-01T00:00:02.000000Z",
"order_number": "SO-123",
"owner": {
"banned": false,
"deleted_at": null,
"email": "user2@a.com",
"full_name": "John Bar",
"id": "00000000-0000-0000-0000-00000001714a",
"role": {
"id": "00000000-0000-0000-0000-00000001701f",
"name": "Admin 1408"
}
},
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000108ad",
"id": "00000000-0000-0000-0000-000000006efc",
"license_id": null,
"name": "Place 288"
},
"status": "COMPLETED",
"total": "11.00",
"updated_datetime": "2020-01-01T00:00:04.000000Z"
}
],
"next_page": null
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODcsImlhdCI6MTc2OTE5Nzk4NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjEzOTY5Y2ItN2MxYi00M2QwLTgyNmYtOTUwM2VhZGFjZDlmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTg2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTUwOTMiLCJ0eXAiOiJhY2Nlc3MifQ.RfUE28hPp-pzhJ9w-d7yXQpBeD1Zpw-Lurlpo9cpkM8
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 4c222a34299aec000000000000000001-a8df56c2e21fe281-0
{
"data": [
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000094a1",
"name": "Company 1538",
"updated_datetime": "2026-01-23T19:53:07.171782Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1970@example.com",
"full_name": "FirstName3994 LastName3995",
"id": "00000000-0000-0000-0000-00000001737a",
"role": {
"id": "00000000-0000-0000-0000-00000001723e",
"name": "Admin 1951"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-01-23T19:53:07.172609Z",
"external_notes": null,
"id": "9b3325f4-5178-42c2-82a8-c1be52fed785",
"inserted_datetime": "2026-01-23T19:53:07.184562Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005808",
"name": "B2667"
},
"compliance_quantity": null,
"cost_per_unit": "10.026",
"cost_per_unit_default": "5",
"id": "447faa2a-a5ac-4549-b028-ac5c05e5ab11",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000010a9d",
"id": "00000000-0000-0000-0000-000000006fbd",
"license_id": null,
"name": "Place 480"
},
"package": null,
"price": "149133.000000000",
"price_base": "149133",
"product": {
"id": "0bfbf7c0-83f6-4ce6-8428-df258133daea",
"name": "Product 2665",
"sku": "sku 2666",
"updated_datetime": "2026-01-23T19:53:07.085879Z"
},
"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": "2026-01-23T19:53:07.172610Z",
"order_number": "SO-0000001",
"owner": null,
"shipping_location": null,
"status": "PROCESSING",
"total": "298266.00",
"updated_datetime": "2026-01-23T19:53:07.184562Z"
}
],
"next_page": null
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzYsImlhdCI6MTc2OTE5Nzk3NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGU4YWEyMTQtNzFmZC00NTczLWEzZGEtYjg3YzBiMmJlMzU5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM2MzAiLCJ0eXAiOiJhY2Nlc3MifQ.Le_OupHcNaWhai9CIWyLrEcglNfGE8ott5svxarFN6M
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 1fb64b9a628096000000000000000001-db575bb0d307e300-0
{
"data": [
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000009149",
"name": "Company 499",
"updated_datetime": "2026-01-23T19:52:57.310173Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-672@example.com",
"full_name": "FirstName1388 LastName1389",
"id": "00000000-0000-0000-0000-000000016e4b",
"role": {
"id": "00000000-0000-0000-0000-000000016d36",
"name": "Admin 663"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-01-23T19:52:57.335125Z",
"external_notes": null,
"id": "65c23f06-5187-4cda-bdf4-7dc02f64da97",
"inserted_datetime": "2026-01-23T19:52:57.336272Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005574",
"name": "B664"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "5f9920f0-333c-412a-9f1e-700c514119b7",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "07e58614-6397-40d6-8b14-299820281f9a",
"name": "Product 662",
"sku": "sku 663",
"updated_datetime": "2026-01-23T19:52:57.361882Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005576",
"name": "B670"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "eae584bd-6663-413c-afcb-0ec909ecb7f2",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "7a8d0c16-e115-4290-bcce-6588638fdae3",
"name": "Product 668",
"sku": "sku 669",
"updated_datetime": "2026-01-23T19:52:57.381593Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005579",
"name": "B681"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "99afc63f-de60-482d-98d2-f904d8bfd50d",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "eb6cfc16-e43e-43ca-9ac1-b4c47c8f4c34",
"name": "Product 679",
"sku": "sku 680",
"updated_datetime": "2026-01-23T19:52:57.400568Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000557a",
"name": "B686"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "e859db76-ae7c-47f7-b6fd-45ce9c955ad9",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "d2f09afd-78d7-48bd-a752-966625265df3",
"name": "Product 684",
"sku": "sku 685",
"updated_datetime": "2026-01-23T19:52:57.415503Z"
},
"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-17",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-672@example.com",
"full_name": "FirstName1388 LastName1389",
"id": "00000000-0000-0000-0000-000000016e4b",
"role": {
"id": "00000000-0000-0000-0000-000000016d36",
"name": "Admin 663"
}
},
"shipping_location": null,
"status": "CANCELED",
"total": "320.00",
"updated_datetime": "2026-01-23T19:52:57.444252Z"
},
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000000912d",
"name": "Company 464",
"updated_datetime": "2026-01-23T19:52:57.138690Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-630@example.com",
"full_name": "FirstName1298 LastName1299",
"id": "00000000-0000-0000-0000-000000016e21",
"role": {
"id": "00000000-0000-0000-0000-000000016d0d",
"name": "Admin 622"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-01-23T19:52:57.178991Z",
"external_notes": null,
"id": "b73651bc-5ffb-4731-b024-659bc9fdb984",
"inserted_datetime": "2026-01-23T19:52:57.180837Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005564",
"name": "B610"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "e4ff81c5-0874-4e11-91e7-606e0bbdc04e",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "11bf2d2e-a61d-4dd0-8152-a94279c88e99",
"name": "Product 608",
"sku": "sku 609",
"updated_datetime": "2026-01-23T19:52:57.214660Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005566",
"name": "B620"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "213ad261-5418-43f1-b571-06e0fb00ba32",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "9f2ee6c6-9ef7-4345-8f20-790d0023f0b9",
"name": "Product 618",
"sku": "sku 619",
"updated_datetime": "2026-01-23T19:52:57.241888Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005568",
"name": "B626"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "78b3626d-5a14-418f-bca4-a70087f6c393",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "0dde0439-882c-416f-b9bf-2a61489e939d",
"name": "Product 624",
"sku": "sku 625",
"updated_datetime": "2026-01-23T19:52:57.257638Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000556a",
"name": "B636"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "2a26cd36-4cc0-4bab-932c-40cf75cc279a",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "528a55ed-594d-4251-8da4-59b924bec401",
"name": "Product 632",
"sku": "sku 633",
"updated_datetime": "2026-01-23T19:52:57.273534Z"
},
"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-15",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-630@example.com",
"full_name": "FirstName1298 LastName1299",
"id": "00000000-0000-0000-0000-000000016e21",
"role": {
"id": "00000000-0000-0000-0000-000000016d0d",
"name": "Admin 622"
}
},
"shipping_location": null,
"status": "COMPLETED",
"total": "320.00",
"updated_datetime": "2026-01-23T19:52:57.300753Z"
},
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000090f9",
"name": "Company 398",
"updated_datetime": "2026-01-23T19:52:56.720166Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-537@example.com",
"full_name": "FirstName1102 LastName1103",
"id": "00000000-0000-0000-0000-000000016dc3",
"role": {
"id": "00000000-0000-0000-0000-000000016cb2",
"name": "Admin 531"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-01-23T19:52:56.763986Z",
"external_notes": null,
"id": "e37fe7a8-46b5-4541-b8c3-44fad63d5c6b",
"inserted_datetime": "2026-01-23T19:52:56.764894Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000553e",
"name": "B498"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "784a5ed1-cceb-492d-a825-9946812a4949",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "400a94bf-133a-4fc2-91ef-cdc40cc500f0",
"name": "Product 496",
"sku": "sku 497",
"updated_datetime": "2026-01-23T19:52:56.779855Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000553f",
"name": "B505"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "389d3b9f-d29e-418e-8eea-209185812ae8",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "41d4737b-b292-4dd7-8619-5190e6454b87",
"name": "Product 503",
"sku": "sku 504",
"updated_datetime": "2026-01-23T19:52:56.800994Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005540",
"name": "B512"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "2f05f07d-5901-49dd-99da-28da6c246f6f",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "57d7353c-410f-4cc8-b806-fa15711ad3e8",
"name": "Product 508",
"sku": "sku 509",
"updated_datetime": "2026-01-23T19:52:56.829890Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005545",
"name": "B519"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "39aa6f09-8f99-4a65-9932-08686fd807f7",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "69b3266a-dd89-4b6d-a89c-36213dc032c2",
"name": "Product 517",
"sku": "sku 518",
"updated_datetime": "2026-01-23T19:52:56.850524Z"
},
"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-11",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-537@example.com",
"full_name": "FirstName1102 LastName1103",
"id": "00000000-0000-0000-0000-000000016dc3",
"role": {
"id": "00000000-0000-0000-0000-000000016cb2",
"name": "Admin 531"
}
},
"shipping_location": null,
"status": "COMPLETED",
"total": "320.00",
"updated_datetime": "2026-01-23T19:52:56.898995Z"
}
],
"next_page": null
}
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/d81c9e33-9af4-439b-b717-c1454f48dc5e
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzcsImlhdCI6MTc2OTE5Nzk3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNmQ1ZTg4YTMtNDYxNy00N2JhLTg2YTMtMGE3ZDU2MjAyYzAyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM4MjYiLCJ0eXAiOiJhY2Nlc3MifQ.NZ2z1F4w0r9qVJAJEp5oW697nwBmgcBIWXqIwEbKXpI
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 176a474720dede000000000000000001-2c534753791d893d-0
{
"data": {
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000000916c",
"name": "Company 548",
"updated_datetime": "2026-01-23T19:52:57.583437Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-732@example.com",
"full_name": "FirstName1516 LastName1517",
"id": "00000000-0000-0000-0000-000000016e87",
"role": {
"id": "00000000-0000-0000-0000-000000016d72",
"name": "Admin 723"
}
},
"custom_data": [
{
"id": 352,
"name": "Custom Field 10",
"value": "Custom Field Value 1"
}
],
"delivery_datetime": null,
"due_datetime": "2026-01-23T19:52:57.634934Z",
"external_notes": null,
"id": "d81c9e33-9af4-439b-b717-c1454f48dc5e",
"inserted_datetime": "2026-01-23T19:52:57.635866Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000558a",
"name": "B746"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "96eac9ef-7cf3-408e-b843-209fd102c6ec",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "b7331791-c684-4d95-927a-c839dcbf7b10",
"name": "Product 742",
"sku": "sku 744",
"updated_datetime": "2026-01-23T19:52:57.658725Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000558d",
"name": "B753"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "02956f74-2e07-47f6-81f1-0c72db4b27de",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "a8d20dd0-d12b-499b-b2d1-2a3fa34686b4",
"name": "Product 751",
"sku": "sku 752",
"updated_datetime": "2026-01-23T19:52:57.688074Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000558f",
"name": "B759"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "cd334042-a25b-4ca6-923c-ecb8896d3c26",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "b2a47009-16d9-46ef-81b2-dc3ca52ed528",
"name": "Product 757",
"sku": "sku 758",
"updated_datetime": "2026-01-23T19:52:57.710279Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005590",
"name": "B762"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "7b9e9204-bdff-4a1f-9ff3-c75c05492f4e",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "550f44ad-6f77-40c1-854b-60303b79e88c",
"name": "Product 760",
"sku": "sku 761",
"updated_datetime": "2026-01-23T19:52:57.726252Z"
},
"quantity": "2.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"leaflink_order_number": null,
"metrc_transfer_id": null,
"order_datetime": "2026-01-23T19:52:57.634932Z",
"order_number": "SO-20",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-732@example.com",
"full_name": "FirstName1516 LastName1517",
"id": "00000000-0000-0000-0000-000000016e87",
"role": {
"id": "00000000-0000-0000-0000-000000016d72",
"name": "Admin 723"
}
},
"shipping_location": null,
"status": "COMPLETED",
"total": "320.00",
"updated_datetime": "2026-01-23T19:52:57.753245Z"
}
}
GET /orders/:id returns cost data for order items
GET /public/v1/orders/63d10004-4a6f-4006-a8db-56a4f0c211fe
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODUsImlhdCI6MTc2OTE5Nzk4NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNzUyNzUwYzktMjM1Yy00NzJhLWIxMDQtNmMxZjEyZTU1NGRkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTg0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTUwMzAiLCJ0eXAiOiJhY2Nlc3MifQ.V-pC9gS5-iK9ATw76jnnJx_MBfKg2NRuu9lyCkAycg8
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 6c29b9d287d7d8000000000000000001-74342def0a41a51a-0
{
"data": {
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000009475",
"name": "Company 1482",
"updated_datetime": "2026-01-23T19:53:05.645053Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1911@example.com",
"full_name": "FirstName3876 LastName3877",
"id": "00000000-0000-0000-0000-00000001733b",
"role": {
"id": "00000000-0000-0000-0000-0000000171ff",
"name": "Admin 1888"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-01-23T19:53:05.645921Z",
"external_notes": null,
"id": "63d10004-4a6f-4006-a8db-56a4f0c211fe",
"inserted_datetime": "2026-01-23T19:53:05.654062Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000057e8",
"name": "B2567"
},
"compliance_quantity": null,
"cost_per_unit": "10.026",
"cost_per_unit_default": "5",
"id": "492ac16d-72ef-4535-bdc8-18f62dd4ea1b",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000010a65",
"id": "00000000-0000-0000-0000-000000006fad",
"license_id": null,
"name": "Place 464"
},
"package": null,
"price": "190903.000000000",
"price_base": "190903",
"product": {
"id": "da2244df-1c10-4390-a704-a13326cfefbf",
"name": "Product 2565",
"sku": "sku 2566",
"updated_datetime": "2026-01-23T19:53:05.595714Z"
},
"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": "2026-01-23T19:53:05.645923Z",
"order_number": "SO-0000001",
"owner": null,
"shipping_location": null,
"status": "PROCESSING",
"total": "381806.00",
"updated_datetime": "2026-01-23T19:53:05.654062Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzgsImlhdCI6MTc2OTE5Nzk3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTQ1YWEzNjMtYjI1Yy00MDQyLTk4M2QtYWM2ZDM3ZTE1NzNiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQwNjgiLCJ0eXAiOiJhY2Nlc3MifQ.JPAR7F89E44OPc06WUNu4f66k8yeFg7K9zspOU6Tt38
{
"billing_location_id": "00000000-0000-0000-0000-000000006e7f",
"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-0000000091e3",
"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-000000006e7f",
"price_base": "10.000000000",
"product_id": "eb21df36-d355-4c65-831f-9168822f2fac",
"quantity": "1.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"owner_id": "00000000-0000-0000-0000-000000016f74",
"shipping_location_id": "00000000-0000-0000-0000-000000006e7f",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: aa82f943088e08000000000000000001-932e4cdd43f4c1ca-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000010763",
"id": "00000000-0000-0000-0000-000000006e7f",
"license_id": "00000000-0000-0000-0000-0000000045dd",
"name": "Place 163"
},
"biotrack_id": null,
"charges": [
{
"id": "543425ae-f0d1-41d0-bfa6-c513f7103dd5",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "24dbf79e-ee35-406b-b71d-b83cc783e2a2",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000091e3",
"name": "Company 713",
"updated_datetime": "2026-01-23T19:52:58.655388Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000016f74",
"role": {
"id": "00000000-0000-0000-0000-000000016e58",
"name": "Admin 953"
}
},
"custom_data": [
{
"id": 356,
"name": "Custom Field 14",
"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": "d5762b44-48cd-41f1-bb12-61cf18012e00",
"inserted_datetime": "2026-01-23T19:52:58.799597Z",
"internal_notes": "Internal notes for this order",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000055e8",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "5c71bcc1-1de8-4e44-a86e-c5de5316c3f2",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000010763",
"id": "00000000-0000-0000-0000-000000006e7f",
"license_id": "00000000-0000-0000-0000-0000000045dd",
"name": "Place 163"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "eb21df36-d355-4c65-831f-9168822f2fac",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-01-23T19:52:58.738973Z"
},
"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,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000016f74",
"role": {
"id": "00000000-0000-0000-0000-000000016e58",
"name": "Admin 953"
}
},
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000010763",
"id": "00000000-0000-0000-0000-000000006e7f",
"license_id": "00000000-0000-0000-0000-0000000045dd",
"name": "Place 163"
},
"status": "PROCESSING",
"total": "6.00",
"updated_datetime": "2026-01-23T19:52:58.847444Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODEsImlhdCI6MTc2OTE5Nzk4MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGVmZmEzYWUtYjU1YS00OTY4LWEyYjUtYjFjOGFhMWJlODQxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTgwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQ1ODIiLCJ0eXAiOiJhY2Nlc3MifQ.2-WzMktxTR-EkL3TBjO87MTc-hAjIUPsbVGXIiwhOrA
{
"billing_location_id": "00000000-0000-0000-0000-000000006f0e",
"charges": [],
"company_id": "00000000-0000-0000-0000-00000000931c",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000006f0e",
"price_base": "10.000000000",
"product_id": "675da004-d839-4bac-8cbf-f682f3fdf096",
"quantity": "1.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-000000006f0e",
"status": "PROCESSING"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: e0213a3f5e4e20000000000000000001-b8140d4f1ccb765e-0
{
"errors": [
{
"context": {
"id": "ee3cd0d2-54db-499b-898c-a266a434106d"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODEsImlhdCI6MTc2OTE5Nzk4MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGVmZmEzYWUtYjU1YS00OTY4LWEyYjUtYjFjOGFhMWJlODQxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTgwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQ1ODIiLCJ0eXAiOiJhY2Nlc3MifQ.2-WzMktxTR-EkL3TBjO87MTc-hAjIUPsbVGXIiwhOrA
{
"billing_location_id": "00000000-0000-0000-0000-000000006f0e",
"blaze_payment_type": "CASH",
"charges": [],
"company_id": "00000000-0000-0000-0000-00000000931c",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000006f0e",
"price_base": "10.000000000",
"product_id": "675da004-d839-4bac-8cbf-f682f3fdf096",
"quantity": "1.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-000000006f0e",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: e0213a3f5e4e20000000000000000001-dc66b41d672f6de1-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000108d8",
"id": "00000000-0000-0000-0000-000000006f0e",
"license_id": "00000000-0000-0000-0000-000000004612",
"name": "Place 306"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000000931c",
"name": "Company 1086",
"updated_datetime": "2026-01-23T19:53:01.531729Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1467@example.com",
"full_name": "FirstName2988 LastName2989",
"id": "00000000-0000-0000-0000-000000017176",
"role": {
"id": "00000000-0000-0000-0000-00000001704a",
"name": "Admin 1451"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "a62ccd8f-fa81-4c07-8627-7ac022b53018",
"inserted_datetime": "2026-01-23T19:53:01.647257Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000056e1",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "e4e26d9a-ed8d-41ca-af83-d67868777cb6",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000108d8",
"id": "00000000-0000-0000-0000-000000006f0e",
"license_id": "00000000-0000-0000-0000-000000004612",
"name": "Place 306"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "675da004-d839-4bac-8cbf-f682f3fdf096",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-01-23T19:53:01.578488Z"
},
"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-0000002",
"owner": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000108d8",
"id": "00000000-0000-0000-0000-000000006f0e",
"license_id": "00000000-0000-0000-0000-000000004612",
"name": "Place 306"
},
"status": "PROCESSING",
"total": "10.00",
"updated_datetime": "2026-01-23T19:53:01.647257Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODMsImlhdCI6MTc2OTE5Nzk4MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiY2Q0MDFkZDgtYjljMy00ZWI1LThiMTgtZGIxNDFkOWI2OTg1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTgyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQ4MzkiLCJ0eXAiOiJhY2Nlc3MifQ.G2IvpZQgOuyEs55-V6wMvNNwwKCle9mvPHmfzODk9CA
{
"billing_location_id": "00000000-0000-0000-0000-000000006f72",
"charges": [],
"company_id": "00000000-0000-0000-0000-0000000093d0",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000006f72",
"position": 1,
"price_base": "100.000000000",
"product_id": "ac89f737-0bc1-4fa8-98a6-b36d72193c90",
"quantity": "80.000000000"
},
{
"location_id": "00000000-0000-0000-0000-000000006f72",
"position": 2,
"price_base": "200.000000000",
"product_id": "ac89f737-0bc1-4fa8-98a6-b36d72193c90",
"quantity": "10.000000000"
},
{
"location_id": "00000000-0000-0000-0000-000000006f72",
"position": 3,
"price_base": "300.000000000",
"product_id": "51eeace1-87ae-446f-98c9-ac17d8383e75",
"quantity": "20.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-000000006f72",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 000c94cb369e3b1a0000000000000001-4d8ce097afa1c284-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000109a5",
"id": "00000000-0000-0000-0000-000000006f72",
"license_id": "00000000-0000-0000-0000-00000000462a",
"name": "Place 405"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000093d0",
"name": "Company 1289",
"updated_datetime": "2026-01-23T19:53:03.480247Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1721@example.com",
"full_name": "FirstName3496 LastName3497",
"id": "00000000-0000-0000-0000-000000017277",
"role": {
"id": "00000000-0000-0000-0000-00000001713c",
"name": "Admin 1693"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "ce1ce694-32ff-434a-b42c-b4d5a6bdf803",
"inserted_datetime": "2026-01-23T19:53:03.573515Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005768",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "689af542-cc0a-4ceb-a71e-8c157c8fdcd7",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000109a5",
"id": "00000000-0000-0000-0000-000000006f72",
"license_id": "00000000-0000-0000-0000-00000000462a",
"name": "Place 405"
},
"package": null,
"price": "80.000000000",
"price_base": "100.000000000",
"product": {
"id": "ac89f737-0bc1-4fa8-98a6-b36d72193c90",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-01-23T19:53:03.508795Z"
},
"quantity": "80.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005768",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "ef55833b-84f2-4197-a59e-874d93fe7e96",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000109a5",
"id": "00000000-0000-0000-0000-000000006f72",
"license_id": "00000000-0000-0000-0000-00000000462a",
"name": "Place 405"
},
"package": null,
"price": "180.000000000",
"price_base": "200.000000000",
"product": {
"id": "ac89f737-0bc1-4fa8-98a6-b36d72193c90",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-01-23T19:53:03.508795Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005769",
"name": "B2"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "072472ba-219d-4fc8-9f5a-fce37aa4d3fe",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000109a5",
"id": "00000000-0000-0000-0000-000000006f72",
"license_id": "00000000-0000-0000-0000-00000000462a",
"name": "Place 405"
},
"package": null,
"price": "270.000000000",
"price_base": "300.000000000",
"product": {
"id": "51eeace1-87ae-446f-98c9-ac17d8383e75",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-01-23T19:53:03.524997Z"
},
"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-0000000109a5",
"id": "00000000-0000-0000-0000-000000006f72",
"license_id": "00000000-0000-0000-0000-00000000462a",
"name": "Place 405"
},
"status": "PROCESSING",
"total": "13600.00",
"updated_datetime": "2026-01-23T19:53:03.598235Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODQsImlhdCI6MTc2OTE5Nzk4NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDkzNjNhYzktNWYwOC00ZWM4LTlmMDMtOGRhMWMzZTVhM2ExIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTgzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQ5NDgiLCJ0eXAiOiJhY2Nlc3MifQ.TIrkXi3FuaWDGnZoSe2oBaTfKE6AO_h1AMYVrnmS97Q
{
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"batch_id": "00000000-0000-0000-0000-0000000057b4",
"location_id": "00000000-0000-0000-0000-000000006f90",
"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: 8463dc6f51ebc8000000000000000001-bdc65d4f1d073fe4-0
{
"data": {
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": null,
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-0000000172e4",
"role": {
"id": "00000000-0000-0000-0000-0000000171a9",
"name": "Admin 1802"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "f5b96379-af98-4598-96ca-acb144b4081d",
"inserted_datetime": "2026-01-23T19:53:04.582126Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000057b4",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "ade4c5d7-b7e0-4025-b38f-65204437ad91",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000010a14",
"id": "00000000-0000-0000-0000-000000006f90",
"license_id": "00000000-0000-0000-0000-000000004633",
"name": "Place 435"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "616c0087-8c89-4848-80f3-dc547478e975",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-01-23T19:53:04.557738Z"
},
"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": "2026-01-23T19:53:04.582126Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODAsImlhdCI6MTc2OTE5Nzk4MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGZjMDY5OGEtODhlMy00MWIxLWI1MWYtOGFiZThiNTA5MGRhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQzMDQiLCJ0eXAiOiJhY2Nlc3MifQ.25xMUTPdl3CwEO4KNBQrYiwkX7cBFTF-FWiCBd12lSU
{
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000006ecf",
"price_base": "10.000000000",
"product_id": "354ea4e5-b52c-45b4-91d7-f17f85a0ccb8",
"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: b0af91d4009cf0000000000000000001-5dfc7b5048587dc2-0
{
"data": {
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": null,
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000017060",
"role": {
"id": "00000000-0000-0000-0000-000000016f3b",
"name": "Admin 1180"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "4a524ffa-e939-40f7-bca2-99bffee6b6ce",
"inserted_datetime": "2026-01-23T19:53:00.219638Z",
"internal_notes": null,
"items": [
{
"batch": null,
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "7a8bd43e-29c0-4c1c-a60f-09c9d79a68d7",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000001082f",
"id": "00000000-0000-0000-0000-000000006ecf",
"license_id": "00000000-0000-0000-0000-0000000045fd",
"name": "Place 243"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "354ea4e5-b52c-45b4-91d7-f17f85a0ccb8",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-01-23T19:53:00.198990Z"
},
"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": "2026-01-23T19:53:00.219638Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODYsImlhdCI6MTc2OTE5Nzk4NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiODdmOGRmN2ItMDY0OC00NzU2LTk4OTEtM2UyYzkxNzgwNmYxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTg1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTUwNzIiLCJ0eXAiOiJhY2Nlc3MifQ.DyjRmgpZQs3LiPSmgpLxH2MzGzsPsA0lQPbgbvI_5cY
{
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"compliance_quantity": "1.0000",
"is_sample": true,
"location_id": "00000000-0000-0000-0000-000000006fb8",
"package_id": "00000000-0000-0000-0000-00000000208e",
"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: ad8750fc844468000000000000000001-71a281df693b9dc7-0
{
"data": {
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": null,
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1944@example.com",
"full_name": "FirstName3942 LastName3943",
"id": "00000000-0000-0000-0000-000000017360",
"role": {
"id": "00000000-0000-0000-0000-000000017224",
"name": "Admin 1925"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "beb6a0f3-25cb-4fe4-8eb2-e844c0e6f54f",
"inserted_datetime": "2026-01-23T19:53:06.604114Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000057f3",
"name": "B1"
},
"compliance_quantity": "1.0000",
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "334decc0-929b-45b2-9aa7-b43a84d413cb",
"is_sample": true,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000010a82",
"id": "00000000-0000-0000-0000-000000006fb8",
"license_id": "00000000-0000-0000-0000-000000004646",
"name": "Place 475"
},
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000000170",
"id": "00000000-0000-0000-0000-00000000208e",
"metrc_label": "ABCDEF012345670000000170",
"status": "selling"
},
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "63b1fac2-a82e-4386-8416-94086d3d250e",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-01-23T19:53:06.525114Z"
},
"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": "2026-01-23T19:53:06.604114Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODYsImlhdCI6MTc2OTE5Nzk4NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTE5YjRhNWItYjUyMy00OGIzLWExYmItOWU3OTUwNWZiOTI0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTg1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTUwNjkiLCJ0eXAiOiJhY2Nlc3MifQ.9nsGhpO7TPmDc6x6kK8euAb5xmy1EpIh8-hrdrTmj6A
{
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000006fb7",
"price_base": "10.000000000",
"product_id": "6f91a4d6-d57c-4cac-b435-e6a5f9763c5d",
"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: 853b0e009dfbb8000000000000000001-49d9c14a6f5afc12-0
{
"data": {
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": null,
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-00000001735d",
"role": {
"id": "00000000-0000-0000-0000-000000017221",
"name": "Admin 1922"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "ddba8667-30df-4192-9201-332755650b2f",
"inserted_datetime": "2026-01-23T19:53:06.432998Z",
"internal_notes": null,
"items": [
{
"batch": null,
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "fbf72ef9-dcdb-445c-a834-30000b934337",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000010a80",
"id": "00000000-0000-0000-0000-000000006fb7",
"license_id": "00000000-0000-0000-0000-000000004645",
"name": "Place 474"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "6f91a4d6-d57c-4cac-b435-e6a5f9763c5d",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-01-23T19:53:06.417754Z"
},
"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": "2026-01-23T19:53:06.432998Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODYsImlhdCI6MTc2OTE5Nzk4NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMGM2ZGMwMmMtZWE5Ny00MjIwLWFiMTQtMGVkNDk1N2VlZWViIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTg1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTUwNTkiLCJ0eXAiOiJhY2Nlc3MifQ.yvYDxHzbRa6RCE5bl0jyUh1ctSbkkicMbEtj2tQHT_4
{
"billing_location_id": "00000000-0000-0000-0000-000000006fb4",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000009482",
"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": "6b1d0a44-de5e-4a00-bf46-708b0d018674",
"location_id": "00000000-0000-0000-0000-000000006fb4",
"package_id": "00000000-0000-0000-0000-00000000208c",
"price_base": "10.000000000",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000006fb4",
"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",
"estimated_arrival_datetime": "2020-01-01T10:30:00.000000Z",
"estimated_departure_datetime": "2020-01-01T08:00:00.000000Z",
"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",
"estimated_arrival_datetime": "2020-01-01T16:45:00.000000Z",
"estimated_departure_datetime": "2020-01-01T14:00:00.000000Z",
"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-000000017353",
"shipping_location_id": "00000000-0000-0000-0000-000000006fb4",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 46c69e8cf55044000000000000000001-4bef4cda00c7adf2-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000010a79",
"id": "00000000-0000-0000-0000-000000006fb4",
"license_id": "00000000-0000-0000-0000-000000004643",
"name": "Place 471"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000009482",
"name": "Company 1501",
"updated_datetime": "2026-01-23T19:53:06.003513Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000017353",
"role": {
"id": "00000000-0000-0000-0000-000000017217",
"name": "Admin 1912"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "d601b4f4-4c68-4aaa-a43a-e197cfda90d2",
"inserted_datetime": "2026-01-23T19:53:06.111151Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000057f1",
"name": "B2"
},
"compliance_quantity": "1.0000",
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "6b1d0a44-de5e-4a00-bf46-708b0d018674",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000010a79",
"id": "00000000-0000-0000-0000-000000006fb4",
"license_id": "00000000-0000-0000-0000-000000004643",
"name": "Place 471"
},
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000000166",
"id": "00000000-0000-0000-0000-00000000208c",
"metrc_label": "ABCDEF012345670000000166",
"status": "selling"
},
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "d21ed8fc-8234-4cd5-98a8-8a6d5e282ea8",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-01-23T19:53:06.018014Z"
},
"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,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000017353",
"role": {
"id": "00000000-0000-0000-0000-000000017217",
"name": "Admin 1912"
}
},
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000010a79",
"id": "00000000-0000-0000-0000-000000006fb4",
"license_id": "00000000-0000-0000-0000-000000004643",
"name": "Place 471"
},
"status": "PROCESSING",
"total": "10.00",
"updated_datetime": "2026-01-23T19:53:06.173831Z"
}
}
POST /public/v1/orders updates an order
POST /public/v1/orders
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODAsImlhdCI6MTc2OTE5Nzk4MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYzhmYzNlYzktM2JmOC00N2ExLWEwZGMtMTFhZmM3ZjJmM2RiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQ0NzQiLCJ0eXAiOiJhY2Nlc3MifQ.BBhGxbh2pZfdBC2eMOLmlO5aAutEAoIxS2-SCed0F2Q
{
"billing_location_id": "00000000-0000-0000-0000-000000006ef6",
"charges": [
{
"id": "b6b47ef5-ed1e-46cd-8945-d75cdef67900",
"name": "C1",
"percent": "10.0000",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "7053d450-e716-435d-82a5-bc5b85636c8d",
"name": "C2",
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company_id": "00000000-0000-0000-0000-0000000092ee",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": "gonna make you sweat",
"id": "a6cca953-bced-4127-91f3-0c46c06a3c6e",
"items": [
{
"id": "4eec6b8b-3f74-4f4d-9575-795982a47ddd",
"is_sample": true,
"location_id": "00000000-0000-0000-0000-000000006ef6",
"price_base": "10.000000000",
"product_id": "7bb9e5bc-3a83-4ba7-8439-b73d255be830",
"quantity": "2.000000000"
},
{
"id": "e365a2c7-36ea-49ed-9eef-4cb79ab76c9e",
"location_id": "00000000-0000-0000-0000-000000006ef6",
"price_base": "100.000000000",
"product_id": "7bb9e5bc-3a83-4ba7-8439-b73d255be830",
"quantity": "3.000000000"
},
{
"compliance_quantity": "1.0000",
"id": "e45ffa12-c841-4b62-afbc-b52f45efe787",
"location_id": "00000000-0000-0000-0000-000000006ef6",
"package_id": "00000000-0000-0000-0000-00000000207b",
"price_base": "10.000000000",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000006ef6",
"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-00000001711d",
"shipping_location_id": "00000000-0000-0000-0000-000000006ef6",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 08004610ed5359800000000000000001-ef193c5125f0308e-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000010899",
"id": "00000000-0000-0000-0000-000000006ef6",
"license_id": "00000000-0000-0000-0000-00000000460b",
"name": "Place 282"
},
"biotrack_id": null,
"charges": [
{
"id": "b6b47ef5-ed1e-46cd-8945-d75cdef67900",
"name": "C1",
"percent": "10.0000",
"price": "33.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "7053d450-e716-435d-82a5-bc5b85636c8d",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000092ee",
"name": "Company 1026",
"updated_datetime": "2026-01-23T19:53:00.832990Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000017106",
"role": {
"id": "00000000-0000-0000-0000-000000016fde",
"name": "Admin 1344"
}
},
"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": "a6cca953-bced-4127-91f3-0c46c06a3c6e",
"inserted_datetime": "2026-01-23T19:53:00.867638Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000056bd",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "4eec6b8b-3f74-4f4d-9575-795982a47ddd",
"is_sample": true,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000010899",
"id": "00000000-0000-0000-0000-000000006ef6",
"license_id": "00000000-0000-0000-0000-00000000460b",
"name": "Place 282"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "7bb9e5bc-3a83-4ba7-8439-b73d255be830",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-01-23T19:53:00.852438Z"
},
"quantity": "2.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000056bd",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "e365a2c7-36ea-49ed-9eef-4cb79ab76c9e",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000010899",
"id": "00000000-0000-0000-0000-000000006ef6",
"license_id": "00000000-0000-0000-0000-00000000460b",
"name": "Place 282"
},
"package": null,
"price": "100.000000000",
"price_base": "100.000000000",
"product": {
"id": "7bb9e5bc-3a83-4ba7-8439-b73d255be830",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-01-23T19:53:00.852438Z"
},
"quantity": "3.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000056be",
"name": "B2"
},
"compliance_quantity": "1.0000",
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "e45ffa12-c841-4b62-afbc-b52f45efe787",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000010899",
"id": "00000000-0000-0000-0000-000000006ef6",
"license_id": "00000000-0000-0000-0000-00000000460b",
"name": "Place 282"
},
"package": {
"batch_number": "B2",
"compliance_label": "ABCDEF012345670000000134",
"id": "00000000-0000-0000-0000-00000000207b",
"metrc_label": "ABCDEF012345670000000134",
"status": "selling"
},
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "f98ac88d-0c04-4c0d-9e1d-0f2c8509cb08",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-01-23T19:53:00.880225Z"
},
"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-53",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1381@example.com",
"full_name": "FirstName2816 LastName2817",
"id": "00000000-0000-0000-0000-00000001711d",
"role": {
"id": "00000000-0000-0000-0000-000000016ff4",
"name": "Admin 1365"
}
},
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000010899",
"id": "00000000-0000-0000-0000-000000006ef6",
"license_id": "00000000-0000-0000-0000-00000000460b",
"name": "Place 282"
},
"status": "PROCESSING",
"total": "358.00",
"updated_datetime": "2026-01-23T19:53:01.057284Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODcsImlhdCI6MTc2OTE5Nzk4NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiYWEzNjI1MDktYjkxNy00NjM3LWJhMjEtZTQxMTVkYTQzOWNhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTg2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTUxMjQiLCJ0eXAiOiJhY2Nlc3MifQ.bL_Qp-xvukzHxyH1txIy4UVG98_uBDjIWWBz9w9XLUo
{
"billing_location_id": "00000000-0000-0000-0000-000000006fc4",
"charges": [],
"company_id": "00000000-0000-0000-0000-0000000094bb",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000006fc4",
"position": 1,
"price_base": "100.000000000",
"product_id": "5b63f37a-1026-41ec-a5fc-9ff4c3c4ff9a",
"quantity": "10.000000000"
},
{
"location_id": "00000000-0000-0000-0000-000000006fc4",
"position": 2,
"price_base": "200.000000000",
"product_id": "f76dec6e-8b8c-4d29-a09c-1a6c55b54143",
"quantity": "10.000000000"
},
{
"location_id": "00000000-0000-0000-0000-000000006fc4",
"position": 3,
"price_base": "300.000000000",
"product_id": "742a882c-b98c-4705-8c1a-dcfd985050d7",
"quantity": "10.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-000000006fc4",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 9a9dcaf77e4928000000000000000001-633b18eaa7475e0c-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000010abb",
"id": "00000000-0000-0000-0000-000000006fc4",
"license_id": "00000000-0000-0000-0000-000000004648",
"name": "Place 487"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000094bb",
"name": "Company 1567",
"updated_datetime": "2026-01-23T19:53:07.821348Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1996@example.com",
"full_name": "FirstName4046 LastName4047",
"id": "00000000-0000-0000-0000-000000017394",
"role": {
"id": "00000000-0000-0000-0000-000000017257",
"name": "Admin 1976"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "fe9dd6d9-3aa8-487e-8353-a648ba1b22b8",
"inserted_datetime": "2026-01-23T19:53:07.932746Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000581e",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "ef1543fd-993a-4e6d-9612-43cae34602b6",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000010abb",
"id": "00000000-0000-0000-0000-000000006fc4",
"license_id": "00000000-0000-0000-0000-000000004648",
"name": "Place 487"
},
"package": null,
"price": "90.000000000",
"price_base": "100.000000000",
"product": {
"id": "5b63f37a-1026-41ec-a5fc-9ff4c3c4ff9a",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-01-23T19:53:07.845288Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000581f",
"name": "B2"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "614a93a7-c068-490c-9912-81ec4f98a601",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000010abb",
"id": "00000000-0000-0000-0000-000000006fc4",
"license_id": "00000000-0000-0000-0000-000000004648",
"name": "Place 487"
},
"package": null,
"price": "200.000000000",
"price_base": "200.000000000",
"product": {
"id": "f76dec6e-8b8c-4d29-a09c-1a6c55b54143",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-01-23T19:53:07.864959Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005820",
"name": "B3"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "d6b20c96-c94c-4fa1-811a-3c16670dcd57",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000010abb",
"id": "00000000-0000-0000-0000-000000006fc4",
"license_id": "00000000-0000-0000-0000-000000004648",
"name": "Place 487"
},
"package": null,
"price": "290.000000000",
"price_base": "300.000000000",
"product": {
"id": "742a882c-b98c-4705-8c1a-dcfd985050d7",
"name": "P3",
"sku": "SKU3",
"updated_datetime": "2026-01-23T19:53:07.882101Z"
},
"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-000000010abb",
"id": "00000000-0000-0000-0000-000000006fc4",
"license_id": "00000000-0000-0000-0000-000000004648",
"name": "Place 487"
},
"status": "PROCESSING",
"total": "5800.00",
"updated_datetime": "2026-01-23T19:53:07.967922Z"
}
}
POST /public/v1/orders deleting order items & charges
POST /public/v1/orders
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODIsImlhdCI6MTc2OTE5Nzk4MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiY2Q3OGNiODctMWMyZC00ZDdmLTg3NmMtOGM2Y2EyNGZkOTVlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTgxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQ3NjgiLCJ0eXAiOiJhY2Nlc3MifQ.7fFz4y1-OK7S5U0m3gEGfpsEbl78QC6SpN4rg7TYVIw
{
"billing_location_id": "00000000-0000-0000-0000-000000006f55",
"charges": [],
"company_id": "00000000-0000-0000-0000-0000000093a4",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"id": "dacdf071-c7f8-481c-836d-42666c9ed57b",
"items": [
{
"id": "a0a1375f-2412-4a67-afdd-2fb49a378930",
"location_id": "00000000-0000-0000-0000-000000006f55",
"price_base": "10.000000000",
"product_id": "033d7c44-08e7-40d6-b486-bc0a55c82ad2",
"quantity": "1.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-000000006f55",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: ecb44357df5b70000000000000000001-695dfdd7ed05591f-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000010972",
"id": "00000000-0000-0000-0000-000000006f55",
"license_id": "00000000-0000-0000-0000-000000004622",
"name": "Place 376"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000093a4",
"name": "Company 1240",
"updated_datetime": "2026-01-23T19:53:02.668855Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000017230",
"role": {
"id": "00000000-0000-0000-0000-0000000170f5",
"name": "Admin 1622"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "dacdf071-c7f8-481c-836d-42666c9ed57b",
"inserted_datetime": "2026-01-23T19:53:02.732919Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005745",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "a0a1375f-2412-4a67-afdd-2fb49a378930",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000010972",
"id": "00000000-0000-0000-0000-000000006f55",
"license_id": "00000000-0000-0000-0000-000000004622",
"name": "Place 376"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "033d7c44-08e7-40d6-b486-bc0a55c82ad2",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-01-23T19:53:02.708327Z"
},
"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-77",
"owner": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000010972",
"id": "00000000-0000-0000-0000-000000006f55",
"license_id": "00000000-0000-0000-0000-000000004622",
"name": "Place 376"
},
"status": "PROCESSING",
"total": "10.00",
"updated_datetime": "2026-01-23T19:53:02.818541Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzgsImlhdCI6MTc2OTE5Nzk3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDY0ZGUxNDYtYzY2NS00NDY4LTk4ODMtMzg4ODIzODQ0OWYyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM5ODgiLCJ0eXAiOiJhY2Nlc3MifQ.DrhaJA-9FFc4TsjY_Z9UnrM-Tx7LEecCb4PzJUDBANk
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 835dd5fd394aa8000000000000000001-9bae17bea5721f9a-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000050",
"custom_data": [
{
"id": 353,
"name": "Custom Field 11",
"value": "Custom Field Value 1"
}
],
"expiration_date": "2024-01-01T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-00000000204f",
"is_trade_sample": true,
"license": {
"id": "00000000-0000-0000-0000-0000000045d4",
"license_number": "CDPH-00000040"
},
"location": {
"id": "00000000-0000-0000-0000-000000006e6d",
"name": "Place 145"
},
"metrc_label": "ABCDEF012345670000000050",
"primary_test_result": null,
"product_id": "c0a0b6cc-514c-4b21-a3cc-b55b6874fbc9",
"product_unit_quantity": "7.500000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-0000000e6a95",
"name": "3"
},
"quantity": "5.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "5.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-0000000e6a96",
"name": "2"
}
},
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000056",
"custom_data": [
{
"id": 353,
"name": "Custom Field 11",
"value": null
}
],
"expiration_date": null,
"id": "00000000-0000-0000-0000-000000002052",
"is_trade_sample": false,
"license": {
"id": "00000000-0000-0000-0000-0000000045d4",
"license_number": "CDPH-00000040"
},
"location": {
"id": "00000000-0000-0000-0000-000000006e73",
"name": "Place 151"
},
"metrc_label": "ABCDEF012345670000000056",
"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": "c0a0b6cc-514c-4b21-a3cc-b55b6874fbc9",
"product_unit_quantity": "15.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-0000000e6a95",
"name": "3"
},
"quantity": "20.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "20.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-0000000e6a97",
"name": "4"
}
}
],
"next_page": null
}
GET /public/v1/packages returns cost data when include_costs is true
GET /public/v1/packages?include_costs=true
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzksImlhdCI6MTc2OTE5Nzk3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiODI0MzAyMzItZTlkMi00ZjU5LTk5OGQtMmUwMzcyOTRhODM5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQxOTQiLCJ0eXAiOiJhY2Nlc3MifQ.iDWfHZ5s1LCA-oAQPV21Bi-nFkJYlfC6MgGCe1DHD7s
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 53b3d34558bfc8000000000000000001-bf592ee2637b9e3d-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000108",
"cost_per_unit_actual": "0.4",
"cost_per_unit_default": "0.2",
"custom_data": [],
"expiration_date": null,
"id": "00000000-0000-0000-0000-00000000206e",
"is_trade_sample": false,
"license": {
"id": "00000000-0000-0000-0000-0000000045f4",
"license_number": "CDPH-00000072"
},
"location": {
"id": "00000000-0000-0000-0000-000000006eb4",
"name": "Place 216"
},
"metrc_label": "ABCDEF012345670000000108",
"primary_test_result": null,
"product_id": "5a70c0a5-4d28-445e-9bf7-ef56d0ebc5c2",
"product_unit_quantity": "141.747462720",
"product_unit_type": {
"id": "00000000-0000-0000-0000-0000000e7322",
"name": "Gram"
},
"quantity": "5.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "5.000000000",
"status": "active",
"total_cost_actual": "2",
"total_cost_default": "1",
"unit_type": {
"id": "00000000-0000-0000-0000-0000000e7324",
"name": "Ounce"
}
}
],
"next_page": null
}
GET /public/v1/packages allows filtering by product_ids
GET /public/v1/packages?product_ids[]=ea3a2c11-dc23-465a-b3ef-8f1ffe6be921&product_ids[]=444629e7-01cb-4daa-bf1f-99355dcf6447
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzgsImlhdCI6MTc2OTE5Nzk3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTA1NjQ1NDAtMWNlZS00ZWU0LTk3MjgtZWIzYzIzM2Y3NTNiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQxMTMiLCJ0eXAiOiJhY2Nlc3MifQ.oE11sF6RML7FRW4eMJwtyxco4uuQdQxZepwiQU_sCVw
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: a58107d282e430000000000000000001-58082a9a79cf80f3-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000089",
"custom_data": [],
"expiration_date": null,
"id": "00000000-0000-0000-0000-000000002062",
"is_trade_sample": false,
"license": {
"id": "00000000-0000-0000-0000-0000000045e7",
"license_number": "CDPH-00000059"
},
"location": {
"id": "00000000-0000-0000-0000-000000006e95",
"name": "Place 185"
},
"metrc_label": "ABCDEF012345670000000089",
"primary_test_result": null,
"product_id": "ea3a2c11-dc23-465a-b3ef-8f1ffe6be921",
"product_unit_quantity": "10.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-0000000e6f4a",
"name": "Gram"
},
"quantity": "10.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "10.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-0000000e6f4a",
"name": "Gram"
}
},
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000091",
"custom_data": [],
"expiration_date": null,
"id": "00000000-0000-0000-0000-000000002063",
"is_trade_sample": false,
"license": {
"id": "00000000-0000-0000-0000-0000000045e7",
"license_number": "CDPH-00000059"
},
"location": {
"id": "00000000-0000-0000-0000-000000006e97",
"name": "Place 187"
},
"metrc_label": "ABCDEF012345670000000091",
"primary_test_result": null,
"product_id": "444629e7-01cb-4daa-bf1f-99355dcf6447",
"product_unit_quantity": "10.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-0000000e6f4a",
"name": "Gram"
},
"quantity": "10.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "10.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-0000000e6f4a",
"name": "Gram"
}
}
],
"next_page": null
}
GET /public/v1/packages allows filtering by location_ids
GET /public/v1/packages?location_ids[]=00000000-0000-0000-0000-000000006eac&location_ids[]=00000000-0000-0000-0000-000000006ead
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzksImlhdCI6MTc2OTE5Nzk3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTY4ZGM1NjktMGU1ZC00NTFjLWFlYTItZjcyMGFiYzg0MGNhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQxNzMiLCJ0eXAiOiJhY2Nlc3MifQ.tXgT4wvUpTOcKMmh_tmxwKEiHtaseRad1i6SN60VdWw
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 88da5fbe7ce9b0000000000000000001-fd433044efc73f1c-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000103",
"custom_data": [],
"expiration_date": null,
"id": "00000000-0000-0000-0000-00000000206a",
"is_trade_sample": false,
"license": {
"id": "00000000-0000-0000-0000-0000000045f1",
"license_number": "CDPH-00000069"
},
"location": {
"id": "00000000-0000-0000-0000-000000006eac",
"name": "Place 208"
},
"metrc_label": "ABCDEF012345670000000103",
"primary_test_result": null,
"product_id": "5c5b79b7-1eb5-4da7-b95b-5d290d822b97",
"product_unit_quantity": "10.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-0000000e7226",
"name": "Gram"
},
"quantity": "10.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "10.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-0000000e7226",
"name": "Gram"
}
},
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000105",
"custom_data": [],
"expiration_date": null,
"id": "00000000-0000-0000-0000-00000000206c",
"is_trade_sample": false,
"license": {
"id": "00000000-0000-0000-0000-0000000045f1",
"license_number": "CDPH-00000069"
},
"location": {
"id": "00000000-0000-0000-0000-000000006ead",
"name": "Place 209"
},
"metrc_label": "ABCDEF012345670000000105",
"primary_test_result": null,
"product_id": "0b5a54d0-63e0-48c2-bf87-2b4c7af3d0c9",
"product_unit_quantity": "10.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-0000000e7226",
"name": "Gram"
},
"quantity": "10.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "10.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-0000000e7226",
"name": "Gram"
}
}
],
"next_page": null
}
GET /public/v1/packages allows filtering by status
GET /public/v1/packages?statuses[]=active&statuses[]=finished
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzUsImlhdCI6MTc2OTE5Nzk3NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNjk4N2RkZjUtZDYzMS00NmUzLTkwNWItNDJlZDNiNzEwMjA1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTMzNTciLCJ0eXAiOiJhY2Nlc3MifQ.q6DwxKOaAL8gaN00q538m2NP5chzMsFWX1R-sQ5xBaQ
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: dae5b951610028000000000000000001-4d95c5a2fa14c6cb-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000022",
"custom_data": [],
"expiration_date": null,
"id": "00000000-0000-0000-0000-00000000203f",
"is_trade_sample": false,
"license": {
"id": "00000000-0000-0000-0000-0000000045bc",
"license_number": "CDPH-00000016"
},
"location": {
"id": "00000000-0000-0000-0000-000000006e12",
"name": "Place 53"
},
"metrc_label": "ABCDEF012345670000000022",
"primary_test_result": null,
"product_id": "8cec744e-093d-43a4-b784-77ebee578763",
"product_unit_quantity": "1.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-0000000e51e4",
"name": "Ounce"
},
"quantity": "1.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "1.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-0000000e51e4",
"name": "Ounce"
}
},
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000026",
"custom_data": [],
"expiration_date": null,
"id": "00000000-0000-0000-0000-000000002043",
"is_trade_sample": false,
"license": {
"id": "00000000-0000-0000-0000-0000000045bc",
"license_number": "CDPH-00000016"
},
"location": {
"id": "00000000-0000-0000-0000-000000006e30",
"name": "Place 84"
},
"metrc_label": "ABCDEF012345670000000026",
"primary_test_result": null,
"product_id": "4b7c0f21-b2ad-49de-9190-6ecaa28687ed",
"product_unit_quantity": "0.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-0000000e51e4",
"name": "Ounce"
},
"quantity": "0.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "0.000000000",
"status": "finished",
"unit_type": {
"id": "00000000-0000-0000-0000-0000000e51e4",
"name": "Ounce"
}
}
],
"next_page": null
}
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 | ?location_ids[]=c40e87ce-0647-409b-89fa-620275d77fcc&location_ids[]=65ca530a-1ea2-439b-b4c2-598abb1fc6f3 | |
| license_number | Filter packages by license number | query | string | false | 1234567890 | |
| product_ids | Filter packages by product ID | query | array | false | ?product_ids[]=c40e87ce-0647-409b-89fa-620275d77fcc&product_ids[]=65ca530a-1ea2-439b-b4c2-598abb1fc6f3 | |
| statuses | Filter packages by their status | query | array | false | ?statuses[]=active&statuses[]=selling&statuses[]=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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzMsImlhdCI6MTc2OTE5Nzk3MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiM2JjMzljNzItNmFkYS00ZjkwLWI1MjEtZjE0OGNmNDA3NjcxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTcyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTMwOTkiLCJ0eXAiOiJhY2Nlc3MifQ._0vKR_4SWpFnnoMPbaH3phwOrNpC31cgk8H4ze_IsDU
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 2ee51af18ce38a000000000000000001-b3524b2aed11e588-0
{
"data": [
{
"deleted_at": null,
"id": "00000000-0000-0000-0000-000000000222",
"name": "Payment Method 0"
}
],
"next_page": null
}
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
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| deleted | Filter deleted payment methods. no returns non-deleted, only returns deleted, include returns both. |
query | string | false | no |
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzcsImlhdCI6MTc2OTE5Nzk3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjA1OTRjMjEtMDY2OC00NTNhLWEwYmYtZTE5ZmE1MjkzOTIyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM3MjciLCJ0eXAiOiJhY2Nlc3MifQ.Wb5RNsGv3s1yKUACerSRxhqrvCViOa4PVSfyvtCsSbw
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: d540eb2671c580000000000000000001-bda4772f3c9a18cd-0
{
"data": [
{
"brand": {
"id": "00000000-0000-0000-0000-000000009130",
"name": "Company 465",
"updated_datetime": "2030-11-01T00:00:00.000000Z"
},
"category": {
"id": "00000000-0000-0000-0000-000000007606",
"name": "Some category 203",
"type": "OTHER"
},
"custom_data": [
{
"id": 350,
"name": "Custom Field 8",
"value": "Custom Field Value 1"
}
],
"deleted_at": null,
"description": "test",
"description_markdown": "# test",
"external_name": "External Name",
"id": "4732d618-984c-447e-b2cf-38faa82c5c02",
"images": [
{
"id": "00000000-0000-0000-0000-000000000139",
"name": "Image Name 0",
"rank": 0,
"url": "https://google.com/original-0.jpg"
},
{
"id": "00000000-0000-0000-0000-00000000013a",
"name": "Image Name 1",
"rank": 1,
"url": "https://google.com/original-1.jpg"
}
],
"is_active": true,
"msrp": null,
"name": "Product 613",
"product_group": {
"id": "00000000-0000-0000-0000-0000000060fb",
"name": "Product Group 199"
},
"sku": "sku 614",
"strain": {
"id": "00000000-0000-0000-0000-0000000003f4",
"name": "Strain 21"
},
"subcategory": {
"id": "00000000-0000-0000-0000-000000007739",
"name": "Some subcategory 199"
},
"unit_cost": null,
"unit_net_weight": "20",
"unit_net_weight_serving_size_unit_type": {
"id": "00000000-0000-0000-0000-0000000e5ff4",
"name": "Ounce"
},
"unit_price": "1",
"unit_serving_size": "10",
"unit_type": {
"id": "00000000-0000-0000-0000-0000000e5ff2",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2023-11-01T00:00:00.000000Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000009136",
"name": "Company 473",
"updated_datetime": "2030-11-03T00:00:00.000000Z"
}
},
{
"brand": {
"id": "00000000-0000-0000-0000-000000009133",
"name": "Company 471",
"updated_datetime": "2030-11-02T00:00:00.000000Z"
},
"category": {
"id": "00000000-0000-0000-0000-000000007609",
"name": "Some category 206",
"type": "OTHER"
},
"custom_data": [
{
"id": 350,
"name": "Custom Field 8",
"value": null
}
],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "dc9a2b1e-c308-4360-9623-5e7f31496869",
"images": [],
"is_active": false,
"msrp": "100",
"name": "Product 622",
"product_group": {
"id": "00000000-0000-0000-0000-0000000060ff",
"name": "Product Group 203"
},
"sku": "sku 623",
"strain": null,
"subcategory": {
"id": "00000000-0000-0000-0000-00000000773c",
"name": "Some subcategory 204"
},
"unit_cost": null,
"unit_net_weight": null,
"unit_net_weight_serving_size_unit_type": null,
"unit_price": "1",
"unit_serving_size": null,
"unit_type": {
"id": "00000000-0000-0000-0000-0000000e5ff0",
"name": "Pound"
},
"units_per_case": null,
"updated_datetime": "2023-11-02T00:00:00.000000Z",
"vendor": {
"id": "00000000-0000-0000-0000-00000000913a",
"name": "Company 479",
"updated_datetime": "2030-11-04T00:00:00.000000Z"
}
}
],
"next_page": null
}
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 |
|---|---|---|---|---|---|---|
| product_name | Filter products by name substring | query | string | false | ||
| inserted_datetime | Filter products by their creation datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| deleted | Filter deleted products. no returns non-deleted, only returns deleted, include returns both. |
query | string | false | no | |
| 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/products Creates a product with all optional fields set
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzgsImlhdCI6MTc2OTE5Nzk3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjdjMmI2MjYtNTNhZS00ZmMxLTk2NTYtNWJmNTA4ZWRmMTdjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQwMDMiLCJ0eXAiOiJhY2Nlc3MifQ.x5Av2RGrv9cDrZwREf7MFQs7tHuD3MTz_gES8M6J-jg
{
"unit_net_weight_and_serving_size_unit_type_id": "00000000-0000-0000-0000-0000000e6b08",
"id": "b97c17a6-1318-4051-9c12-4292f5f06cd1",
"is_featured": true,
"description_markdown": "# My Product Description Markdown",
"wholesale_unit_price": "90.50",
"msrp": "100.5",
"unit_type_id": "00000000-0000-0000-0000-0000000e6b0f",
"quantity_available_threshold_min": "5.5",
"total_thc": "10.4",
"brand_id": "00000000-0000-0000-0000-0000000091d4",
"sku": "12345",
"unit_price": "100",
"category_id": "00000000-0000-0000-0000-000000007684",
"unit_serving_size": "2.2",
"tags": [
"00000000-0000-0000-0000-0000000001a9"
],
"total_cbd": "5.2",
"unit_cost": "50.4",
"group_id": "00000000-0000-0000-0000-00000000617b",
"is_inactive": true,
"units_per_case": "0.2",
"menus": [
"00000000-0000-0000-0000-0000000008e9"
],
"vendor_id": "00000000-0000-0000-0000-0000000091cf",
"total_cannabinoid_unit": "PERCENT",
"menu_visibility": "INCLUDE_IN_ALL",
"inventory_tracking_method": "PACKAGE",
"description": "My Product Description",
"owner_id": "00000000-0000-0000-0000-000000016f30",
"subcategory_id": "00000000-0000-0000-0000-0000000077b7",
"quantity_available_threshold_max": "10.5",
"upc": "036000291452",
"unit_net_weight": "3.1",
"strain_id": "00000000-0000-0000-0000-0000000003f5",
"name": "My Product"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 3eb84275d678a0000000000000000001-c97b84d5103ff62b-0
{
"data": {
"brand": {
"id": "00000000-0000-0000-0000-0000000091d4",
"name": "Company 689",
"updated_datetime": "2026-01-23T19:52:58.449711Z"
},
"category": {
"id": "00000000-0000-0000-0000-000000007684",
"name": "Some category 329",
"type": "OTHER"
},
"custom_data": [
{
"id": 354,
"name": "Custom Field 12",
"value": null
}
],
"deleted_at": null,
"description": "My Product Description",
"description_markdown": "# My Product Description Markdown",
"external_name": null,
"id": "b97c17a6-1318-4051-9c12-4292f5f06cd1",
"images": [],
"is_active": false,
"msrp": "100.5",
"name": "My Product",
"product_group": {
"id": "00000000-0000-0000-0000-00000000617b",
"name": "Product Group 327"
},
"sku": "12345",
"strain": {
"id": "00000000-0000-0000-0000-0000000003f5",
"name": "Strain 22"
},
"subcategory": {
"id": "00000000-0000-0000-0000-0000000077b7",
"name": "Some subcategory 326"
},
"unit_cost": "50.4",
"unit_net_weight": "3.1",
"unit_net_weight_serving_size_unit_type": {
"id": "00000000-0000-0000-0000-0000000e6b08",
"name": "Ounce"
},
"unit_price": "100",
"unit_serving_size": "2.2",
"unit_type": {
"id": "00000000-0000-0000-0000-0000000e6b0f",
"name": "Unit"
},
"units_per_case": "0.2",
"updated_datetime": "2026-01-23T19:52:58.536953Z",
"vendor": {
"id": "00000000-0000-0000-0000-0000000091cf",
"name": "Company 682",
"updated_datetime": "2026-01-23T19:52:58.424503Z"
}
}
}
POST /public/v1/products Updates a product with all optional fields set
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzYsImlhdCI6MTc2OTE5Nzk3NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTU0ZTVjYjMtZGQ5ZS00YjU3LTk3NjUtY2ZmMzU4YWZmZTZiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM2MjQiLCJ0eXAiOiJhY2Nlc3MifQ.Tvpa4WBjuiUiD3QmNdNbNRg9obhDq3OuWiUX6EgEV6w
{
"category_id": "00000000-0000-0000-0000-0000000075d5",
"id": "7251d024-bd43-48fe-bf31-6bd8a0c5a5eb",
"inventory_tracking_method": "PACKAGE",
"name": "My Product",
"sku": "12345",
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-0000000e5bc6",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-0000000090f6"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: f7b3b9d7b600d0000000000000000001-5106aaac87dad976-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-0000000075d5",
"name": "Some category 154",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "7251d024-bd43-48fe-bf31-6bd8a0c5a5eb",
"images": [],
"is_active": true,
"msrp": null,
"name": "My Product",
"product_group": null,
"sku": "12345",
"strain": null,
"subcategory": null,
"unit_cost": null,
"unit_net_weight": null,
"unit_net_weight_serving_size_unit_type": null,
"unit_price": "100",
"unit_serving_size": null,
"unit_type": {
"id": "00000000-0000-0000-0000-0000000e5bc6",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-01-23T19:52:56.748675Z",
"vendor": {
"id": "00000000-0000-0000-0000-0000000090f6",
"name": "Company 385",
"updated_datetime": "2026-01-23T19:52:56.624925Z"
}
}
}
POST /public/v1/products Updates a product with all optional fields set
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzYsImlhdCI6MTc2OTE5Nzk3NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTU0ZTVjYjMtZGQ5ZS00YjU3LTk3NjUtY2ZmMzU4YWZmZTZiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM2MjQiLCJ0eXAiOiJhY2Nlc3MifQ.Tvpa4WBjuiUiD3QmNdNbNRg9obhDq3OuWiUX6EgEV6w
{
"unit_net_weight_and_serving_size_unit_type_id": "00000000-0000-0000-0000-0000000e5bc8",
"id": "7251d024-bd43-48fe-bf31-6bd8a0c5a5eb",
"is_featured": true,
"wholesale_unit_price": "90.50",
"msrp": "100.5",
"unit_type_id": "00000000-0000-0000-0000-0000000e5bcf",
"quantity_available_threshold_min": "5.5",
"total_thc": "10.4",
"brand_id": "00000000-0000-0000-0000-00000000910d",
"sku": "45678",
"unit_price": "200",
"category_id": "00000000-0000-0000-0000-0000000075e5",
"unit_serving_size": "2.2",
"tags": [
"00000000-0000-0000-0000-0000000001a8"
],
"total_cbd": "5.2",
"unit_cost": "50.4",
"group_id": "00000000-0000-0000-0000-0000000060dd",
"is_inactive": true,
"units_per_case": "0.2",
"menus": [
"00000000-0000-0000-0000-0000000008e8"
],
"vendor_id": "00000000-0000-0000-0000-000000009109",
"total_cannabinoid_unit": "PERCENT",
"menu_visibility": "INCLUDE_IN_ALL",
"inventory_tracking_method": "PACKAGE",
"description": "My Product Description",
"owner_id": "00000000-0000-0000-0000-000000016df2",
"subcategory_id": "00000000-0000-0000-0000-000000007718",
"external_name": "External Name",
"quantity_available_threshold_max": "10.5",
"upc": "036000291453",
"unit_net_weight": "3.1",
"strain_id": "00000000-0000-0000-0000-0000000003f3",
"name": "Updated Name"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: f7b3b9d7b600d0000000000000000001-ad21e353720fefcc-0
{
"data": {
"brand": {
"id": "00000000-0000-0000-0000-00000000910d",
"name": "Company 425",
"updated_datetime": "2026-01-23T19:52:56.863191Z"
},
"category": {
"id": "00000000-0000-0000-0000-0000000075e5",
"name": "Some category 170",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": "My Product Description",
"description_markdown": "My Product Description",
"external_name": "External Name",
"id": "7251d024-bd43-48fe-bf31-6bd8a0c5a5eb",
"images": [],
"is_active": false,
"msrp": "100.5",
"name": "Updated Name",
"product_group": {
"id": "00000000-0000-0000-0000-0000000060dd",
"name": "Product Group 169"
},
"sku": "45678",
"strain": {
"id": "00000000-0000-0000-0000-0000000003f3",
"name": "Strain 20"
},
"subcategory": {
"id": "00000000-0000-0000-0000-000000007718",
"name": "Some subcategory 167"
},
"unit_cost": "50.4",
"unit_net_weight": "3.1",
"unit_net_weight_serving_size_unit_type": {
"id": "00000000-0000-0000-0000-0000000e5bc8",
"name": "Ounce"
},
"unit_price": "200",
"unit_serving_size": "2.2",
"unit_type": {
"id": "00000000-0000-0000-0000-0000000e5bcf",
"name": "Unit"
},
"units_per_case": "0.2",
"updated_datetime": "2026-01-23T19:52:56.920219Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000009109",
"name": "Company 418",
"updated_datetime": "2026-01-23T19:52:56.826810Z"
}
}
}
POST /public/v1/products Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzUsImlhdCI6MTc2OTE5Nzk3NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNjcwMjc5Y2EtMWI5Zi00OWRlLTkxZWEtM2E3ZTFhNzA2MGRlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM0MzkiLCJ0eXAiOiJhY2Nlc3MifQ.stLRgk1YbYeYeKHzP1IUEvVDqEnYHe9xfVvRAmF681E
{
"category_id": "00000000-0000-0000-0000-00000000759c",
"id": "f3f00d32-d461-4e6a-a6ae-afc17be35161",
"inventory_tracking_method": "PACKAGE",
"menu_visibility": "INCLUDE_IN_ALL",
"menus": [
"00000000-0000-0000-0000-0000000008e5"
],
"name": "My Product",
"sku": "12345",
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-0000000e5536",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-000000009098"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 74a57be1379900000000000000000001-ad7ddb5633c0cbe1-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-00000000759c",
"name": "Some category 96",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "f3f00d32-d461-4e6a-a6ae-afc17be35161",
"images": [],
"is_active": true,
"msrp": null,
"name": "My Product",
"product_group": null,
"sku": "12345",
"strain": null,
"subcategory": null,
"unit_cost": null,
"unit_net_weight": null,
"unit_net_weight_serving_size_unit_type": null,
"unit_price": "100",
"unit_serving_size": null,
"unit_type": {
"id": "00000000-0000-0000-0000-0000000e5536",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-01-23T19:52:55.952570Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000009098",
"name": "Company 246",
"updated_datetime": "2026-01-23T19:52:55.650959Z"
}
}
}
POST /public/v1/products Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzUsImlhdCI6MTc2OTE5Nzk3NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNjcwMjc5Y2EtMWI5Zi00OWRlLTkxZWEtM2E3ZTFhNzA2MGRlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM0MzkiLCJ0eXAiOiJhY2Nlc3MifQ.stLRgk1YbYeYeKHzP1IUEvVDqEnYHe9xfVvRAmF681E
{
"category_id": "00000000-0000-0000-0000-00000000759c",
"id": "f3f00d32-d461-4e6a-a6ae-afc17be35161",
"inventory_tracking_method": "PACKAGE",
"menu_visibility": "DO_NOT_INCLUDE",
"menus": [
"00000000-0000-0000-0000-0000000008e5",
"00000000-0000-0000-0000-0000000008e6"
],
"name": "My Product",
"sku": "12345",
"tags": [],
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-0000000e5536",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-000000009098"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 74a57be1379900000000000000000001-d74e89d308f5c340-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-00000000759c",
"name": "Some category 96",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "f3f00d32-d461-4e6a-a6ae-afc17be35161",
"images": [],
"is_active": true,
"msrp": null,
"name": "My Product",
"product_group": null,
"sku": "12345",
"strain": null,
"subcategory": null,
"unit_cost": null,
"unit_net_weight": null,
"unit_net_weight_serving_size_unit_type": null,
"unit_price": "100",
"unit_serving_size": null,
"unit_type": {
"id": "00000000-0000-0000-0000-0000000e5536",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-01-23T19:52:56.261109Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000009098",
"name": "Company 246",
"updated_datetime": "2026-01-23T19:52:55.650959Z"
}
}
}
POST /public/v1/products Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzUsImlhdCI6MTc2OTE5Nzk3NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNjcwMjc5Y2EtMWI5Zi00OWRlLTkxZWEtM2E3ZTFhNzA2MGRlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM0MzkiLCJ0eXAiOiJhY2Nlc3MifQ.stLRgk1YbYeYeKHzP1IUEvVDqEnYHe9xfVvRAmF681E
{
"category_id": "00000000-0000-0000-0000-00000000759c",
"id": "f3f00d32-d461-4e6a-a6ae-afc17be35161",
"inventory_tracking_method": "PACKAGE",
"menu_visibility": "INCLUDE_IN_SELECT",
"menus": [
"00000000-0000-0000-0000-0000000008e5",
"00000000-0000-0000-0000-0000000008e6"
],
"name": "My Product",
"sku": "12345",
"tags": [],
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-0000000e5536",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-000000009098"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 74a57be1379900000000000000000001-e2e14804f017e1ed-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-00000000759c",
"name": "Some category 96",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "f3f00d32-d461-4e6a-a6ae-afc17be35161",
"images": [],
"is_active": true,
"msrp": null,
"name": "My Product",
"product_group": null,
"sku": "12345",
"strain": null,
"subcategory": null,
"unit_cost": null,
"unit_net_weight": null,
"unit_net_weight_serving_size_unit_type": null,
"unit_price": "100",
"unit_serving_size": null,
"unit_type": {
"id": "00000000-0000-0000-0000-0000000e5536",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-01-23T19:52:56.382750Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000009098",
"name": "Company 246",
"updated_datetime": "2026-01-23T19:52:55.650959Z"
}
}
}
POST /public/v1/products Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzUsImlhdCI6MTc2OTE5Nzk3NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNjcwMjc5Y2EtMWI5Zi00OWRlLTkxZWEtM2E3ZTFhNzA2MGRlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM0MzkiLCJ0eXAiOiJhY2Nlc3MifQ.stLRgk1YbYeYeKHzP1IUEvVDqEnYHe9xfVvRAmF681E
{
"category_id": "00000000-0000-0000-0000-00000000759c",
"id": "f3f00d32-d461-4e6a-a6ae-afc17be35161",
"inventory_tracking_method": "PACKAGE",
"menu_visibility": "INCLUDE_IN_SELECT",
"menus": [
"00000000-0000-0000-0000-0000000008e6"
],
"name": "My Product",
"sku": "12345",
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-0000000e5536",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-000000009098"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 74a57be1379900000000000000000001-d7519191837cf96c-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-00000000759c",
"name": "Some category 96",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "f3f00d32-d461-4e6a-a6ae-afc17be35161",
"images": [],
"is_active": true,
"msrp": null,
"name": "My Product",
"product_group": null,
"sku": "12345",
"strain": null,
"subcategory": null,
"unit_cost": null,
"unit_net_weight": null,
"unit_net_weight_serving_size_unit_type": null,
"unit_price": "100",
"unit_serving_size": null,
"unit_type": {
"id": "00000000-0000-0000-0000-0000000e5536",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-01-23T19:52:56.490955Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000009098",
"name": "Company 246",
"updated_datetime": "2026-01-23T19:52:55.650959Z"
}
}
}
POST /public/v1/products Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzUsImlhdCI6MTc2OTE5Nzk3NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNjcwMjc5Y2EtMWI5Zi00OWRlLTkxZWEtM2E3ZTFhNzA2MGRlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM0MzkiLCJ0eXAiOiJhY2Nlc3MifQ.stLRgk1YbYeYeKHzP1IUEvVDqEnYHe9xfVvRAmF681E
{
"category_id": "00000000-0000-0000-0000-00000000759c",
"id": "f3f00d32-d461-4e6a-a6ae-afc17be35161",
"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-0000000e5536",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-000000009098"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 74a57be1379900000000000000000001-2e24ec035d64f8a7-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-00000000759c",
"name": "Some category 96",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "f3f00d32-d461-4e6a-a6ae-afc17be35161",
"images": [],
"is_active": true,
"msrp": null,
"name": "My Product",
"product_group": null,
"sku": "12345",
"strain": null,
"subcategory": null,
"unit_cost": null,
"unit_net_weight": null,
"unit_net_weight_serving_size_unit_type": null,
"unit_price": "100",
"unit_serving_size": null,
"unit_type": {
"id": "00000000-0000-0000-0000-0000000e5536",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-01-23T19:52:56.539561Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000009098",
"name": "Company 246",
"updated_datetime": "2026-01-23T19:52:55.650959Z"
}
}
}
POST /public/v1/products 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzcsImlhdCI6MTc2OTE5Nzk3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDliMTQ3NjQtOWU3YS00ZGZjLTgxMzItMjZjMjFlOGI0MzAzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM4NTkiLCJ0eXAiOiJhY2Nlc3MifQ.MZ5yCo-Meux4zFan6iSyB9divGuHENdRPaL1l4Wb_IE
{
"id": "1fec132d-3345-4598-b957-64a31a32a5ee",
"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: ba167e8847b820000000000000000001-c79006691e96fd81-0
{
"errors": [
{
"context": {
"id": "1fec132d-3345-4598-b957-64a31a32a5ee"
},
"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": "1fec132d-3345-4598-b957-64a31a32a5ee"
},
"message": "Unit Serving Size can't be greater than Unit Net Weight/Volume",
"pointer": [
"unit_serving_size"
],
"section": "body"
},
{
"context": {
"id": "1fec132d-3345-4598-b957-64a31a32a5ee"
},
"message": "Cannot be negative",
"pointer": [
"quantity_available_threshold_max"
],
"section": "body"
},
{
"context": {
"id": "1fec132d-3345-4598-b957-64a31a32a5ee"
},
"message": "Cannot be negative",
"pointer": [
"quantity_available_threshold_min"
],
"section": "body"
}
]
}
POST /public/v1/products Errors when threshold max is less than threshold min
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzcsImlhdCI6MTc2OTE5Nzk3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTY3ZWJkYjgtZGE3NC00YzM5LTg4NTItYzFiMTU4ZmIwYmNjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM4NjgiLCJ0eXAiOiJhY2Nlc3MifQ.vsl6h_vZklkWl9zp8b1n-ghHZSC5901ppXHX4owEct0
{
"id": "409016f6-5c4e-4cd4-b048-011d2061a94c",
"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: dc51d2a6989930000000000000000001-f11c46987115c23d-0
{
"errors": [
{
"context": {
"id": "409016f6-5c4e-4cd4-b048-011d2061a94c"
},
"message": "Must be greater than threshold min",
"pointer": [
"quantity_available_threshold_max"
],
"section": "body"
},
{
"context": {
"id": "409016f6-5c4e-4cd4-b048-011d2061a94c"
},
"message": "Must be less than threshold max",
"pointer": [
"quantity_available_threshold_min"
],
"section": "body"
}
]
}
POST /public/v1/products Cannot use associations from another company
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzQsImlhdCI6MTc2OTE5Nzk3NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjgzMGI1MmEtYmJkMS00NzdhLWE3MjctYzFhZmE3NTBkZjM4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTczLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTMzMTAiLCJ0eXAiOiJhY2Nlc3MifQ.o8qj_cAprGJ-mZAMUme0LJHAkOhU656LXioJFQaplyQ
{
"brand_id": "00000000-0000-0000-0000-000000009067",
"category_id": "00000000-0000-0000-0000-000000007580",
"cbd": "5.2",
"description": "My Product Description",
"description_markdown": "# My Product Description Markdown",
"group_id": "00000000-0000-0000-0000-000000006079",
"id": "4786972f-7bb4-444b-8d50-21a556e00253",
"inventory_tracking_method": "PACKAGE",
"is_featured": true,
"is_inactive": true,
"menu_visibility": "INCLUDE_IN_ALL",
"menus": [
"00000000-0000-0000-0000-0000000008e2",
"00000000-0000-0000-0000-0000000008e3",
"00000000-0000-0000-0000-0000000008e4"
],
"msrp": "100.5",
"name": "My Product",
"owner_id": "00000000-0000-0000-0000-000000016c86",
"quantity_available_threshold_max": "10.5",
"quantity_available_threshold_min": "5.5555",
"sku": "12345",
"strain_id": "00000000-0000-0000-0000-0000000003e7",
"subcategory_id": "00000000-0000-0000-0000-0000000076b6",
"tags": [
"00000000-0000-0000-0000-0000000001a5",
"00000000-0000-0000-0000-0000000001a6",
"00000000-0000-0000-0000-0000000001a7"
],
"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-0000000e5040",
"unit_price": "100",
"unit_serving_size": "2.2",
"unit_type_id": "00000000-0000-0000-0000-0000000e5047",
"units_per_case": "0.2",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-000000009065",
"wholesale_unit_price": "90.50"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 63c7d80e5048b8000000000000000001-79a059d6ebda993a-0
{
"errors": [
{
"context": {
"id": "4786972f-7bb4-444b-8d50-21a556e00253"
},
"message": "Brand does not exist",
"pointer": [
"brand_id"
],
"section": "body"
},
{
"context": {
"id": "4786972f-7bb4-444b-8d50-21a556e00253"
},
"message": "Category does not exist",
"pointer": [
"category_id"
],
"section": "body"
},
{
"context": {
"id": "4786972f-7bb4-444b-8d50-21a556e00253"
},
"message": "Vendor does not exist",
"pointer": [
"vendor_id"
],
"section": "body"
},
{
"context": {
"id": "4786972f-7bb4-444b-8d50-21a556e00253"
},
"message": "Group does not exist",
"pointer": [
"group_id"
],
"section": "body"
},
{
"context": {
"id": "4786972f-7bb4-444b-8d50-21a556e00253"
},
"message": "Serving unit type does not exist",
"pointer": [
"unit_net_weight_and_serving_size_unit_type_id"
],
"section": "body"
},
{
"context": {
"id": "4786972f-7bb4-444b-8d50-21a556e00253"
},
"message": "Owner does not exist",
"pointer": [
"owner_id"
],
"section": "body"
},
{
"context": {
"id": "4786972f-7bb4-444b-8d50-21a556e00253"
},
"message": "Strain does not exist",
"pointer": [
"strain_id"
],
"section": "body"
},
{
"context": {
"id": "4786972f-7bb4-444b-8d50-21a556e00253"
},
"message": "Subcategory does not belong to the product category",
"pointer": [
"subcategory_id"
],
"section": "body"
},
{
"context": {
"id": "4786972f-7bb4-444b-8d50-21a556e00253"
},
"message": "One or more of the provided tags do not exist",
"pointer": [
"tags"
],
"section": "body"
},
{
"context": {
"id": "4786972f-7bb4-444b-8d50-21a556e00253"
},
"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-0000000008e2"
],
"section": "body"
},
{
"context": {},
"message": "Menu does not exist",
"pointer": [
"menus",
1,
"00000000-0000-0000-0000-0000000008e3"
],
"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 |
ProductPosMapping
Delete a product POS mapping
DELETE /public/v1/product-pos-mappings/:id deletes a POS mapping
DELETE /public/v1/product-pos-mappings/803
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzYsImlhdCI6MTc2OTE5Nzk3NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGMzZWUzNjgtMDMwYi00YzUyLWFmZjMtZTFhNTRiZWZkMTE1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM1MTkiLCJ0eXAiOiJhY2Nlc3MifQ.-92fxp7RnnQvPeDLVhoHgLup7euhrbskX_H749YrF-w
Response
204
cache-control: max-age=0, private, must-revalidate
b3: b7e178ce3fbbc8000000000000000001-1fb412abf0a8f6e7-0
Request
DELETE /public/v1/product-pos-mappings/{id}
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Mapping ID | path | string | true |
Responses
| Status | Description | Schema |
|---|---|---|
| 204 | No Content | |
| 401 | Unauthorized | |
| 404 | Not Found |
List product POS mappings
GET /public/v1/product-pos-mappings returns all POS mappings for company products and supports filtering
GET /public/v1/product-pos-mappings
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzUsImlhdCI6MTc2OTE5Nzk3NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjk0YzRiYWUtNTY1My00OGFiLWJkMGYtODNmYWU0YTYwYTdlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM0MDAiLCJ0eXAiOiJhY2Nlc3MifQ.ej7fuB11GVzOJ_v9rTKJKOV6qj_pkjPlZFj2DueTcic
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 41eb76fc0e02e0000000000000000001-665b5170d6f6ce09-0
{
"data": [
{
"blaze_asset_id": null,
"blaze_product_id": "blaze_123",
"blaze_retailer_id": "4a5f70d7-ff0f-4556-b2bb-def52ba35efa",
"id": 798,
"inserted_at": "2026-01-23T19:52:55.494724Z",
"pos_type": "BLAZE",
"product_id": "5da1f9be-cd8b-40d9-a697-240530f9bab8",
"updated_at": "2026-01-23T19:52:55.494724Z"
},
{
"dutchie_product_id": 456,
"dutchie_retailer_id": "47f4bb05-c11c-4c36-97cf-a7c9238378d4",
"id": 799,
"inserted_at": "2026-01-23T19:52:55.636304Z",
"pos_type": "DUTCHIE",
"product_id": "7fba5871-e1a8-4c25-b041-f7ee66d3d3f9",
"updated_at": "2026-01-23T19:52:55.636304Z"
}
],
"next_page": "https://www.example.com/public/v1/product-pos-mappings?page[number]=2"
}
Get POS mappings with optional filtering by product_id or retailer_id
Request
GET /public/v1/product-pos-mappings
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| product_id | Filter by product ID | query | string | false | ||
| blaze_retailer_id | Filter by Blaze retailer ID | query | string | false | ||
| dutchie_retailer_id | Filter by Dutchie retailer ID | query | string | false | ||
| treez_retailer_id | Filter by Treez retailer ID | query | string | false |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | Success | ProductPosMappingsResponse |
| 400 | Bad Request | |
| 401 | Unauthorized |
Create or update a product POS mapping
POST /public/v1/product-pos-mappings (upsert) creates a new Blaze mapping
POST /public/v1/product-pos-mappings
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzUsImlhdCI6MTc2OTE5Nzk3NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzIzMjc2MjMtZGE5Ny00MGE2LWE0ZmQtY2ExOTJhZjNjMjhlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM1MDEiLCJ0eXAiOiJhY2Nlc3MifQ.tIuwsFgIziC3yXIoCfrXwzgkyKKutHzi0nagtvmP78k
{
"blaze_product_id": "blaze_123",
"blaze_retailer_id": "029d41c1-1a77-4a7b-9b5b-c2ccc2a132e0",
"product_id": "e8bf658d-4d5a-4904-9fb1-d498c2a685e9"
}
Response
201
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 1b0c05ad6c20da000000000000000001-a60d6604bd78458d-0
{
"data": {
"blaze_asset_id": null,
"blaze_product_id": "blaze_123",
"blaze_retailer_id": "029d41c1-1a77-4a7b-9b5b-c2ccc2a132e0",
"id": 802,
"inserted_at": "2026-01-23T19:52:55.944868Z",
"pos_type": "BLAZE",
"product_id": "e8bf658d-4d5a-4904-9fb1-d498c2a685e9",
"updated_at": "2026-01-23T19:52:55.944868Z"
}
}
POST /public/v1/product-pos-mappings (upsert) updates an existing mapping (upsert behavior)
POST /public/v1/product-pos-mappings
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzUsImlhdCI6MTc2OTE5Nzk3NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzFjMWQ2ZWEtMjA2ZC00MDcwLWIwZDAtOTM5OTdhNTA0MDE3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM0ODEiLCJ0eXAiOiJhY2Nlc3MifQ.Z7J9kht4R6tjK7syDrbRVEsrLO47p4QmNSev32sxVPA
{
"blaze_product_id": "blaze_456",
"blaze_retailer_id": "a6c4e5ed-ad9a-43ac-8982-db62dd15498a",
"product_id": "5aab4dbb-5f65-476f-ae40-566208f39f41"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 35d52f61b5c208000000000000000001-d3f85bbba69bddef-0
{
"data": {
"blaze_asset_id": null,
"blaze_product_id": "blaze_456",
"blaze_retailer_id": "a6c4e5ed-ad9a-43ac-8982-db62dd15498a",
"id": 801,
"inserted_at": "2026-01-23T19:52:55.858049Z",
"pos_type": "BLAZE",
"product_id": "5aab4dbb-5f65-476f-ae40-566208f39f41",
"updated_at": "2026-01-23T19:52:55.868420Z"
}
}
Upserts a POS mapping - creates if new, updates if exists.
The system determines if a mapping already exists by checking for an existing mapping with the same product_id and retailer_id combination. If found, it updates the existing mapping. If not found, it creates a new mapping.
Returns 201 for new mappings, 200 for updates.
Request
POST /public/v1/product-pos-mappings
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| mapping | POS mapping data | body | UpsertProductPosMapping | true |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | Updated existing mapping | ProductPosMappingResponse |
| 201 | Created new mapping | ProductPosMappingResponse |
| 400 | Bad Request | |
| 401 | Unauthorized |
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzgsImlhdCI6MTc2OTE5Nzk3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjEwYjhkOGMtMTRjNi00Y2U3LWI0ZjgtNzFhZTk3YTg0MGQxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQwMjkiLCJ0eXAiOiJhY2Nlc3MifQ.89yVkDfjKdzK94vdecClIbUFgrE3tbYLQyB0LdqFmt8
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 2e7e2ecd19f3e0000000000000000001-b7c2500fb3ebc835-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000091e4",
"name": "Company 715",
"updated_datetime": "2026-01-23T19:52:58.655914Z"
},
"custom_data": [
{
"id": 355,
"name": "Custom Field 13",
"value": null
}
],
"due_datetime": "2026-01-23T19:52:58.686406Z",
"id": "00000000-0000-0000-0000-0000000005bd",
"inserted_datetime": "2026-01-23T19:52:58.687140Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000055e3",
"name": "B1036"
},
"compliance_quantity": null,
"id": "c9af3c0e-78fd-4edc-8d4d-422d154041fd",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000001075a",
"id": "00000000-0000-0000-0000-000000006e81",
"license_id": null,
"name": "Place 165"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "254882b9-0909-4ecf-bd05-29f24a97d192",
"name": "Product 1025",
"sku": "sku 1026",
"updated_datetime": "2026-01-23T19:52:58.694308Z"
},
"quantity": "15.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000055e4",
"name": "B1037"
},
"compliance_quantity": null,
"id": "1b65d52b-f5a4-412c-a470-b75db3183d59",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000001075a",
"id": "00000000-0000-0000-0000-000000006e81",
"license_id": null,
"name": "Place 165"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "cd042a2e-344c-47f1-8815-dbf08ef80d08",
"name": "Product 1027",
"sku": "sku 1028",
"updated_datetime": "2026-01-23T19:52:58.701693Z"
},
"quantity": "10.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000055e5",
"name": "B1038"
},
"compliance_quantity": null,
"id": "bea87151-6cb7-4e52-83d6-721b33ecc75d",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000001075a",
"id": "00000000-0000-0000-0000-000000006e81",
"license_id": null,
"name": "Place 165"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "4a71a935-22aa-485e-8cae-9077e3de46e7",
"name": "Product 1029",
"sku": "sku 1030",
"updated_datetime": "2026-01-23T19:52:58.708187Z"
},
"quantity": "5.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000055e6",
"name": "B1039"
},
"compliance_quantity": null,
"id": "41d931bd-3d5e-4d8f-b523-cb773618996a",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000001075a",
"id": "00000000-0000-0000-0000-000000006e81",
"license_id": null,
"name": "Place 165"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "504e9644-20a0-4823-a98d-712372017cad",
"name": "Product 1034",
"sku": "sku 1035",
"updated_datetime": "2026-01-23T19:52:58.714927Z"
},
"quantity": "2.000000000",
"received_quantity": "0.000000000"
}
],
"order_datetime": "2026-01-23T19:52:58.686405Z",
"purchase_number": "Purchase #15",
"status": "PENDING",
"total": "32.00",
"updated_datetime": "2026-01-23T19:52:58.687140Z"
},
{
"charges": [
{
"id": "d13759a7-e7b2-40ef-8631-c2087a69e373",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000091e0",
"name": "Company 709",
"updated_datetime": "2030-11-01T00:00:00.000000Z"
},
"custom_data": [
{
"id": 355,
"name": "Custom Field 13",
"value": "Custom Field Value 1"
}
],
"due_datetime": "2020-01-01T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-0000000005bc",
"inserted_datetime": "2020-01-01T00:00:03.000000Z",
"items": [
{
"batch": {
"batch_number": "UID1",
"id": "00000000-0000-0000-0000-0000000055d8",
"name": "B1"
},
"compliance_quantity": "1.0000",
"id": "4fc182e7-1773-439d-8697-5cb54ac51968",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000001075a",
"id": "00000000-0000-0000-0000-000000006e78",
"license_id": "00000000-0000-0000-0000-0000000045d8",
"name": "Place 156"
},
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000000061",
"id": "00000000-0000-0000-0000-000000002054",
"metrc_label": "ABCDEF012345670000000061",
"status": "active"
},
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "7de6be04-dc3f-4b4f-9f2b-162b9a5cf055",
"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"
}
],
"next_page": null
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODAsImlhdCI6MTc2OTE5Nzk4MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiN2RkOTRjYTktZmM2ZS00ZWQzLWI2ODktZWUyNjY4MzhkZDMzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQ0MjQiLCJ0eXAiOiJhY2Nlc3MifQ.0iqqX3kk-293bWynzc7ZqWTEMxTjFUvz4q9x77DhocU
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 9d213fb4ed09a8000000000000000001-744113ad5bd6ea89-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000092ef",
"name": "Company 1027",
"updated_datetime": "2026-01-23T19:53:00.840576Z"
},
"custom_data": [],
"due_datetime": "2026-01-23T19:53:00.861570Z",
"id": "00000000-0000-0000-0000-0000000005cd",
"inserted_datetime": "2026-01-23T19:53:00.862234Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000056bf",
"name": "B1686"
},
"compliance_quantity": null,
"id": "347ac2bb-dc50-4e34-bd94-b7e3703b6348",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000001087a",
"id": "00000000-0000-0000-0000-000000006ef7",
"license_id": null,
"name": "Place 283"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "887530c1-dd59-4c2a-98f4-5e53fb7e3040",
"name": "Product 1675",
"sku": "sku 1676",
"updated_datetime": "2026-01-23T19:53:00.868042Z"
},
"quantity": "15.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000056c0",
"name": "B1687"
},
"compliance_quantity": null,
"id": "0b5ccf38-31b9-4627-901c-3203a2fa66da",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000001087a",
"id": "00000000-0000-0000-0000-000000006ef7",
"license_id": null,
"name": "Place 283"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "184baec8-0cd4-465b-a049-6b541840318e",
"name": "Product 1677",
"sku": "sku 1678",
"updated_datetime": "2026-01-23T19:53:00.873732Z"
},
"quantity": "10.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000056c1",
"name": "B1688"
},
"compliance_quantity": null,
"id": "e399b767-37fc-4c8f-a658-f1f92d9d01cd",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000001087a",
"id": "00000000-0000-0000-0000-000000006ef7",
"license_id": null,
"name": "Place 283"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "f5922b09-c6ab-4afb-b532-1fe335324b29",
"name": "Product 1679",
"sku": "sku 1680",
"updated_datetime": "2026-01-23T19:53:00.879636Z"
},
"quantity": "5.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000056c2",
"name": "B1689"
},
"compliance_quantity": null,
"id": "1ab429d4-2d4e-4c09-adbc-d4337bbc762c",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000001087a",
"id": "00000000-0000-0000-0000-000000006ef7",
"license_id": null,
"name": "Place 283"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "b8205021-07fa-4011-9213-65f3dc13abdb",
"name": "Product 1683",
"sku": "sku 1685",
"updated_datetime": "2026-01-23T19:53:00.885324Z"
},
"quantity": "2.000000000",
"received_quantity": "0.000000000"
}
],
"order_datetime": "2020-01-01T12:30:00.000000Z",
"purchase_number": "Purchase #29",
"status": "PENDING",
"total": "32.00",
"updated_datetime": "2026-01-23T19:53:00.862234Z"
},
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000092e7",
"name": "Company 1017",
"updated_datetime": "2026-01-23T19:53:00.761255Z"
},
"custom_data": [],
"due_datetime": "2026-01-23T19:53:00.787556Z",
"id": "00000000-0000-0000-0000-0000000005cc",
"inserted_datetime": "2026-01-23T19:53:00.788250Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000056b8",
"name": "B1665"
},
"compliance_quantity": null,
"id": "96595386-f04c-485e-af11-1cdcbfee1081",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000001087a",
"id": "00000000-0000-0000-0000-000000006ef2",
"license_id": null,
"name": "Place 278"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "9e4850ac-6c7c-4634-abb5-1e2a14d2d3c7",
"name": "Product 1657",
"sku": "sku 1658",
"updated_datetime": "2026-01-23T19:53:00.799539Z"
},
"quantity": "15.000000000",
"received_quantity": "15.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000056b9",
"name": "B1666"
},
"compliance_quantity": null,
"id": "4767a769-3897-4899-8f06-3f1eaeba3afc",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000001087a",
"id": "00000000-0000-0000-0000-000000006ef2",
"license_id": null,
"name": "Place 278"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "a051c69b-1cb4-41de-9ab3-d5123a36237f",
"name": "Product 1659",
"sku": "sku 1660",
"updated_datetime": "2026-01-23T19:53:00.808974Z"
},
"quantity": "10.000000000",
"received_quantity": "10.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000056ba",
"name": "B1667"
},
"compliance_quantity": null,
"id": "0eb31aee-abf7-400f-9a8d-44624c7a6252",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000001087a",
"id": "00000000-0000-0000-0000-000000006ef2",
"license_id": null,
"name": "Place 278"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "999eecfc-da8c-4551-88d2-f24c45f967d3",
"name": "Product 1661",
"sku": "sku 1662",
"updated_datetime": "2026-01-23T19:53:00.815356Z"
},
"quantity": "5.000000000",
"received_quantity": "5.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000056bb",
"name": "B1668"
},
"compliance_quantity": null,
"id": "3679d00a-48c6-41e9-82cf-3ef04f0b5e3d",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000001087a",
"id": "00000000-0000-0000-0000-000000006ef2",
"license_id": null,
"name": "Place 278"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "99204ca4-e8d2-489c-a820-d5a7bf4f0cdc",
"name": "Product 1663",
"sku": "sku 1664",
"updated_datetime": "2026-01-23T19:53:00.822598Z"
},
"quantity": "2.000000000",
"received_quantity": "2.000000000"
}
],
"order_datetime": "2020-01-01T12:20:00.000000Z",
"purchase_number": "Purchase #28",
"status": "COMPLETED",
"total": "32.00",
"updated_datetime": "2026-01-23T19:53:00.788250Z"
},
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000092d0",
"name": "Company 993",
"updated_datetime": "2026-01-23T19:53:00.607516Z"
},
"custom_data": [],
"due_datetime": "2026-01-23T19:53:00.631784Z",
"id": "00000000-0000-0000-0000-0000000005ca",
"inserted_datetime": "2026-01-23T19:53:00.632599Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000056a9",
"name": "B1620"
},
"compliance_quantity": null,
"id": "0866a381-de0a-4465-932b-1d4bfe27c6b0",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000001087a",
"id": "00000000-0000-0000-0000-000000006ee8",
"license_id": null,
"name": "Place 268"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "bbf8a7a9-0032-4bdb-8ec8-21870b097d26",
"name": "Product 1609",
"sku": "sku 1610",
"updated_datetime": "2026-01-23T19:53:00.640324Z"
},
"quantity": "15.000000000",
"received_quantity": "15.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000056aa",
"name": "B1621"
},
"compliance_quantity": null,
"id": "f85a3cb0-0946-424a-bd6a-c99c70d435e2",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000001087a",
"id": "00000000-0000-0000-0000-000000006ee8",
"license_id": null,
"name": "Place 268"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "f6eaab94-06cb-4de1-a91d-b0d366b4dd5c",
"name": "Product 1613",
"sku": "sku 1614",
"updated_datetime": "2026-01-23T19:53:00.647033Z"
},
"quantity": "10.000000000",
"received_quantity": "10.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000056ab",
"name": "B1622"
},
"compliance_quantity": null,
"id": "365c7be5-517f-4636-9eaf-cb6137a268cf",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000001087a",
"id": "00000000-0000-0000-0000-000000006ee8",
"license_id": null,
"name": "Place 268"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "a762d4fc-41d5-43ac-9888-76c208e28bed",
"name": "Product 1616",
"sku": "sku 1617",
"updated_datetime": "2026-01-23T19:53:00.653599Z"
},
"quantity": "5.000000000",
"received_quantity": "5.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000056ac",
"name": "B1623"
},
"compliance_quantity": null,
"id": "92898f6a-de33-4c87-9094-28e702f1c29f",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000001087a",
"id": "00000000-0000-0000-0000-000000006ee8",
"license_id": null,
"name": "Place 268"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "ce35024f-ee83-42bb-95ef-05101a0402f3",
"name": "Product 1618",
"sku": "sku 1619",
"updated_datetime": "2026-01-23T19:53:00.660406Z"
},
"quantity": "2.000000000",
"received_quantity": "2.000000000"
}
],
"order_datetime": "2020-01-01T12:00:00.000000Z",
"purchase_number": "Purchase #26",
"status": "COMPLETED",
"total": "32.00",
"updated_datetime": "2026-01-23T19:53:00.632599Z"
}
],
"next_page": null
}
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-0000000005d1/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODEsImlhdCI6MTc2OTE5Nzk4MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTYxNzlmNGItZjk4NC00OWRhLWE2OWUtOTViM2M5NTQwNWZkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTgwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQ1NTMiLCJ0eXAiOiJhY2Nlc3MifQ.qLomuGPx86-muipPdJnoizf8ITIM3FvIQrL_XwY45ys
{
"amount": 100.01,
"description": "Payment for purchase",
"payment_datetime": "2020-01-01T00:00:00.000000Z",
"payment_method_id": "00000000-0000-0000-0000-00000000022b",
"quickbooks_deposit_account_id": "QBD-123"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 38eb52a4d15e58000000000000000001-9c08e36eb41f6e10-0
{
"data": {
"amount": "100.01",
"description": "Payment for purchase",
"id": "00000000-0000-0000-0000-000000000066",
"inserted_datetime": "2026-01-23T19:53:01.463155Z",
"payment_date": "2020-01-01T00:00:00.000000Z",
"payment_method": {
"deleted_at": null,
"id": "00000000-0000-0000-0000-00000000022b",
"name": "Payment Method 0"
},
"payment_number": "PYT-0000001",
"purchase_id": "00000000-0000-0000-0000-0000000005d1",
"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-0000000005d1/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODEsImlhdCI6MTc2OTE5Nzk4MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTYxNzlmNGItZjk4NC00OWRhLWE2OWUtOTViM2M5NTQwNWZkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTgwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQ1NTMiLCJ0eXAiOiJhY2Nlc3MifQ.qLomuGPx86-muipPdJnoizf8ITIM3FvIQrL_XwY45ys
{
"amount": 100.01,
"description": "Payment for purchase",
"payment_datetime": "2020-01-01T00:00:00.000000Z",
"payment_method_id": "00000000-0000-0000-0000-00000000022b",
"quickbooks_deposit_account_name": "QBD-NAME"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 38eb52a4d15e58000000000000000001-67dc17ee3572fbfd-0
{
"data": {
"amount": "100.01",
"description": "Payment for purchase",
"id": "00000000-0000-0000-0000-000000000067",
"inserted_datetime": "2026-01-23T19:53:01.526976Z",
"payment_date": "2020-01-01T00:00:00.000000Z",
"payment_method": {
"deleted_at": null,
"id": "00000000-0000-0000-0000-00000000022b",
"name": "Payment Method 0"
},
"payment_number": "PYT-0000002",
"purchase_id": "00000000-0000-0000-0000-0000000005d1",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODAsImlhdCI6MTc2OTE5Nzk4MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDE1Yzg0NmYtNzdmMi00NzMwLWFjOGUtMDAyNTI3YjA4MTcwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQyOTUiLCJ0eXAiOiJhY2Nlc3MifQ.LxpHhXFFrzehoymQKYcm3lW3nlPpu3Jj9CMg39mfxAU
{
"billing_location_id": "00000000-0000-0000-0000-000000006ece",
"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-00000000928b",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000006ecd",
"price": "10.000000000",
"product_id": "e5162aaa-3503-4342-9672-7636c8758ca6",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000006ecd",
"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: 82e12216860c88000000000000000001-2b6a99b0bb48de62-0
{
"data": {
"charges": [
{
"id": "f9770d9e-bff5-44bb-bced-24c6871dc77b",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "1d0ad80b-27f0-4f1f-8064-d9aa8a877f3d",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-00000000928b",
"name": "Company 911",
"updated_datetime": "2026-01-23T19:52:59.974066Z"
},
"custom_data": [
{
"id": 360,
"name": "Custom Field 18",
"value": null
}
],
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-0000000005c8",
"inserted_datetime": "2026-01-23T19:53:00.128514Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005674",
"name": "B1"
},
"compliance_quantity": null,
"id": "ee2e7cbe-5c4b-4f17-8d26-d40cc0706c63",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000001082a",
"id": "00000000-0000-0000-0000-000000006ecd",
"license_id": "00000000-0000-0000-0000-0000000045fc",
"name": "Place 241"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "e5162aaa-3503-4342-9672-7636c8758ca6",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-01-23T19:53:00.110639Z"
},
"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": "2026-01-23T19:53:00.135580Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODAsImlhdCI6MTc2OTE5Nzk4MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjZhMWIzYjYtZTliMC00NDAwLThhOGMtNWM5NDc4NTMyYTA2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQzMjgiLCJ0eXAiOiJhY2Nlc3MifQ.GCFJh0vkYm2Y1WtydkgWHNtCfewk45x20sxYs7ZWwDs
{
"billing_location_id": "00000000-0000-0000-0000-000000006ed5",
"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-000000009298",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"batch_id": "00000000-0000-0000-0000-000000005691",
"location_id": "00000000-0000-0000-0000-000000006ed5",
"price": "10.000000000",
"product_id": "52b14e19-5a02-4a3d-8065-f074c035931d",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000006ed5",
"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: dbd64827b88a40000000000000000001-05692c99a5cb4ada-0
{
"data": {
"charges": [
{
"id": "6abd4a27-e1b0-4cf3-a302-b39f714170fc",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "ae1fcefb-c0e2-4d1f-88a8-84a47d857027",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000009298",
"name": "Company 931",
"updated_datetime": "2026-01-23T19:53:00.202662Z"
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-0000000005c9",
"inserted_datetime": "2026-01-23T19:53:00.456164Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005691",
"name": "B1"
},
"compliance_quantity": null,
"id": "32aeb5a7-46a0-4621-ad5f-08ed94ab42bc",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000001083d",
"id": "00000000-0000-0000-0000-000000006ed5",
"license_id": "00000000-0000-0000-0000-000000004600",
"name": "Place 249"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "52b14e19-5a02-4a3d-8065-f074c035931d",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-01-23T19:53:00.442418Z"
},
"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": "2026-01-23T19:53:00.462646Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzUsImlhdCI6MTc2OTE5Nzk3NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNzdiODZkZWYtYjNjNS00MTFlLWIyYjctNWU1N2IyMWU2ZjkxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM0MzIiLCJ0eXAiOiJhY2Nlc3MifQ.Ue3b57CwCpRVzFrR4pcyTmapK0NFObizmMasHWQr4yM
{
"billing_location_id": "00000000-0000-0000-0000-000000006e13",
"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-00000000907a",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000006e13",
"price": "10.000000000",
"product_id": "33f7e8d7-05c1-4bc2-a5fd-d28a23c0095e",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000006e13",
"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: 7a524e5619ce9c000000000000000001-c82965c59152d149-0
{
"data": {
"charges": [
{
"id": "da58eaca-1eae-4cf3-b69d-227b3cafdf93",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "5fb13254-56ed-44e0-a815-6326da92c4cb",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-00000000907a",
"name": "Company 190",
"updated_datetime": "2026-01-23T19:52:55.250978Z"
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-0000000005b2",
"inserted_datetime": "2026-01-23T19:52:56.139283Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005508",
"name": "B1"
},
"compliance_quantity": null,
"id": "91e8efc7-8f48-441a-8764-6812bb364914",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000010558",
"id": "00000000-0000-0000-0000-000000006e13",
"license_id": "00000000-0000-0000-0000-0000000045bd",
"name": "Place 55"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "33f7e8d7-05c1-4bc2-a5fd-d28a23c0095e",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-01-23T19:52:55.606161Z"
},
"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": "2026-01-23T19:52:56.387153Z"
}
}
POST /public/v1/purchases updates a purchase
POST /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODEsImlhdCI6MTc2OTE5Nzk4MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTY0ZGQ2ZjUtM2FkNi00N2FmLThjOTAtMDNiOTI5ZjVhODQ4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTgwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQ0OTciLCJ0eXAiOiJhY2Nlc3MifQ.gphvcdKCwlacNzTODfNUbFtyGdF7KxW45gdH3nAdyXk
{
"billing_location_id": "00000000-0000-0000-0000-000000006ef9",
"charges": [
{
"name": "C1",
"percent": "10.0000",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company_id": "00000000-0000-0000-0000-0000000092f8",
"due_datetime": "2020-01-20T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000006ef9",
"price": "10.000000000",
"product_id": "849e11d2-a898-485d-8708-ced8ee960337",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000006ef9",
"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: a1dc4266238e08000000000000000001-6c5c2e1e4686c25a-0
{
"data": {
"charges": [
{
"id": "53415806-9855-4d67-95c5-8190cd9f95ca",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000092f8",
"name": "Company 1037",
"updated_datetime": "2026-01-23T19:53:00.932251Z"
},
"custom_data": [],
"due_datetime": "2020-01-20T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-0000000005ce",
"inserted_datetime": "2026-01-23T19:53:01.149519Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000056c4",
"name": "B1"
},
"compliance_quantity": null,
"id": "3dc487b6-59ef-4488-90e6-c1ac8535b72e",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000108a9",
"id": "00000000-0000-0000-0000-000000006ef9",
"license_id": "00000000-0000-0000-0000-00000000460c",
"name": "Place 285"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "849e11d2-a898-485d-8708-ced8ee960337",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-01-23T19:53:01.117697Z"
},
"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": "2026-01-23T19:53:01.156273Z"
}
}
POST /public/v1/purchases updates a purchase
POST /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODEsImlhdCI6MTc2OTE5Nzk4MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTY0ZGQ2ZjUtM2FkNi00N2FmLThjOTAtMDNiOTI5ZjVhODQ4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTgwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQ0OTciLCJ0eXAiOiJhY2Nlc3MifQ.gphvcdKCwlacNzTODfNUbFtyGdF7KxW45gdH3nAdyXk
{
"billing_location_id": "00000000-0000-0000-0000-000000006ef9",
"charges": [
{
"id": "53415806-9855-4d67-95c5-8190cd9f95ca",
"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-0000000092f8",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-0000000005ce",
"items": [
{
"id": "3dc487b6-59ef-4488-90e6-c1ac8535b72e",
"location_id": "00000000-0000-0000-0000-000000006ef9",
"price": "10.000000000",
"product_id": "849e11d2-a898-485d-8708-ced8ee960337",
"quantity": "1.000000000"
},
{
"batch_id": "00000000-0000-0000-0000-0000000056c5",
"location_id": "00000000-0000-0000-0000-000000006ef9",
"price": "5.000000000",
"product_id": "a7607caa-b77c-4440-b408-de1d3ad67794",
"quantity": "2.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000006ef9",
"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: a1dc4266238e08000000000000000001-0b43762a46236d1d-0
{
"data": {
"charges": [
{
"id": "53415806-9855-4d67-95c5-8190cd9f95ca",
"name": "C1",
"percent": "10.0000",
"price": "2.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "439f2cf0-5f8e-4a58-afbb-9ac08d932b94",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000092f8",
"name": "Company 1037",
"updated_datetime": "2026-01-23T19:53:00.932251Z"
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-0000000005ce",
"inserted_datetime": "2026-01-23T19:53:01.149519Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000056c4",
"name": "B1"
},
"compliance_quantity": null,
"id": "3dc487b6-59ef-4488-90e6-c1ac8535b72e",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000108a9",
"id": "00000000-0000-0000-0000-000000006ef9",
"license_id": "00000000-0000-0000-0000-00000000460c",
"name": "Place 285"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "849e11d2-a898-485d-8708-ced8ee960337",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-01-23T19:53:01.117697Z"
},
"quantity": "1.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000056c5",
"name": "B2"
},
"compliance_quantity": null,
"id": "2e3d43de-154f-456e-b9f5-116dc72f22a6",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000108a9",
"id": "00000000-0000-0000-0000-000000006ef9",
"license_id": "00000000-0000-0000-0000-00000000460c",
"name": "Place 285"
},
"package": null,
"price": "5.000000000",
"price_base": "5.000000000",
"product": {
"id": "a7607caa-b77c-4440-b408-de1d3ad67794",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-01-23T19:53:01.134364Z"
},
"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": "2026-01-23T19:53:01.220766Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzcsImlhdCI6MTc2OTE5Nzk3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDgwNjlkNGUtYTQxNy00NmJiLWFjYWItYzI3MDI3ZDk2ZTk5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM4MjQiLCJ0eXAiOiJhY2Nlc3MifQ.v1E7Y6XU22-xCbE6wQVFserOCCqS-L5pkAyB6VtLnng
{
"billing_location_id": "00000000-0000-0000-0000-000000006e51",
"company_id": "00000000-0000-0000-0000-00000000916b",
"due_datetime": "2020-01-20T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000006e51",
"price": "10",
"product_id": "410d8c08-478e-4bac-aca5-263bef81923e",
"quantity": "1"
}
],
"location_id": "00000000-0000-0000-0000-000000006e51",
"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: c3ab4b3e42aeb8000000000000000001-9005ea0657860581-0
{
"data": {
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000000916b",
"name": "Company 545",
"updated_datetime": "2026-01-23T19:52:57.574338Z"
},
"custom_data": [],
"due_datetime": "2020-01-20T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-0000000005b7",
"inserted_datetime": "2026-01-23T19:52:57.664716Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005586",
"name": "B734"
},
"compliance_quantity": null,
"id": "3da9cf0e-351a-4ad9-9831-3e3a3ccada99",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000106ba",
"id": "00000000-0000-0000-0000-000000006e51",
"license_id": "00000000-0000-0000-0000-0000000045cc",
"name": "Place 117"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "410d8c08-478e-4bac-aca5-263bef81923e",
"name": "Product 730",
"sku": "sku 731",
"updated_datetime": "2026-01-23T19:52:57.623103Z"
},
"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": "2026-01-23T19:52:57.664716Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzcsImlhdCI6MTc2OTE5Nzk3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDgwNjlkNGUtYTQxNy00NmJiLWFjYWItYzI3MDI3ZDk2ZTk5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM4MjQiLCJ0eXAiOiJhY2Nlc3MifQ.v1E7Y6XU22-xCbE6wQVFserOCCqS-L5pkAyB6VtLnng
{
"company_id": "00000000-0000-0000-0000-00000000916b",
"id": "00000000-0000-0000-0000-0000000005b7",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000006e51",
"price": "2",
"product_id": "410d8c08-478e-4bac-aca5-263bef81923e",
"quantity": "1"
}
]
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: c3ab4b3e42aeb8000000000000000001-f66370ffe3321cc8-0
{
"data": {
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000000916b",
"name": "Company 545",
"updated_datetime": "2026-01-23T19:52:57.574338Z"
},
"custom_data": [],
"due_datetime": "2020-01-20T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-0000000005b7",
"inserted_datetime": "2026-01-23T19:52:57.664716Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000005586",
"name": "B734"
},
"compliance_quantity": null,
"id": "611e8f79-f51a-41eb-a99b-ec44af36d4f7",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000106ba",
"id": "00000000-0000-0000-0000-000000006e51",
"license_id": "00000000-0000-0000-0000-0000000045cc",
"name": "Place 117"
},
"package": null,
"price": "2.000000000",
"price_base": "2.000000000",
"product": {
"id": "410d8c08-478e-4bac-aca5-263bef81923e",
"name": "Product 730",
"sku": "sku 731",
"updated_datetime": "2026-01-23T19:52:57.623103Z"
},
"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": "2026-01-23T19:52:57.770086Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODEsImlhdCI6MTc2OTE5Nzk4MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDllZmM4NDktNTllNS00Y2I1LTg2MjktNTUwNTBiYThlNWIxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTgwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQ1MjUiLCJ0eXAiOiJhY2Nlc3MifQ.4Fy4d-cfZFjLmi761PZhmonuB_c5d10uVKf7zy8R7KY
{
"billing_location_id": "00000000-0000-0000-0000-000000006efe",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000009300",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-0000000005cf",
"items": [
{
"batch_id": "00000000-0000-0000-0000-0000000056c9",
"id": "8ca70f63-cc35-4646-b48e-b01405f80606",
"location_id": "00000000-0000-0000-0000-000000006efe",
"price": "10.000000000",
"product_id": "846cf279-16e6-4511-8496-49d1709bd1be",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000006efe",
"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: 9026d7d23e9eb0000000000000000001-e9d104a996707522-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzcsImlhdCI6MTc2OTE5Nzk3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzM2OTI1N2ItZjMxOC00MDYwLWJkY2EtYTQzNjBjMmRkZmZkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM4MDYiLCJ0eXAiOiJhY2Nlc3MifQ.WCVz3v-ZFhB-nEM-nSXLU2skXkheoUa4W34Q_bVk8dU
{
"billing_location_id": "00000000-0000-0000-0000-000000006e4c",
"charges": [],
"company_id": "00000000-0000-0000-0000-00000000915c",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000006e4c",
"price": "10.000000000",
"product_id": "38202b22-91f5-4a8f-9bbb-48590ffb51c5",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000006e4c",
"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: 0bb5d04c4943b6800000000000000001-b702e444aaedac49-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzgsImlhdCI6MTc2OTE5Nzk3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDNlNDA2MmEtNGVhYi00ZTZkLTkwYTctNjI1YTg0OTVlYjVlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQwOTMiLCJ0eXAiOiJhY2Nlc3MifQ.0GIG3PddWRQj8NETKBQK0anvubSKYOLm0aF73PpsXpE
{
"billing_location_id": "00000000-0000-0000-0000-000000006e8c",
"charges": [],
"company_id": "00000000-0000-0000-0000-0000000091fa",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000006e8c",
"price": "10.000000000",
"product_id": "9ec77350-07ad-447b-a952-35c57b836492",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000006e8c",
"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: 12577377d56b36000000000000000001-ba8329ceac37d777-0
{
"errors": [
{
"context": {
"id": "bb942354-dbdb-4877-90cf-602ed674937f"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzksImlhdCI6MTc2OTE5Nzk3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTYzMTBkM2UtZWZiOS00NzE3LWIxOTgtYzU1OWIzNzY0ZjFjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQyMjEiLCJ0eXAiOiJhY2Nlc3MifQ.GfpT375HjTipzYodrxNwYsBbvnk9tFrVFEAJcSbYvok
{
"billing_location_id": "00000000-0000-0000-0000-000000006eb7",
"charges": [],
"company_id": "00000000-0000-0000-0000-00000000924f",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"batch_id": "00000000-0000-0000-0000-000000005641",
"location_id": "00000000-0000-0000-0000-000000006eb7",
"price": "10.000000000",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000006eb7",
"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: 338db9f218e392000000000000000001-da35d343c73b018e-0
{
"errors": [
{
"context": {
"id": "fb2e1a40-abe8-41b1-a92b-0306ca18183d"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODAsImlhdCI6MTc2OTE5Nzk4MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTczZTg3NzAtYTU5OC00MTMwLWE2MTYtZWYyYTliNTY2NjdmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQ0MDYiLCJ0eXAiOiJhY2Nlc3MifQ.3m_8GIpm1eoGK6UU187X9UbaAiKvnupcJ2K5tGgQHCw
{
"billing_location_id": "00000000-0000-0000-0000-000000006edc",
"charges": [],
"company_id": "00000000-0000-0000-0000-0000000092c0",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000006ede",
"price": "10.000000000",
"product_id": "8b748c16-7e19-498e-ba8d-9f2187fc5cce",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000006ede",
"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: 82ab74a0d88118000000000000000001-977b7e2628205abe-0
{
"errors": [
{
"context": {
"id": "5ad9203f-6cd1-4cde-bb21-61d48993f61b"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzcsImlhdCI6MTc2OTE5Nzk3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMmViNGM1NGUtMzE4ZC00NDA2LThkM2UtNWNlMjZhZmY0YjU0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM5MDEiLCJ0eXAiOiJhY2Nlc3MifQ.yejuzv2P_adrzDtth4I9pDJFS89qCFKZol_zGzFYScc
{
"billing_location_id": "00000000-0000-0000-0000-000000006e5d",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000009185",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000006e5d",
"price": "10.000000000",
"product_id": "1b63540d-3803-4bf5-b15a-8608eb51f36d",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000006e5e",
"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: 91e361fb4bcbe0000000000000000001-80f45616e5bbc8f5-0
{
"errors": [
{
"context": {
"id": "7848edca-5b87-47a6-bd9d-a3bdbc7b82e0"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1ODEsImlhdCI6MTc2OTE5Nzk4MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNjZiM2JjYjItYTQyNC00NWYzLTkwMWQtZTVkMWEyNmYzZTk5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTgwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQ1OTEiLCJ0eXAiOiJhY2Nlc3MifQ.upNVFJtNOqm_x-PgsDZCdhy2TVYT-1jVi5Zl7rznRu4
{
"billing_location_id": "00000000-0000-0000-0000-000000006f11",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000009323",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000006f10",
"price": "10.000000000",
"product_id": "6f80c56c-2a96-40cb-ad6d-8fea64ae0340",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000006f10",
"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: 67c1faf334ca9c000000000000000001-4b681f10a2d08b9b-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzYsImlhdCI6MTc2OTE5Nzk3NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYWVjOTNjZDYtYTVkYi00NzUzLWEwOGEtN2U0NDRiN2ZjMzk3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM2NjEiLCJ0eXAiOiJhY2Nlc3MifQ.9lcFxJ2ASFjJDTTRH1YWUxbsr4JXX2835Jmt76wgzQs
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: a2bfb7c1e77e28000000000000000001-3bc8bd949dbc96d0-0
{
"data": [
{
"batch_id": null,
"completion_datetime": "2026-01-23T19:52:56.921600Z",
"compliance_quantity": null,
"compliance_unit_type": null,
"description": null,
"id": "00000000-0000-0000-0000-0000000004dc",
"license_id": null,
"location_id": null,
"owner_id": "00000000-0000-0000-0000-000000016ddd",
"package_id": null,
"product_id": "6d007e32-87f6-4243-b4f2-3cf07259c528",
"quantity": "10",
"reason": "revaluation",
"total_cost": "10000",
"unit_type": {
"id": "00000000-0000-0000-0000-0000000e5dca",
"name": "Gram"
}
},
{
"batch_id": null,
"completion_datetime": "2026-01-23T19:52:57.169579Z",
"compliance_quantity": "1",
"compliance_unit_type": {
"id": "00000000-0000-0000-0000-0000000e5dcc",
"name": "Ounce"
},
"description": "A default note describing this transaction",
"id": "00000000-0000-0000-0000-0000000004e4",
"license_id": "00000000-0000-0000-0000-0000000045c6",
"location_id": "00000000-0000-0000-0000-000000006e40",
"owner_id": null,
"package_id": "00000000-0000-0000-0000-000000002046",
"product_id": "7fa5fc8e-f926-4b9b-be67-3ab352e1010e",
"quantity": "1",
"reason": "Voluntary Surrender",
"total_cost": "900",
"unit_type": {
"id": "00000000-0000-0000-0000-0000000e5dcc",
"name": "Ounce"
}
},
{
"batch_id": "00000000-0000-0000-0000-000000005569",
"completion_datetime": "2026-01-23T19:52:57.280168Z",
"compliance_quantity": null,
"compliance_unit_type": null,
"description": null,
"id": "00000000-0000-0000-0000-0000000004e9",
"license_id": null,
"location_id": "00000000-0000-0000-0000-000000006e3a",
"owner_id": null,
"package_id": null,
"product_id": "3f0d7c65-8487-460b-ad84-0ea94a9fe3b4",
"quantity": "1",
"reason": "revaluation",
"total_cost": "-800",
"unit_type": {
"id": "00000000-0000-0000-0000-0000000e5dca",
"name": "Gram"
}
}
],
"next_page": null
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzgsImlhdCI6MTc2OTE5Nzk3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDMzNWVkNzEtODFiZS00MDY5LTgwZTgtNWQ2MjA3N2VmNWQ1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM5NDMiLCJ0eXAiOiJhY2Nlc3MifQ.sqpLkMSZ3qoehP4q-Jg48H2RYCZDtW0xkyah5bKPPjE
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "00000000-0000-0000-0000-000000006e64",
"product_id": "2acf8e20-326d-423c-950b-d95d2873bdc3",
"quantity": 10,
"reason": "expired"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 517a1b66a8f200000000000000000001-c89596b1ac1165cc-0
{
"data": {
"batch_id": null,
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": null,
"compliance_unit_type": null,
"description": "test",
"id": "00000000-0000-0000-0000-000000000500",
"license_id": null,
"location_id": "00000000-0000-0000-0000-000000006e64",
"owner_id": null,
"package_id": null,
"product_id": "2acf8e20-326d-423c-950b-d95d2873bdc3",
"quantity": "10",
"reason": "expired",
"total_cost": null,
"unit_type": {
"id": "00000000-0000-0000-0000-0000000e6893",
"name": "Gram"
}
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzQsImlhdCI6MTc2OTE5Nzk3NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTQ5NjJmYWYtZGQyZC00MzljLThjNTAtNTI2YjRmZjhmZjYwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTczLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTMyMDUiLCJ0eXAiOiJhY2Nlc3MifQ.QSo-RUnZYAhdFu5QnGALajG4zCYbHwbWDJtRhZUOJm0
{
"batch_id": "00000000-0000-0000-0000-0000000054ce",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "00000000-0000-0000-0000-000000006de8",
"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: 06bbe8ff105e71800000000000000001-f627922d366c54db-0
{
"data": {
"batch_id": "00000000-0000-0000-0000-0000000054ce",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": null,
"compliance_unit_type": null,
"description": "test",
"id": "00000000-0000-0000-0000-0000000004ac",
"license_id": null,
"location_id": "00000000-0000-0000-0000-000000006de8",
"owner_id": null,
"package_id": null,
"product_id": "498bb934-20f2-43d0-adc5-e9c069260a3a",
"quantity": "10",
"reason": "expired",
"total_cost": "10000",
"unit_type": {
"id": "00000000-0000-0000-0000-0000000e4ba6",
"name": "Gram"
}
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzcsImlhdCI6MTc2OTE5Nzk3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiYTQ3Mjk0YzctNTkzYi00ODkxLTlmOTYtNzY4ZTFmZDM3MmNlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM4NzIiLCJ0eXAiOiJhY2Nlc3MifQ.5h0oakdh9pQhDy_54SSMr910igTedjdfPjzYYjM_ndU
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": 10,
"description": "test",
"package_id": "00000000-0000-0000-0000-00000000204b",
"reason": "Damage (BCC)",
"unit_cost": 1000
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: b24246efcb6188000000000000000001-16135b9547750f84-0
{
"data": {
"batch_id": null,
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": "10",
"compliance_unit_type": {
"id": "00000000-0000-0000-0000-0000000e65b8",
"name": "Ounce"
},
"description": "test",
"id": "00000000-0000-0000-0000-0000000004fc",
"license_id": "00000000-0000-0000-0000-0000000045cf",
"location_id": "00000000-0000-0000-0000-000000006e59",
"owner_id": null,
"package_id": "00000000-0000-0000-0000-00000000204b",
"product_id": "37159a98-a929-4c0a-a8ca-befd4673dcf8",
"quantity": "0.35274",
"reason": "Damage (BCC)",
"total_cost": "10000.000000005834",
"unit_type": {
"id": "00000000-0000-0000-0000-0000000e65b6",
"name": "Gram"
}
}
}
POST /public/v1/adjustments pointer translation works as intended
POST /public/v1/adjustments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzUsImlhdCI6MTc2OTE5Nzk3NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNmEyNGFmZTItZDg4Yi00YWYxLTg5NGMtMDNjZmEyNDg1NTAzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM1MTMiLCJ0eXAiOiJhY2Nlc3MifQ.mIYP39IAYrq0Q9C-2KiHNfBRNBGKcqJli5S73-onXy8
{
"description": "test",
"package_id": "00000000-0000-0000-0000-000000002042",
"quantity": 10,
"reason": "Damage (BCC)"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 5a746974dee5b0000000000000000001-162d5b56abf618d8-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzgsImlhdCI6MTc2OTE5Nzk3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNWJmMzI3NDMtYjIwNS00MzUxLTlmN2MtNGIwMDM3YjViNTljIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQwMDkiLCJ0eXAiOiJhY2Nlc3MifQ.SltF7hlJ0zBiofxgqOM7zSkNf6yO20e9eqCgfYsJoUk
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "00000000-0000-0000-0000-000000006e74",
"product_id": "bb65088f-1cd6-4720-8da7-b40f1299a495",
"quantity": 10,
"reason": "expired"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: db082971f785f8000000000000000001-a2c58b1cd6bd5ce2-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzgsImlhdCI6MTc2OTE5Nzk3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNzgwNTYxZTItM2M1OC00OWYwLWE5YzUtMmFhNzcxYmIzMzkwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQwNDkiLCJ0eXAiOiJhY2Nlc3MifQ.M7ZTjh7HyYCrJMgF83blDO7Coj93wVdRBOclcLaGFBc
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": 10,
"description": "test",
"location_id": "00000000-0000-0000-0000-000000006e80",
"product_id": "f07918a9-24f6-4584-9c33-16c65e2d24ad",
"reason": "expired"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 915fb447523898000000000000000001-b5cdfcf590f40e92-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzYsImlhdCI6MTc2OTE5Nzk3NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTIzMDEyMTYtNTkwNi00Mzc0LTkwNjgtZTlmODYwOTllMDY4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM2NTYiLCJ0eXAiOiJhY2Nlc3MifQ.Z6bydOBq_UfUfUxkZAZYhTP88xlXS6Kgz5aCPFY5aqc
{
"batch_id": "f88c0d09-b28d-4daa-8d74-e78d947888dd",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "f629d453-579d-46cf-bcb6-6b7fd4481a1b",
"package_id": "0210bbe1-48b8-4b3b-9f19-e1be999d0118",
"product_id": "cc72f567-09fe-443d-9d98-4e6591036610",
"reason": "expired"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 82c75de63a9c68000000000000000001-0cdd63a3800bd55e-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzYsImlhdCI6MTc2OTE5Nzk3NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiN2RiYjg5MzAtZjU0MC00Mjg1LWFiZjEtZDgyMzgyYzA1NWQzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM2MjkiLCJ0eXAiOiJhY2Nlc3MifQ.-8jGaLkdn3SBFObayISkmcwcyg6HUG29g1AybPv4anQ
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "0b125df7-4b32-4aa9-a35e-b6ddf9548655",
"reason": "expired"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 5d53d2ff18af38000000000000000001-9d784909e01b7e21-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzgsImlhdCI6MTc2OTE5Nzk3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiODJlOTBjY2QtNzVkNS00NDc2LTljYmUtZDcyM2Q1NTRlZDc4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM5MjgiLCJ0eXAiOiJhY2Nlc3MifQ.BNcrS2CUPp3FXTDOl9oFTNeckSxh4yYUgrqOkXbGDXo
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "69fc5bc3-3b1e-48a0-ab82-e889348a2e2c",
"product_id": "ba54b55e-032d-4028-ad20-512de893d78a",
"quantity": 10,
"reason": "waste"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 182d63077f0da0000000000000000001-15e5ffcde3d03a1a-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzgsImlhdCI6MTc2OTE5Nzk3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYzQxMzIwYWUtNmM3Mi00YmUxLTk3MzMtYmU5YzFiNzNlOWU5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM5MzUiLCJ0eXAiOiJhY2Nlc3MifQ.B5B2T1OWi2Oyg0lALifp9hzeHLTtFPnroPcF4BukQXA
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": 10,
"description": "test",
"location_id": "5d8c2c4d-293c-457c-b77a-a1a593328a4e",
"package_id": "f9968b19-e477-449c-a252-8bf320e81004",
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: b08630d4145f50000000000000000001-e4fca8e2b9741d5d-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzUsImlhdCI6MTc2OTE5Nzk3NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDEwODNmNDYtMmFmYi00OTYwLWJiNmItOTNjNTA4YzBlOGFiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM0NzkiLCJ0eXAiOiJhY2Nlc3MifQ.KMH1MjeHoZAVNUtH1MhaAJ8o_t0WasTpaMDeg-NRRac
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"product_id": "f6b364c0-b494-4b50-bcdd-eff6aed1421c",
"quantity": 10,
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: d58c1708043de0000000000000000001-1ee144b7ac1f1f88-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzgsImlhdCI6MTc2OTE5Nzk3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTI1ODM4MmQtNjg5YS00ZjNhLWE5NjQtYzNkNzRlZmM3YWMwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM5NzAiLCJ0eXAiOiJhY2Nlc3MifQ.waiEcGCAh0NWcmp7yPZBS3f5nNrdDZXRRTO9o6a0B4o
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "82e85be6-4b2d-4d93-91e1-ddafd52a1861",
"product_id": "771ce44c-9dad-4ac8-b0b8-592d2a901994",
"quantity": 10,
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 3b55f6fbe1b3a8000000000000000001-8bcfd3dd7b78ed76-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzYsImlhdCI6MTc2OTE5Nzk3NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMGJhNDM5YzgtOTczNi00N2FhLThiZWQtMmMyYzJkMWE2NjEwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM2MzciLCJ0eXAiOiJhY2Nlc3MifQ.ntGq9pJ8YxtjHObUT1Av7gneg2jDCdh3_qx6vcsTfVc
{
"batch_id": "00000000-0000-0000-0000-00000000553c",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "4d531682-20d0-4a92-93b7-812be30d32e8",
"quantity": 10,
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: f2587608eaba58000000000000000001-0246e2e1c869d03d-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzgsImlhdCI6MTc2OTE5Nzk3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDQ0ZjE2MmUtODYxMS00MWI5LWJiZjYtMTYyNjg4MmZlYmM2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM5ODQiLCJ0eXAiOiJhY2Nlc3MifQ.NoKX-CXUK7Q0JZ4M7CLaXjarSGjxf9AeWBGwLYaHU5I
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": 10,
"description": "test",
"package_id": "00000000-0000-0000-0000-00000000204e",
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: b933cbd29691d8000000000000000001-2567e965ef7361a3-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzYsImlhdCI6MTc2OTE5Nzk3NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYmVkYmYwODktZTE0MS00MzM4LTlmMTYtYTExYTA2YzI5MzM3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM2MDgiLCJ0eXAiOiJhY2Nlc3MifQ.5XsLwJeA1-PS_kg1boTQlY_-7ojsJ6kezJ8OJ5tol_A
{
"batch_id": "00000000-0000-0000-0000-000000005532",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "00000000-0000-0000-0000-000000006e32",
"quantity": 10,
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: cc3533d5c288c8000000000000000001-efdae94cca193235-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzQsImlhdCI6MTc2OTE5Nzk3NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZmE5NWUyM2MtNGE5MC00NTVhLWE2NGItNWI3NzE1ZGJiMGNmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTczLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTMyNDEiLCJ0eXAiOiJhY2Nlc3MifQ.HELlGmpE3knJFRsKm39IKwaioFsm4w2_3tU8DuCYexY
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: c28e1cf591d980000000000000000001-085be745b6096273-0
{
"data": [
{
"id": "00000000-0000-0000-0000-0000000003df",
"name": "Strain 0"
},
{
"id": "00000000-0000-0000-0000-0000000003e0",
"name": "Strain 1"
}
],
"next_page": null
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzYsImlhdCI6MTc2OTE5Nzk3NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYzFjMDIxNDYtODcyNC00NzZmLWFjZTYtOWNkYWI2NDQ3MjYxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM2NzQiLCJ0eXAiOiJhY2Nlc3MifQ.FnUMHQMoJ46I8ZkiYszhpg4iNsHQwk4wmADT_6KHF2g
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 28f5b25f58c0ca000000000000000001-4111ca5a71e14657-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-00000000033f",
"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-000000002045",
"release_date": "2026-01-23",
"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": "2026-01-23T19:52:57.087412Z"
},
{
"additional_test_results": {
"thca_percentage": "12"
},
"batch_id": "00000000-0000-0000-0000-000000005559",
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-000000000340",
"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": "2026-01-23T19:52:57.105594Z"
},
{
"additional_test_results": {},
"batch_id": null,
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-000000000341",
"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-000000002047",
"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": "2026-01-23T19:52:57.219594Z"
}
],
"next_page": null
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzgsImlhdCI6MTc2OTE5Nzk3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjk1MmQxNmEtMjZlMC00MWQ2LWIyNDctYjY1MWQwNTNhNjkzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM5NDIiLCJ0eXAiOiJhY2Nlc3MifQ.g2nkieTruYwG5EiGug6dWoy3qqMYrUr_zH1zUS4GqnE
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 855cee1fdb9788000000000000000001-3bee89c8f18cc947-0
{
"data": [
{
"additional_test_results": {
"spiroxamine_a_ug_per_g": "13",
"thiacloprid_ug_per_g": "14"
},
"batch_id": "00000000-0000-0000-0000-0000000055ac",
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-000000000350",
"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": "2026-01-23T19:52:58.179935Z"
}
],
"next_page": null
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzcsImlhdCI6MTc2OTE5Nzk3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZmM3YzFiZDctODk4My00NjQ2LTg1NTMtNDY0OTMxMjVhOWM0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM4MTQiLCJ0eXAiOiJhY2Nlc3MifQ.slXbkRyKTNxkwu3G5F1dZIjm0zMI4GGc9u0A8q78rnU
{
"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-00000000557e",
"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: bbb24468021f98000000000000000001-493fcd77fffd2161-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-00000000557e",
"cbd_mg_per_unit": "1.1",
"cbd_percentage": "2.2",
"id": "00000000-0000-0000-0000-000000000346",
"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": "2026-01-23T19:52:57.510789Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzQsImlhdCI6MTc2OTE5Nzk3NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTdjNjA1YTAtY2VjYy00YzczLWE3NzUtMTBhNGM3MWYxNmE5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTczLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTMyOTEiLCJ0eXAiOiJhY2Nlc3MifQ.C4Z7QTZaDSrluEnhBRJ9SuditMp4dE5fgJO-XksT8Ac
{
"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-00000000203e"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 6ebb8fb0699754000000000000000001-b0bb3a0f67675ad1-0
{
"data": {
"additional_test_results": {},
"batch_id": null,
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-00000000033e",
"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-00000000203e",
"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": "2026-01-23T19:52:56.545676Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzgsImlhdCI6MTc2OTE5Nzk3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDI2Y2JkOTYtMTBiNy00ZmE5LWJhMzEtZmI0MTkwYzJlMDI2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM5MzAiLCJ0eXAiOiJhY2Nlc3MifQ.j_PQ94TZbiVoSxPLgcwfbi_87ZyJOZD2L_959okMCXo
{
"batch_id": "00000000-0000-0000-0000-0000000055a4",
"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: df36d040283628000000000000000001-21f4d30adec49351-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzgsImlhdCI6MTc2OTE5Nzk3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTExMzU2Y2ItMTVkMi00NGNkLWFhYmMtMjk2MDI1YzkyMTMxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM5NjUiLCJ0eXAiOiJhY2Nlc3MifQ.ZCU_uEB-NJUcMbwKDFnQJpkCm8A_aGFpP9gwFMlL9mk
{
"additional_test_results": {},
"batch_id": "00000000-0000-0000-0000-0000000055b5",
"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: 9f386d1115a1d0000000000000000001-36670afb3167e906-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzcsImlhdCI6MTc2OTE5Nzk3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjA5MmMxZjMtMDgyYS00Y2IwLWJlNmUtN2E1MzJlN2NkY2RmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM4MjUiLCJ0eXAiOiJhY2Nlc3MifQ.p6t7kThJzjtBQAkfRcO_HDX9r6uZI7Jam1NjyQC36yg
{
"additional_test_results": {
"thca_percentage": "15"
},
"id": "00000000-0000-0000-0000-000000000347",
"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: fe68f0833ea048000000000000000001-968fd0871ac0df20-0
{
"data": {
"additional_test_results": {
"thca_percentage": "15"
},
"batch_id": "00000000-0000-0000-0000-000000005583",
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-000000000347",
"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": "2026-01-23T19:52:57.597130Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDA2NDc1NzQsImlhdCI6MTc2OTE5Nzk3NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMmIzNjdmODYtZGFjMy00Y2E3LWI4Y2YtOWM1YjBhZmIzMTA5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzY5MTk3OTczLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTMyNjIiLCJ0eXAiOiJhY2Nlc3MifQ.5PlZWuwQkiqbMdOJ_tFH_69zlL8JRx7nBkYSJxmEioA
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 6c7ce94ba2b60c000000000000000001-6d382c16ec38750b-0
{
"data": [
{
"banned": false,
"deleted_at": null,
"email": "owner-166@example.com",
"full_name": "FirstName334 LastName335",
"id": "00000000-0000-0000-0000-000000016c4e",
"role": {
"id": "00000000-0000-0000-0000-000000016b42",
"name": "Admin 163"
}
},
{
"banned": false,
"deleted_at": null,
"email": "owner-167@example.com",
"full_name": "FirstName336 LastName337",
"id": "00000000-0000-0000-0000-000000016c4f",
"role": {
"id": "00000000-0000-0000-0000-000000016b43",
"name": "Admin 164"
}
}
],
"next_page": null
}
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, | |
| deleted | Filter deleted users. no returns non-deleted, only returns deleted, include returns both. |
query | string | false | no | |
| 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/strainsendpoint. - 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/purchasesendpoint.
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-methodsendpoint.
2025-01-15
- Added POST
/public/v1/purchases/:id/paymentsendpoint. - Added POST
/public/v1/invoices/:id/paymentsendpoint.
2025-01-17
- Added
product_unit_quantityto GET/public/v1/packagesendpoint. - Added
product_unit_typeto GET/public/v1/packagesendpoint.
2025-01-31
- Added POST
/public/v1/batchesendpoint. - Added batch_number, product_id, owner_id and description to GET
/public/v1/batchesendpoint. - Added title and phone_number to GET
/public/v1/contactsendpoint.
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
2025-08-19
- 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/assembliesendpoint.
2025-03-11
- Added
total_cost_actual,total_cost_defaultandreturned_quantityto "items" in GET/public/v1/invoicesendpoint. - Added
total_cost_actual,total_cost_defaultandreturned_quantityto "items" in GET/public/v1/invoices/:idendpoint. - Added
total_cost_actual,total_cost_defaultandreturned_quantityto "items" in GET/public/v1/ordersendpoint. - Added
total_cost_actual,total_cost_defaultandreturned_quantityto "items" in GET/public/v1/orders/:idendpoint.
2025-03-18
- Modified
unit_net_weightandunit_serving_sizein GET/public/v1/productsendpoint: These fields can now be populated regardless of the product's unit type.
2025-04-09
- Added the following fields to GET
/public/v1/companiesendpoint:legal_business_namedefault_emailphone_numberinvoice_emailsales_order_emailpurchase_order_emailorder_shipment_emailwebsitedefault_sales_order_notesdefault_purchase_order_notesoutstanding_balance_thresholdowner_id
2025-05-06
- Added
is_trade_sampleto GET/public/v1/packagesendpoint.
2025-05-13
- Added GET
/public/v1/adjustmentsendpoint.
2025-05-14
Added
custom_datato 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_adjustmentsendpoint.
2025-05-16
- Added GET
/public/v1/test-results - Added POST
/public/v1/test-results
2025-05-18
- Added
leaflink_order_numberto GET/public/v1/orders
2025-05-22
- Added
external_nameto GET/POST/public/v1/products
2025-05-27
- Added
biotrack_idandmetrc_transfer_idto POST/public/v1/orders
2025-06-09
- Added POST
/public/v1/file-attachmentsendpoint for uploading files and attaching them to business entities (products, orders, purchases, etc.).
2025-06-12
- Added
metrc_transfer_idandbiotrack_idto GET/public/v1/orders
2025-06-12
- Changed
coston GET/public/v1/assembliestototal_cost_actualiningredients - Added
total_cost_defaultto GET/public/v1/assembliesiningredients - Added
total_cost_actualto GET/public/v1/assembliesinadditional_costs - Added
total_cost_defaultto GET/public/v1/assembliesinadditional_costs
2025-07-01
- Added
description_markdownto GET/POST/public/v1/products
2025-08-20
- Added GET
/public/v1/product-pos-mappingsendpoint - Added POST
/public/v1/product-pos-mappingsendpoint - Added DELETE
/public/v1/product-pos-mappings/:idendpoint
2025-08-21
- Added
groupto GET/public/v1/companies
2025-09-10
Added
cost_per_unit_actualandcost_per_unit_defaultto the following endpoints:- GET
public/v1/assemblies - GET
public/v1/orders - GET
public/v1/orders/:id - GET
public/v1/invoices - GET
public/v1/invoices/:id - GET
public/v1/batches - GET
public/v1/packages
- GET
Added fields
total_cost_actual,total_cost_defaultand attributeinclude_coststo the following endpoints:- GET
public/v1/batches - GET
public/v1/packages
- GET
2025-15-10
Added the following fields to
public/v1/inventorytotal_cost_actualtotal_cost_defaultcost_per_unit_actualcost_per_unit_default
2025-19-10
- Added
unit_costto the endpoint GETpublic/v1/products
2025-24-10
Added the following fields to
public/v1/productsunit_net_weight_serving_size_unit_typeunit_net_weightunit_serving_size
2026-01-19
Added the following endpoints:
- POST
public/v1/contacts - POST
public/v1/custom-fields
- POST
Added the following fields to
public/v1/adjustmentscompliance_unit_typeunit_type
Added the
batch_idsandlocation_idsfilter parameters to GETpublic/v1/inventory.Added the
product_idandbatch_numberfilter parameters to GETpublic/v1/batches.Added the
product_namefilter parameter to GETpublic/v1/products.Added the
product_idsfilter parameter to GETpublic/v1/packages.
2026-01-21
- Added the
manufactured_datetimefield to GETpublic/v1/batchesand POSTpublic/v1/batches. - Added the
assembly_numberandestimated_start_datefields to GETpublic/v1/assemblies. - Added the
reservedfield to GETpublic/v1/inventory.
2026-01-23
- Added the
deleted_atfield and thedeletedfilter parameter to the following endpoints:- GET
public/v1/batches(breaking change: deleted batches are no longer returned by default) - GET
public/v1/companies - GET
public/v1/contacts - GET
public/v1/locations - GET
public/v1/payment_methods - GET
public/v1/products(breaking change: deleted products are no longer returned by default) - GET
public/v1/users
- GET
- Added
estimated_departure_datetimeandestimate_arrival_datetimetometrc_transfer_template_transporter_infofield in POSTpublic/b1/orders.- Added automatic estimated departure / arrival calculations for transporters such that, if left blank, the fields will be populated with the first departure estimate being the time that the template was sent to Metrc, the drive time for each transporter being 1 hour, and the departure of the next transporter being the arrival time of the previous transporter.
- Modified Destination estimated departure / arrival times to be the first departure and the last arrival of the specified transporters.