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",
"strain_type": "INDICA"
}
| Property | Description | Type | Required |
|---|---|---|---|
| id | Unique ID for this strain | string | false |
| name | Name of the strain | string | false |
| strain_type | The type of 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 |
| menus | Menus this product is associated with, ordered by menu creation time then id (includes inactive menus) | array(ProductMenuRef) | 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 |
|---|
ProductMenuRef
A menu association for a product
| Property | Description | Type | Required |
|---|---|---|---|
| menu_id | Public ID of the menu | string | false |
| menu_name | Display name of the menu | string | false |
Menus
A collection of menus
| Property | Description | Type | Required |
|---|---|---|---|
| data | Menus | array(Menu) | false |
| next_page | URL for the next page of results; null when there is no next page | string | false |
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 Purchase charge params
| Property | Description | Type | Required |
|---|
PurchaseItemRequest
Purchase item params. Must provide either batch_id or product_id. If batch_id is provided, product_id will be auto-filled. If product_id is provided for a product-tracked item, batch_id will be auto-filled.
| Property | Description | Type | Required |
|---|---|---|---|
| batch_id | The ID of the batch | 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 purchase order item record | string | false |
| price | Price per unit of the inventory being received on this purchase item | number | true |
| product_id | The ID of the product | string | false |
| quantity | Quantity received in this purchase 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 |
Return
A return as shown in Distru
{
"company": {
"id": "00000000-0000-0000-0000-00000000000a",
"name": "RAW"
},
"custom_data": {},
"description": "Customer return for damaged goods",
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"inserted_at": "2024-12-12T20:26:19.297537Z",
"invoice_numbers": [
"INV-001",
"INV-002"
],
"items": [
{
"id": "e5f6a7b8-c9d0-1234-ef01-23456789abcd",
"price": 30.1,
"product": {
"id": "p1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Blue Dream Preroll 1G",
"sku": "BDP-1G",
"updated_datetime": "2024-12-12T20:26:19.297537Z"
},
"quantity": 5,
"waste": false
}
],
"location": {
"address": "420 smoke lane, Oakland, CA 94636, USA",
"company_id": "00000000-0000-0000-0000-000000000001",
"id": "00000000-0000-0000-0000-000000000001",
"name": "Warehouse 1"
},
"order_id": "67ae9080-8dc2-4ab7-9704-19673f4d9f21",
"order_number": "SO-12345",
"order_quantity": "100",
"owner": {
"banned": false,
"email": "admin@thcdistributioninc.com",
"full_name": "Greg Owner",
"id": "00000000-0000-0000-0000-000000000001",
"role": {
"id": "00000000-0000-0000-0000-000000000001",
"name": "Admin"
}
},
"return_datetime": "2024-12-12T20:26:19.297537Z",
"return_number": "RET-001",
"return_quantity": "50",
"return_type": "Partial Return",
"status": "Shipped",
"total": 150.5,
"updated_at": "2024-12-12T20:26:19.297537Z"
}
| Property | Description | Type | Required |
|---|---|---|---|
| company | A company as shown in Distru | Company | false |
| custom_data | Custom data associated with this return | map | false |
| description | Description of the return | string | false |
| id | Unique ID for this return | string | false |
| inserted_at | The datetime at which the return was created in Distru | string | false |
| invoice_numbers | Invoice numbers associated with the order | array(any) | false |
| items | The items on this return | array(ReturnItem) | false |
| location | A location as shown in Distru | Location | false |
| order_id | The associated order ID (UUID) | string | false |
| order_number | The order number from the associated order | string | false |
| order_quantity | Total quantity of all items on the associated order | string | false |
| owner | Information about a user in Distru | User | false |
| return_datetime | The datetime of the return | string | false |
| return_number | The return number as shown in the Distru UI | string | false |
| return_quantity | Total quantity of all items on this return | string | false |
| return_type | Indicates if this is a Full Return or Partial Return. Full Return means ALL order items have been FULLY returned. Null if not associated with an order. | string | false |
| status | The status of this return | string | false |
| total | The total amount of this return | number | false |
| updated_at | The datetime at which the return was last updated in Distru | string | 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",
"payment_term_name": "Net 30",
"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 |
| payment_term_name | The name of the payment term applied to this order | string | 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 |
Returns
A collection of Returns
| Property | Description | Type | Required |
|---|
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 |
| owner | Information about a user in Distru | User | false |
| purchase_number | The purchase order number as shown in the Distru UI | string | 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 | true |
| percent | The percent value for this charge. Required if unit_type is PERCENT | number | false |
| price | The flat price for this charge. Required if unit_type is PRICE. Auto-calculated for percent-based charges | number | false |
| type | Type of this line item. Note: Tax charges should be sent as CHARGE with a tax_id | 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 and time this package expires (ISO 8601) | string | false |
| harvest_date | The harvest date for this package (ISO 8601) | 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 |
| lab_testing_state | Compliance lab testing state (e.g. Metrc); BioTrack uses analogous values | string | false |
| license | A license as shown in Distru | License | false |
| packaged_date | The compliance packaged date for this package (ISO 8601) | string | 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 |
Menu
| Property | Description | Type | Required |
|---|---|---|---|
| active | Whether the menu is active | boolean | false |
| external_name | External menu name | string | false |
| id | Unique ID for this menu | string | false |
| inserted_datetime | Created at (UTC ISO-8601) | string | false |
| internal_name | Internal menu name | string | false |
| product_count | Count of active products on the menu | integer | false |
| updated_datetime | Updated at (UTC ISO-8601) | string | false |
| visibility | One of: PUBLIC, PRIVATE, PASSCODE_PROTECTED | 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 |
ReturnItem
A return item as shown in Distru
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"price": 30.1,
"product": {
"id": "p1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Blue Dream Preroll 1G",
"sku": "BDP-1G",
"updated_datetime": "2024-12-12T20:26:19.297537Z"
},
"quantity": 5,
"waste": false
}
| Property | Description | Type | Required |
|---|---|---|---|
| id | Unique ID for this return item | string | false |
| price | Price per unit | number | false |
| product | A product as shown in Distru | Product | false |
| quantity | Quantity returned | number | false |
| waste | Whether this item was marked as waste | boolean | 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDksImlhdCI6MTc3OTgxNDAwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiODBmMjE1ZmQtOWYwZi00YTY5LWE5MTMtYjIzZjEwNGJkNGFlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5MjQ2IiwidHlwIjoiYWNjZXNzIn0.X2u4g97hvifnV1BwTIARw_7ME5qyBeY2kJS5ZR7mJv4
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: a85eec5d5528d8000000000000000001-d3ce1d2507a474f6-0
{
"data": [
{
"assembly_number": "AS-0000001",
"completion_datetime": "2026-05-26T16:46:50.015477Z",
"compliance_type": "NONE",
"creation_source": "MANUALLY_CREATED",
"custom_data": [
{
"id": 4399,
"name": "Custom Field 14",
"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": "dda9756a-9663-4bda-ab54-ec186d652f6e",
"is_metrc_processing_job": false,
"license": null,
"outputs": [
{
"additional_costs": [
{
"cost_per_unit": "-1",
"description": null,
"name": "CostType 1",
"quantity": "1",
"total_cost_actual": "-1",
"total_cost_default": "0",
"unit_type": {
"id": "00000000-0000-0000-0000-00000083f50c",
"name": "Unit Type 4"
}
}
],
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035928",
"name": "B794"
},
"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-000000035928",
"name": "B794"
},
"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-000000098f1a",
"id": "00000000-0000-0000-0000-00000003f9a7",
"license_id": null,
"name": "Place 228"
},
"package": null,
"product": {
"id": "7c418135-e885-4e39-b822-fe0579c45d7e",
"name": "Product 787",
"sku": "sku 788",
"updated_datetime": "2026-05-26T16:46:49.957850Z"
},
"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-000000098f1a",
"id": "00000000-0000-0000-0000-00000003f9a7",
"license_id": null,
"name": "Place 228"
},
"package": null,
"package_datetime": null,
"package_unit_type": null,
"product": {
"id": "7c418135-e885-4e39-b822-fe0579c45d7e",
"name": "Product 787",
"sku": "sku 788",
"updated_datetime": "2026-05-26T16:46:49.957850Z"
},
"quantity": "2",
"total_cost_actual": "-0.6",
"total_cost_default": "1"
}
],
"owner_id": "00000000-0000-0000-0000-0000000d1c6e",
"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-00000063&page[number]=1
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTAsImlhdCI6MTc3OTgxNDAxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTIyNDlhYTMtODcxZS00YjZmLTkzOGQtM2NiMzk1MDBiNTRhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NDcxIiwidHlwIjoiYWNjZXNzIn0.wK7ebjiZBI768mvLgl5HrOwUpixBRf-iT7VTZMMcXWc
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 855c71a6349da8000000000000000001-e0bcf8ec99489c73-0
{
"data": [
{
"assembly_number": "AS-0000001",
"completion_datetime": null,
"compliance_type": "METRC",
"creation_source": "MANUALLY_CREATED",
"custom_data": [
{
"id": 4401,
"name": "Custom Field 16",
"value": null
}
],
"description": null,
"estimated_start_date": null,
"estimated_work_hours": null,
"estimated_work_minutes": null,
"fulfilled": true,
"id": "4370ed23-633a-4e86-9a0f-fb0acce7e371",
"is_metrc_processing_job": false,
"license": {
"id": "00000000-0000-0000-0000-0000000245d6",
"license_number": "CDPH-00000063"
},
"outputs": [
{
"additional_costs": [],
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035968",
"name": "B996"
},
"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-000000035968",
"name": "B996"
},
"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-000000098f9e",
"id": "00000000-0000-0000-0000-00000003f9da",
"license_id": "00000000-0000-0000-0000-0000000245d6",
"name": "Place 279"
},
"package": {
"batch_number": "1234567890",
"compliance_label": "ABCDEF012345670000000102",
"id": "00000000-0000-0000-0000-000000011624",
"metrc_label": "ABCDEF012345670000000102",
"status": "active"
},
"product": {
"id": "74a1c571-6da1-456a-9f37-90b241550845",
"name": "Product 987",
"sku": "sku 988",
"updated_datetime": "2026-05-26T16:46:50.989000Z"
},
"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-000000098f9e",
"id": "00000000-0000-0000-0000-00000003f9da",
"license_id": "00000000-0000-0000-0000-0000000245d6",
"name": "Place 279"
},
"package": null,
"package_datetime": "2026-05-26",
"package_unit_type": {
"id": "00000000-0000-0000-0000-00000083fb58",
"name": "Gram"
},
"product": {
"id": "74a1c571-6da1-456a-9f37-90b241550845",
"name": "Product 987",
"sku": "sku 988",
"updated_datetime": "2026-05-26T16:46:50.989000Z"
},
"quantity": "2",
"total_cost_actual": null,
"total_cost_default": null
}
],
"owner_id": "00000000-0000-0000-0000-0000000d1d4f",
"status": "PENDING"
}
],
"next_page": null
}
GET /public/v1/assemblies returns proper data for completed metrc assembly
GET /public/v1/assemblies?completion_datetime=2026-05-26+15%3A46%3A50.767339Z%2C2026-05-26+17%3A46%3A50.767339Z&creation_source=MANUALLY_CREATED&license_number=CDPH-00000052&page[number]=1
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTAsImlhdCI6MTc3OTgxNDAxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYWM3N2I5NDItYTM1Yi00YzYyLTkyZjctOWFlZWY4YzA2ZTAyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NDAwIiwidHlwIjoiYWNjZXNzIn0.1y2b3mCuw0B-5jKjsILAKFJOLAxWeUF9aWd48lq5LHk
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 581938f0430650000000000000000001-6fc3a9e50910cda9-0
{
"data": [
{
"assembly_number": "AS-0000001",
"completion_datetime": "2026-05-26T16:46:50.767339Z",
"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": "b71addcf-6b3d-42ae-82e5-f3e6f7a1f74a",
"is_metrc_processing_job": false,
"license": {
"id": "00000000-0000-0000-0000-0000000245cb",
"license_number": "CDPH-00000052"
},
"outputs": [
{
"additional_costs": [],
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035955",
"name": "B929"
},
"compliance_label": "1A4010200001234000000000",
"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-000000035955",
"name": "B929"
},
"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-000000098f75",
"id": "00000000-0000-0000-0000-00000003f9c5",
"license_id": "00000000-0000-0000-0000-0000000245cb",
"name": "Place 258"
},
"package": {
"batch_number": "1234567890",
"compliance_label": "ABCDEF012345670000000082",
"id": "00000000-0000-0000-0000-000000011617",
"metrc_label": "ABCDEF012345670000000082",
"status": "active"
},
"product": {
"id": "be55b0d1-79c7-4bb4-8881-c084bbb09bd7",
"name": "Product 927",
"sku": "sku 928",
"updated_datetime": "2026-05-26T16:46:50.605544Z"
},
"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-000000098f75",
"id": "00000000-0000-0000-0000-00000003f9c5",
"license_id": "00000000-0000-0000-0000-0000000245cb",
"name": "Place 258"
},
"package": {
"batch_number": null,
"compliance_label": "1A4010200001234000000000",
"id": "00000000-0000-0000-0000-00000001161a",
"metrc_label": "1A4010200001234000000000",
"status": "active"
},
"package_datetime": "2026-05-26",
"package_unit_type": {
"id": "00000000-0000-0000-0000-00000083f8ff",
"name": "Gram"
},
"product": {
"id": "be55b0d1-79c7-4bb4-8881-c084bbb09bd7",
"name": "Product 927",
"sku": "sku 928",
"updated_datetime": "2026-05-26T16:46:50.605544Z"
},
"quantity": "2",
"total_cost_actual": null,
"total_cost_default": null
}
],
"owner_id": "00000000-0000-0000-0000-0000000d1d08",
"status": "COMPLETED"
}
],
"next_page": null
}
GET /public/v1/assemblies returns proper data for biotrack assembly
GET /public/v1/assemblies?completion_datetime=2026-05-26+15%3A46%3A49.659121Z%2C2026-05-26+17%3A46%3A49.659121Z&creation_source=MANUALLY_CREATED&license_number=CDPH-00000003&page[number]=1
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDYsImlhdCI6MTc3OTgxNDAwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiM2NlODNiMWQtZGFlMS00YzdiLThlMWUtZWY1ODM1YTU1YTNhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4MzY2IiwidHlwIjoiYWNjZXNzIn0.z2quujHRMNBj2NhjS01UcLlidFRpmNCiquf8FQjWmno
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 23e5ee17271332000000000000000001-9e7c3a0960a73a71-0
{
"data": [
{
"assembly_number": "AS-0000001",
"completion_datetime": "2026-05-26T16:46:49.659121Z",
"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": "775dbb14-cb88-4ce5-bd3f-c20cbb876f4c",
"is_metrc_processing_job": false,
"license": {
"id": "00000000-0000-0000-0000-00000002459a",
"license_number": "CDPH-00000003"
},
"outputs": [
{
"additional_costs": [],
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000003585c",
"name": "B58"
},
"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-00000003585c",
"name": "B58"
},
"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-000000098c6c",
"id": "00000000-0000-0000-0000-00000003f8d3",
"license_id": "00000000-0000-0000-0000-00000002459a",
"name": "Place 16"
},
"package": {
"batch_number": null,
"compliance_label": "0000000000000001",
"id": "00000000-0000-0000-0000-0000000115f3",
"metrc_label": "0000000000000001",
"status": "active"
},
"product": {
"id": "3d0eff72-9419-4e7a-98ca-fbd7dedd5335",
"name": "Product 53",
"sku": "sku 54",
"updated_datetime": "2026-05-26T16:46:46.716480Z"
},
"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-000000098c6c",
"id": "00000000-0000-0000-0000-00000003f8d3",
"license_id": "00000000-0000-0000-0000-00000002459a",
"name": "Place 16"
},
"package": {
"batch_number": null,
"compliance_label": null,
"id": "00000000-0000-0000-0000-000000011608",
"metrc_label": null,
"status": "active"
},
"package_datetime": null,
"package_unit_type": {
"id": "00000000-0000-0000-0000-00000083d2a2",
"name": "Gram"
},
"product": {
"id": "3d0eff72-9419-4e7a-98ca-fbd7dedd5335",
"name": "Product 53",
"sku": "sku 54",
"updated_datetime": "2026-05-26T16:46:46.716480Z"
},
"quantity": "1",
"total_cost_actual": null,
"total_cost_default": null
}
],
"owner_id": "00000000-0000-0000-0000-0000000d18fe",
"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.
Required permission: assemblies_permissions_view. Results are filtered to
only include assemblies the authenticated user can access under their team
restrictions.
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 | query | number | false | ?page[number]=1 | |
| 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDgsImlhdCI6MTc3OTgxNDAwOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNzY0N2EzNjItZjNkOC00NzBhLWE2MzAtODRiMDM1NTJiOGQ0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4ODU0IiwidHlwIjoiYWNjZXNzIn0.nNKJCTqpKHoPoUAfPRVyyf1KfJ_Jsi472YfMPfmmcCY
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: b31e46f2c5ecc8000000000000000001-df0fd49b9c74527f-0
{
"data": [
{
"batch_number": null,
"custom_data": [
{
"id": 4375,
"name": "Custom Field 5",
"value": "Custom Data 1"
}
],
"deleted_at": null,
"description": null,
"expiration_date": "2024-01-01T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-0000000358c9",
"manufactured_datetime": "2024-01-02T03:04:05.000000Z",
"name": "B448",
"owner_id": "00000000-0000-0000-0000-0000000d1ae9",
"primary_test_result": null,
"product_id": "0b739bd0-af31-4036-ba3f-2a440be3604b"
},
{
"batch_number": null,
"custom_data": [
{
"id": 4375,
"name": "Custom Field 5",
"value": null
}
],
"deleted_at": null,
"description": null,
"expiration_date": null,
"id": "00000000-0000-0000-0000-0000000358cb",
"manufactured_datetime": "2024-01-02T03:04:05.000000Z",
"name": "B455",
"owner_id": "00000000-0000-0000-0000-0000000d1af1",
"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": "60360e02-25b6-44ae-8088-3975f03de7d0"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDYsImlhdCI6MTc3OTgxNDAwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZWJmNTdlNWItNmZkNi00Mjg0LTlkYjEtMjUxYmMxYjAxYTQzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4NDY4IiwidHlwIjoiYWNjZXNzIn0.gTIwbIdb6YgZMf9KFZ46GaGH9cV_GSNSY0ZCdEE6zUM
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 1b2ab87e57f1ea000000000000000001-1c52b69188af17d2-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-000000035877",
"manufactured_datetime": "2026-05-26T16:46:46.926515Z",
"name": "B155",
"owner_id": "00000000-0000-0000-0000-0000000d1971",
"primary_test_result": null,
"product_id": "b85954b6-2a5e-4d18-80c6-f51fc9328d82",
"total_cost_actual": "21.1",
"total_cost_default": "50"
}
],
"next_page": null
}
GET /public/v1/batches filters by batch_ids
GET /public/v1/batches?batch_ids[]=00000000-0000-0000-0000-0000000358b1&batch_ids[]=00000000-0000-0000-0000-0000000358b3
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDcsImlhdCI6MTc3OTgxNDAwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiY2QyOGJjYTctOGM0YS00MDkxLTg3YmEtZGJjZTViZTMxM2FjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4NzI4IiwidHlwIjoiYWNjZXNzIn0.qiCp2PNT0UH-T-oMbnn7yXxq3EQa5zfX5DeF31T9P1k
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 15a3d7154097cc000000000000000001-e361a23ce6c3245f-0
{
"data": [
{
"batch_number": null,
"custom_data": [],
"deleted_at": null,
"description": null,
"expiration_date": null,
"id": "00000000-0000-0000-0000-0000000358b1",
"manufactured_datetime": "2026-05-26T16:46:47.935768Z",
"name": "B369",
"owner_id": "00000000-0000-0000-0000-0000000d1a69",
"primary_test_result": null,
"product_id": "31e9e08c-e6f4-471e-b475-807b556966e4"
},
{
"batch_number": null,
"custom_data": [],
"deleted_at": null,
"description": null,
"expiration_date": null,
"id": "00000000-0000-0000-0000-0000000358b3",
"manufactured_datetime": "2026-05-26T16:46:47.935768Z",
"name": "B377",
"owner_id": "00000000-0000-0000-0000-0000000d1a73",
"primary_test_result": null,
"product_id": "a1ef337c-0784-4143-bf4e-7566bfbdb406"
}
],
"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.
Required permission: products_permissions_view. Results are filtered to
only include batches the authenticated user can access under their team
restrictions.
Request
GET /public/v1/batches
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| batch_ids | Filter batches by batch IDs | query | array | false | ?batch_ids[]=00000000-0000-0000-0000-000000000001&batch_ids[]=00000000-0000-0000-0000-000000000002 | |
| 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 | query | number | false | ?page[number]=1 | |
| 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDksImlhdCI6MTc3OTgxNDAwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDM3YWE1YzYtNmViYi00MWI1LTkwNjEtNmY1Y2MxZWVjMzVhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5MjE2IiwidHlwIjoiYWNjZXNzIn0.USuCEkyMrwKBG9wIw68mYDll5YSMks5JZr_jBt2noz8
{
"owner_id": "a7aadc41-eabb-42d1-be2d-38ff2ccea530",
"product_id": "b918d650-c12a-44e0-bd8c-8aea75245ed0"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: a8074f618cb9d0000000000000000001-30c9f3081c408768-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDksImlhdCI6MTc3OTgxNDAwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjA2YWVjYjktMTM5Ny00YThhLTlkMmYtZjIwNDBlMWRmNzVkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5MTQzIiwidHlwIjoiYWNjZXNzIn0.j1WbudvGC3h7yyZ5yL_2ECYzHPGtuX4a6F4kGAPxdyk
{
"product_id": "2f2f8119-a910-4128-97f7-9a2f1305deea"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: b1dc83e6009580000000000000000001-5fcbd340ede56a0e-0
{
"data": {
"batch_number": null,
"custom_data": [],
"deleted_at": null,
"description": null,
"expiration_date": null,
"id": "00000000-0000-0000-0000-00000003590d",
"manufactured_datetime": "2026-05-26T16:46:49.524632Z",
"name": "B1",
"owner_id": null,
"product_id": "2f2f8119-a910-4128-97f7-9a2f1305deea"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDgsImlhdCI6MTc3OTgxNDAwOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTVhOTdlMTQtZmRjOC00OWJlLWI0ODgtNmMxY2EwZmNmZTU5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4OTMwIiwidHlwIjoiYWNjZXNzIn0.aGA0-b5BnNd1O_667rBYw4c4ZSmRPIiUpeqbZanJuRA
{
"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-0000000d1b3e",
"product_id": "548e61ce-4de1-4a02-ae8a-66d2a3fb62a5"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 94e860ecc69050000000000000000001-32ac388f934e0033-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-0000000358f2",
"manufactured_datetime": "2025-01-02T03:04:05.000000Z",
"name": "B1",
"owner_id": "00000000-0000-0000-0000-0000000d1b3e",
"product_id": "548e61ce-4de1-4a02-ae8a-66d2a3fb62a5"
}
}
Create a single batch. Required permission: products_permissions_create.
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDgsImlhdCI6MTc3OTgxNDAwOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjE2NDdiOWYtMTNiYy00NjZmLThhNTYtMDAyMTc2NmFkNmE1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4Nzg4IiwidHlwIjoiYWNjZXNzIn0.ciWUF1eugbRjJCHF1zP3-o9_hHxVNBr_4IlGU6mCC3k
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 69e1cb05a6a190000000000000000001-8d76487cbc7bd365-0
{
"data": [
{
"category": "Retailer",
"custom_data": [
{
"id": 4371,
"name": "Custom Field 3",
"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-000000000243",
"name": "Comp Rel Group 0"
},
"id": "00000000-0000-0000-0000-0000000585fb",
"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-000000098dbb",
"id": "00000000-0000-0000-0000-00000003f945",
"license_id": null,
"name": "Place 130"
}
],
"name": "Company 376",
"order_shipment_email": "order shipment email",
"outstanding_balance_threshold": 1000,
"owner_id": "00000000-0000-0000-0000-0000000d1ab7",
"phone_number": "1234567890",
"purchase_order_email": "purchase email",
"relationship_type": {
"id": "00000000-0000-0000-0000-000000002c6b",
"name": "Supplier"
},
"sales_order_email": "order email",
"updated_datetime": "2023-11-03T00:00:00.000000Z",
"website": "https://www.example.com"
},
{
"category": "Manufacturer",
"custom_data": [
{
"id": 4371,
"name": "Custom Field 3",
"value": null
}
],
"default_email": "company-867@example.com",
"default_purchase_order_notes": null,
"default_sales_order_notes": null,
"deleted_at": null,
"group": null,
"id": "00000000-0000-0000-0000-0000000585fc",
"invoice_email": null,
"legal_business_name": "Company Legal Name 377",
"licenses": [
{
"id": "00000000-0000-0000-0000-0000000245ab",
"license_number": "CDPH-00000020"
}
],
"locations": [],
"name": "Company 377",
"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.
Required permission: companies_permissions_view. Results are filtered to
only include companies the authenticated user can access under their team
restrictions.
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 | query | number | false | ?page[number]=1 | |
| 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 |
Upsert a company
POST /public/v1/companies creates a new company relationship with minimal params and returns 201
POST /public/v1/companies
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDgsImlhdCI6MTc3OTgxNDAwOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTY3MWMyOTYtMTBhMi00ZTljLTk3ODgtYTA2NDQ3NDYxODcyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4OTcwIiwidHlwIjoiYWNjZXNzIn0.DBvKVWQkLj3iVOx6vlYv3vi3esPhj6LCM6aRsTGa1k8
{
"name": "New Retailer"
}
Response
201
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 6dab7e91078d68000000000000000001-c4ab49876a68e5b0-0
{
"data": {
"category": null,
"custom_data": [],
"default_email": null,
"default_purchase_order_notes": null,
"default_sales_order_notes": null,
"deleted_at": null,
"group": null,
"id": "00000000-0000-0000-0000-00000005864b",
"invoice_email": null,
"legal_business_name": "",
"licenses": [],
"locations": [],
"name": "New Retailer",
"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": "2026-05-26T16:46:48.910867Z",
"website": null
}
}
POST /public/v1/companies creates a new company relationship with all optional fields and returns 201
POST /public/v1/companies
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDksImlhdCI6MTc3OTgxNDAwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjE0M2ZiMmYtOTYwYi00MTQxLTlkMTItMzcyZjhmZDVkMGE4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5MDU5IiwidHlwIjoiYWNjZXNzIn0.4iiaGXZbG9DRDFng9qGlUO38UlTiykjheNsatQbqPhk
{
"category": "Retail",
"custom_data": {
"4391": "VIP"
},
"default_email": "info@fullretailer.com",
"default_purchase_order_notes": "Purchase notes",
"default_sales_order_notes": "Sales notes",
"group_id": "00000000-0000-0000-0000-000000000244",
"invoice_email": "invoice@fullretailer.com",
"legal_business_name": "Full Retailer LLC",
"name": "Full Retailer",
"order_shipment_email": "shipping@fullretailer.com",
"outstanding_balance_threshold": 5000,
"owner_id": "00000000-0000-0000-0000-0000000d1bb4",
"phone_number": "555-1234",
"purchase_order_email": "purchasing@fullretailer.com",
"relationship_type_id": "00000000-0000-0000-0000-000000002c6c",
"sales_order_email": "orders@fullretailer.com",
"website": "https://fullretailer.com"
}
Response
201
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 726525720ec270000000000000000001-ae1adfd815ec9e9f-0
{
"data": {
"category": "Retail",
"custom_data": [
{
"id": 4391,
"name": "Custom Field 6",
"value": "VIP"
}
],
"default_email": "info@fullretailer.com",
"default_purchase_order_notes": "Purchase notes",
"default_sales_order_notes": "Sales notes",
"deleted_at": null,
"group": {
"id": "00000000-0000-0000-0000-000000000244",
"name": "Comp Rel Group 1"
},
"id": "00000000-0000-0000-0000-000000058683",
"invoice_email": "invoice@fullretailer.com",
"legal_business_name": "Full Retailer LLC",
"licenses": [],
"locations": [],
"name": "Full Retailer",
"order_shipment_email": "shipping@fullretailer.com",
"outstanding_balance_threshold": 5000,
"owner_id": "00000000-0000-0000-0000-0000000d1bb4",
"phone_number": "555-1234",
"purchase_order_email": "purchasing@fullretailer.com",
"relationship_type": {
"id": "00000000-0000-0000-0000-000000002c6c",
"name": "Supplier"
},
"sales_order_email": "orders@fullretailer.com",
"updated_datetime": "2026-05-26T16:46:49.307332Z",
"website": "https://fullretailer.com"
}
}
POST /public/v1/companies updates an existing company relationship and returns 200
POST /public/v1/companies
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDksImlhdCI6MTc3OTgxNDAwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjI5MWIwYTktMDQ0MS00MzZkLTljZTQtNWIzZTI1OThkMDQxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5MDE3IiwidHlwIjoiYWNjZXNzIn0.p0M8eZo4C2GDrCBwmyNZdHD7vbaSJond0_6XDC20_aY
{
"id": "00000000-0000-0000-0000-000000058669",
"invoice_email": "newinvoice@example.com",
"name": "Updated Name"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 013e077c3a2f62600000000000000001-548e4113fb10725f-0
{
"data": {
"category": "Dispensary",
"custom_data": [],
"default_email": "company-1253@example.com",
"default_purchase_order_notes": null,
"default_sales_order_notes": null,
"deleted_at": null,
"group": null,
"id": "00000000-0000-0000-0000-000000058669",
"invoice_email": "newinvoice@example.com",
"legal_business_name": "Company Legal Name 547",
"licenses": [],
"locations": [],
"name": "Updated Name",
"order_shipment_email": null,
"outstanding_balance_threshold": null,
"owner_id": "00000000-0000-0000-0000-0000000d1b8b",
"phone_number": null,
"purchase_order_email": null,
"relationship_type": null,
"sales_order_email": null,
"updated_datetime": "2026-05-26T16:46:49.121155Z",
"website": null
}
}
Upsert a single company. To update an existing company, pass in an existing company ID in the id field. If you do not pass in an ID, a new company and its associated company will be created. Required permission: companies_permissions_create to create a new company, companies_permissions_edit (and access to the company under team restrictions) to update an existing company.
Request
POST /public/v1/companies
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Unique ID for this company. If given, the matching record will be updated. If not given, a new company will be created. | query | string | false | ||
| name | Name of the related company | query | string | false | Acme Dispensary | |
| category | Category of the related company | query | string | false | Retailer | |
| legal_business_name | Legal business name of the related company | query | string | false | ||
| default_email | Default email address for the related company | query | string | false | ||
| phone_number | Phone number for the related company | query | string | false | ||
| website | Website URL for the related company | query | string | false | ||
| default_sales_order_notes | Default notes included on sales orders for this company | query | string | false | ||
| default_purchase_order_notes | Default notes included on purchase orders for this company | query | string | false | ||
| invoice_email | Email address for invoices sent to this company | query | string | false | ||
| sales_order_email | Email address for sales orders sent to this company | query | string | false | ||
| purchase_order_email | Email address for purchase orders sent to this company | query | string | false | ||
| order_shipment_email | Email address for order shipment notifications sent to this company | query | string | false | ||
| relationship_type_id | The ID of the relationship type to assign to this company relationship | query | string | false | ||
| group_id | The ID of the group to assign to this company relationship | query | string | false | ||
| owner_id | The ID of the user that owns this company relationship | query | string | false | ||
| outstanding_balance_threshold | Threshold amount (in cents) above which an outstanding balance warning is triggered | query | integer | false | ||
| custom_data | Custom data for this company relationship | query | object | false |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | An updated company relationship | Company |
| 201 | A new company relationship | Company |
| 400 | Bad request | |
| 404 | Not found |
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDgsImlhdCI6MTc3OTgxNDAwOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTVhNjQ3NmMtZDY4Mi00NzQzLWJiYTEtOTQ2NDQwN2EwMjg5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4ODMwIiwidHlwIjoiYWNjZXNzIn0.UDaprYsykZHOEM6fr99gy9X8_KVti3Zf3aiFRu-fq1c
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 61dea464fa6268000000000000000001-a225e2f8681775ed-0
{
"data": [
{
"company": {
"id": "00000000-0000-0000-0000-000000058606"
},
"custom_data": [
{
"id": 4372,
"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-0000000047b3",
"last_name": "name1",
"owner": {
"id": "00000000-0000-0000-0000-0000000d1ad4"
},
"phone_number": "1234567890",
"title": null,
"work_phone_number": "1234567891"
},
{
"company": {
"id": "00000000-0000-0000-0000-000000058609"
},
"custom_data": [
{
"id": 4372,
"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-0000000047b4",
"last_name": "name2",
"owner": {
"id": "00000000-0000-0000-0000-0000000d1ada"
},
"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.
Required permission: contacts_permissions_view. Results are filtered to
only include contacts the authenticated user can access under their team
restrictions.
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 | query | number | false | ?page[number]=1 | |
| 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDksImlhdCI6MTc3OTgxNDAwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjY4ZmUxZDktYzM5MC00MmU3LTliMWYtZjU4NDFjMDE2M2QyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5MTYwIiwidHlwIjoiYWNjZXNzIn0.fz-MrmQF6m0fI2ZhU1awrIyfYpUHe9VxruAFxbSwNO8
{
"company_id": "00000000-0000-0000-0000-0000000586be",
"custom_data": {
"4396": "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-0000000d1c1c",
"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: c4c29e12424018000000000000000001-aff5d255cd9f195a-0
{
"data": {
"company": {
"id": "00000000-0000-0000-0000-0000000586be"
},
"custom_data": [
{
"id": 4396,
"name": "Custom Field 11",
"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-0000000047c4",
"last_name": "Doe",
"owner": {
"id": "00000000-0000-0000-0000-0000000d1c1c"
},
"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. Required permission: contacts_permissions_create to create a new contact, contacts_permissions_edit (and access to the contact under team restrictions) to update an existing contact.
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDcsImlhdCI6MTc3OTgxNDAwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTI2Yzk3YjktY2NkZC00Mjg5LWEyODgtYThjODYyNGEwMTFjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4NjUwIiwidHlwIjoiYWNjZXNzIn0.NeG24SiGe8pksogsrG22Ay3XnvK86BDQpKS7udhUaUo
{
"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: 166f31f0985096000000000000000001-f58bd8f16864dda0-0
{
"data": {
"description": "Notes",
"field_options": [],
"field_type": "text",
"filterable": false,
"id": 4367,
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDcsImlhdCI6MTc3OTgxNDAwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiYzYzZWQ1ZDQtOWIwNi00MTRlLTliOWYtOWViYWVkYjcyZTAwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4NDk4IiwidHlwIjoiYWNjZXNzIn0.sQZqtO4mtwf66zIhj18U9Mhie7IoWN0N9mrXl3Aln6g
{
"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: dc19a80d091590000000000000000001-d09c6818964fd558-0
{
"data": {
"description": null,
"field_options": [],
"field_type": "date",
"filterable": false,
"id": 4365,
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDYsImlhdCI6MTc3OTgxNDAwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYmZiMDQxYzgtNjg0NS00YTE1LWEzMWQtZGVjZjNkZmE3YWE2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4NDUzIiwidHlwIjoiYWNjZXNzIn0.hFokCRfZ-RWAwzgVHth0hL-mweP6szz6KFTNPSUROss
{
"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: 245f06c2b817c8000000000000000001-af5f919d6b42222d-0
{
"data": {
"description": null,
"field_options": [
"A",
"B"
],
"field_type": "dropdown",
"filterable": true,
"id": 4364,
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDgsImlhdCI6MTc3OTgxNDAwOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTcwZDAyYjctMjc3OC00YTQzLTlhMDEtMmUxZjQ0MWNlMjY3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4ODkzIiwidHlwIjoiYWNjZXNzIn0.dISqqXvIQwFakxfI-W1id8g2PgZfUAaZiHfyy-S3jwc
{
"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: b86f0ee1f96d30000000000000000001-700522417b72fd30-0
{
"data": {
"description": null,
"field_options": [
"Option 1"
],
"field_type": "checkbox",
"filterable": true,
"id": 4376,
"name": "Checkbox Field",
"parent_object": "product"
}
}
Create a custom field for the specified parent object. Updates are not supported for this endpoint.
Required permission: settings_permissions_custom_fields.
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDgsImlhdCI6MTc3OTgxNDAwOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZWFmZjZlZWYtNDk4Zi00ZWM1LWI3ZWEtYTliNTI3ZWUwMGMyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4NzQ1IiwidHlwIjoiYWNjZXNzIn0.lvjktAWSTR6b-kaXb2jCJP0ORS85ia4QSkUAnI9hBUg
{
"file": {
"content_type": "image/png",
"filename": "test-image.png"
},
"name": "My Test Image",
"product_id": "403aca97-222d-4bf1-970e-d628b3ac4692"
}
Response
201
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 7449cf87332624000000000000000001-642ab6b3f5bb9ed4-0
{
"data": {
"agent_chat_thread_id": null,
"ai_order_intake_id": null,
"ai_purchase_intake_id": null,
"assembly_id": null,
"batch_id": null,
"company_relationship_id": null,
"contact_id": null,
"id": "00000000-0000-0000-0000-000000000a92",
"invoice_id": null,
"license_id": null,
"mime_type": "image/png",
"name": "My Test Image",
"order_id": null,
"order_shipment_id": null,
"product_id": "403aca97-222d-4bf1-970e-d628b3ac4692",
"purchase_id": null,
"request_id": null,
"return_id": null,
"size_in_bytes": 355974,
"stock_transfer_id": null,
"task_id": null,
"upload_datetime": "2026-05-26T16:46:48.136802Z",
"uploader": {
"id": "00000000-0000-0000-0000-0000000d1a79",
"name": "FirstName892 LastName893"
},
"url": "/var/folders/17/2j2rmghn0dq4yf9g2k3md5f00000gn/T/168b0626-bd1e-4feb-be7b-7c4db33ce9f8/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.).
Required permission: products_permissions_edit.
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[]=c2805295-9d82-4d86-8642-36686abcbdaa
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTIsImlhdCI6MTc3OTgxNDAxMiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiY2Q1Nzk0MzItNzlkMy00NzRlLTgzY2MtNGNlZDMyZmQyZjYxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDExLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NjkyIiwidHlwIjoiYWNjZXNzIn0.ejN55kLdOiW6SxHmY6pgyryiDE2m6pWShmV8ljJG5Ho
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 74fd273b69f950000000000000000001-7cf7af2fcacc5391-0
{
"data": [
{
"active": "10.000000000",
"available": "10.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "c2805295-9d82-4d86-8642-36686abcbdaa",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-26T16:46:52.297922Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTEsImlhdCI6MTc3OTgxNDAxMSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNWQzZGVlNDYtYWJkOC00ZDVjLWI0MGYtZTEzZjUxY2Y0ZWU2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDEwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NTUwIiwidHlwIjoiYWNjZXNzIn0.giJMZzlasLUtU45kbJAuubQrYujcB2d_vi9YNW6DADs
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: dd1080f399caf8000000000000000001-8cd57287d882a3d8-0
{
"data": [
{
"active": "100.000000000",
"available": "90.000000000",
"cost_default_per_unit": "2.06",
"cost_per_unit_actual": "0.03",
"product_id": "201fdcc5-bbf3-4c60-8400-3bd6f20cff30",
"reserved": "10.000000000",
"total_cost_actual": "3",
"total_cost_default": "206",
"updated_datetime": "2026-05-26T16:46:52.030359Z"
},
{
"active": "95.000000000",
"available": "80.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "9ffa8a6a-5d10-424b-aeea-bb688093e844",
"reserved": "15.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-26T16:46:52.032453Z"
},
{
"active": "50.000000000",
"available": "50.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "cd623fd3-cb08-4f0a-8a1b-59a22a5576d7",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-26T16:46:51.900299Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTAsImlhdCI6MTc3OTgxNDAxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMGFjNDE4N2ItOGMwZC00MmEyLTg5NGQtODk3ODIwMGJlNDJkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NDQxIiwidHlwIjoiYWNjZXNzIn0.kxxAjvxeHhISJWON2lFX4lgsklNe9Kqj2TJ4BYAk8Jg
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 7f45ff907291b4000000000000000001-59f40b88eafbe117-0
{
"data": [
{
"active": "100.000000000",
"available": "100.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-00000003f9cf",
"product_id": "0c944a97-a3fc-41c6-816a-0bf1544b62af",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-26T16:46:50.933761Z"
},
{
"active": "30.000000000",
"available": "26.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": null,
"product_id": "0c944a97-a3fc-41c6-816a-0bf1544b62af",
"reserved": "4.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-26T16:46:51.360811Z"
},
{
"active": "0.000000000",
"available": "-15.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-00000003f9ce",
"product_id": "245606e8-e20f-4096-b881-f93ce046637b",
"reserved": "15.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-26T16:46:51.356049Z"
},
{
"active": "0.000000000",
"available": "-8.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-00000003f9cf",
"product_id": "245606e8-e20f-4096-b881-f93ce046637b",
"reserved": "8.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-26T16:46:51.356903Z"
},
{
"active": "190.000000000",
"available": "169.000000000",
"cost_default_per_unit": "1",
"cost_per_unit_actual": "0.5",
"location_id": "00000000-0000-0000-0000-00000003f9e0",
"product_id": "245606e8-e20f-4096-b881-f93ce046637b",
"reserved": "21.000000000",
"total_cost_actual": "95",
"total_cost_default": "190",
"updated_datetime": "2026-05-26T16:46:51.358124Z"
},
{
"active": "80.000000000",
"available": "80.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-00000003f9e1",
"product_id": "245606e8-e20f-4096-b881-f93ce046637b",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-26T16:46:51.275716Z"
},
{
"active": "0.000000000",
"available": "-1.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": null,
"product_id": "245606e8-e20f-4096-b881-f93ce046637b",
"reserved": "1.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-26T16:46:51.361649Z"
},
{
"active": "100.000000000",
"available": "90.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-00000003f9ce",
"product_id": "3b7d8d6e-fa9d-41ed-97ef-fff350bde450",
"reserved": "10.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-26T16:46:51.353405Z"
},
{
"active": "0.000000000",
"available": "-1.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-00000003f9cf",
"product_id": "3b7d8d6e-fa9d-41ed-97ef-fff350bde450",
"reserved": "1.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-26T16:46:51.354996Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTIsImlhdCI6MTc3OTgxNDAxMiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZmFkMDg0ODAtYzc0MS00ZjhmLTk0NmQtMjIyODJkZWIzNjMwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDExLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NzM3IiwidHlwIjoiYWNjZXNzIn0.s96163eyFUY_OhS0GK_Xh6S8ZMPPmDh3S_uu47OqZjg
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: fad0fb48b57548000000000000000001-862bd2f08b586859-0
{
"data": [
{
"active": "19.000000000",
"available": "19.000000000",
"batch_number": null,
"cost_default_per_unit": "2",
"cost_per_unit_actual": "1",
"product_id": "218c1a42-4a05-49d5-9074-64daee51fc51",
"reserved": "0.000000000",
"total_cost_actual": "19",
"total_cost_default": "38",
"updated_datetime": "2026-05-26T16:46:52.610586Z"
},
{
"active": "13.000000000",
"available": "13.000000000",
"batch_number": "TEST-1",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "218c1a42-4a05-49d5-9074-64daee51fc51",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-26T16:46:52.659244Z"
},
{
"active": "26.000000000",
"available": "26.000000000",
"batch_number": null,
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "2ea56466-e9a5-458a-982b-133621303038",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-26T16:46:52.988310Z"
},
{
"active": "27.000000000",
"available": "27.000000000",
"batch_number": "1",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "2ea56466-e9a5-458a-982b-133621303038",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-26T16:46:53.029309Z"
},
{
"active": "43.000000000",
"available": "43.000000000",
"batch_number": null,
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "4e7d1341-068c-4052-a7c2-b3f47f3e09f1",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-26T16:46:52.801092Z"
},
{
"active": "47.000000000",
"available": "47.000000000",
"batch_number": "1",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "4e7d1341-068c-4052-a7c2-b3f47f3e09f1",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-26T16:46:52.887938Z"
},
{
"active": "25.000000000",
"available": "25.000000000",
"batch_number": "2",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "4e7d1341-068c-4052-a7c2-b3f47f3e09f1",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-26T16:46:52.927151Z"
},
{
"active": "8.000000000",
"available": "8.000000000",
"batch_number": "TEST-1",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "a4dc471a-9342-4445-a5bb-b8ecea80bc05",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-26T16:46:52.693743Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDYsImlhdCI6MTc3OTgxNDAwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiM2M1ODU3YzQtMzgxNy00ZmJiLTk2YTctMzdkZjE1NTgxNTY3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4Mzk0IiwidHlwIjoiYWNjZXNzIn0.VxYrDTwr1N2F8TPb6kvoWxw40rJ_o4TrMd09SZzW714
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 889620c46977a8000000000000000001-e8b6178515f82f40-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-00000003f8d5",
"product_id": "1565ec85-6b15-47d1-9c02-53d9870f0c55",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-26T16:46:47.819773Z"
},
{
"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-00000003f8d5",
"product_id": "1565ec85-6b15-47d1-9c02-53d9870f0c55",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-26T16:46:47.976591Z"
},
{
"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-00000003f8d6",
"product_id": "1565ec85-6b15-47d1-9c02-53d9870f0c55",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-26T16:46:47.898534Z"
},
{
"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-00000003f8d6",
"product_id": "1565ec85-6b15-47d1-9c02-53d9870f0c55",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-26T16:46:48.079359Z"
},
{
"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-00000003f8d5",
"product_id": "8822da1f-dd29-4d86-b354-07ed279873e4",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-26T16:46:48.327081Z"
},
{
"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-00000003f8d5",
"product_id": "8822da1f-dd29-4d86-b354-07ed279873e4",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-26T16:46:48.674827Z"
},
{
"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-00000003f8d6",
"product_id": "8822da1f-dd29-4d86-b354-07ed279873e4",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-26T16:46:48.520027Z"
},
{
"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-00000003f8d6",
"product_id": "8822da1f-dd29-4d86-b354-07ed279873e4",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-26T16:46:48.814697Z"
}
],
"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.
Required permission: products_permissions_view.
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 | query | number | false | ?page[number]=1 | |
| 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTQsImlhdCI6MTc3OTgxNDAxNCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZWZhOGUyYzQtNGFjMy00YjAxLWE5MTEtZjBiODgyNjcyMTA5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDEzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODYwMTMwIiwidHlwIjoiYWNjZXNzIn0.89K5mnm-xJXJnWU6eulQlVYHJZTqFJNsVRRlHqtlo0I
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: b8914a0f34e450000000000000000001-cbe574f69f6f0358-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000588e6",
"name": "Company 1400",
"updated_datetime": "2026-05-26T16:46:54.608489Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1832@example.com",
"full_name": "FirstName3730 LastName3731",
"id": "00000000-0000-0000-0000-0000000d1fff",
"role": {
"id": "00000000-0000-0000-0000-0000000d0fa6",
"name": "Admin 1844"
}
},
"custom_data": [
{
"id": 4404,
"name": "Custom Field 19",
"value": null
}
],
"due_datetime": "2026-05-26T16:46:54.700777Z",
"id": "00000000-0000-0000-0000-00000000534a",
"inserted_datetime": "2026-05-26T16:46:54.702127Z",
"invoice_datetime": "2026-05-26T16:46:54.700774Z",
"invoice_number": "Invoice #33",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035aba",
"name": "B2021"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000065fb",
"order_item_id": "34b83234-d78f-4b8d-9cf4-baee74828c22",
"package": null,
"price": "10.000000000",
"product": {
"id": "7e344e19-de26-41cf-87eb-892e4312f75f",
"name": "Product 2019",
"sku": "sku 2020",
"updated_datetime": "2026-05-26T16:46:54.621777Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035abb",
"name": "B2026"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000065fc",
"order_item_id": "9e2e1753-65e4-4743-868b-c7071b5dde81",
"package": null,
"price": "10.000000000",
"product": {
"id": "1b9e8b43-ac2f-450a-a273-5d6843c9773a",
"name": "Product 2024",
"sku": "sku 2025",
"updated_datetime": "2026-05-26T16:46:54.637775Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "3fb552bf-f75d-44f8-a9cd-3e7c6780e62d",
"order_number": "SO-55",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1832@example.com",
"full_name": "FirstName3730 LastName3731",
"id": "00000000-0000-0000-0000-0000000d1fff",
"role": {
"id": "00000000-0000-0000-0000-0000000d0fa6",
"name": "Admin 1844"
}
},
"paid_amount": "0.0",
"remaining_amount": "200.00",
"status": "NOT_PAID",
"total": "200.00",
"updated_datetime": "2026-05-26T16:46:54.702127Z"
},
{
"charges": [
{
"id": "4394614a-3fa9-4204-9b0a-59dac8395cff",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000588db",
"name": "Company 1385",
"updated_datetime": "2026-05-26T16:46:54.475771Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-0000000d1fdf",
"role": {
"id": "00000000-0000-0000-0000-0000000d0f85",
"name": "Admin 1811"
}
},
"custom_data": [
{
"id": 4404,
"name": "Custom Field 19",
"value": "Custom Field Value 1"
}
],
"due_datetime": "2020-01-01T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-000000005349",
"inserted_datetime": "2026-05-26T16:46:54.502400Z",
"invoice_datetime": "2020-01-01T00:00:02.000000Z",
"invoice_number": "INV-123",
"items": [
{
"batch": {
"batch_number": "UID1",
"id": "00000000-0000-0000-0000-000000035ab2",
"name": "B1"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000065fa",
"order_item_id": "0d948fb0-b8fd-47bd-9d7a-71926a1e2ae2",
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000000171",
"id": "00000000-0000-0000-0000-000000011645",
"metrc_label": "ABCDEF012345670000000171",
"status": "active"
},
"price": "10.000000000",
"product": {
"id": "2d3553c9-4eeb-4614-b6a3-3add676fdb9f",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-26T16:46:54.436236Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "456f0d33-4618-43a0-9211-0fb526e9f663",
"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-0000000d1fe1",
"role": {
"id": "00000000-0000-0000-0000-0000000d0f87",
"name": "Admin 1813"
}
},
"paid_amount": "5.00",
"remaining_amount": "3.00",
"status": "PARTIALLY_PAID",
"total": "8.00",
"updated_datetime": "2026-05-26T16:46:54.534816Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTEsImlhdCI6MTc3OTgxNDAxMSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjkyYzE3NGUtOTNjNC00NDRhLWIxNmEtZGVhNjU4ZjMwYzA3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDEwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NDk3IiwidHlwIjoiYWNjZXNzIn0.TFN9Ztxxm3Z_7ripxVKdtUNeWvLeemiApqrkLpK78uo
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 9681259e252e78000000000000000001-4598f795f0fbb4dd-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000058746",
"name": "Company 892",
"updated_datetime": "2026-05-26T16:46:51.183323Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1228@example.com",
"full_name": "FirstName2520 LastName2521",
"id": "00000000-0000-0000-0000-0000000d1d96",
"role": {
"id": "00000000-0000-0000-0000-0000000d0d44",
"name": "Admin 1235"
}
},
"custom_data": [],
"due_datetime": "2026-05-26T16:46:51.369226Z",
"id": "00000000-0000-0000-0000-000000005334",
"inserted_datetime": "2026-05-26T16:46:51.370196Z",
"invoice_datetime": "2026-05-26T16:46:51.369224Z",
"invoice_number": "Invoice #14",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000003596f",
"name": "B1019"
},
"cost_per_unit": "10.026",
"cost_per_unit_default": "5",
"id": "00000000-0000-0000-0000-0000000065d7",
"order_item_id": "4ece18d0-4de3-495f-9423-724b0b09d769",
"package": null,
"price": "752199.000000000",
"product": {
"id": "2bc73b20-6843-41b1-846c-999209589fe7",
"name": "Product 1014",
"sku": "sku 1015",
"updated_datetime": "2026-05-26T16:46:51.057209Z"
},
"quantity": "2.000000000",
"returned_quantity": "2",
"total_cost_actual": "20.052",
"total_cost_default": "10"
}
],
"order": {
"id": "16352dce-c445-44f2-844c-8ae274a911ec",
"order_number": "SO-0000001",
"status": "Processing",
"total": "1504398.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1228@example.com",
"full_name": "FirstName2520 LastName2521",
"id": "00000000-0000-0000-0000-0000000d1d96",
"role": {
"id": "00000000-0000-0000-0000-0000000d0d44",
"name": "Admin 1235"
}
},
"paid_amount": "0.0",
"remaining_amount": "32.00",
"status": "NOT_PAID",
"total": "32.00",
"updated_datetime": "2026-05-26T16:46:51.370196Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTMsImlhdCI6MTc3OTgxNDAxMywiaXNzIjoiRGlzdHJ1IiwianRpIjoiY2M0YmJjNzMtMDBjZC00NTUzLTg3M2UtNjRjZjhhY2I4YjZkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDEyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5OTEyIiwidHlwIjoiYWNjZXNzIn0.WPWFwFuSmPD__FID7HpDIHJaxz53a2M2_0oza23xJNQ
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: b795e1fceeb760000000000000000001-85fb9ed0bff4a228-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000058883",
"name": "Company 1276",
"updated_datetime": "2026-05-26T16:46:53.844044Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1666@example.com",
"full_name": "FirstName3398 LastName3399",
"id": "00000000-0000-0000-0000-0000000d1f57",
"role": {
"id": "00000000-0000-0000-0000-0000000d0efc",
"name": "Admin 1674"
}
},
"custom_data": [],
"due_datetime": "2026-05-26T16:46:53.916470Z",
"id": "00000000-0000-0000-0000-000000005344",
"inserted_datetime": "2026-05-26T16:46:53.917554Z",
"invoice_datetime": "2020-01-01T12:30:00.000000Z",
"invoice_number": "Invoice #27",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035a6f",
"name": "B1796"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000065f0",
"order_item_id": "b9804c3a-087f-42ed-b3f5-ce872a1a133c",
"package": null,
"price": "10.000000000",
"product": {
"id": "4d9f45a8-5c2e-4219-a5d4-610895104bf8",
"name": "Product 1792",
"sku": "sku 1793",
"updated_datetime": "2026-05-26T16:46:53.857204Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035a72",
"name": "B1803"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000065f1",
"order_item_id": "5e4e47ea-5546-485e-8b08-86005b4e1d06",
"package": null,
"price": "10.000000000",
"product": {
"id": "1662c30d-b811-4400-9d1c-b6f10c4f37e1",
"name": "Product 1801",
"sku": "sku 1802",
"updated_datetime": "2026-05-26T16:46:53.868944Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "4347ae95-f34c-4e7b-a464-a2603da9e6d0",
"order_number": "SO-45",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1666@example.com",
"full_name": "FirstName3398 LastName3399",
"id": "00000000-0000-0000-0000-0000000d1f57",
"role": {
"id": "00000000-0000-0000-0000-0000000d0efc",
"name": "Admin 1674"
}
},
"paid_amount": "0.0",
"remaining_amount": "200.00",
"status": "NOT_PAID",
"total": "200.00",
"updated_datetime": "2026-05-26T16:46:53.917554Z"
},
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000005886d",
"name": "Company 1253",
"updated_datetime": "2026-05-26T16:46:53.741473Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1642@example.com",
"full_name": "FirstName3350 LastName3351",
"id": "00000000-0000-0000-0000-0000000d1f3f",
"role": {
"id": "00000000-0000-0000-0000-0000000d0ee6",
"name": "Admin 1652"
}
},
"custom_data": [],
"due_datetime": "2026-05-26T16:46:53.814258Z",
"id": "00000000-0000-0000-0000-000000005343",
"inserted_datetime": "2026-05-26T16:46:53.815419Z",
"invoice_datetime": "2020-01-01T12:20:00.000000Z",
"invoice_number": "Invoice #26",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035a5a",
"name": "B1739"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000065ee",
"order_item_id": "e77d140f-faa0-4668-9439-ffa958b5fdb2",
"package": null,
"price": "10.000000000",
"product": {
"id": "74e36bc4-6123-468c-9194-c2191a8db86a",
"name": "Product 1737",
"sku": "sku 1738",
"updated_datetime": "2026-05-26T16:46:53.751195Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035a60",
"name": "B1749"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000065ef",
"order_item_id": "bb28c268-5bfc-4788-ad03-6043463f3517",
"package": null,
"price": "10.000000000",
"product": {
"id": "19b6565f-885e-4cb2-8d2d-32e5ec4224b4",
"name": "Product 1747",
"sku": "sku 1748",
"updated_datetime": "2026-05-26T16:46:53.761966Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "9039eda3-5f68-4fa4-84c3-ef27a0d4c2cd",
"order_number": "SO-44",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1642@example.com",
"full_name": "FirstName3350 LastName3351",
"id": "00000000-0000-0000-0000-0000000d1f3f",
"role": {
"id": "00000000-0000-0000-0000-0000000d0ee6",
"name": "Admin 1652"
}
},
"paid_amount": "0.0",
"remaining_amount": "200.00",
"status": "FULLY_PAID",
"total": "200.00",
"updated_datetime": "2026-05-26T16:46:53.815419Z"
},
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000005883c",
"name": "Company 1202",
"updated_datetime": "2026-05-26T16:46:53.534860Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1588@example.com",
"full_name": "FirstName3242 LastName3243",
"id": "00000000-0000-0000-0000-0000000d1f09",
"role": {
"id": "00000000-0000-0000-0000-0000000d0eb1",
"name": "Admin 1599"
}
},
"custom_data": [],
"due_datetime": "2026-05-26T16:46:53.613974Z",
"id": "00000000-0000-0000-0000-000000005341",
"inserted_datetime": "2026-05-26T16:46:53.615045Z",
"invoice_datetime": "2020-01-01T12:00:00.000000Z",
"invoice_number": "Invoice #24",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035a32",
"name": "B1613"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000065ea",
"order_item_id": "b6d35fc9-ffd7-4360-8793-30f7e2a9eeae",
"package": null,
"price": "10.000000000",
"product": {
"id": "db6ed63e-e4af-4d0a-b526-c4503f65734e",
"name": "Product 1611",
"sku": "sku 1612",
"updated_datetime": "2026-05-26T16:46:53.547790Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035a34",
"name": "B1617"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000065eb",
"order_item_id": "58a1693a-d69d-490a-be14-868aaeb5b780",
"package": null,
"price": "10.000000000",
"product": {
"id": "a4975598-a489-4c43-bb76-699d29efe591",
"name": "Product 1615",
"sku": "sku 1616",
"updated_datetime": "2026-05-26T16:46:53.564006Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "2f0647c5-6555-4d22-82a1-40c92f44c127",
"order_number": "SO-41",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1588@example.com",
"full_name": "FirstName3242 LastName3243",
"id": "00000000-0000-0000-0000-0000000d1f09",
"role": {
"id": "00000000-0000-0000-0000-0000000d0eb1",
"name": "Admin 1599"
}
},
"paid_amount": "0.0",
"remaining_amount": "200.00",
"status": "FULLY_PAID",
"total": "200.00",
"updated_datetime": "2026-05-26T16:46:53.615045Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTIsImlhdCI6MTc3OTgxNDAxMiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTdlZWRkZTEtZTE4ZS00YmM4LTliYzktMzczNmJkYTVjNWViIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDExLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NzA0IiwidHlwIjoiYWNjZXNzIn0.-t-iE0kaYyibx3XB9ziycIxuwF3FtaWZPwN-g6J35LI
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 848585b5f91488000000000000000001-5efaf250f96ecfd5-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000587c8",
"name": "Company 1060",
"updated_datetime": "2026-05-26T16:46:52.389667Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1427@example.com",
"full_name": "FirstName2920 LastName2921",
"id": "00000000-0000-0000-0000-0000000d1e62",
"role": {
"id": "00000000-0000-0000-0000-0000000d0e11",
"name": "Admin 1439"
}
},
"custom_data": [],
"due_datetime": "2026-05-26T16:46:52.529903Z",
"id": "00000000-0000-0000-0000-000000005339",
"inserted_datetime": "2026-05-26T16:46:52.530485Z",
"invoice_datetime": "2026-05-26T16:46:52.529901Z",
"invoice_number": "Invoice #17",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000359cc",
"name": "B1313"
},
"cost_per_unit": "10.026",
"cost_per_unit_default": "5",
"id": "00000000-0000-0000-0000-0000000065de",
"order_item_id": "2d2eb858-40a8-46c4-919c-07dc74834e0e",
"package": null,
"price": "320300.000000000",
"product": {
"id": "b4de824f-4bd4-4d7a-8060-a9ecde96abfd",
"name": "Product 1306",
"sku": "sku 1307",
"updated_datetime": "2026-05-26T16:46:52.324181Z"
},
"quantity": "1.000000000",
"returned_quantity": "1",
"total_cost_actual": "10.026",
"total_cost_default": "5"
}
],
"order": {
"id": "19f3199d-acba-4349-a6bc-046145b0981c",
"order_number": "SO-0000001",
"status": "Processing",
"total": "640600.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1427@example.com",
"full_name": "FirstName2920 LastName2921",
"id": "00000000-0000-0000-0000-0000000d1e62",
"role": {
"id": "00000000-0000-0000-0000-0000000d0e11",
"name": "Admin 1439"
}
},
"paid_amount": "0.0",
"remaining_amount": "32.00",
"status": "NOT_PAID",
"total": "32.00",
"updated_datetime": "2026-05-26T16:46:52.530485Z"
}
],
"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.
Required permission: invoices_permissions_view. Results are filtered to
only include invoices the authenticated user can access under their team
restrictions.
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 | query | number | false | ?page[number]=1 | |
| 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-000000005333/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTAsImlhdCI6MTc3OTgxNDAxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDM2ZGZhZGEtNzcxOS00OWFmLWE1ZjItMjliZGIwYzEwNWU4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NDIzIiwidHlwIjoiYWNjZXNzIn0.TmiPquDIK_QuFKw9VGy0_9f974IVeC-gq7n-SwYLqdk
{
"amount": 100.01,
"description": "Payment for invoice",
"payment_datetime": "2020-01-01T00:00:00.000000Z",
"payment_method_id": "00000000-0000-0000-0000-000000001716",
"quickbooks_deposit_account_id": "QBD-123"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 53ac5fc5a71f50000000000000000001-7894a0282ffd1275-0
{
"data": {
"amount": "100",
"description": "Payment for invoice",
"id": "00000000-0000-0000-0000-000000001719",
"inserted_datetime": "2026-05-26T16:46:50.768944Z",
"invoice_id": "00000000-0000-0000-0000-000000005333",
"payment_date": "2020-01-01T00:00:00.000000Z",
"payment_method": {
"deleted_at": null,
"id": "00000000-0000-0000-0000-000000001716",
"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-000000005333/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTAsImlhdCI6MTc3OTgxNDAxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDM2ZGZhZGEtNzcxOS00OWFmLWE1ZjItMjliZGIwYzEwNWU4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NDIzIiwidHlwIjoiYWNjZXNzIn0.TmiPquDIK_QuFKw9VGy0_9f974IVeC-gq7n-SwYLqdk
{
"amount": 100.01,
"description": "Payment for invoice",
"payment_datetime": "2020-01-01T00:00:00.000000Z",
"payment_method_id": "00000000-0000-0000-0000-000000001716",
"quickbooks_deposit_account_name": "QBD-NAME"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 53ac5fc5a71f50000000000000000001-e4a8d9825499bb8b-0
{
"data": {
"amount": "100",
"description": "Payment for invoice",
"id": "00000000-0000-0000-0000-00000000171a",
"inserted_datetime": "2026-05-26T16:46:50.954728Z",
"invoice_id": "00000000-0000-0000-0000-000000005333",
"payment_date": "2020-01-01T00:00:00.000000Z",
"payment_method": {
"deleted_at": null,
"id": "00000000-0000-0000-0000-000000001716",
"name": "Payment Method 0"
},
"payment_number": "PYT-0000002",
"quickbooks_deposit_account_id": "QBD-123"
}
}
Required permission: invoices_permissions_receive_payment. The authenticated user must also be allowed to view invoices under their team restrictions.
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-000000005353
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTUsImlhdCI6MTc3OTgxNDAxNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDNlMDJjNDgtZmQwMi00ZTE2LTljOTItMGZlOGM2ZjE1ZTE1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDE0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODYwMzgwIiwidHlwIjoiYWNjZXNzIn0.Lou9kQrFmgIiezVv1RG-T22RXDBXahbnF8_TDjVHYfM
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 00836aba79840dd00000000000000001-ada20b3c205772f1-0
{
"data": {
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000005895a",
"name": "Company 1535",
"updated_datetime": "2026-05-26T16:46:55.595401Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2054@example.com",
"full_name": "FirstName4174 LastName4175",
"id": "00000000-0000-0000-0000-0000000d20df",
"role": {
"id": "00000000-0000-0000-0000-0000000d1088",
"name": "Admin 2070"
}
},
"custom_data": [
{
"id": 4405,
"name": "Custom Field 20",
"value": "Custom Field Value 1"
}
],
"due_datetime": "2026-05-26T16:46:55.674607Z",
"id": "00000000-0000-0000-0000-000000005353",
"inserted_datetime": "2026-05-26T16:46:55.675770Z",
"invoice_datetime": "2026-05-26T16:46:55.674605Z",
"invoice_number": "Invoice #42",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035b4c",
"name": "B2353"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-00000000660a",
"order_item_id": "0a2210bf-c93e-4c57-8a50-115be8126e4a",
"package": null,
"price": "10.000000000",
"product": {
"id": "4f2770af-5313-4920-b241-855d5d03f6ab",
"name": "Product 2349",
"sku": "sku 2350",
"updated_datetime": "2026-05-26T16:46:55.607532Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035b4e",
"name": "B2359"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-00000000660b",
"order_item_id": "6d6dea47-ffc0-42e3-a4d9-2b9066e12c94",
"package": null,
"price": "10.000000000",
"product": {
"id": "3df9f8ee-e4a7-4a10-9d26-a4289e224ffa",
"name": "Product 2355",
"sku": "sku 2356",
"updated_datetime": "2026-05-26T16:46:55.618514Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "34dd24ba-8b6b-4ec2-936c-5fe72711c536",
"order_number": "SO-70",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-2054@example.com",
"full_name": "FirstName4174 LastName4175",
"id": "00000000-0000-0000-0000-0000000d20df",
"role": {
"id": "00000000-0000-0000-0000-0000000d1088",
"name": "Admin 2070"
}
},
"paid_amount": "0.0",
"remaining_amount": null,
"status": "NOT_PAID",
"total": "200.00",
"updated_datetime": "2026-05-26T16:46:55.675770Z"
}
}
Get a single invoice given the ID. Required permission: invoices_permissions_view. The authenticated user must also have access to the requested invoice under their team restrictions.
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTIsImlhdCI6MTc3OTgxNDAxMiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzY4ZDVjMjUtZjdhYi00NmIwLWI2MmItOWNmNTJkNjNjY2QwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDExLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NjY1IiwidHlwIjoiYWNjZXNzIn0.RMJVwhFaarvar2P319R1QjYjmAncT03eO65y3NqxIbo
{
"billing_location_id": "00000000-0000-0000-0000-00000003fa13",
"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": "eb4a36f7-88f0-41e8-9fb4-2afba3a1e7e1",
"quantity": "1.000000000"
},
{
"order_item_id": "58a655fd-9911-4552-b802-4931f07936b4",
"quantity": "10.000000000"
}
],
"order_id": "7b2c91a8-21e8-47e3-9160-7e0820e9446b"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: e06664eac912b8000000000000000001-5e32f6799c83bce5-0
{
"data": {
"charges": [
{
"id": "f48b5296-3e1a-4c07-94be-c8946eac3043",
"name": "C1",
"percent": "10.0000",
"price": "5.30",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "e00168d1-3b46-430b-ba20-3ed2cba20b50",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-00000005879d",
"name": "Company 1006",
"updated_datetime": "2026-05-26T16:46:52.094678Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-0000000d1e11",
"role": {
"id": "00000000-0000-0000-0000-0000000d0dc3",
"name": "Admin 1361"
}
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-000000005338",
"inserted_datetime": "2026-05-26T16:46:52.210247Z",
"invoice_datetime": "2020-01-01T00:00:00.000000Z",
"invoice_number": "INV-0000001",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000359b7",
"name": "B1"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000065dc",
"order_item_id": "eb4a36f7-88f0-41e8-9fb4-2afba3a1e7e1",
"package": null,
"price": "3.000000000",
"product": {
"id": "3a95ed85-9825-4cb6-8b89-d6a424da2a3f",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-26T16:46:52.134188Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000359ba",
"name": "B2"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000065dd",
"order_item_id": "58a655fd-9911-4552-b802-4931f07936b4",
"package": null,
"price": "5.000000000",
"product": {
"id": "84149794-1385-4cff-a5a6-aca043cfeb64",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-05-26T16:46:52.149653Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "7b2c91a8-21e8-47e3-9160-7e0820e9446b",
"order_number": "SO-27",
"status": "Processing",
"total": "0.00"
},
"owner": null,
"paid_amount": "0.0",
"remaining_amount": "53.30",
"status": "NOT_PAID",
"total": "53.30",
"updated_datetime": "2026-05-26T16:46:52.221628Z"
}
}
POST /invoices updates an invoice
POST /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTIsImlhdCI6MTc3OTgxNDAxMiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiN2NiZTJkYjMtMWQxOC00ZjJmLWE4MDMtNTM4ZjI4MDIxMmY2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDExLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NzU3IiwidHlwIjoiYWNjZXNzIn0.wfsqYarVfdqHyLyfzSSAcL7Cd_0f8wk_d2RidZJVyTo
{
"billing_location_id": "00000000-0000-0000-0000-00000003fa33",
"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": "7cf20261-0c86-456b-8183-e0dbfb957302",
"quantity": "1.000000000"
},
{
"order_item_id": "eca7e052-de11-4636-a733-94f248fac669",
"quantity": "10.000000000"
}
],
"order_id": "5386a47a-90d4-4c06-a73c-d1ee367b7d28"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: fcab2ff3015d88000000000000000001-41ff39c8055a2992-0
{
"data": {
"charges": [
{
"id": "0d27097b-b72a-4d80-a3e3-5dd1a41a9b1f",
"name": "C1",
"percent": "10.0000",
"price": "5.30",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "87f3845f-b076-4945-9343-e50c7a0580e2",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000587d6",
"name": "Company 1081",
"updated_datetime": "2026-05-26T16:46:52.569482Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-0000000d1e6d",
"role": {
"id": "00000000-0000-0000-0000-0000000d0e1b",
"name": "Admin 1449"
}
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-00000000533a",
"inserted_datetime": "2026-05-26T16:46:52.659348Z",
"invoice_datetime": "2020-01-01T00:00:00.000000Z",
"invoice_number": "INV-0000001",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000359e3",
"name": "B1"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000065df",
"order_item_id": "7cf20261-0c86-456b-8183-e0dbfb957302",
"package": null,
"price": "3.000000000",
"product": {
"id": "809276df-77f1-4f4f-be2f-12743c1c666d",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-26T16:46:52.612335Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000359e4",
"name": "B2"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000065e0",
"order_item_id": "eca7e052-de11-4636-a733-94f248fac669",
"package": null,
"price": "5.000000000",
"product": {
"id": "13b95411-56e1-433e-953b-b9653a4e54c9",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-05-26T16:46:52.623505Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "5386a47a-90d4-4c06-a73c-d1ee367b7d28",
"order_number": "SO-30",
"status": "Processing",
"total": "0.00"
},
"owner": null,
"paid_amount": "0.0",
"remaining_amount": "53.30",
"status": "NOT_PAID",
"total": "53.30",
"updated_datetime": "2026-05-26T16:46:52.665984Z"
}
}
POST /invoices updates an invoice
POST /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTIsImlhdCI6MTc3OTgxNDAxMiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiN2NiZTJkYjMtMWQxOC00ZjJmLWE4MDMtNTM4ZjI4MDIxMmY2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDExLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NzU3IiwidHlwIjoiYWNjZXNzIn0.wfsqYarVfdqHyLyfzSSAcL7Cd_0f8wk_d2RidZJVyTo
{
"billing_location_id": "00000000-0000-0000-0000-00000003fa34",
"charges": [
{
"id": "0d27097b-b72a-4d80-a3e3-5dd1a41a9b1f",
"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-00000000533a",
"invoice_datetime": "2020-01-02T00:00:00.000000Z",
"items": [
{
"id": "00000000-0000-0000-0000-0000000065df",
"order_item_id": "7cf20261-0c86-456b-8183-e0dbfb957302",
"quantity": "1.000000000"
},
{
"order_item_id": "eca7e052-de11-4636-a733-94f248fac669",
"quantity": "8.000000000"
}
],
"order_id": "5386a47a-90d4-4c06-a73c-d1ee367b7d28"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: fcab2ff3015d88000000000000000001-5fbcef40cbd8a124-0
{
"data": {
"charges": [
{
"id": "0d27097b-b72a-4d80-a3e3-5dd1a41a9b1f",
"name": "C1",
"percent": "10.0000",
"price": "4.30",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "b3368e09-6e08-4688-9d21-99000a00826a",
"name": "C3",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000587d6",
"name": "Company 1081",
"updated_datetime": "2026-05-26T16:46:52.569482Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-0000000d1e6d",
"role": {
"id": "00000000-0000-0000-0000-0000000d0e1b",
"name": "Admin 1449"
}
},
"custom_data": [],
"due_datetime": "2020-01-28T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-00000000533a",
"inserted_datetime": "2026-05-26T16:46:52.659348Z",
"invoice_datetime": "2020-01-02T00:00:00.000000Z",
"invoice_number": "INV-0000001",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000359e3",
"name": "B1"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000065df",
"order_item_id": "7cf20261-0c86-456b-8183-e0dbfb957302",
"package": null,
"price": "3.000000000",
"product": {
"id": "809276df-77f1-4f4f-be2f-12743c1c666d",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-26T16:46:52.612335Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000359e4",
"name": "B2"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000065e1",
"order_item_id": "eca7e052-de11-4636-a733-94f248fac669",
"package": null,
"price": "5.000000000",
"product": {
"id": "13b95411-56e1-433e-953b-b9653a4e54c9",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-05-26T16:46:52.623505Z"
},
"quantity": "8.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "5386a47a-90d4-4c06-a73c-d1ee367b7d28",
"order_number": "SO-30",
"status": "Processing",
"total": "0.00"
},
"owner": null,
"paid_amount": "0.0",
"remaining_amount": "42.30",
"status": "NOT_PAID",
"total": "42.30",
"updated_datetime": "2026-05-26T16:46:52.704701Z"
}
}
POST /invoices reports various errors correctly on update
POST /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTEsImlhdCI6MTc3OTgxNDAxMSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNjg0MDQyNTMtZmFiYy00MzZkLWIyMjctYmFjMWZlZTc1N2YwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDEwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NjAyIiwidHlwIjoiYWNjZXNzIn0.w46i5aP1h1TXHwTNT3f0i4pOrLJETpICWRJGrExkmtY
{
"billing_location_id": "00000000-0000-0000-0000-00000003fa00",
"charges": [
{
"name": "C1",
"percent": "-1000.0000",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"due_datetime": "2020-01-30T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-000000005336",
"invoice_datetime": "2020-01-01T00:00:00.000000Z",
"items": [
{
"order_item_id": "00000000-0000-0000-0000-000000000000",
"quantity": "15.000"
},
{
"order_item_id": "bdebe5f3-7ab1-4ae7-811a-f49f40f00542",
"quantity": "19.000"
}
],
"order_id": "6c3d37b1-5340-4a05-86ba-61bf06aefb4d"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 367d7746af90f2000000000000000001-479d9a126e229a1f-0
{
"errors": [
{
"context": {
"id": "2474add1-e03b-4ada-acf7-ac6612cfc1f0"
},
"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. Required permission: invoices_permissions_create to create a new invoice, invoices_permissions_edit (and access to the invoice under team restrictions) to update an existing invoice.
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDcsImlhdCI6MTc3OTgxNDAwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiODYzOWRmZjAtMDYxYi00NDJlLTg5ODQtMWU4YzA3MjI3NzMwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4NTQ3IiwidHlwIjoiYWNjZXNzIn0.KiuHrzkOzS6lT9qX0xBYzqFpXIfVgnbuesDECw8tGVg
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 7b3ca9704df390000000000000000001-18c74fd7f55a2e3f-0
{
"data": [
{
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000098cf3",
"deleted_at": null,
"id": "00000000-0000-0000-0000-00000003f906",
"license": null,
"license_id": null,
"name": "Place 67"
},
{
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000098cf3",
"deleted_at": null,
"id": "00000000-0000-0000-0000-00000003f907",
"license": {
"id": "00000000-0000-0000-0000-00000002459f",
"license_number": "CDPH-00000008"
},
"license_id": "00000000-0000-0000-0000-00000002459f",
"name": "Place 68"
}
],
"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.
Required permission: companies_permissions_view.
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 | query | number | false | ?page[number]=1 | |
| 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 |
Menu
Get menus
GET /public/v1/menus returns menus for the company with default pagination
GET /public/v1/menus
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDcsImlhdCI6MTc3OTgxNDAwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMmMzZGMzZjYtMTNiZS00NDQ3LWE2OTQtZWIxYmQ0MDkyYTA5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4NjY3IiwidHlwIjoiYWNjZXNzIn0.iYMmYIQks02gxXBGZyK9kIjeUZMT-59iP9em5r_nzVA
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: c274af909c79d0000000000000000001-d3744d5a95b98bc1-0
{
"data": [
{
"active": true,
"external_name": "Ext A",
"id": "00000000-0000-0000-0000-000000004de9",
"inserted_datetime": "2026-05-26T16:46:47.797573Z",
"internal_name": "Alpha",
"product_count": 0,
"updated_datetime": "2026-05-26T16:46:47.797573Z",
"visibility": "PUBLIC"
},
{
"active": true,
"external_name": "Ext B",
"id": "00000000-0000-0000-0000-000000004dea",
"inserted_datetime": "2026-05-26T16:46:47.811696Z",
"internal_name": "Beta",
"product_count": 0,
"updated_datetime": "2026-05-26T16:46:47.811696Z",
"visibility": "PUBLIC"
}
],
"next_page": null
}
List menus for the authenticated company with visibility, active state, and active product counts.
Note: The page size for this endpoint is 500 menus per page.
Required permission: products_permissions_view.
Request
GET /public/v1/menus
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| active | Filter by menu active flag: true, false, or true,false (both). |
query | string | false | ||
| visibility | Comma-separated visibility: PUBLIC, PRIVATE, PASSCODE_PROTECTED. |
query | string | false | ||
| page | Pagination information | query | number | false | ?page[number]=1 |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | Menus index | Menus |
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTYsImlhdCI6MTc3OTgxNDAxNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDg3N2VjZmEtODA2OS00ZmU3LWFlYWYtMjE5ZWE0MzU5YzU4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDE1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODYwNDg2IiwidHlwIjoiYWNjZXNzIn0.RaYMYBoKXeNXUWJdsK-8Vtidb81oxdJo7kExmvVziK0
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 3fd11879d6f920000000000000000001-2f44ceda99d668a0-0
{
"data": [
{
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000099292",
"id": "00000000-0000-0000-0000-00000003fae0",
"license_id": null,
"name": "Place 540"
},
"biotrack_id": null,
"charges": [
{
"id": "1f4514c7-a463-4611-adc0-d58987d0a4ae",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000589a4",
"name": "Company 1616",
"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-0000000d2144",
"role": {
"id": "00000000-0000-0000-0000-0000000d10ee",
"name": "Admin 2172"
}
},
"custom_data": [
{
"id": 4406,
"name": "Custom Field 21",
"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": "be95977a-76b3-4692-a07c-14c17138eaaf",
"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-000000035b86",
"name": "B1"
},
"compliance_quantity": "10.0000",
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "2db62a23-7e95-4628-8cac-f819f5900419",
"is_sample": true,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000099292",
"id": "00000000-0000-0000-0000-00000003fae0",
"license_id": null,
"name": "Place 540"
},
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000000175",
"id": "00000000-0000-0000-0000-000000011646",
"metrc_label": "ABCDEF012345670000000175",
"status": "active"
},
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "e040dce2-1711-4245-945a-ea234ed59c25",
"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": "37cc27f1-a5de-406a-9c58-f117f64001fe",
"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-0000000d2145",
"role": {
"id": "00000000-0000-0000-0000-0000000d10ef",
"name": "Admin 2173"
}
},
"payment_term_name": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000099292",
"id": "00000000-0000-0000-0000-00000003fae0",
"license_id": null,
"name": "Place 540"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTIsImlhdCI6MTc3OTgxNDAxMiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDU4Y2YxNzUtY2I2Ni00ODE1LTk5NjUtY2Y4Y2I2YTk4Njg3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDExLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5ODA5IiwidHlwIjoiYWNjZXNzIn0.9UN6dfCgov6iwz_lOuyN4n3gykKXBdOdSxcV5RUosBQ
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: bca4f85806a4f0000000000000000001-78775cca1bdf8018-0
{
"data": [
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000587fa",
"name": "Company 1125",
"updated_datetime": "2026-05-26T16:46:53.002925Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1500@example.com",
"full_name": "FirstName3066 LastName3067",
"id": "00000000-0000-0000-0000-0000000d1eb0",
"role": {
"id": "00000000-0000-0000-0000-0000000d0e5c",
"name": "Admin 1514"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-05-26T16:46:53.003879Z",
"external_notes": null,
"id": "af1fccf3-6673-46be-9804-ccdc9b195587",
"inserted_datetime": "2026-05-26T16:46:53.021248Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000359f8",
"name": "B1439"
},
"compliance_quantity": null,
"cost_per_unit": "10.026",
"cost_per_unit_default": "5",
"id": "a16c0758-5720-42a0-93ba-3bac3e9215bc",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000990a2",
"id": "00000000-0000-0000-0000-00000003fa4c",
"license_id": null,
"name": "Place 392"
},
"package": null,
"price": "990294.000000000",
"price_base": "990294",
"product": {
"id": "cfcc2935-4e5e-4da6-a40a-3527cde59d15",
"name": "Product 1437",
"sku": "sku 1438",
"updated_datetime": "2026-05-26T16:46:52.933078Z"
},
"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-05-26T16:46:53.003882Z",
"order_number": "SO-0000001",
"owner": null,
"payment_term_name": null,
"shipping_location": null,
"status": "PROCESSING",
"total": "1980588.00",
"updated_datetime": "2026-05-26T16:46:53.021248Z"
}
],
"next_page": null
}
GET /public/v1/orders allows filtering by buyer company_id
GET /public/v1/orders?company_id=00000000-0000-0000-0000-000000058acf
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MjEsImlhdCI6MTc3OTgxNDAyMSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMmNjNTUyMDctNTIzNi00ZDRlLWE5NmEtZDFmYTY4MzIxMWRmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDIwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODYwODI4IiwidHlwIjoiYWNjZXNzIn0._X5yvjFyOKiernWUIFt7tP-4gx9oynLf3eZlxjQHr-U
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 07363b7e763869c00000000000000001-9a5fd4b4f90648e9-0
{
"data": [
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000058acf",
"name": "Company 1961",
"updated_datetime": "2026-05-26T16:47:01.098711Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2492@example.com",
"full_name": "FirstName5050 LastName5051",
"id": "00000000-0000-0000-0000-0000000d229f",
"role": {
"id": "00000000-0000-0000-0000-0000000d1250",
"name": "Admin 2526"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-05-26T16:47:01.142980Z",
"external_notes": null,
"id": "1068ff24-312b-4e7a-9656-73701255df0b",
"inserted_datetime": "2026-05-26T16:47:01.143771Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035c6a",
"name": "B3213"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "d69ca11b-a5c3-47ba-888c-99f46c831b7b",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "6f8fd357-b86e-4e34-a476-7c756d852c29",
"name": "Product 3211",
"sku": "sku 3212",
"updated_datetime": "2026-05-26T16:47:01.158772Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035c6b",
"name": "B3216"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "6b7c70a4-65d6-446c-a97d-c5a8e2808d04",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "18e5e8f8-8d1f-429d-950a-a0ffe2a73031",
"name": "Product 3214",
"sku": "sku 3215",
"updated_datetime": "2026-05-26T16:47:01.176505Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035c6c",
"name": "B3219"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "311a1839-5ee7-4539-b895-069b77c49dac",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "1ae61812-0939-4b82-b0b3-a3da6ef392c1",
"name": "Product 3217",
"sku": "sku 3218",
"updated_datetime": "2026-05-26T16:47:01.194217Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035c6d",
"name": "B3222"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "379df1be-2c6b-4c7f-82e1-74fcd55d3e02",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "374f436f-a55b-4f9a-a30b-6ad696b2be87",
"name": "Product 3220",
"sku": "sku 3221",
"updated_datetime": "2026-05-26T16:47:01.216241Z"
},
"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-147",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-2492@example.com",
"full_name": "FirstName5050 LastName5051",
"id": "00000000-0000-0000-0000-0000000d229f",
"role": {
"id": "00000000-0000-0000-0000-0000000d1250",
"name": "Admin 2526"
}
},
"payment_term_name": null,
"shipping_location": null,
"status": "COMPLETED",
"total": "320.00",
"updated_datetime": "2026-05-26T16:47:01.260175Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTUsImlhdCI6MTc3OTgxNDAxNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDQ1MmZiODMtYmM2MC00ZjFmLTg4YTctOGE5NTYxNDIzNDVjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDE0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODYwMzM0IiwidHlwIjoiYWNjZXNzIn0.qprVGj9QvsQuuKUoE3aGOZw-PJcMgn6S-OstwucS8-Y
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: eefec6dc4922d8000000000000000001-a68e6217eae831f5-0
{
"data": [
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000058956",
"name": "Company 1531",
"updated_datetime": "2026-05-26T16:46:55.567573Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2051@example.com",
"full_name": "FirstName4166 LastName4167",
"id": "00000000-0000-0000-0000-0000000d20db",
"role": {
"id": "00000000-0000-0000-0000-0000000d1085",
"name": "Admin 2067"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-05-26T16:46:55.586208Z",
"external_notes": null,
"id": "20b93df7-d026-4560-bc20-64ae6d9c0cb4",
"inserted_datetime": "2026-05-26T16:46:55.587121Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035b4b",
"name": "B2348"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "9ba39f92-193e-4d8b-acb1-d3c8534586a4",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "5dd983ef-19b4-4bf7-9037-065037b58169",
"name": "Product 2346",
"sku": "sku 2347",
"updated_datetime": "2026-05-26T16:46:55.596584Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035b4d",
"name": "B2354"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "056350cd-8495-4881-949a-c7297315c4ab",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "69e3ea02-9358-4095-ac6b-117b6db773ed",
"name": "Product 2351",
"sku": "sku 2352",
"updated_datetime": "2026-05-26T16:46:55.608278Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035b4f",
"name": "B2360"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "ca8f1390-0e0f-4b1c-b806-0880de557614",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "df3c7798-d588-4b43-8ca3-deb73f4104ec",
"name": "Product 2357",
"sku": "sku 2358",
"updated_datetime": "2026-05-26T16:46:55.619080Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035b50",
"name": "B2365"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "b34ade3d-77f8-479f-8318-3b53a4dc8964",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "36e1c3de-c1fe-464b-9c3a-e2a120c3355e",
"name": "Product 2361",
"sku": "sku 2362",
"updated_datetime": "2026-05-26T16:46:55.629843Z"
},
"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-69",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-2051@example.com",
"full_name": "FirstName4166 LastName4167",
"id": "00000000-0000-0000-0000-0000000d20db",
"role": {
"id": "00000000-0000-0000-0000-0000000d1085",
"name": "Admin 2067"
}
},
"payment_term_name": null,
"shipping_location": null,
"status": "CANCELED",
"total": "320.00",
"updated_datetime": "2026-05-26T16:46:55.649346Z"
},
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000058950",
"name": "Company 1524",
"updated_datetime": "2026-05-26T16:46:55.474530Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2038@example.com",
"full_name": "FirstName4142 LastName4143",
"id": "00000000-0000-0000-0000-0000000d20cf",
"role": {
"id": "00000000-0000-0000-0000-0000000d1078",
"name": "Admin 2054"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-05-26T16:46:55.494505Z",
"external_notes": null,
"id": "5fd243b8-8ea8-46c0-9551-d43de85769ec",
"inserted_datetime": "2026-05-26T16:46:55.495173Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035b45",
"name": "B2330"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "c0034223-1e9b-4048-9660-743c6b62fa18",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "07d3ef93-c97c-4ce4-ab4b-6c6162dced4d",
"name": "Product 2328",
"sku": "sku 2329",
"updated_datetime": "2026-05-26T16:46:55.505892Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035b46",
"name": "B2333"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "3ed135ac-73f2-4f79-9383-f8cb8a26025f",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "3efad876-5b59-4476-9420-1253defc5b1f",
"name": "Product 2331",
"sku": "sku 2332",
"updated_datetime": "2026-05-26T16:46:55.516960Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035b47",
"name": "B2336"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "7dd2756f-67f1-4dae-abbe-ef303d57f25a",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "f0ae6ddf-d3f8-46bd-980a-98bc3eec2005",
"name": "Product 2334",
"sku": "sku 2335",
"updated_datetime": "2026-05-26T16:46:55.527721Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035b48",
"name": "B2339"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "d66b23eb-d96e-42b9-aaf3-2bd0f1c1bed5",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "e2396548-0c25-460d-87c1-5fbfd35a7b71",
"name": "Product 2337",
"sku": "sku 2338",
"updated_datetime": "2026-05-26T16:46:55.538177Z"
},
"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-68",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-2038@example.com",
"full_name": "FirstName4142 LastName4143",
"id": "00000000-0000-0000-0000-0000000d20cf",
"role": {
"id": "00000000-0000-0000-0000-0000000d1078",
"name": "Admin 2054"
}
},
"payment_term_name": null,
"shipping_location": null,
"status": "COMPLETED",
"total": "320.00",
"updated_datetime": "2026-05-26T16:46:55.559174Z"
},
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000058938",
"name": "Company 1500",
"updated_datetime": "2026-05-26T16:46:55.294921Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2006@example.com",
"full_name": "FirstName4078 LastName4079",
"id": "00000000-0000-0000-0000-0000000d20af",
"role": {
"id": "00000000-0000-0000-0000-0000000d1058",
"name": "Admin 2022"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-05-26T16:46:55.313649Z",
"external_notes": null,
"id": "1704c48c-555c-4f9f-852f-d0f089635c83",
"inserted_datetime": "2026-05-26T16:46:55.314283Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035b32",
"name": "B2273"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "2e2ae258-3ef3-4b99-a07f-5f241b55e704",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "047aacbc-a37f-4697-b353-0b1e24ecec07",
"name": "Product 2271",
"sku": "sku 2272",
"updated_datetime": "2026-05-26T16:46:55.327337Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035b33",
"name": "B2276"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "19c5db44-09cd-487d-8dbb-05b9c1111b2c",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "87fdb33b-11c8-400b-8be1-f3b3ebacddd7",
"name": "Product 2274",
"sku": "sku 2275",
"updated_datetime": "2026-05-26T16:46:55.339764Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035b35",
"name": "B2282"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "4bfc1b61-d7fe-44db-a118-404ee97a074c",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "7717fa7f-21e7-45cd-a3b7-cbd87d1ae492",
"name": "Product 2280",
"sku": "sku 2281",
"updated_datetime": "2026-05-26T16:46:55.350581Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035b37",
"name": "B2288"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "5031f468-f6f1-4dee-a6e9-4aff8d3278d3",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "257849ee-933e-4813-b835-4d6095e98d45",
"name": "Product 2286",
"sku": "sku 2287",
"updated_datetime": "2026-05-26T16:46:55.362126Z"
},
"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-64",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-2006@example.com",
"full_name": "FirstName4078 LastName4079",
"id": "00000000-0000-0000-0000-0000000d20af",
"role": {
"id": "00000000-0000-0000-0000-0000000d1058",
"name": "Admin 2022"
}
},
"payment_term_name": null,
"shipping_location": null,
"status": "COMPLETED",
"total": "320.00",
"updated_datetime": "2026-05-26T16:46:55.381975Z"
}
],
"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.
Required permission: orders_permissions_view. Results are filtered to only
include orders the authenticated user can access under their team
restrictions.
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 | query | number | false | ?page[number]=1 | |
| 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 | |
| company_id | Filter orders by buyer company (company relationship ID — same UUID as each order's company.id and GET /public/v1/companies). |
|||||
| query | string | false | 550e8400-e29b-41d4-a716-446655440000 |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A list of orders | Orders |
| 404 | Not Found |
Get an order
GET /orders/:id returns the expected order
GET /public/v1/orders/2db29707-339f-4f10-bb6c-d05cb79da224
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDksImlhdCI6MTc3OTgxNDAwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjZkMWRiODUtMTRlOC00Yjk4LWEzNTEtNTU2MDk0ZjNmYTM4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5MjQzIiwidHlwIjoiYWNjZXNzIn0.2ZvoSldfNW8KOfHOCrcsvKFcuD_tUgkWtLDipST4GcA
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 9bffd9c69280b8000000000000000001-f4a0d631b9cb6760-0
{
"data": {
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000586dc",
"name": "Company 729",
"updated_datetime": "2026-05-26T16:46:49.943176Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-936@example.com",
"full_name": "FirstName1930 LastName1931",
"id": "00000000-0000-0000-0000-0000000d1c70",
"role": {
"id": "00000000-0000-0000-0000-0000000d0c1c",
"name": "Admin 938"
}
},
"custom_data": [
{
"id": 4398,
"name": "Custom Field 13",
"value": "Custom Field Value 1"
}
],
"delivery_datetime": null,
"due_datetime": "2026-05-26T16:46:49.975809Z",
"external_notes": null,
"id": "2db29707-339f-4f10-bb6c-d05cb79da224",
"inserted_datetime": "2026-05-26T16:46:49.977413Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000003592d",
"name": "B807"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "8006d617-f1a7-4838-9157-af68572d3453",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "ca2c04fe-a136-4c25-934f-4796225138dc",
"name": "Product 805",
"sku": "sku 806",
"updated_datetime": "2026-05-26T16:46:49.997822Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035931",
"name": "B819"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "1c9dfc57-e17d-4a91-b055-ed84f53ee13d",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "cd713d8e-5c4f-45b3-ac3e-13877dbee345",
"name": "Product 816",
"sku": "sku 817",
"updated_datetime": "2026-05-26T16:46:50.019908Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035934",
"name": "B830"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "1bddf625-36e8-469a-8f18-9f8e2ca0d470",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "c4cfa251-84ee-4382-b4a4-9466f011c1a5",
"name": "Product 827",
"sku": "sku 828",
"updated_datetime": "2026-05-26T16:46:50.037052Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035936",
"name": "B834"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "fab9aa92-99d0-43bb-b233-adb773e3b2f6",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "bf714b43-457a-4943-a628-329be784a115",
"name": "Product 832",
"sku": "sku 833",
"updated_datetime": "2026-05-26T16:46:50.056749Z"
},
"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-05-26T16:46:49.975808Z",
"order_number": "SO-19",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-936@example.com",
"full_name": "FirstName1930 LastName1931",
"id": "00000000-0000-0000-0000-0000000d1c70",
"role": {
"id": "00000000-0000-0000-0000-0000000d0c1c",
"name": "Admin 938"
}
},
"payment_term_name": null,
"shipping_location": null,
"status": "COMPLETED",
"total": "320.00",
"updated_datetime": "2026-05-26T16:46:50.136526Z"
}
}
GET /orders/:id returns cost data for order items
GET /public/v1/orders/2df0b14b-44f6-46f9-a818-a529d593b3c8
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTksImlhdCI6MTc3OTgxNDAxOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjk4NWVmZTYtNGY5NC00YWFkLWEwMGQtMzRjN2JlNjhkNDRmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDE4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODYwNzgwIiwidHlwIjoiYWNjZXNzIn0.26BJ3KSD1tuU3JDyeyisnufs_w14BCP4sNztV4313-Y
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: cb1f41591412e0000000000000000001-41b290ee081b9bd5-0
{
"data": {
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000058aaa",
"name": "Company 1917",
"updated_datetime": "2026-05-26T16:46:59.347980Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2448@example.com",
"full_name": "FirstName4962 LastName4963",
"id": "00000000-0000-0000-0000-0000000d2271",
"role": {
"id": "00000000-0000-0000-0000-0000000d1222",
"name": "Admin 2480"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-05-26T16:46:59.348766Z",
"external_notes": null,
"id": "2df0b14b-44f6-46f9-a818-a529d593b3c8",
"inserted_datetime": "2026-05-26T16:46:59.358824Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035c4c",
"name": "B3123"
},
"compliance_quantity": null,
"cost_per_unit": "10.026",
"cost_per_unit_default": "5",
"id": "431bca21-1cb1-444c-bc16-f959f8453429",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000993c1",
"id": "00000000-0000-0000-0000-00000003fb48",
"license_id": null,
"name": "Place 644"
},
"package": null,
"price": "861277.000000000",
"price_base": "861277",
"product": {
"id": "19fba145-a6ec-49e8-a3b3-9e5c499ce6da",
"name": "Product 3121",
"sku": "sku 3122",
"updated_datetime": "2026-05-26T16:46:59.300113Z"
},
"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-05-26T16:46:59.348769Z",
"order_number": "SO-0000001",
"owner": null,
"payment_term_name": null,
"shipping_location": null,
"status": "PROCESSING",
"total": "1722554.00",
"updated_datetime": "2026-05-26T16:46:59.358824Z"
}
}
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.
Required permission: orders_permissions_view. The authenticated user must
also have access to the requested order under their team restrictions.
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MjEsImlhdCI6MTc3OTgxNDAyMSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiODZjYjk3MWItYzU1NC00MWE2LWFkOGItMzcyOWEyZTVhODZmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDIwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODYwODQxIiwidHlwIjoiYWNjZXNzIn0.1r0ZclbSUeEnaOeecnWjGzjHMBx_kKDieLB2d5Xz0UE
{
"billing_location_id": "00000000-0000-0000-0000-00000003fb53",
"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-000000058add",
"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-00000003fb53",
"price_base": "10.000000000",
"product_id": "6c70c79e-281e-4f7d-b4ec-a92ea7d92c8e",
"quantity": "1.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"owner_id": "00000000-0000-0000-0000-0000000d22a9",
"shipping_location_id": "00000000-0000-0000-0000-00000003fb53",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 98c9a0febd1850000000000000000001-96c7fd0241b0b728-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000993fd",
"id": "00000000-0000-0000-0000-00000003fb53",
"license_id": "00000000-0000-0000-0000-000000024642",
"name": "Place 655"
},
"biotrack_id": null,
"charges": [
{
"id": "131c14f7-dd45-4508-a634-f2a3f0686714",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "805fb8ac-d0e5-46e7-9a31-cc683431b87b",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000058add",
"name": "Company 1976",
"updated_datetime": "2026-05-26T16:47:01.580252Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-0000000d22a9",
"role": {
"id": "00000000-0000-0000-0000-0000000d125a",
"name": "Admin 2536"
}
},
"custom_data": [
{
"id": 4407,
"name": "Custom Field 22",
"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": "d04c48a1-3ecb-4679-ac6f-44d1b963da79",
"inserted_datetime": "2026-05-26T16:47:01.705583Z",
"internal_notes": "Internal notes for this order",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035c73",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "a96c91d1-4fd4-4186-a4d4-440070fe5400",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000993fd",
"id": "00000000-0000-0000-0000-00000003fb53",
"license_id": "00000000-0000-0000-0000-000000024642",
"name": "Place 655"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "6c70c79e-281e-4f7d-b4ec-a92ea7d92c8e",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-26T16:47:01.650265Z"
},
"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-0000000d22a9",
"role": {
"id": "00000000-0000-0000-0000-0000000d125a",
"name": "Admin 2536"
}
},
"payment_term_name": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000993fd",
"id": "00000000-0000-0000-0000-00000003fb53",
"license_id": "00000000-0000-0000-0000-000000024642",
"name": "Place 655"
},
"status": "PROCESSING",
"total": "6.00",
"updated_datetime": "2026-05-26T16:47:01.763055Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTgsImlhdCI6MTc3OTgxNDAxOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNzU4Y2NkODQtNTdkNy00MzdhLWJkNWUtZWU3MThhMTJiZDYyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDE3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODYwNzYwIiwidHlwIjoiYWNjZXNzIn0.i-Yaow7-8HNIS6J0TVJSV5iTtmz4NE8eN1hcswmYhIo
{
"billing_location_id": "00000000-0000-0000-0000-00000003fb3e",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000058a98",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000003fb3e",
"price_base": "10.000000000",
"product_id": "660ef071-8f27-4e31-9e3f-28397a6ef7dc",
"quantity": "1.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-00000003fb3e",
"status": "PROCESSING"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: ad785dc98f3100000000000000000001-6bf8168d1b42ce02-0
{
"errors": [
{
"context": {
"id": "d2ef139e-7b7a-4a6b-a963-495a362f7f98"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTgsImlhdCI6MTc3OTgxNDAxOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNzU4Y2NkODQtNTdkNy00MzdhLWJkNWUtZWU3MThhMTJiZDYyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDE3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODYwNzYwIiwidHlwIjoiYWNjZXNzIn0.i-Yaow7-8HNIS6J0TVJSV5iTtmz4NE8eN1hcswmYhIo
{
"billing_location_id": "00000000-0000-0000-0000-00000003fb3e",
"blaze_payment_type": "CASH",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000058a98",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000003fb3e",
"price_base": "10.000000000",
"product_id": "660ef071-8f27-4e31-9e3f-28397a6ef7dc",
"quantity": "1.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-00000003fb3e",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: ad785dc98f3100000000000000000001-d8bb4dd529f27553-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000993ad",
"id": "00000000-0000-0000-0000-00000003fb3e",
"license_id": "00000000-0000-0000-0000-00000002463e",
"name": "Place 634"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000058a98",
"name": "Company 1896",
"updated_datetime": "2026-05-26T16:46:58.941438Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2423@example.com",
"full_name": "FirstName4912 LastName4913",
"id": "00000000-0000-0000-0000-0000000d2258",
"role": {
"id": "00000000-0000-0000-0000-0000000d1208",
"name": "Admin 2454"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "05b5811d-1e66-40cd-9bf7-ecf8e0598cc0",
"inserted_datetime": "2026-05-26T16:46:58.988397Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035c45",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "ff5ef74d-876d-4a12-803b-8c6a20fba0c8",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000993ad",
"id": "00000000-0000-0000-0000-00000003fb3e",
"license_id": "00000000-0000-0000-0000-00000002463e",
"name": "Place 634"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "660ef071-8f27-4e31-9e3f-28397a6ef7dc",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-26T16:46:58.960567Z"
},
"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,
"payment_term_name": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000993ad",
"id": "00000000-0000-0000-0000-00000003fb3e",
"license_id": "00000000-0000-0000-0000-00000002463e",
"name": "Place 634"
},
"status": "PROCESSING",
"total": "10.00",
"updated_datetime": "2026-05-26T16:46:58.988397Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTMsImlhdCI6MTc3OTgxNDAxMywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNzY5OTBkZDYtZTYxZC00YzFjLTkwYzYtOGQ5ZDFjM2ZlYTMzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDEyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5ODkwIiwidHlwIjoiYWNjZXNzIn0.39Z1njbC0rf8BZNSIaUC-aRbdb4V54QsSFg0k91whyQ
{
"billing_location_id": "00000000-0000-0000-0000-00000003fa62",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000058825",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000003fa62",
"position": 1,
"price_base": "100.000000000",
"product_id": "6a929195-c685-44c9-b66f-8936b9731000",
"quantity": "80.000000000"
},
{
"location_id": "00000000-0000-0000-0000-00000003fa62",
"position": 2,
"price_base": "200.000000000",
"product_id": "6a929195-c685-44c9-b66f-8936b9731000",
"quantity": "10.000000000"
},
{
"location_id": "00000000-0000-0000-0000-00000003fa62",
"position": 3,
"price_base": "300.000000000",
"product_id": "88378915-7933-429f-a11d-6729def7e12c",
"quantity": "20.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-00000003fa62",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 2810b94181e3e4000000000000000001-126320975ed8fef3-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000990dc",
"id": "00000000-0000-0000-0000-00000003fa62",
"license_id": "00000000-0000-0000-0000-0000000245f9",
"name": "Place 414"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000058825",
"name": "Company 1176",
"updated_datetime": "2026-05-26T16:46:53.378359Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1565@example.com",
"full_name": "FirstName3196 LastName3197",
"id": "00000000-0000-0000-0000-0000000d1ef2",
"role": {
"id": "00000000-0000-0000-0000-0000000d0e9c",
"name": "Admin 1578"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "05d4daab-e7c8-488e-8e9b-114a3eff9cf2",
"inserted_datetime": "2026-05-26T16:46:53.484410Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035a21",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "1a6e802f-a3de-4c22-82e2-fef57ea36140",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000990dc",
"id": "00000000-0000-0000-0000-00000003fa62",
"license_id": "00000000-0000-0000-0000-0000000245f9",
"name": "Place 414"
},
"package": null,
"price": "80.000000000",
"price_base": "100.000000000",
"product": {
"id": "6a929195-c685-44c9-b66f-8936b9731000",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-26T16:46:53.402317Z"
},
"quantity": "80.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035a21",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "af8a82dc-f0ce-4a26-967e-065588b954da",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000990dc",
"id": "00000000-0000-0000-0000-00000003fa62",
"license_id": "00000000-0000-0000-0000-0000000245f9",
"name": "Place 414"
},
"package": null,
"price": "180.000000000",
"price_base": "200.000000000",
"product": {
"id": "6a929195-c685-44c9-b66f-8936b9731000",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-26T16:46:53.402317Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035a23",
"name": "B2"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "40e19bdc-b272-4302-9bff-b9c7efb1f946",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000990dc",
"id": "00000000-0000-0000-0000-00000003fa62",
"license_id": "00000000-0000-0000-0000-0000000245f9",
"name": "Place 414"
},
"package": null,
"price": "270.000000000",
"price_base": "300.000000000",
"product": {
"id": "88378915-7933-429f-a11d-6729def7e12c",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-05-26T16:46:53.419478Z"
},
"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,
"payment_term_name": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000990dc",
"id": "00000000-0000-0000-0000-00000003fa62",
"license_id": "00000000-0000-0000-0000-0000000245f9",
"name": "Place 414"
},
"status": "PROCESSING",
"total": "13600.00",
"updated_datetime": "2026-05-26T16:46:53.519602Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MjEsImlhdCI6MTc3OTgxNDAyMSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZGQ0ZWIwOTItMmZmMi00MzMwLThkNjktN2U0ZTQ1NjJlYTM0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDIwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODYwODQ1IiwidHlwIjoiYWNjZXNzIn0.cEqFpqZy4yoWlTLUG5jsnkX8Hk7vsLJZNcGYU_MGE6Y
{
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"batch_id": "00000000-0000-0000-0000-000000035c74",
"location_id": "00000000-0000-0000-0000-00000003fb54",
"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: e1ac5b2591f0e8000000000000000001-feb05051f91f6a18-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-0000000d22ad",
"role": {
"id": "00000000-0000-0000-0000-0000000d125e",
"name": "Admin 2540"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "c89debab-033b-49fb-bef4-52423cda4507",
"inserted_datetime": "2026-05-26T16:47:01.978128Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035c74",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "cb9c0366-788f-4306-a1f7-4b0f4a3ab9e9",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000099400",
"id": "00000000-0000-0000-0000-00000003fb54",
"license_id": "00000000-0000-0000-0000-000000024643",
"name": "Place 656"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "d23c5e62-45ef-4bc2-a80f-9d65bc19ed4c",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-26T16:47:01.937975Z"
},
"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,
"payment_term_name": null,
"shipping_location": null,
"status": "PROCESSING",
"total": "10.00",
"updated_datetime": "2026-05-26T16:47:01.978128Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTUsImlhdCI6MTc3OTgxNDAxNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDAyOGQzY2EtYTIxYi00YzliLWI2MjMtZTgyMzIwNzlkNWM5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDE0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODYwMjY3IiwidHlwIjoiYWNjZXNzIn0.5xQEzkdXYJxXi_UOvcCHn6yZbdmHToDMW2H3eRRJCbg
{
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000003fabc",
"price_base": "10.000000000",
"product_id": "3f6b25b1-1e4b-4888-821a-aca7b33cabfd",
"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: a90624430fc1d0000000000000000001-d862e16df8557150-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-0000000d206b",
"role": {
"id": "00000000-0000-0000-0000-0000000d1013",
"name": "Admin 1953"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "f137fea3-0c9e-47ac-bd0c-4145d62a165b",
"inserted_datetime": "2026-05-26T16:46:55.022638Z",
"internal_notes": null,
"items": [
{
"batch": null,
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "cb40216d-4222-42d9-afee-28f80fc07846",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000009920a",
"id": "00000000-0000-0000-0000-00000003fabc",
"license_id": "00000000-0000-0000-0000-00000002460e",
"name": "Place 504"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "3f6b25b1-1e4b-4888-821a-aca7b33cabfd",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-26T16:46:55.011097Z"
},
"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,
"payment_term_name": null,
"shipping_location": null,
"status": "PROCESSING",
"total": "10.00",
"updated_datetime": "2026-05-26T16:46:55.022638Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MjMsImlhdCI6MTc3OTgxNDAyMywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjQ3YzViYWMtYjhlNi00YWQ5LWFiM2EtMDc4MDIwM2MzY2UzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDIyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODYwODcxIiwidHlwIjoiYWNjZXNzIn0.Qyx-9l680CmR9E72y5RLbvsU4UnxzxULotHwueXLu6Y
{
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"compliance_quantity": "1.0000",
"is_sample": true,
"location_id": "00000000-0000-0000-0000-00000003fb5c",
"package_id": "00000000-0000-0000-0000-00000001164c",
"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: a9d6e8bf8399b8000000000000000001-e987e013c6682581-0
{
"data": {
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": null,
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2527@example.com",
"full_name": "FirstName5120 LastName5121",
"id": "00000000-0000-0000-0000-0000000d22c7",
"role": {
"id": "00000000-0000-0000-0000-0000000d1278",
"name": "Admin 2566"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "701f4bb5-a540-4beb-a9fb-a3d504be6c33",
"inserted_datetime": "2026-05-26T16:47:03.946730Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035c7e",
"name": "B1"
},
"compliance_quantity": "1.0000",
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "597a182d-aa2a-4b08-a7a4-eb3588710178",
"is_sample": true,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000099414",
"id": "00000000-0000-0000-0000-00000003fb5c",
"license_id": "00000000-0000-0000-0000-000000024647",
"name": "Place 664"
},
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000000186",
"id": "00000000-0000-0000-0000-00000001164c",
"metrc_label": "ABCDEF012345670000000186",
"status": "selling"
},
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "9dfe0382-693b-4288-bec5-e6111b256c6e",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-26T16:47:03.692529Z"
},
"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,
"payment_term_name": null,
"shipping_location": null,
"status": "PROCESSING",
"total": "10.00",
"updated_datetime": "2026-05-26T16:47:03.946730Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTIsImlhdCI6MTc3OTgxNDAxMiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjQ1NWZhMTAtOGI4Ny00NDJjLWE1MzAtMDk2ZmQ2ZDczOGQ2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDExLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NzQ3IiwidHlwIjoiYWNjZXNzIn0.m59iFpc9EHedD6we59cbhj03B7k1CLT5y1OfFOzKuPg
{
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000003fa2d",
"price_base": "10.000000000",
"product_id": "f722f8fa-5943-46b4-b3ce-3877658ca26b",
"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: a002bca9f2f148000000000000000001-b42dd440cc4f492c-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-0000000d1e63",
"role": {
"id": "00000000-0000-0000-0000-0000000d0e12",
"name": "Admin 1440"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "ecaebe7a-5f11-43af-82d8-fc1e85d4afb2",
"inserted_datetime": "2026-05-26T16:46:52.549111Z",
"internal_notes": null,
"items": [
{
"batch": null,
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "2154141b-54f9-402c-af8a-6f6314522f95",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000099077",
"id": "00000000-0000-0000-0000-00000003fa2d",
"license_id": "00000000-0000-0000-0000-0000000245ee",
"name": "Place 361"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "f722f8fa-5943-46b4-b3ce-3877658ca26b",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-26T16:46:52.535698Z"
},
"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,
"payment_term_name": null,
"shipping_location": null,
"status": "PROCESSING",
"total": "10.00",
"updated_datetime": "2026-05-26T16:46:52.549111Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTgsImlhdCI6MTc3OTgxNDAxOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMWIyNDMxMWEtMDhiMi00ZjZjLWJmZTEtYWIyNDVkMzM2MTg1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDE3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODYwNzEyIiwidHlwIjoiYWNjZXNzIn0.H2V-jATGIDna4I03ZuHJgEzNFCePcwDLOVuekSfnU1g
{
"billing_location_id": "00000000-0000-0000-0000-00000003fb2e",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000058a67",
"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": "6f04e28e-23dd-4660-ae44-1493ed6003db",
"location_id": "00000000-0000-0000-0000-00000003fb2e",
"package_id": "00000000-0000-0000-0000-000000011648",
"price_base": "10.000000000",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-00000003fb2e",
"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",
"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-0000000d2228",
"shipping_location_id": "00000000-0000-0000-0000-00000003fb2e",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 214e1c4e43e04a000000000000000001-e7851606f2f797ac-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000099374",
"id": "00000000-0000-0000-0000-00000003fb2e",
"license_id": "00000000-0000-0000-0000-000000024639",
"name": "Place 618"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000058a67",
"name": "Company 1841",
"updated_datetime": "2026-05-26T16:46:58.333766Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-0000000d2228",
"role": {
"id": "00000000-0000-0000-0000-0000000d11d7",
"name": "Admin 2405"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "deb6ca0c-2edc-4aca-b0fd-4f1ca00ba924",
"inserted_datetime": "2026-05-26T16:46:58.419857Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035c1f",
"name": "B2"
},
"compliance_quantity": "1.0000",
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "6f04e28e-23dd-4660-ae44-1493ed6003db",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000099374",
"id": "00000000-0000-0000-0000-00000003fb2e",
"license_id": "00000000-0000-0000-0000-000000024639",
"name": "Place 618"
},
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000000178",
"id": "00000000-0000-0000-0000-000000011648",
"metrc_label": "ABCDEF012345670000000178",
"status": "selling"
},
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "937926bf-49d7-4d12-b9b3-7fe02291f490",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-26T16:46:58.346908Z"
},
"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-0000000d2228",
"role": {
"id": "00000000-0000-0000-0000-0000000d11d7",
"name": "Admin 2405"
}
},
"payment_term_name": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000099374",
"id": "00000000-0000-0000-0000-00000003fb2e",
"license_id": "00000000-0000-0000-0000-000000024639",
"name": "Place 618"
},
"status": "PROCESSING",
"total": "10.00",
"updated_datetime": "2026-05-26T16:46:58.475369Z"
}
}
POST /public/v1/orders updates an order
POST /public/v1/orders
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTksImlhdCI6MTc3OTgxNDAxOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYWEzM2Y3ZjEtOGQwNC00OTBhLWFjZWUtNjYwODE0NmJmOWEwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDE4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODYwNzk1IiwidHlwIjoiYWNjZXNzIn0.RyIgezq0EvgGntimH4UerdcpTovXd-8xTJ0tjQ-1mLQ
{
"billing_location_id": "00000000-0000-0000-0000-00000003fb4a",
"charges": [
{
"id": "098f2eb3-777f-48b8-9868-f53c989b2324",
"name": "C1",
"percent": "10.0000",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "98cff679-f221-428b-986f-d8e8386c61de",
"name": "C2",
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company_id": "00000000-0000-0000-0000-000000058ab1",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": "gonna make you sweat",
"id": "4ab1550d-3921-44ad-bb8f-58c0915d7301",
"items": [
{
"id": "d561ede3-84c6-4a26-8d7a-941a8273c325",
"is_sample": true,
"location_id": "00000000-0000-0000-0000-00000003fb4a",
"price_base": "10.000000000",
"product_id": "7e1d4c38-25b3-431a-8d8f-94765b6fee12",
"quantity": "2.000000000"
},
{
"id": "b290c8b5-5b09-4493-92df-c37cc3c7f669",
"location_id": "00000000-0000-0000-0000-00000003fb4a",
"price_base": "100.000000000",
"product_id": "7e1d4c38-25b3-431a-8d8f-94765b6fee12",
"quantity": "3.000000000"
},
{
"compliance_quantity": "1.0000",
"id": "a0119bfb-d5a8-4da7-bb0d-7a5b7122b68f",
"location_id": "00000000-0000-0000-0000-00000003fb4a",
"package_id": "00000000-0000-0000-0000-000000011649",
"price_base": "10.000000000",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-00000003fb4a",
"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-0000000d2282",
"shipping_location_id": "00000000-0000-0000-0000-00000003fb4a",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 339257a1655ec8000000000000000001-5a93a1b141219f66-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000993cc",
"id": "00000000-0000-0000-0000-00000003fb4a",
"license_id": "00000000-0000-0000-0000-00000002463f",
"name": "Place 646"
},
"biotrack_id": null,
"charges": [
{
"id": "098f2eb3-777f-48b8-9868-f53c989b2324",
"name": "C1",
"percent": "10.0000",
"price": "33.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "98cff679-f221-428b-986f-d8e8386c61de",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000058ab1",
"name": "Company 1927",
"updated_datetime": "2026-05-26T16:46:59.555427Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-0000000d227a",
"role": {
"id": "00000000-0000-0000-0000-0000000d122b",
"name": "Admin 2489"
}
},
"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": "4ab1550d-3921-44ad-bb8f-58c0915d7301",
"inserted_datetime": "2026-05-26T16:46:59.611151Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035c52",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "d561ede3-84c6-4a26-8d7a-941a8273c325",
"is_sample": true,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000993cc",
"id": "00000000-0000-0000-0000-00000003fb4a",
"license_id": "00000000-0000-0000-0000-00000002463f",
"name": "Place 646"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "7e1d4c38-25b3-431a-8d8f-94765b6fee12",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-26T16:46:59.589768Z"
},
"quantity": "2.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035c52",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "b290c8b5-5b09-4493-92df-c37cc3c7f669",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000993cc",
"id": "00000000-0000-0000-0000-00000003fb4a",
"license_id": "00000000-0000-0000-0000-00000002463f",
"name": "Place 646"
},
"package": null,
"price": "100.000000000",
"price_base": "100.000000000",
"product": {
"id": "7e1d4c38-25b3-431a-8d8f-94765b6fee12",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-26T16:46:59.589768Z"
},
"quantity": "3.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035c53",
"name": "B2"
},
"compliance_quantity": "1.0000",
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "a0119bfb-d5a8-4da7-bb0d-7a5b7122b68f",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000993cc",
"id": "00000000-0000-0000-0000-00000003fb4a",
"license_id": "00000000-0000-0000-0000-00000002463f",
"name": "Place 646"
},
"package": {
"batch_number": "B2",
"compliance_label": "ABCDEF012345670000000180",
"id": "00000000-0000-0000-0000-000000011649",
"metrc_label": "ABCDEF012345670000000180",
"status": "selling"
},
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "6b180995-1aec-409a-acde-70fa3681b137",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-05-26T16:46:59.628795Z"
},
"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-142",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-2464@example.com",
"full_name": "FirstName4994 LastName4995",
"id": "00000000-0000-0000-0000-0000000d2282",
"role": {
"id": "00000000-0000-0000-0000-0000000d1233",
"name": "Admin 2497"
}
},
"payment_term_name": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000993cc",
"id": "00000000-0000-0000-0000-00000003fb4a",
"license_id": "00000000-0000-0000-0000-00000002463f",
"name": "Place 646"
},
"status": "PROCESSING",
"total": "358.00",
"updated_datetime": "2026-05-26T16:46:59.811567Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTAsImlhdCI6MTc3OTgxNDAxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTk4OTc3MTgtYTI2Yy00NGFlLWFiYjktZWQ4M2Y4MzJkNWU5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5MzA3IiwidHlwIjoiYWNjZXNzIn0.u0aPNAYfFAygAea-06spHHBkeHblDf1SXP3KYwi84pk
{
"billing_location_id": "00000000-0000-0000-0000-00000003f9b4",
"charges": [],
"company_id": "00000000-0000-0000-0000-0000000586fa",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000003f9b4",
"position": 1,
"price_base": "100.000000000",
"product_id": "563bbefa-11e2-40a1-bff8-c0f1df8892d7",
"quantity": "10.000000000"
},
{
"location_id": "00000000-0000-0000-0000-00000003f9b4",
"position": 2,
"price_base": "200.000000000",
"product_id": "f143ec5c-601b-4f69-905a-1de92074a206",
"quantity": "10.000000000"
},
{
"location_id": "00000000-0000-0000-0000-00000003f9b4",
"position": 3,
"price_base": "300.000000000",
"product_id": "c87f00bc-2abf-444c-9742-1a3e8afb20fc",
"quantity": "10.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-00000003f9b4",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 2366d3141e7804000000000000000001-68096b0eeff57090-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000098f44",
"id": "00000000-0000-0000-0000-00000003f9b4",
"license_id": "00000000-0000-0000-0000-0000000245c1",
"name": "Place 241"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000586fa",
"name": "Company 768",
"updated_datetime": "2026-05-26T16:46:50.211325Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-994@example.com",
"full_name": "FirstName2050 LastName2051",
"id": "00000000-0000-0000-0000-0000000d1cab",
"role": {
"id": "00000000-0000-0000-0000-0000000d0c59",
"name": "Admin 999"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "29b5f598-b6ed-4ffa-8683-255951087cb6",
"inserted_datetime": "2026-05-26T16:46:50.432287Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035942",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "3d724818-1b2f-484b-b495-31dc61db6443",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000098f44",
"id": "00000000-0000-0000-0000-00000003f9b4",
"license_id": "00000000-0000-0000-0000-0000000245c1",
"name": "Place 241"
},
"package": null,
"price": "90.000000000",
"price_base": "100.000000000",
"product": {
"id": "563bbefa-11e2-40a1-bff8-c0f1df8892d7",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-26T16:46:50.262575Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035945",
"name": "B2"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "03706b42-ab3e-4d4f-9cab-2242f89c3743",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000098f44",
"id": "00000000-0000-0000-0000-00000003f9b4",
"license_id": "00000000-0000-0000-0000-0000000245c1",
"name": "Place 241"
},
"package": null,
"price": "200.000000000",
"price_base": "200.000000000",
"product": {
"id": "f143ec5c-601b-4f69-905a-1de92074a206",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-05-26T16:46:50.296803Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035948",
"name": "B3"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "107342ce-a232-4b54-81c7-84f2a5abbf98",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000098f44",
"id": "00000000-0000-0000-0000-00000003f9b4",
"license_id": "00000000-0000-0000-0000-0000000245c1",
"name": "Place 241"
},
"package": null,
"price": "290.000000000",
"price_base": "300.000000000",
"product": {
"id": "c87f00bc-2abf-444c-9742-1a3e8afb20fc",
"name": "P3",
"sku": "SKU3",
"updated_datetime": "2026-05-26T16:46:50.323781Z"
},
"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,
"payment_term_name": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000098f44",
"id": "00000000-0000-0000-0000-00000003f9b4",
"license_id": "00000000-0000-0000-0000-0000000245c1",
"name": "Place 241"
},
"status": "PROCESSING",
"total": "5800.00",
"updated_datetime": "2026-05-26T16:46:50.521052Z"
}
}
POST /public/v1/orders deleting order items & charges
POST /public/v1/orders
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTUsImlhdCI6MTc3OTgxNDAxNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTMzZWZlMTItZDE2My00MDE3LWIxYmQtM2ViYTA5Yzg3YTI4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDE0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODYwMzEwIiwidHlwIjoiYWNjZXNzIn0.k_6gLrxx3jinHfw8AbJefgaYLdhXTXG91NN2c1wQ0K0
{
"billing_location_id": "00000000-0000-0000-0000-00000003fac2",
"charges": [],
"company_id": "00000000-0000-0000-0000-00000005892a",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"id": "312de2a0-1eb6-4ac2-a90c-6645c4483ae3",
"items": [
{
"id": "06242bde-5397-4050-b6a3-4ae3e0bdabaf",
"location_id": "00000000-0000-0000-0000-00000003fac2",
"price_base": "10.000000000",
"product_id": "f6e31477-72ec-4e5b-a301-bf9a0e123910",
"quantity": "1.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-00000003fac2",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 6f1e86b7d82470000000000000000001-047c6474b1fd084f-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000099211",
"id": "00000000-0000-0000-0000-00000003fac2",
"license_id": "00000000-0000-0000-0000-000000024611",
"name": "Place 510"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000005892a",
"name": "Company 1485",
"updated_datetime": "2026-05-26T16:46:55.135331Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-0000000d2096",
"role": {
"id": "00000000-0000-0000-0000-0000000d103f",
"name": "Admin 1997"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "312de2a0-1eb6-4ac2-a90c-6645c4483ae3",
"inserted_datetime": "2026-05-26T16:46:55.171038Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035b24",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "06242bde-5397-4050-b6a3-4ae3e0bdabaf",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000099211",
"id": "00000000-0000-0000-0000-00000003fac2",
"license_id": "00000000-0000-0000-0000-000000024611",
"name": "Place 510"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "f6e31477-72ec-4e5b-a301-bf9a0e123910",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-26T16:46:55.155795Z"
},
"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-62",
"owner": null,
"payment_term_name": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000099211",
"id": "00000000-0000-0000-0000-00000003fac2",
"license_id": "00000000-0000-0000-0000-000000024611",
"name": "Place 510"
},
"status": "PROCESSING",
"total": "10.00",
"updated_datetime": "2026-05-26T16:46:55.248317Z"
}
}
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. Required permission: orders_permissions_create to create a new order, orders_permissions_edit (and access to the order under team restrictions) to update an existing order.
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDksImlhdCI6MTc3OTgxNDAwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzgxODc3Y2MtY2UxYy00ZWJhLWJhZTMtNTFiODk0NjIzODE1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5MTgzIiwidHlwIjoiYWNjZXNzIn0.BAAykmrpzJ5bjPIF4ZuF9c-q_6gp_Z4Xgz9uGl5zpUg
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: f1f65f86570018000000000000000001-3b3e4bddaae5b476-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000056",
"custom_data": [
{
"id": 4397,
"name": "Custom Field 12",
"value": "Custom Field Value 1"
}
],
"expiration_date": "2024-01-01T00:00:00.000000Z",
"harvest_date": "2024-06-15",
"id": "00000000-0000-0000-0000-00000001160a",
"is_trade_sample": true,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-0000000245b5",
"license_number": "CDPH-00000030"
},
"location": {
"id": "00000000-0000-0000-0000-00000003f99c",
"name": "Place 217"
},
"metrc_label": "ABCDEF012345670000000056",
"packaged_date": "2024-07-01",
"primary_test_result": null,
"product_id": "08a4d455-4d18-401b-962d-9414100c6455",
"product_unit_quantity": "7.500000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-00000083f251",
"name": "3"
},
"quantity": "5.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "5.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-00000083f252",
"name": "2"
}
},
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000058",
"custom_data": [
{
"id": 4397,
"name": "Custom Field 12",
"value": null
}
],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-00000001160b",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-0000000245b5",
"license_number": "CDPH-00000030"
},
"location": {
"id": "00000000-0000-0000-0000-00000003f9a2",
"name": "Place 223"
},
"metrc_label": "ABCDEF012345670000000058",
"packaged_date": null,
"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": "08a4d455-4d18-401b-962d-9414100c6455",
"product_unit_quantity": "15.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-00000083f251",
"name": "3"
},
"quantity": "20.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "20.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-00000083f25d",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDcsImlhdCI6MTc3OTgxNDAwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiOWM2MmNmYmMtNzIzOS00MDE4LWFiY2UtOWMwNTFjZTE3NmY2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4NjAyIiwidHlwIjoiYWNjZXNzIn0.wIV9nE4EEdvhAJ6N3l5l0ryt3Z_WUJ97rPS9YVR0Y8c
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: f5156afb775438000000000000000001-3841cede9238e733-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000016",
"cost_per_unit_actual": "0.4",
"cost_per_unit_default": "0.2",
"custom_data": [],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-0000000115f4",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-0000000245a6",
"license_number": "CDPH-00000015"
},
"location": {
"id": "00000000-0000-0000-0000-00000003f91d",
"name": "Place 90"
},
"metrc_label": "ABCDEF012345670000000016",
"packaged_date": "2014-11-29",
"primary_test_result": null,
"product_id": "59f35ea4-0008-463b-90c1-802d3ccd851d",
"product_unit_quantity": "141.747462720",
"product_unit_type": {
"id": "00000000-0000-0000-0000-00000083dbd2",
"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-00000083dbd4",
"name": "Ounce"
}
}
],
"next_page": null
}
GET /public/v1/packages allows filtering by product_ids
GET /public/v1/packages?product_ids[]=84e2f707-d970-40e4-9ce1-ac61ae3f727d&product_ids[]=6beb8645-944a-4f92-b204-0e8f1b4d9dfe
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTIsImlhdCI6MTc3OTgxNDAxMiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMWIwOTUxZDMtY2ViZi00NDkzLWJjYTQtNDhiN2FlY2Q5MjQxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDExLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NzEzIiwidHlwIjoiYWNjZXNzIn0.anjqM9HwYEBzAU7d6vqnF8naL4orO3sRTTeFtJe9tjs
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 5a17be6d2ebef0000000000000000001-5cf664a5109460c1-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000143",
"custom_data": [],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-000000011637",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-0000000245eb",
"license_number": "CDPH-00000084"
},
"location": {
"id": "00000000-0000-0000-0000-00000003fa27",
"name": "Place 355"
},
"metrc_label": "ABCDEF012345670000000143",
"packaged_date": null,
"primary_test_result": null,
"product_id": "84e2f707-d970-40e4-9ce1-ac61ae3f727d",
"product_unit_quantity": "10.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-000000840526",
"name": "Gram"
},
"quantity": "10.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "10.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-000000840526",
"name": "Gram"
}
},
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000145",
"custom_data": [],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-000000011638",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-0000000245eb",
"license_number": "CDPH-00000084"
},
"location": {
"id": "00000000-0000-0000-0000-00000003fa29",
"name": "Place 357"
},
"metrc_label": "ABCDEF012345670000000145",
"packaged_date": null,
"primary_test_result": null,
"product_id": "6beb8645-944a-4f92-b204-0e8f1b4d9dfe",
"product_unit_quantity": "10.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-000000840526",
"name": "Gram"
},
"quantity": "10.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "10.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-000000840526",
"name": "Gram"
}
}
],
"next_page": null
}
GET /public/v1/packages allows filtering by ids
GET /public/v1/packages?ids[]=00000000-0000-0000-0000-000000011604
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDksImlhdCI6MTc3OTgxNDAwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMWY1YjkyNDktZDNiZC00ZTgxLWIyMWMtNTIzMzk2ODE4NTcwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5MDc5IiwidHlwIjoiYWNjZXNzIn0.WoZ6xyEPs3SE3Rs-MYzFnO0MUwpdf-yRQE5diuB-d5E
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 9867125b2cee70000000000000000001-d320187dbd5e4bef-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000047",
"custom_data": [],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-000000011604",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-0000000245b2",
"license_number": "CDPH-00000027"
},
"location": {
"id": "00000000-0000-0000-0000-00000003f97f",
"name": "Place 188"
},
"metrc_label": "ABCDEF012345670000000047",
"packaged_date": null,
"primary_test_result": null,
"product_id": "57031e27-2b93-4389-80eb-fb6c83a9ac09",
"product_unit_quantity": "10.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-00000083ed8b",
"name": "Gram"
},
"quantity": "10.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "10.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-00000083ed8b",
"name": "Gram"
}
}
],
"next_page": null
}
GET /public/v1/packages allows filtering by location_ids
GET /public/v1/packages?location_ids[]=00000000-0000-0000-0000-00000003f8d0&location_ids[]=00000000-0000-0000-0000-00000003f8d2
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDYsImlhdCI6MTc3OTgxNDAwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTI2ZWQ2YjAtNDRmYy00MmQ3LTlhMDUtNDE2OTRlZDU2MzZhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4Mzg2IiwidHlwIjoiYWNjZXNzIn0.ibAuceqUoK04BWuAby-iHv_7C-WthmHHRYtZaKRuRgQ
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 920729261de7c0000000000000000001-1ab392f9d4861c30-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000001",
"custom_data": [],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-0000000115ec",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-000000024598",
"license_number": "CDPH-00000000"
},
"location": {
"id": "00000000-0000-0000-0000-00000003f8d0",
"name": "Place 13"
},
"metrc_label": "ABCDEF012345670000000001",
"packaged_date": null,
"primary_test_result": null,
"product_id": "c4539cfe-fdf6-4860-98ce-1f76a23d3f39",
"product_unit_quantity": "10.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-00000083d21e",
"name": "Gram"
},
"quantity": "10.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "10.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-00000083d21e",
"name": "Gram"
}
},
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000003",
"custom_data": [],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-0000000115ed",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-000000024598",
"license_number": "CDPH-00000000"
},
"location": {
"id": "00000000-0000-0000-0000-00000003f8d2",
"name": "Place 15"
},
"metrc_label": "ABCDEF012345670000000003",
"packaged_date": null,
"primary_test_result": null,
"product_id": "9033997c-d9ce-49ea-b2fe-a9e5491a0cbe",
"product_unit_quantity": "10.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-00000083d21e",
"name": "Gram"
},
"quantity": "10.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "10.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-00000083d21e",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTEsImlhdCI6MTc3OTgxNDAxMSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjcxMGI2NWMtNTNkNS00OGJjLTk1NDktOGZiNDIyMzFmMjdmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDEwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NTE5IiwidHlwIjoiYWNjZXNzIn0.UPKIdc6OQLcyQZMIZLcYdiGQxdlXAgNAHWJUYXc9-ck
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 51ba292ca0d7e0000000000000000001-df5a6517da071d59-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000114",
"custom_data": [],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-000000011629",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-0000000245dc",
"license_number": "CDPH-00000069"
},
"location": {
"id": "00000000-0000-0000-0000-00000003f9eb",
"name": "Place 295"
},
"metrc_label": "ABCDEF012345670000000114",
"packaged_date": "2014-11-29",
"primary_test_result": null,
"product_id": "4e7fad9e-a200-4d7d-855a-0792c2488f6b",
"product_unit_quantity": "1.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-00000083fcf2",
"name": "Ounce"
},
"quantity": "1.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "1.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-00000083fcf2",
"name": "Ounce"
}
},
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000118",
"custom_data": [],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-00000001162b",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-0000000245dc",
"license_number": "CDPH-00000069"
},
"location": {
"id": "00000000-0000-0000-0000-00000003f9ee",
"name": "Place 298"
},
"metrc_label": "ABCDEF012345670000000118",
"packaged_date": "2014-11-29",
"primary_test_result": null,
"product_id": "24f3a02a-8121-408b-b174-06d11c4a14cc",
"product_unit_quantity": "0.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-00000083fcf2",
"name": "Ounce"
},
"quantity": "0.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "0.000000000",
"status": "finished",
"unit_type": {
"id": "00000000-0000-0000-0000-00000083fcf2",
"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.
Required permission: products_permissions_view. Results are filtered to
only include packages the authenticated user can access under their team
restrictions.
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 | query | number | false | ?page[number]=1 | |
| 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 | |
| ids | Filter packages by package ID (same UUID string as each package's id in responses). Values that do not decode to an internal package id match no rows. | query | array | false | ?ids[]=00000000-0000-0000-0000-000000000001&ids[]=00000000-0000-0000-0000-000000000002 | |
| 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDYsImlhdCI6MTc3OTgxNDAwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTI2ZWQ2MjEtYjFmNS00NjI4LWE0ZmYtNTU5ZjY1NDg3Y2RkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4Mzc0IiwidHlwIjoiYWNjZXNzIn0.AKn5Fk4HKanDj6Th5_Fcqp90HjYI4v_9WPc0_GvYNcc
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 5e2aaf20a22d2c000000000000000001-6d8d9d76f9d88a3d-0
{
"data": [
{
"deleted_at": null,
"id": "00000000-0000-0000-0000-00000000170d",
"name": "Payment Method 2"
}
],
"next_page": null
}
Get payment methods. Note: This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Required permission: settings_permissions_payment_methods.
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDksImlhdCI6MTc3OTgxNDAwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZGZjZDhmOGUtYTI0Zi00YzU4LTkwMDktMDQzMTBiYjg5MDhjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5MDkyIiwidHlwIjoiYWNjZXNzIn0.2WTK-0T9wtlE9PZIE7bIsuz4cYiNmJa95JKBuJPygPQ
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 10ed915c43db15000000000000000001-ca67043853547a82-0
{
"data": [
{
"brand": {
"id": "00000000-0000-0000-0000-000000058695",
"name": "Company 618",
"updated_datetime": "2030-11-01T00:00:00.000000Z"
},
"category": {
"id": "00000000-0000-0000-0000-00000004a714",
"name": "Some category 250",
"type": "OTHER"
},
"custom_data": [
{
"id": 4393,
"name": "Custom Field 8",
"value": "Custom Field Value 1"
}
],
"deleted_at": null,
"description": "test",
"description_markdown": "# test",
"external_name": "External Name",
"id": "96d7d7b3-e420-4ce7-9a94-f3eb6902b194",
"images": [
{
"id": "00000000-0000-0000-0000-000000000b1a",
"name": "Image Name 48",
"rank": 0,
"url": "https://google.com/original-5.jpg"
},
{
"id": "00000000-0000-0000-0000-000000000b1b",
"name": "Image Name 49",
"rank": 1,
"url": "https://google.com/original-6.jpg"
}
],
"is_active": true,
"menus": [],
"msrp": null,
"name": "Product 678",
"product_group": {
"id": "00000000-0000-0000-0000-00000003c45a",
"name": "Product Group 248"
},
"sku": "sku 679",
"strain": {
"id": "00000000-0000-0000-0000-00000000228f",
"name": "Strain 23",
"strain_type": "INDICA"
},
"subcategory": {
"id": "00000000-0000-0000-0000-00000004c538",
"name": "Some subcategory 248"
},
"unit_cost": null,
"unit_net_weight": "20",
"unit_net_weight_serving_size_unit_type": {
"id": "00000000-0000-0000-0000-00000083ee41",
"name": "Ounce"
},
"unit_price": "1",
"unit_serving_size": "10",
"unit_type": {
"id": "00000000-0000-0000-0000-00000083ee3f",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2023-11-01T00:00:00.000000Z",
"vendor": {
"id": "00000000-0000-0000-0000-00000005869d",
"name": "Company 627",
"updated_datetime": "2030-11-03T00:00:00.000000Z"
}
},
{
"brand": {
"id": "00000000-0000-0000-0000-00000005869a",
"name": "Company 622",
"updated_datetime": "2030-11-02T00:00:00.000000Z"
},
"category": {
"id": "00000000-0000-0000-0000-00000004a717",
"name": "Some category 253",
"type": "OTHER"
},
"custom_data": [
{
"id": 4393,
"name": "Custom Field 8",
"value": null
}
],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "434d10a7-6f63-4740-837d-07abb1759dd4",
"images": [],
"is_active": false,
"menus": [],
"msrp": "100",
"name": "Product 684",
"product_group": {
"id": "00000000-0000-0000-0000-00000003c45c",
"name": "Product Group 250"
},
"sku": "sku 685",
"strain": null,
"subcategory": {
"id": "00000000-0000-0000-0000-00000004c53a",
"name": "Some subcategory 250"
},
"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-00000083ee3d",
"name": "Pound"
},
"units_per_case": null,
"updated_datetime": "2023-11-02T00:00:00.000000Z",
"vendor": {
"id": "00000000-0000-0000-0000-00000005869f",
"name": "Company 630",
"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.
Required permission: products_permissions_view. Results are filtered to
only include products the authenticated user can access under their team
restrictions.
Request
GET /public/v1/products
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| product_name | Filter products by name substring | query | string | false | ||
| menu_id | Comma-separated public menu IDs; products in any of these menus are returned. Invalid tokens are ignored; if none remain, data is empty. |
query | string | false | ||
| menu_name | Case-insensitive substring match on menu name. When combined with menu_id, both conditions apply (AND). | 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 | |
| ids | Filter products by product ID (same UUID as each product's id in responses). | query | array | false | ?ids[]=550e8400-e29b-41d4-a716-446655440000&ids[]=6ba7b810-9dad-11d1-80b4-00c04fd430c8 | |
| page | Pagination information | query | number | false | ?page[number]=1 | |
| 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTAsImlhdCI6MTc3OTgxNDAxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzBiMWVhYjAtYWQxYS00MDkxLTkwZTctNGVlNzA3ZmFhMmVjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NDgwIiwidHlwIjoiYWNjZXNzIn0.krILfgZAcyHnn4_6bk7kOiexMuYL4AoM44NqEG14tI8
{
"unit_net_weight_and_serving_size_unit_type_id": "00000000-0000-0000-0000-00000083fba2",
"is_featured": true,
"description_markdown": "# My Product Description Markdown",
"wholesale_unit_price": "90.50",
"msrp": "100.5",
"custom_data": {
"4400": "VIP"
},
"unit_type_id": "00000000-0000-0000-0000-00000083fba9",
"quantity_available_threshold_min": "5.5",
"total_thc": "10.4",
"brand_id": "00000000-0000-0000-0000-00000005873a",
"sku": "12345",
"unit_price": "100",
"category_id": "00000000-0000-0000-0000-00000004a786",
"unit_serving_size": "2.2",
"tags": [
"00000000-0000-0000-0000-0000000010e7"
],
"total_cbd": "5.2",
"unit_cost": "50.4",
"group_id": "00000000-0000-0000-0000-00000003c4cc",
"is_inactive": true,
"units_per_case": "0.2",
"menus": [
"00000000-0000-0000-0000-000000004e0f"
],
"vendor_id": "00000000-0000-0000-0000-000000058735",
"total_cannabinoid_unit": "PERCENT",
"menu_visibility": "INCLUDE_IN_ALL",
"inventory_tracking_method": "PACKAGE",
"description": "My Product Description",
"owner_id": "00000000-0000-0000-0000-0000000d1d57",
"subcategory_id": "00000000-0000-0000-0000-00000004c5a8",
"quantity_available_threshold_max": "10.5",
"upc": "036000291452",
"unit_net_weight": "3.1",
"strain_id": "00000000-0000-0000-0000-000000002291",
"name": "My Product"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 594b3a2c6e0ad0000000000000000001-443ec08c1185ee3c-0
{
"data": {
"brand": {
"id": "00000000-0000-0000-0000-00000005873a",
"name": "Company 875",
"updated_datetime": "2026-05-26T16:46:51.028915Z"
},
"category": {
"id": "00000000-0000-0000-0000-00000004a786",
"name": "Some category 364",
"type": "OTHER"
},
"custom_data": [
{
"id": 4400,
"name": "Custom Field 15",
"value": "VIP"
}
],
"deleted_at": null,
"description": "My Product Description",
"description_markdown": "# My Product Description Markdown",
"external_name": null,
"id": "f1c5a1e5-9f92-402e-a0da-0033d4483afc",
"images": [],
"is_active": false,
"menus": [
{
"menu_id": "00000000-0000-0000-0000-000000004e0f",
"menu_name": "Menu 158"
}
],
"msrp": "100.5",
"name": "My Product",
"product_group": {
"id": "00000000-0000-0000-0000-00000003c4cc",
"name": "Product Group 362"
},
"sku": "12345",
"strain": {
"id": "00000000-0000-0000-0000-000000002291",
"name": "Strain 25",
"strain_type": null
},
"subcategory": {
"id": "00000000-0000-0000-0000-00000004c5a8",
"name": "Some subcategory 360"
},
"unit_cost": "50.4",
"unit_net_weight": "3.1",
"unit_net_weight_serving_size_unit_type": {
"id": "00000000-0000-0000-0000-00000083fba2",
"name": "Ounce"
},
"unit_price": "100",
"unit_serving_size": "2.2",
"unit_type": {
"id": "00000000-0000-0000-0000-00000083fba9",
"name": "Unit"
},
"units_per_case": "0.2",
"updated_datetime": "2026-05-26T16:46:51.098427Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000058735",
"name": "Company 869",
"updated_datetime": "2026-05-26T16:46:51.002460Z"
}
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTEsImlhdCI6MTc3OTgxNDAxMSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZWM0OWNhMzktMGY2NS00ZTI0LWIyYzItYmNlMzkyM2Y4NmY0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDEwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NTI3IiwidHlwIjoiYWNjZXNzIn0.Mx1zn8OGOBnFKQwH2PEbD09_7dQaa7iXONpq3XiXgKw
{
"category_id": "00000000-0000-0000-0000-00000004a79a",
"inventory_tracking_method": "PACKAGE",
"name": "My Product",
"sku": "12345",
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-00000083fd5c",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-00000005874e"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 0bc2a12082e6f4000000000000000001-3c9b2fe07e2d1047-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-00000004a79a",
"name": "Some category 384",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "c3e07f08-ace8-4407-9136-e679992dfcaa",
"images": [],
"is_active": true,
"menus": [],
"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-00000083fd5c",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-05-26T16:46:51.341424Z",
"vendor": {
"id": "00000000-0000-0000-0000-00000005874e",
"name": "Company 901",
"updated_datetime": "2026-05-26T16:46:51.265774Z"
}
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTEsImlhdCI6MTc3OTgxNDAxMSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZWM0OWNhMzktMGY2NS00ZTI0LWIyYzItYmNlMzkyM2Y4NmY0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDEwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NTI3IiwidHlwIjoiYWNjZXNzIn0.Mx1zn8OGOBnFKQwH2PEbD09_7dQaa7iXONpq3XiXgKw
{
"unit_net_weight_and_serving_size_unit_type_id": "00000000-0000-0000-0000-00000083fd5e",
"id": "c3e07f08-ace8-4407-9136-e679992dfcaa",
"is_featured": true,
"wholesale_unit_price": "90.50",
"msrp": "100.5",
"unit_type_id": "00000000-0000-0000-0000-00000083fd65",
"quantity_available_threshold_min": "5.5",
"total_thc": "10.4",
"brand_id": "00000000-0000-0000-0000-00000005875d",
"sku": "45678",
"unit_price": "200",
"category_id": "00000000-0000-0000-0000-00000004a7a3",
"unit_serving_size": "2.2",
"tags": [
"00000000-0000-0000-0000-0000000010e8"
],
"total_cbd": "5.2",
"unit_cost": "50.4",
"group_id": "00000000-0000-0000-0000-00000003c4e8",
"is_inactive": true,
"units_per_case": "0.2",
"menus": [
"00000000-0000-0000-0000-000000004e10"
],
"vendor_id": "00000000-0000-0000-0000-000000058757",
"total_cannabinoid_unit": "PERCENT",
"menu_visibility": "INCLUDE_IN_ALL",
"inventory_tracking_method": "PACKAGE",
"description": "My Product Description",
"owner_id": "00000000-0000-0000-0000-0000000d1db4",
"subcategory_id": "00000000-0000-0000-0000-00000004c5c4",
"external_name": "External Name",
"quantity_available_threshold_max": "10.5",
"upc": "036000291453",
"unit_net_weight": "3.1",
"strain_id": "00000000-0000-0000-0000-000000002292",
"name": "Updated Name"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 0bc2a12082e6f4000000000000000001-a1956a4d87a27281-0
{
"data": {
"brand": {
"id": "00000000-0000-0000-0000-00000005875d",
"name": "Company 923",
"updated_datetime": "2026-05-26T16:46:51.473580Z"
},
"category": {
"id": "00000000-0000-0000-0000-00000004a7a3",
"name": "Some category 393",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": "My Product Description",
"description_markdown": "My Product Description",
"external_name": "External Name",
"id": "c3e07f08-ace8-4407-9136-e679992dfcaa",
"images": [],
"is_active": false,
"menus": [
{
"menu_id": "00000000-0000-0000-0000-000000004e10",
"menu_name": "Menu 161"
}
],
"msrp": "100.5",
"name": "Updated Name",
"product_group": {
"id": "00000000-0000-0000-0000-00000003c4e8",
"name": "Product Group 390"
},
"sku": "45678",
"strain": {
"id": "00000000-0000-0000-0000-000000002292",
"name": "Strain 26",
"strain_type": null
},
"subcategory": {
"id": "00000000-0000-0000-0000-00000004c5c4",
"name": "Some subcategory 388"
},
"unit_cost": "50.4",
"unit_net_weight": "3.1",
"unit_net_weight_serving_size_unit_type": {
"id": "00000000-0000-0000-0000-00000083fd5e",
"name": "Ounce"
},
"unit_price": "200",
"unit_serving_size": "2.2",
"unit_type": {
"id": "00000000-0000-0000-0000-00000083fd65",
"name": "Unit"
},
"units_per_case": "0.2",
"updated_datetime": "2026-05-26T16:46:51.529062Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000058757",
"name": "Company 915",
"updated_datetime": "2026-05-26T16:46:51.429908Z"
}
}
}
POST /public/v1/products Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDksImlhdCI6MTc3OTgxNDAwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYmQxZmNkYzMtNzdhZi00ZmUyLWJkZTctZGQ4MzU5MjY5NzA3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5MTk3IiwidHlwIjoiYWNjZXNzIn0.9Qnpo7v5KuzOVA7pXsPYFDrkdwcsDhVjW_6AG44sq1g
{
"category_id": "00000000-0000-0000-0000-00000004a730",
"inventory_tracking_method": "PACKAGE",
"menu_visibility": "INCLUDE_IN_ALL",
"menus": [
"00000000-0000-0000-0000-000000004e08"
],
"name": "My Product",
"sku": "12345",
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-00000083f255",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-0000000586cb"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 5bdc6255910140000000000000000001-73d4b31653a06d17-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-00000004a730",
"name": "Some category 278",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "f4510977-4bb3-442b-9566-8adbf5d89ed9",
"images": [],
"is_active": true,
"menus": [
{
"menu_id": "00000000-0000-0000-0000-000000004e08",
"menu_name": "Menu 137"
},
{
"menu_id": "00000000-0000-0000-0000-000000004e09",
"menu_name": "Menu 140"
},
{
"menu_id": "00000000-0000-0000-0000-000000004e0a",
"menu_name": "Menu 143"
}
],
"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-00000083f255",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-05-26T16:46:49.901520Z",
"vendor": {
"id": "00000000-0000-0000-0000-0000000586cb",
"name": "Company 699",
"updated_datetime": "2026-05-26T16:46:49.765735Z"
}
}
}
POST /public/v1/products Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDksImlhdCI6MTc3OTgxNDAwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYmQxZmNkYzMtNzdhZi00ZmUyLWJkZTctZGQ4MzU5MjY5NzA3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5MTk3IiwidHlwIjoiYWNjZXNzIn0.9Qnpo7v5KuzOVA7pXsPYFDrkdwcsDhVjW_6AG44sq1g
{
"category_id": "00000000-0000-0000-0000-00000004a730",
"id": "f4510977-4bb3-442b-9566-8adbf5d89ed9",
"inventory_tracking_method": "PACKAGE",
"menu_visibility": "DO_NOT_INCLUDE",
"menus": [
"00000000-0000-0000-0000-000000004e08",
"00000000-0000-0000-0000-000000004e09"
],
"name": "My Product",
"sku": "12345",
"tags": [],
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-00000083f255",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-0000000586cb"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 5bdc6255910140000000000000000001-41639a1af0bf1a11-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-00000004a730",
"name": "Some category 278",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "f4510977-4bb3-442b-9566-8adbf5d89ed9",
"images": [],
"is_active": true,
"menus": [],
"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-00000083f255",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-05-26T16:46:50.003951Z",
"vendor": {
"id": "00000000-0000-0000-0000-0000000586cb",
"name": "Company 699",
"updated_datetime": "2026-05-26T16:46:49.765735Z"
}
}
}
POST /public/v1/products Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDksImlhdCI6MTc3OTgxNDAwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYmQxZmNkYzMtNzdhZi00ZmUyLWJkZTctZGQ4MzU5MjY5NzA3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5MTk3IiwidHlwIjoiYWNjZXNzIn0.9Qnpo7v5KuzOVA7pXsPYFDrkdwcsDhVjW_6AG44sq1g
{
"category_id": "00000000-0000-0000-0000-00000004a730",
"id": "f4510977-4bb3-442b-9566-8adbf5d89ed9",
"inventory_tracking_method": "PACKAGE",
"menu_visibility": "INCLUDE_IN_SELECT",
"menus": [
"00000000-0000-0000-0000-000000004e08",
"00000000-0000-0000-0000-000000004e09"
],
"name": "My Product",
"sku": "12345",
"tags": [],
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-00000083f255",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-0000000586cb"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 5bdc6255910140000000000000000001-0741d5cc234c7db8-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-00000004a730",
"name": "Some category 278",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "f4510977-4bb3-442b-9566-8adbf5d89ed9",
"images": [],
"is_active": true,
"menus": [
{
"menu_id": "00000000-0000-0000-0000-000000004e08",
"menu_name": "Menu 137"
},
{
"menu_id": "00000000-0000-0000-0000-000000004e09",
"menu_name": "Menu 140"
}
],
"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-00000083f255",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-05-26T16:46:50.058260Z",
"vendor": {
"id": "00000000-0000-0000-0000-0000000586cb",
"name": "Company 699",
"updated_datetime": "2026-05-26T16:46:49.765735Z"
}
}
}
POST /public/v1/products Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDksImlhdCI6MTc3OTgxNDAwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYmQxZmNkYzMtNzdhZi00ZmUyLWJkZTctZGQ4MzU5MjY5NzA3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5MTk3IiwidHlwIjoiYWNjZXNzIn0.9Qnpo7v5KuzOVA7pXsPYFDrkdwcsDhVjW_6AG44sq1g
{
"category_id": "00000000-0000-0000-0000-00000004a730",
"id": "f4510977-4bb3-442b-9566-8adbf5d89ed9",
"inventory_tracking_method": "PACKAGE",
"menu_visibility": "INCLUDE_IN_SELECT",
"menus": [
"00000000-0000-0000-0000-000000004e09"
],
"name": "My Product",
"sku": "12345",
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-00000083f255",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-0000000586cb"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 5bdc6255910140000000000000000001-6d9dd76130947984-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-00000004a730",
"name": "Some category 278",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "f4510977-4bb3-442b-9566-8adbf5d89ed9",
"images": [],
"is_active": true,
"menus": [
{
"menu_id": "00000000-0000-0000-0000-000000004e09",
"menu_name": "Menu 140"
}
],
"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-00000083f255",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-05-26T16:46:50.171001Z",
"vendor": {
"id": "00000000-0000-0000-0000-0000000586cb",
"name": "Company 699",
"updated_datetime": "2026-05-26T16:46:49.765735Z"
}
}
}
POST /public/v1/products Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDksImlhdCI6MTc3OTgxNDAwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYmQxZmNkYzMtNzdhZi00ZmUyLWJkZTctZGQ4MzU5MjY5NzA3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5MTk3IiwidHlwIjoiYWNjZXNzIn0.9Qnpo7v5KuzOVA7pXsPYFDrkdwcsDhVjW_6AG44sq1g
{
"category_id": "00000000-0000-0000-0000-00000004a730",
"id": "f4510977-4bb3-442b-9566-8adbf5d89ed9",
"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-00000083f255",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-0000000586cb"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 5bdc6255910140000000000000000001-0d843476cf11cd6e-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-00000004a730",
"name": "Some category 278",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "f4510977-4bb3-442b-9566-8adbf5d89ed9",
"images": [],
"is_active": true,
"menus": [],
"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-00000083f255",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-05-26T16:46:50.226391Z",
"vendor": {
"id": "00000000-0000-0000-0000-0000000586cb",
"name": "Company 699",
"updated_datetime": "2026-05-26T16:46:49.765735Z"
}
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDcsImlhdCI6MTc3OTgxNDAwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNGNlZmUzN2ItYTNhYy00NDYzLWFiNTItMjViMDVkYjI1ZmY2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4Njc5IiwidHlwIjoiYWNjZXNzIn0.4kQtfVaMacjOtyGaTlYKlecLjKskpF1JqhTOqxa69sE
{
"id": "bd9922b3-11b2-4ec2-a289-51d4a282f1ec",
"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: ac29e0a3ec05c8000000000000000001-7808033a79c11815-0
{
"errors": [
{
"context": {
"id": "bd9922b3-11b2-4ec2-a289-51d4a282f1ec"
},
"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": "bd9922b3-11b2-4ec2-a289-51d4a282f1ec"
},
"message": "Unit Serving Size can't be greater than Unit Net Weight/Volume",
"pointer": [
"unit_serving_size"
],
"section": "body"
},
{
"context": {
"id": "bd9922b3-11b2-4ec2-a289-51d4a282f1ec"
},
"message": "Cannot be negative",
"pointer": [
"quantity_available_threshold_max"
],
"section": "body"
},
{
"context": {
"id": "bd9922b3-11b2-4ec2-a289-51d4a282f1ec"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDgsImlhdCI6MTc3OTgxNDAwOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjY2ZTVkYTctMjA1MS00MzdkLTg5M2ItNDZkYzRkOGYxZDFkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4OTIwIiwidHlwIjoiYWNjZXNzIn0.-YbdLW_Qsudd7D5ueMaPs-MRLJCanteoxOb2HMGMAx4
{
"id": "84620eaa-a6ed-4e13-8a18-cbadaee22b6d",
"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: 13a17deccd9d83000000000000000001-c57f9525cb58db59-0
{
"errors": [
{
"context": {
"id": "84620eaa-a6ed-4e13-8a18-cbadaee22b6d"
},
"message": "Must be greater than threshold min",
"pointer": [
"quantity_available_threshold_max"
],
"section": "body"
},
{
"context": {
"id": "84620eaa-a6ed-4e13-8a18-cbadaee22b6d"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDgsImlhdCI6MTc3OTgxNDAwOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYTJkMWFlZDctODliMC00YTk2LWEwOTgtZDk4MTk5MzdiM2M0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4OTc5IiwidHlwIjoiYWNjZXNzIn0.rSr8pqWip4K4XvzlNdPhKkswKPRpJdRpiUqLjLB6IRo
{
"brand_id": "00000000-0000-0000-0000-00000005865c",
"category_id": "00000000-0000-0000-0000-00000004a6eb",
"cbd": "5.2",
"description": "My Product Description",
"description_markdown": "# My Product Description Markdown",
"group_id": "00000000-0000-0000-0000-00000003c432",
"inventory_tracking_method": "PACKAGE",
"is_featured": true,
"is_inactive": true,
"menu_visibility": "INCLUDE_IN_ALL",
"menus": [
"00000000-0000-0000-0000-000000004e03",
"00000000-0000-0000-0000-000000004e04",
"00000000-0000-0000-0000-000000004e05"
],
"msrp": "100.5",
"name": "My Product",
"owner_id": "00000000-0000-0000-0000-0000000d1b6b",
"quantity_available_threshold_max": "10.5",
"quantity_available_threshold_min": "5.5555",
"sku": "12345",
"strain_id": "00000000-0000-0000-0000-00000000228e",
"subcategory_id": "00000000-0000-0000-0000-00000004c510",
"tags": [
"00000000-0000-0000-0000-0000000010e4",
"00000000-0000-0000-0000-0000000010e5",
"00000000-0000-0000-0000-0000000010e6"
],
"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-00000083e9b5",
"unit_price": "100",
"unit_serving_size": "2.2",
"unit_type_id": "00000000-0000-0000-0000-00000083e9bc",
"units_per_case": "0.2",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-000000058657",
"wholesale_unit_price": "90.50"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 63e9c621275498000000000000000001-c4545f23aaa237ca-0
{
"errors": [
{
"context": {
"id": "96bf0fff-52b6-4fdd-b0a8-f6f2880e876a"
},
"message": "Brand does not exist",
"pointer": [
"brand_id"
],
"section": "body"
},
{
"context": {
"id": "96bf0fff-52b6-4fdd-b0a8-f6f2880e876a"
},
"message": "Category does not exist",
"pointer": [
"category_id"
],
"section": "body"
},
{
"context": {
"id": "96bf0fff-52b6-4fdd-b0a8-f6f2880e876a"
},
"message": "Vendor does not exist",
"pointer": [
"vendor_id"
],
"section": "body"
},
{
"context": {
"id": "96bf0fff-52b6-4fdd-b0a8-f6f2880e876a"
},
"message": "Group does not exist",
"pointer": [
"group_id"
],
"section": "body"
},
{
"context": {
"id": "96bf0fff-52b6-4fdd-b0a8-f6f2880e876a"
},
"message": "Serving unit type does not exist",
"pointer": [
"unit_net_weight_and_serving_size_unit_type_id"
],
"section": "body"
},
{
"context": {
"id": "96bf0fff-52b6-4fdd-b0a8-f6f2880e876a"
},
"message": "Owner does not exist",
"pointer": [
"owner_id"
],
"section": "body"
},
{
"context": {
"id": "96bf0fff-52b6-4fdd-b0a8-f6f2880e876a"
},
"message": "Strain does not exist",
"pointer": [
"strain_id"
],
"section": "body"
},
{
"context": {
"id": "96bf0fff-52b6-4fdd-b0a8-f6f2880e876a"
},
"message": "Subcategory does not belong to the product category",
"pointer": [
"subcategory_id"
],
"section": "body"
},
{
"context": {
"id": "96bf0fff-52b6-4fdd-b0a8-f6f2880e876a"
},
"message": "One or more of the provided tags do not exist",
"pointer": [
"tags"
],
"section": "body"
},
{
"context": {
"id": "96bf0fff-52b6-4fdd-b0a8-f6f2880e876a"
},
"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-000000004e03"
],
"section": "body"
},
{
"context": {},
"message": "Menu does not exist",
"pointer": [
"menus",
1,
"00000000-0000-0000-0000-000000004e04"
],
"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. Required permission: products_permissions_create to create a new product, products_permissions_edit (and access to the product under team restrictions) to update an existing product.
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"] | |
| custom_data | Custom data for this product | query | object | false |
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/6662
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDgsImlhdCI6MTc3OTgxNDAwOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNmIxMzVjM2YtYjdlOS00N2ZiLTkyMzYtYWU4YjA2ODQwZjhmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4ODk1IiwidHlwIjoiYWNjZXNzIn0._X2qnfTHDGw4Y63IhqfHMBa3vNduuUORzVFZsRF8Joo
Response
204
cache-control: max-age=0, private, must-revalidate
b3: aecdf3e83cd668000000000000000001-785587f74e20e4ff-0
Required permission: products_permissions_edit.
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDcsImlhdCI6MTc3OTgxNDAwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNWMyZjI4YzktYTgzMi00MGI0LTgwNDEtZTUzMzA5ODRmZTM2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4NzA1IiwidHlwIjoiYWNjZXNzIn0.i4RrOXijw_MDEP24LeUbxrGLxgcQFtOAj_BiG0F1Quo
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 64344c0cef97f0000000000000000001-8ce7bbd5b42d5966-0
{
"data": [
{
"blaze_asset_id": null,
"blaze_product_id": "blaze_123",
"blaze_retailer_id": "4575b06e-9658-4cc9-923a-e08082fa532d",
"id": 6658,
"inserted_at": "2026-05-26T16:46:47.968505Z",
"pos_type": "BLAZE",
"product_id": "456a07b2-7b83-4c92-a4c0-6c28b4deb839",
"updated_at": "2026-05-26T16:46:47.968505Z"
},
{
"dutchie_product_id": 456,
"dutchie_retailer_id": "075a69fc-6cb8-425a-834d-bef2eb92acf8",
"id": 6659,
"inserted_at": "2026-05-26T16:46:48.031967Z",
"pos_type": "DUTCHIE",
"product_id": "f017f3e1-643d-474d-a25c-0f2ae106996a",
"updated_at": "2026-05-26T16:46:48.031967Z"
}
],
"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. Required permission: products_permissions_view.
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDYsImlhdCI6MTc3OTgxNDAwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNjJjYzM3MjMtNzMyMC00ZjEwLTk2MmMtY2JlNTMxNjY1MTNkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4MzczIiwidHlwIjoiYWNjZXNzIn0.Bk4w7ee2hM4cL0lPBk0VsA-BIaGYNMOdBtezRV-OGWw
{
"blaze_product_id": "blaze_123",
"blaze_retailer_id": "d90ebf24-dbbf-483b-b3ca-158c36b45a8a",
"product_id": "a90bfaba-6f04-4f8f-a10f-8a92e1faed7b"
}
Response
201
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 007f652f22b4737c0000000000000001-1f8a7d64cc4b53d9-0
{
"data": {
"blaze_asset_id": null,
"blaze_product_id": "blaze_123",
"blaze_retailer_id": "d90ebf24-dbbf-483b-b3ca-158c36b45a8a",
"id": 6655,
"inserted_at": "2026-05-26T16:46:46.842641Z",
"pos_type": "BLAZE",
"product_id": "a90bfaba-6f04-4f8f-a10f-8a92e1faed7b",
"updated_at": "2026-05-26T16:46:46.842641Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDksImlhdCI6MTc3OTgxNDAwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiN2ZlMjQyY2ItN2JjZS00YmZkLTk3MTgtNTZjMGZmOTlkY2U3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5MDIyIiwidHlwIjoiYWNjZXNzIn0.DoqfF0oM2-OXn9WTwffNS80RIkgMBu-ZnoFeE5eu8Fg
{
"blaze_product_id": "blaze_456",
"blaze_retailer_id": "b7a9b398-9eeb-4548-ae00-135b611ec1d9",
"product_id": "53470f88-32f4-427f-9885-27f0852f93a3"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: cad4cc1eb9cba0000000000000000001-b2c359ba02879ed9-0
{
"data": {
"blaze_asset_id": null,
"blaze_product_id": "blaze_456",
"blaze_retailer_id": "b7a9b398-9eeb-4548-ae00-135b611ec1d9",
"id": 6663,
"inserted_at": "2026-05-26T16:46:49.178532Z",
"pos_type": "BLAZE",
"product_id": "53470f88-32f4-427f-9885-27f0852f93a3",
"updated_at": "2026-05-26T16:46:49.189450Z"
}
}
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.
Required permission: products_permissions_edit.
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTIsImlhdCI6MTc3OTgxNDAxMiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiM2ViMDczNDctZDI5Ni00ZDU3LWEwOWMtZTBhNWMxODBkOTg2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDExLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NjU0IiwidHlwIjoiYWNjZXNzIn0.jyfStkgBbi-9yDCIlC4TjCMqqHMn1jwfqMZak-MPrNc
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 4a5372c8a05248000000000000000001-eb2a7fb77f3e2590-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000587a5",
"name": "Company 1016",
"updated_datetime": "2026-05-26T16:46:52.147138Z"
},
"custom_data": [
{
"id": 4402,
"name": "Custom Field 17",
"value": null
}
],
"due_datetime": "2026-05-26T16:46:52.177080Z",
"id": "00000000-0000-0000-0000-000000003430",
"inserted_datetime": "2026-05-26T16:46:52.178131Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000359bf",
"name": "B1278"
},
"compliance_quantity": null,
"id": "58599461-2927-4ffc-af27-81d638a986f9",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000099029",
"id": "00000000-0000-0000-0000-00000003fa1a",
"license_id": null,
"name": "Place 342"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "296f057d-d6ed-4360-952c-d8bc0551fed7",
"name": "Product 1259",
"sku": "sku 1260",
"updated_datetime": "2026-05-26T16:46:52.186125Z"
},
"quantity": "15.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000359c0",
"name": "B1279"
},
"compliance_quantity": null,
"id": "d3d7af70-cd17-4ddf-ac1e-a8eb3ed6ad2a",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000099029",
"id": "00000000-0000-0000-0000-00000003fa1a",
"license_id": null,
"name": "Place 342"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "28d2072f-fb7d-45f3-8395-f8fb8925b0a6",
"name": "Product 1266",
"sku": "sku 1267",
"updated_datetime": "2026-05-26T16:46:52.195605Z"
},
"quantity": "10.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000359c1",
"name": "B1280"
},
"compliance_quantity": null,
"id": "532bc02e-a99e-4520-b4fb-5e083c2ae75c",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000099029",
"id": "00000000-0000-0000-0000-00000003fa1a",
"license_id": null,
"name": "Place 342"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "256e4b22-ad99-452d-b9db-256f253bcadd",
"name": "Product 1269",
"sku": "sku 1270",
"updated_datetime": "2026-05-26T16:46:52.206807Z"
},
"quantity": "5.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000359c3",
"name": "B1282"
},
"compliance_quantity": null,
"id": "24331b83-ac73-4ed4-9a2e-6b547c8b7062",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000099029",
"id": "00000000-0000-0000-0000-00000003fa1a",
"license_id": null,
"name": "Place 342"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "0d1d5c0d-e3aa-454a-9bbf-dfd1721e0a57",
"name": "Product 1274",
"sku": "sku 1275",
"updated_datetime": "2026-05-26T16:46:52.215941Z"
},
"quantity": "2.000000000",
"received_quantity": "0.000000000"
}
],
"order_datetime": "2026-05-26T16:46:52.177078Z",
"purchase_number": "Purchase #31",
"status": "PENDING",
"total": "32.00",
"updated_datetime": "2026-05-26T16:46:52.178131Z"
},
{
"charges": [
{
"id": "95d6fa7f-75af-4a90-9be8-7a8304caad71",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company": {
"id": "00000000-0000-0000-0000-00000005879e",
"name": "Company 1010",
"updated_datetime": "2030-11-01T00:00:00.000000Z"
},
"custom_data": [
{
"id": 4402,
"name": "Custom Field 17",
"value": "Custom Field Value 1"
}
],
"due_datetime": "2020-01-01T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-00000000342f",
"inserted_datetime": "2020-01-01T00:00:03.000000Z",
"items": [
{
"batch": {
"batch_number": "UID1",
"id": "00000000-0000-0000-0000-0000000359b3",
"name": "B1"
},
"compliance_quantity": "1.0000",
"id": "ca91cc98-4ef4-4a1e-ad00-b3508fef8959",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000099029",
"id": "00000000-0000-0000-0000-00000003fa12",
"license_id": "00000000-0000-0000-0000-0000000245e3",
"name": "Place 334"
},
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000000133",
"id": "00000000-0000-0000-0000-000000011632",
"metrc_label": "ABCDEF012345670000000133",
"status": "active"
},
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "735e4349-6a6c-4ed3-a887-ba72949f5b01",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDgsImlhdCI6MTc3OTgxNDAwOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiODlhNWQ4NGYtOWFiMi00ZGVmLWEzMDctNzdiMzI3OWQzYTE2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4NzkwIiwidHlwIjoiYWNjZXNzIn0.rksrzfnLWbbzW_Hx00YX0HvfLc2yk2d9s6LqX2c0r5c
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: d8be2d7afb0588000000000000000001-6bbb7cdc39b04cc1-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000058636",
"name": "Company 474",
"updated_datetime": "2026-05-26T16:46:48.774177Z"
},
"custom_data": [],
"due_datetime": "2026-05-26T16:46:48.809948Z",
"id": "00000000-0000-0000-0000-000000003418",
"inserted_datetime": "2026-05-26T16:46:48.810971Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000358e3",
"name": "B549"
},
"compliance_quantity": null,
"id": "12e06231-1bda-4ad8-8544-04c11aaa2f5d",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000098db0",
"id": "00000000-0000-0000-0000-00000003f966",
"license_id": null,
"name": "Place 163"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "3ac58701-2c5a-43f7-aa73-d34ef05f992c",
"name": "Product 536",
"sku": "sku 537",
"updated_datetime": "2026-05-26T16:46:48.823517Z"
},
"quantity": "15.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000358e4",
"name": "B550"
},
"compliance_quantity": null,
"id": "05fadc39-0da5-4661-a2e4-0b109174bbe4",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000098db0",
"id": "00000000-0000-0000-0000-00000003f966",
"license_id": null,
"name": "Place 163"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "62919e8e-e24f-4e60-9645-4774b011a058",
"name": "Product 538",
"sku": "sku 539",
"updated_datetime": "2026-05-26T16:46:48.837172Z"
},
"quantity": "10.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000358e5",
"name": "B551"
},
"compliance_quantity": null,
"id": "a03dbe1e-8476-4073-b007-cfd31cc83327",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000098db0",
"id": "00000000-0000-0000-0000-00000003f966",
"license_id": null,
"name": "Place 163"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "e26dcd0e-2d99-4b1f-b366-5f183591a873",
"name": "Product 544",
"sku": "sku 545",
"updated_datetime": "2026-05-26T16:46:48.849363Z"
},
"quantity": "5.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000358e6",
"name": "B552"
},
"compliance_quantity": null,
"id": "b6254951-063f-4b68-92c5-40ff9e1e703d",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000098db0",
"id": "00000000-0000-0000-0000-00000003f966",
"license_id": null,
"name": "Place 163"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "1a9a4670-41b6-49e4-802b-b7759a382759",
"name": "Product 547",
"sku": "sku 548",
"updated_datetime": "2026-05-26T16:46:48.864047Z"
},
"quantity": "2.000000000",
"received_quantity": "0.000000000"
}
],
"order_datetime": "2020-01-01T12:30:00.000000Z",
"purchase_number": "Purchase #8",
"status": "PENDING",
"total": "32.00",
"updated_datetime": "2026-05-26T16:46:48.810971Z"
},
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000058623",
"name": "Company 441",
"updated_datetime": "2026-05-26T16:46:48.634735Z"
},
"custom_data": [],
"due_datetime": "2026-05-26T16:46:48.673882Z",
"id": "00000000-0000-0000-0000-000000003417",
"inserted_datetime": "2026-05-26T16:46:48.675701Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000358d8",
"name": "B508"
},
"compliance_quantity": null,
"id": "dc6018ff-481b-4613-a5aa-35fc88fef228",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000098db0",
"id": "00000000-0000-0000-0000-00000003f960",
"license_id": null,
"name": "Place 157"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "a1ef1632-c3f0-4da4-a43e-dcbab6de9595",
"name": "Product 492",
"sku": "sku 493",
"updated_datetime": "2026-05-26T16:46:48.690901Z"
},
"quantity": "15.000000000",
"received_quantity": "15.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000358d9",
"name": "B510"
},
"compliance_quantity": null,
"id": "eff8939f-9fdd-494e-93e0-ed7e18209823",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000098db0",
"id": "00000000-0000-0000-0000-00000003f960",
"license_id": null,
"name": "Place 157"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "40941fa6-6dca-47c6-8936-e2d15e2bfad6",
"name": "Product 497",
"sku": "sku 498",
"updated_datetime": "2026-05-26T16:46:48.707771Z"
},
"quantity": "10.000000000",
"received_quantity": "10.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000358da",
"name": "B512"
},
"compliance_quantity": null,
"id": "6f7dd08e-c982-4f8b-97ba-9668a5cb649f",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000098db0",
"id": "00000000-0000-0000-0000-00000003f960",
"license_id": null,
"name": "Place 157"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "d477516d-152f-4135-b6ee-bf80d29debf8",
"name": "Product 502",
"sku": "sku 503",
"updated_datetime": "2026-05-26T16:46:48.723317Z"
},
"quantity": "5.000000000",
"received_quantity": "5.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000358dc",
"name": "B514"
},
"compliance_quantity": null,
"id": "64bc3b5b-7afe-404f-9f96-e45ae0531efa",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000098db0",
"id": "00000000-0000-0000-0000-00000003f960",
"license_id": null,
"name": "Place 157"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "583d4d1f-65c2-4a6b-bdaa-eb899c8bebaf",
"name": "Product 506",
"sku": "sku 507",
"updated_datetime": "2026-05-26T16:46:48.737689Z"
},
"quantity": "2.000000000",
"received_quantity": "2.000000000"
}
],
"order_datetime": "2020-01-01T12:20:00.000000Z",
"purchase_number": "Purchase #7",
"status": "COMPLETED",
"total": "32.00",
"updated_datetime": "2026-05-26T16:46:48.675701Z"
},
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000585f9",
"name": "Company 373",
"updated_datetime": "2026-05-26T16:46:48.316586Z"
},
"custom_data": [],
"due_datetime": "2026-05-26T16:46:48.367282Z",
"id": "00000000-0000-0000-0000-000000003415",
"inserted_datetime": "2026-05-26T16:46:48.368491Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000358c2",
"name": "B428"
},
"compliance_quantity": null,
"id": "eb8a054d-b957-4454-afba-5312ad4b08a3",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000098db0",
"id": "00000000-0000-0000-0000-00000003f949",
"license_id": null,
"name": "Place 134"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "09065069-c148-4c5b-8483-bf67388a8f96",
"name": "Product 417",
"sku": "sku 418",
"updated_datetime": "2026-05-26T16:46:48.381187Z"
},
"quantity": "15.000000000",
"received_quantity": "15.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000358c3",
"name": "B429"
},
"compliance_quantity": null,
"id": "d2d4670d-1f22-492b-8aef-3da9464eb27b",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000098db0",
"id": "00000000-0000-0000-0000-00000003f949",
"license_id": null,
"name": "Place 134"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "63bd629a-0d6a-4b48-926d-02fe4198ecdc",
"name": "Product 422",
"sku": "sku 423",
"updated_datetime": "2026-05-26T16:46:48.401164Z"
},
"quantity": "10.000000000",
"received_quantity": "10.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000358c4",
"name": "B434"
},
"compliance_quantity": null,
"id": "e511379c-837e-4b29-937d-42134974b34a",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000098db0",
"id": "00000000-0000-0000-0000-00000003f949",
"license_id": null,
"name": "Place 134"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "c1a2da78-5af6-458d-ac3a-98a65a32bea0",
"name": "Product 424",
"sku": "sku 425",
"updated_datetime": "2026-05-26T16:46:48.415370Z"
},
"quantity": "5.000000000",
"received_quantity": "5.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000358c5",
"name": "B435"
},
"compliance_quantity": null,
"id": "caf6512c-a491-4b27-aa46-596f9923e8c4",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000098db0",
"id": "00000000-0000-0000-0000-00000003f949",
"license_id": null,
"name": "Place 134"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "17c97f9d-69f3-45ad-a0bf-14cf967600bc",
"name": "Product 426",
"sku": "sku 427",
"updated_datetime": "2026-05-26T16:46:48.437577Z"
},
"quantity": "2.000000000",
"received_quantity": "2.000000000"
}
],
"order_datetime": "2020-01-01T12:00:00.000000Z",
"purchase_number": "Purchase #5",
"status": "COMPLETED",
"total": "32.00",
"updated_datetime": "2026-05-26T16:46:48.368491Z"
}
],
"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.
Required permission: purchases_permissions_view. Results are filtered to
only include purchases the authenticated user can access under their team
restrictions.
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 | query | number | false | ?page[number]=1 | |
| 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-000000003424/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTAsImlhdCI6MTc3OTgxNDAxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGFjNTQ0MDgtOGUwZC00MjAwLWFhNzYtZjVjZjA5ZWNhZDhhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NDIyIiwidHlwIjoiYWNjZXNzIn0.NBY7AG2xP9thhQ-pHSxBXQZQGiziZCJzbK6zqragz7A
{
"amount": 100.01,
"description": "Payment for purchase",
"payment_datetime": "2020-01-01T00:00:00.000000Z",
"payment_method_id": "00000000-0000-0000-0000-000000001715",
"quickbooks_deposit_account_id": "QBD-123"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 73d5eebccffe80000000000000000001-be3fcbc7bf372e63-0
{
"data": {
"amount": "100.01",
"description": "Payment for purchase",
"id": "00000000-0000-0000-0000-0000000004dc",
"inserted_datetime": "2026-05-26T16:46:50.737977Z",
"payment_date": "2020-01-01T00:00:00.000000Z",
"payment_method": {
"deleted_at": null,
"id": "00000000-0000-0000-0000-000000001715",
"name": "Payment Method 0"
},
"payment_number": "PYT-0000001",
"purchase_id": "00000000-0000-0000-0000-000000003424",
"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-000000003424/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTAsImlhdCI6MTc3OTgxNDAxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGFjNTQ0MDgtOGUwZC00MjAwLWFhNzYtZjVjZjA5ZWNhZDhhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NDIyIiwidHlwIjoiYWNjZXNzIn0.NBY7AG2xP9thhQ-pHSxBXQZQGiziZCJzbK6zqragz7A
{
"amount": 100.01,
"description": "Payment for purchase",
"payment_datetime": "2020-01-01T00:00:00.000000Z",
"payment_method_id": "00000000-0000-0000-0000-000000001715",
"quickbooks_deposit_account_name": "QBD-NAME"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 73d5eebccffe80000000000000000001-fbdc136d98273da0-0
{
"data": {
"amount": "100.01",
"description": "Payment for purchase",
"id": "00000000-0000-0000-0000-0000000004dd",
"inserted_datetime": "2026-05-26T16:46:50.806201Z",
"payment_date": "2020-01-01T00:00:00.000000Z",
"payment_method": {
"deleted_at": null,
"id": "00000000-0000-0000-0000-000000001715",
"name": "Payment Method 0"
},
"payment_number": "PYT-0000002",
"purchase_id": "00000000-0000-0000-0000-000000003424",
"quickbooks_deposit_account_id": "QBD-123"
}
}
Required permission: purchases_permissions_make_payments. The authenticated user must also be allowed to view purchases under their team restrictions.
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTMsImlhdCI6MTc3OTgxNDAxMywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNmIwNGQyYjctZGRiNC00ZTZkLWIwZTgtMzkxY2Q2YzcyNTJmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDEyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5ODM1IiwidHlwIjoiYWNjZXNzIn0.f5MRngsSJomah4zGLPMpZsgysmOWH_VZnhq9RiYrR1A
{
"billing_location_id": "00000000-0000-0000-0000-00000003fa54",
"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-0000000587fd",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000003fa53",
"price": "10.000000000",
"product_id": "bfa3f898-b8cc-41e8-ab31-0bfabfad31ee",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-00000003fa53",
"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: 6873bfebd37794000000000000000001-3691a9149033967a-0
{
"data": {
"charges": [
{
"id": "bd0b0565-1379-4c70-b1f9-7bc0f94145ac",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "e4aa1c0c-6e41-4301-9ed4-aa12570e8c73",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000587fd",
"name": "Company 1129",
"updated_datetime": "2026-05-26T16:46:53.044260Z"
},
"custom_data": [
{
"id": 4403,
"name": "Custom Field 18",
"value": null
}
],
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-000000003438",
"inserted_datetime": "2026-05-26T16:46:53.119896Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000359ff",
"name": "B1"
},
"compliance_quantity": null,
"id": "4168da88-9039-4dd1-869d-1904d0d3d225",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000990ad",
"id": "00000000-0000-0000-0000-00000003fa53",
"license_id": "00000000-0000-0000-0000-0000000245f4",
"name": "Place 399"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "bfa3f898-b8cc-41e8-ab31-0bfabfad31ee",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-26T16:46:53.072899Z"
},
"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-05-26T16:46:53.136235Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTIsImlhdCI6MTc3OTgxNDAxMiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDBhYzJjOGItZDM3Mi00OWYxLTg1YTUtNTdlMmZjMzZlNGY4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDExLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NzA4IiwidHlwIjoiYWNjZXNzIn0.e2S41_oWSUYMLa6uAswpgAmZpfeFjo_cNC4Bxn0CFD4
{
"billing_location_id": "00000000-0000-0000-0000-00000003fa25",
"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-0000000587bc",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"batch_id": "00000000-0000-0000-0000-0000000359cd",
"location_id": "00000000-0000-0000-0000-00000003fa25",
"price": "10.000000000",
"product_id": "a016f5a3-03eb-42e1-b8e3-3a152a716576",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-00000003fa25",
"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: d45628454a4ae8000000000000000001-431486d0a98bc7da-0
{
"data": {
"charges": [
{
"id": "41d7cb65-c780-4a17-9be5-1bac29dfa802",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "09f7b4d1-60cd-455a-bf41-b5c385089fd9",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000587bc",
"name": "Company 1048",
"updated_datetime": "2026-05-26T16:46:52.304634Z"
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-000000003432",
"inserted_datetime": "2026-05-26T16:46:52.354822Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000359cd",
"name": "B1"
},
"compliance_quantity": null,
"id": "342bc539-872e-4407-b4f0-ef22031a2267",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000009905b",
"id": "00000000-0000-0000-0000-00000003fa25",
"license_id": "00000000-0000-0000-0000-0000000245ea",
"name": "Place 353"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "a016f5a3-03eb-42e1-b8e3-3a152a716576",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-26T16:46:52.332077Z"
},
"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-05-26T16:46:52.362302Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTIsImlhdCI6MTc3OTgxNDAxMiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDExYTM3MmItNmFjMC00YjI0LWJkNTEtY2UwNGRmZjQxODNkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDExLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5ODA2IiwidHlwIjoiYWNjZXNzIn0.EIQM9iy1tge4NZx4scBlfX-9KdVIs0tp8oJHOGGfYVY
{
"billing_location_id": "00000000-0000-0000-0000-00000003fa48",
"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-0000000587f3",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000003fa48",
"price": "10.000000000",
"product_id": "ce3ad8b0-5fb1-411f-a808-0c81cd2beebf",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-00000003fa48",
"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: b020312fa76c18000000000000000001-36e8345729d737c1-0
{
"data": {
"charges": [
{
"id": "8b0d9528-27c6-4137-8064-9a0ff9d78e4d",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "43934c64-b04a-414f-822b-655cd1bf5285",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000587f3",
"name": "Company 1115",
"updated_datetime": "2026-05-26T16:46:52.867250Z"
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-000000003437",
"inserted_datetime": "2026-05-26T16:46:52.961953Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000359f9",
"name": "B1"
},
"compliance_quantity": null,
"id": "5024a4d5-8c93-4964-b016-81d0c27a48bd",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000990a0",
"id": "00000000-0000-0000-0000-00000003fa48",
"license_id": "00000000-0000-0000-0000-0000000245f2",
"name": "Place 388"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "ce3ad8b0-5fb1-411f-a808-0c81cd2beebf",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-26T16:46:52.943859Z"
},
"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-05-26T16:46:52.969918Z"
}
}
POST /public/v1/purchases updates a purchase
POST /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTAsImlhdCI6MTc3OTgxNDAxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGRiOWY4M2QtODYwOS00OWM2LWEwZTEtNzM3YmI2MTk4ZjQ4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5MzA2IiwidHlwIjoiYWNjZXNzIn0.AZEweH9LDGEU4E77Wfh8OaQOD10xN5qwbdaA3Gi7kZI
{
"billing_location_id": "00000000-0000-0000-0000-00000003f9b2",
"charges": [
{
"name": "C1",
"percent": "10.0000",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company_id": "00000000-0000-0000-0000-0000000586f8",
"due_datetime": "2020-01-20T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000003f9b2",
"price": "10.000000000",
"product_id": "95182033-8c46-47b8-88c8-d94e648b06d9",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-00000003f9b2",
"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: 9794f0699d1738000000000000000001-7aedbc9bd33997fc-0
{
"data": {
"charges": [
{
"id": "acfc802b-0181-46e6-b2a6-75cb24556f27",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000586f8",
"name": "Company 766",
"updated_datetime": "2026-05-26T16:46:50.186687Z"
},
"custom_data": [],
"due_datetime": "2020-01-20T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-000000003423",
"inserted_datetime": "2026-05-26T16:46:50.313622Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035941",
"name": "B1"
},
"compliance_quantity": null,
"id": "4e12fa91-fba0-4e1f-b52f-2bd7964f269e",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000098f40",
"id": "00000000-0000-0000-0000-00000003f9b2",
"license_id": "00000000-0000-0000-0000-0000000245c0",
"name": "Place 239"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "95182033-8c46-47b8-88c8-d94e648b06d9",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-26T16:46:50.259530Z"
},
"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-05-26T16:46:50.330501Z"
}
}
POST /public/v1/purchases updates a purchase
POST /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTAsImlhdCI6MTc3OTgxNDAxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGRiOWY4M2QtODYwOS00OWM2LWEwZTEtNzM3YmI2MTk4ZjQ4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5MzA2IiwidHlwIjoiYWNjZXNzIn0.AZEweH9LDGEU4E77Wfh8OaQOD10xN5qwbdaA3Gi7kZI
{
"billing_location_id": "00000000-0000-0000-0000-00000003f9b2",
"charges": [
{
"id": "acfc802b-0181-46e6-b2a6-75cb24556f27",
"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-0000000586f8",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-000000003423",
"items": [
{
"id": "4e12fa91-fba0-4e1f-b52f-2bd7964f269e",
"location_id": "00000000-0000-0000-0000-00000003f9b2",
"price": "10.000000000",
"product_id": "95182033-8c46-47b8-88c8-d94e648b06d9",
"quantity": "1.000000000"
},
{
"batch_id": "00000000-0000-0000-0000-000000035944",
"location_id": "00000000-0000-0000-0000-00000003f9b2",
"price": "5.000000000",
"product_id": "9551bb13-5832-4313-8054-6232928a4e48",
"quantity": "2.000000000"
}
],
"location_id": "00000000-0000-0000-0000-00000003f9b2",
"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: 9794f0699d1738000000000000000001-edbccbf8987c3e63-0
{
"data": {
"charges": [
{
"id": "acfc802b-0181-46e6-b2a6-75cb24556f27",
"name": "C1",
"percent": "10.0000",
"price": "2.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "feeadd0a-89aa-4f4d-b5fc-7104f6f50e53",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000586f8",
"name": "Company 766",
"updated_datetime": "2026-05-26T16:46:50.186687Z"
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-000000003423",
"inserted_datetime": "2026-05-26T16:46:50.313622Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035941",
"name": "B1"
},
"compliance_quantity": null,
"id": "4e12fa91-fba0-4e1f-b52f-2bd7964f269e",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000098f40",
"id": "00000000-0000-0000-0000-00000003f9b2",
"license_id": "00000000-0000-0000-0000-0000000245c0",
"name": "Place 239"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "95182033-8c46-47b8-88c8-d94e648b06d9",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-26T16:46:50.259530Z"
},
"quantity": "1.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000035944",
"name": "B2"
},
"compliance_quantity": null,
"id": "21332d58-e59e-4af0-9cdd-69b2eedd3fda",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000098f40",
"id": "00000000-0000-0000-0000-00000003f9b2",
"license_id": "00000000-0000-0000-0000-0000000245c0",
"name": "Place 239"
},
"package": null,
"price": "5.000000000",
"price_base": "5.000000000",
"product": {
"id": "9551bb13-5832-4313-8054-6232928a4e48",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-05-26T16:46:50.286893Z"
},
"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-05-26T16:46:50.441159Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDcsImlhdCI6MTc3OTgxNDAwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjdjMTE5MTctMmZmNS00M2MyLWIxMDEtNGQ5MGJlYjUyNjcxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4NjA3IiwidHlwIjoiYWNjZXNzIn0.gTPEB8Sk_lmdNWIff8LbvuuTNmZYa0GzK_Yrbowmty8
{
"billing_location_id": "00000000-0000-0000-0000-00000003f919",
"company_id": "00000000-0000-0000-0000-0000000585b4",
"due_datetime": "2020-01-20T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000003f919",
"price": "10",
"product_id": "30ab8e30-0b14-4a62-b6a7-60679e3781ca",
"quantity": "1"
}
],
"location_id": "00000000-0000-0000-0000-00000003f919",
"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: 8140c1b0a52c90000000000000000001-744553d7b06943a2-0
{
"data": {
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000585b4",
"name": "Company 241",
"updated_datetime": "2026-05-26T16:46:47.523668Z"
},
"custom_data": [],
"due_datetime": "2020-01-20T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-000000003413",
"inserted_datetime": "2026-05-26T16:46:47.794747Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000358a2",
"name": "B304"
},
"compliance_quantity": null,
"id": "0d0f2e73-9801-4513-9998-374b58d1b6f9",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000098d2d",
"id": "00000000-0000-0000-0000-00000003f919",
"license_id": "00000000-0000-0000-0000-0000000245a7",
"name": "Place 86"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "30ab8e30-0b14-4a62-b6a7-60679e3781ca",
"name": "Product 300",
"sku": "sku 301",
"updated_datetime": "2026-05-26T16:46:47.563357Z"
},
"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-05-26T16:46:47.794747Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDcsImlhdCI6MTc3OTgxNDAwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjdjMTE5MTctMmZmNS00M2MyLWIxMDEtNGQ5MGJlYjUyNjcxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4NjA3IiwidHlwIjoiYWNjZXNzIn0.gTPEB8Sk_lmdNWIff8LbvuuTNmZYa0GzK_Yrbowmty8
{
"company_id": "00000000-0000-0000-0000-0000000585b4",
"id": "00000000-0000-0000-0000-000000003413",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000003f919",
"price": "2",
"product_id": "30ab8e30-0b14-4a62-b6a7-60679e3781ca",
"quantity": "1"
}
]
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 8140c1b0a52c90000000000000000001-8b5a7850b2b82f78-0
{
"data": {
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000585b4",
"name": "Company 241",
"updated_datetime": "2026-05-26T16:46:47.523668Z"
},
"custom_data": [],
"due_datetime": "2020-01-20T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-000000003413",
"inserted_datetime": "2026-05-26T16:46:47.794747Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000358a2",
"name": "B304"
},
"compliance_quantity": null,
"id": "a7de08f2-ce4a-4c77-82c6-d835b4497df6",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000098d2d",
"id": "00000000-0000-0000-0000-00000003f919",
"license_id": "00000000-0000-0000-0000-0000000245a7",
"name": "Place 86"
},
"package": null,
"price": "2.000000000",
"price_base": "2.000000000",
"product": {
"id": "30ab8e30-0b14-4a62-b6a7-60679e3781ca",
"name": "Product 300",
"sku": "sku 301",
"updated_datetime": "2026-05-26T16:46:47.563357Z"
},
"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-05-26T16:46:48.167087Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTQsImlhdCI6MTc3OTgxNDAxNCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGIyMDE4ZjUtYTAxMS00OWRlLTgxZTAtYWNiMmVlMTllMDJmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDEzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODYwMDY0IiwidHlwIjoiYWNjZXNzIn0.BDV1adj2FDRxT4B74b7E23zQZSPtUJTG9bYATmvg55E
{
"billing_location_id": "00000000-0000-0000-0000-00000003fa89",
"charges": [],
"company_id": "00000000-0000-0000-0000-0000000588af",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-000000003444",
"items": [
{
"batch_id": "00000000-0000-0000-0000-000000035a98",
"id": "73a7cbcd-a779-4bf1-84c5-38c64a676b7a",
"location_id": "00000000-0000-0000-0000-00000003fa89",
"price": "10.000000000",
"product_id": "483aafc0-c1a6-4527-9a6c-cbc734c4a432",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-00000003fa89",
"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: b973974f9395c8000000000000000001-9b691672504a533e-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTQsImlhdCI6MTc3OTgxNDAxNCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNWQyNmI2YzUtOTNlNC00NzA2LWEwMmQtZTcxZGIxZjRmZTgxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDEzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODYwMDg2IiwidHlwIjoiYWNjZXNzIn0.3VhJtnkYkVXfFcLJARTlIKfD940ABnkrPDHJSVrBDI4
{
"billing_location_id": "00000000-0000-0000-0000-00000003fa8d",
"charges": [],
"company_id": "00000000-0000-0000-0000-0000000588bf",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000003fa8d",
"price": "10.000000000",
"product_id": "516d54af-29a9-4fd3-a89b-5a25212e66b3",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-00000003fa8d",
"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: d7ceff5c0e7ac0000000000000000001-099673dbe0c46c55-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTIsImlhdCI6MTc3OTgxNDAxMiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZGE4YzQzYWEtZDNiZi00OWU4LWFkNWItNTk2NjljMWU1MTgxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDExLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NzM0IiwidHlwIjoiYWNjZXNzIn0.yy7x8w6OBDjYN1wdlrWfdgMuX6v01YUEbNux0oDfLp8
{
"billing_location_id": "00000000-0000-0000-0000-00000003fa2b",
"charges": [],
"company_id": "00000000-0000-0000-0000-0000000587cc",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000003fa2b",
"price": "10.000000000",
"product_id": "3cf15a0a-ec2f-403a-bff6-567b56a17206",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-00000003fa2b",
"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: 8d323f40635f38000000000000000001-8739a3af2013dd27-0
{
"errors": [
{
"context": {
"id": "8cbd2d1c-82ec-478d-93a8-7cd9d47aefcb"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDksImlhdCI6MTc3OTgxNDAwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGJiZWQzNDctYTA5OS00ZThmLWE2OTktYWY4MDY2NTExMDkxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5MjE4IiwidHlwIjoiYWNjZXNzIn0.lWalr6OmYKA4UCD79-67UE244j8NHXOg_iKznAuJuKA
{
"billing_location_id": "00000000-0000-0000-0000-00000003f99e",
"charges": [],
"company_id": "00000000-0000-0000-0000-0000000586cc",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"batch_id": "00000000-0000-0000-0000-00000003591f",
"location_id": "00000000-0000-0000-0000-00000003f99e",
"price": "10.000000000",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-00000003f99e",
"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: 1edeecd65fcc8f000000000000000001-c97931f22a1dc611-0
{
"errors": [
{
"context": {
"id": "4d4ddf13-f6f3-4b7c-92db-44736a38b67e"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTAsImlhdCI6MTc3OTgxNDAxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYzE5MWJhMGItNTM4Yi00NzhjLTgxZDItNWY4YzFmZDEzNjgzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5MjgwIiwidHlwIjoiYWNjZXNzIn0.mH4Qp7OKluXAwqfyoEqatAV3Eum-_PH5Z10oFphqJM4
{
"billing_location_id": "00000000-0000-0000-0000-00000003f9ab",
"charges": [],
"company_id": "00000000-0000-0000-0000-0000000586ef",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000003f9ae",
"price": "10.000000000",
"product_id": "7fd9e0f2-64bf-47ef-b16c-20c3f5191d51",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-00000003f9ae",
"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: dcdd8064f5b360000000000000000001-3817571cecc1c375-0
{
"errors": [
{
"context": {
"id": "9d2122c7-6747-4da0-81c5-da968ad25c8e"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTAsImlhdCI6MTc3OTgxNDAxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYzJhMGEwMGEtYzE3YS00NzAwLWEwYzMtMDA4M2ZmZmNjZmRkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5Mzk3IiwidHlwIjoiYWNjZXNzIn0.TkqnKLYw6y_3btxLFWg2M1VpJyr3LWRSy874RfPQcbQ
{
"billing_location_id": "00000000-0000-0000-0000-00000003f9be",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000058712",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000003f9be",
"price": "10.000000000",
"product_id": "f78923ce-792c-45db-a0e6-ea1308f2e469",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-00000003f9c2",
"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: d2b13a078c3580000000000000000001-b9444df87df05231-0
{
"errors": [
{
"context": {
"id": "33b4c8ae-a617-47a0-b3a4-4d706b5358de"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTQsImlhdCI6MTc3OTgxNDAxNCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTRhYTQ2MzMtYWE2Mi00MWZhLWJkZDgtMjQwMmUxMTFiOTYzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDEzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODYwMTQ1IiwidHlwIjoiYWNjZXNzIn0.EW7WK1LDa6Ge-aib5KUSq4lVzkI0D2-Tl7I6pccd1a4
{
"billing_location_id": "00000000-0000-0000-0000-00000003fa9d",
"charges": [],
"company_id": "00000000-0000-0000-0000-0000000588da",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000003fa9b",
"price": "10.000000000",
"product_id": "55cd0cb4-4030-4d81-991d-52b20507f869",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-00000003fa9b",
"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: b0c7950eecbca0000000000000000001-e1b9b6fc77cb5c0d-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. Required permission: purchases_permissions_create to create a new purchase order, purchases_permissions_edit (and access to the purchase under team restrictions) to update an existing purchase order.
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 | true | ||
| billing_location_id | The billing address for this purchase order | query | string | true | ||
| company_id | The company that is the supplier for this purchase order | query | string | true | ||
| order_datetime | The datetime on which the purchase order was placed | query | string | true | ||
| due_datetime | The datetime by which the purchase order should be paid | query | string | true | ||
| 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 | true |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single purchase orders | Purchase |
Returns
Get returns
GET /public/v1/returns returns returns related to the company
GET /public/v1/returns
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDcsImlhdCI6MTc3OTgxNDAwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjE3MmYxMTItNDEzMy00NzQwLWEwZTgtM2YyNDA5YzkwNGE1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4NjMzIiwidHlwIjoiYWNjZXNzIn0.y_ccWY_JxUO3YkkQn0_d-SEKDNJjfjhJf9g3Ecu4h7A
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: c3aa548dc9b418000000000000000001-65e00a026a1d77ca-0
{
"data": [
{
"company": {
"id": "00000000-0000-0000-0000-0000000585c0",
"name": "Company 262",
"updated_datetime": "2026-05-26T16:46:47.638521Z"
},
"custom_data": {
"4366": "Custom Field Value"
},
"description": null,
"id": "00000000-0000-0000-0000-000000001502",
"inserted_at": "2026-05-26T16:46:47.644274Z",
"invoice_numbers": [],
"items": [
{
"id": "00000000-0000-0000-0000-00000000139a",
"price": 30.1,
"product": {
"id": "371ce867-fdb9-426d-a733-57cb5d46f5f9",
"name": "Product 311",
"sku": "sku 312",
"updated_datetime": "2026-05-26T16:46:47.629686Z"
},
"quantity": 5.0,
"waste": false
}
],
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000098d3e",
"id": "00000000-0000-0000-0000-00000003f922",
"license_id": null,
"name": "Place 95"
},
"order_id": null,
"order_number": null,
"order_quantity": null,
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-323@example.com",
"full_name": "FirstName666 LastName667",
"id": "00000000-0000-0000-0000-0000000d1a0a",
"role": {
"id": "00000000-0000-0000-0000-0000000d09b5",
"name": "Admin 323"
}
},
"return_datetime": "2024-12-12T20:26:19.297537Z",
"return_number": "RN-13",
"return_quantity": null,
"return_type": null,
"status": "Processing",
"total": 150.5,
"updated_at": "2026-05-26T16:46:47.644274Z"
}
],
"next_page": null
}
Get returns sorted by their creation date and filtered by various attributes
Note: The page size for this endpoint is 1000 returns per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Required permission: returns_permissions_view.
Request
GET /public/v1/returns
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| inserted_datetime | Filter returns by their creation datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| page | Pagination information | query | number | false | ?page[number]=1 | |
| return_datetime | Filter returns by their return datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| updated_datetime | Filter returns by the datetime they were most recently modified | query | string | false | ,2022-07-10T00:00:00Z |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A list of returns | Returns |
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDgsImlhdCI6MTc3OTgxNDAwOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMmMwYzJhZjUtODRhZS00ODIxLTk5YzgtM2IxZDE3NWU1NDM5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4OTI4IiwidHlwIjoiYWNjZXNzIn0.3udi7UBC4ZGHOz-ZKnpvH6C73okV5n3qRa6uSYkp2mU
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 727b8960130378000000000000000001-367320db7fe37b1a-0
{
"data": [
{
"batch_id": null,
"completion_datetime": "2026-05-26T16:46:48.806457Z",
"compliance_quantity": null,
"compliance_unit_type": null,
"description": null,
"id": "00000000-0000-0000-0000-000000003cee",
"inserted_at": "2026-05-26T16:46:48.807428Z",
"license_id": null,
"location_id": null,
"owner_id": "00000000-0000-0000-0000-0000000d1b30",
"package_id": null,
"product_id": "0e5a72c0-2082-45fd-9866-500088f0b777",
"quantity": "10",
"reason": "revaluation",
"total_cost": "10000",
"unit_type": {
"id": "00000000-0000-0000-0000-00000083e737",
"name": "Gram"
}
},
{
"batch_id": null,
"completion_datetime": "2026-05-26T16:46:48.974488Z",
"compliance_quantity": "1",
"compliance_unit_type": {
"id": "00000000-0000-0000-0000-00000083e739",
"name": "Ounce"
},
"description": "A default note describing this transaction",
"id": "00000000-0000-0000-0000-000000003cef",
"inserted_at": "2026-05-26T16:46:49.072888Z",
"license_id": "00000000-0000-0000-0000-0000000245ae",
"location_id": "00000000-0000-0000-0000-00000003f969",
"owner_id": null,
"package_id": "00000000-0000-0000-0000-000000011601",
"product_id": "90138273-d8eb-4a77-af01-d3edb8411de0",
"quantity": "1",
"reason": "Voluntary Surrender",
"total_cost": "900",
"unit_type": {
"id": "00000000-0000-0000-0000-00000083e739",
"name": "Ounce"
}
},
{
"batch_id": "00000000-0000-0000-0000-000000035915",
"completion_datetime": "2026-05-26T16:46:49.702295Z",
"compliance_quantity": null,
"compliance_unit_type": null,
"description": null,
"id": "00000000-0000-0000-0000-000000003cf1",
"inserted_at": "2026-05-26T16:46:49.703786Z",
"license_id": null,
"location_id": "00000000-0000-0000-0000-00000003f965",
"owner_id": null,
"package_id": null,
"product_id": "33f208d5-589c-476f-8903-7c700ba9bd65",
"quantity": "1",
"reason": "revaluation",
"total_cost": "-800",
"unit_type": {
"id": "00000000-0000-0000-0000-00000083e737",
"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.
Required permission: products_permissions_view.
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, | |
| completion_datetime | Filter stock adjustments by their completion datetime (adjustment date) | query | string | false | 2022-07-10T00:00:00Z, | |
| page | Pagination information | query | number | false | ?page[number]=1 |
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTAsImlhdCI6MTc3OTgxNDAxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDQ3OWI5NWEtMWQzYi00ZjEyLThlMTAtOTQzY2ZlNjZmM2VmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5MjkwIiwidHlwIjoiYWNjZXNzIn0.7aZaiR59pmWP2sIXNHO3Mx0lc4D66DX4JEuI4VZARfE
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "00000000-0000-0000-0000-00000003f9b1",
"product_id": "6c9c69c1-61f6-4c80-96cd-003ff70f1eb9",
"quantity": 10,
"reason": "expired"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: f0d387f4b77b50000000000000000001-1d5871cd14fb0b65-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-000000003d04",
"inserted_at": "2026-05-26T16:46:50.191910Z",
"license_id": null,
"location_id": "00000000-0000-0000-0000-00000003f9b1",
"owner_id": null,
"package_id": null,
"product_id": "6c9c69c1-61f6-4c80-96cd-003ff70f1eb9",
"quantity": "10",
"reason": "expired",
"total_cost": null,
"unit_type": {
"id": "00000000-0000-0000-0000-00000083f5f3",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTAsImlhdCI6MTc3OTgxNDAxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiODc5ODIwMjktOTVmYy00NjJmLTljNWEtZTFmYzNiNTdlOWJmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5MjcwIiwidHlwIjoiYWNjZXNzIn0.fX5LkLj3-ntwmLn2mHhYEc1ZVQ08nf-LrAHpdX33Ang
{
"batch_id": "00000000-0000-0000-0000-000000035932",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "00000000-0000-0000-0000-00000003f9ad",
"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: 4b336897c7c368000000000000000001-f798990a4c25b5db-0
{
"data": {
"batch_id": "00000000-0000-0000-0000-000000035932",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": null,
"compliance_unit_type": null,
"description": "test",
"id": "00000000-0000-0000-0000-000000003cff",
"inserted_at": "2026-05-26T16:46:50.043769Z",
"license_id": null,
"location_id": "00000000-0000-0000-0000-00000003f9ad",
"owner_id": null,
"package_id": null,
"product_id": "62863f0e-953d-455d-b425-c64f0520b543",
"quantity": "10",
"reason": "expired",
"total_cost": "10000",
"unit_type": {
"id": "00000000-0000-0000-0000-00000083f502",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTAsImlhdCI6MTc3OTgxNDAxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMGZiNDM1ZWEtZTc4OS00OThhLWFmZWQtNjgxOTgwNTg4MWFkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NDI1IiwidHlwIjoiYWNjZXNzIn0.RQN84JFpE-tf-N8KXzP1zvub114sBxYCZ9vbXr6fkis
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": 10,
"description": "test",
"package_id": "00000000-0000-0000-0000-000000011619",
"reason": "Damage (BCC)",
"unit_cost": 1000
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 9c6b6e270be110000000000000000001-8f099a30b755910d-0
{
"data": {
"batch_id": null,
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": "10",
"compliance_unit_type": {
"id": "00000000-0000-0000-0000-00000083f9c1",
"name": "Ounce"
},
"description": "test",
"id": "00000000-0000-0000-0000-000000003d18",
"inserted_at": "2026-05-26T16:46:50.816251Z",
"license_id": "00000000-0000-0000-0000-0000000245ce",
"location_id": "00000000-0000-0000-0000-00000003f9c8",
"owner_id": null,
"package_id": "00000000-0000-0000-0000-000000011619",
"product_id": "b69944fc-ae61-4294-912a-7c74f3c99836",
"quantity": "0.35274",
"reason": "Damage (BCC)",
"total_cost": "10000.000000005834",
"unit_type": {
"id": "00000000-0000-0000-0000-00000083f9bf",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDYsImlhdCI6MTc3OTgxNDAwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYzIyOWYxNDQtYTBjNi00ZjExLWE0ZTgtYzVjNjE3NTVlMDM0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4NDI1IiwidHlwIjoiYWNjZXNzIn0.6EHRQvC__kg5CfB789RjJVSJZ7Xte6iaXgpr0MOIDIw
{
"description": "test",
"package_id": "00000000-0000-0000-0000-0000000115f5",
"quantity": 10,
"reason": "Damage (BCC)"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 7707866272bd24000000000000000001-0930511f9eec9c0d-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTAsImlhdCI6MTc3OTgxNDAxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiY2U3ZTMzOWYtMTk2YS00YzY0LWJjNzQtZGI0M2ZmOGQzNTNiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NDgxIiwidHlwIjoiYWNjZXNzIn0.8-0sLjrXabVarzPDtP5fWjrjlGQkvqm1GRCuuMBgoK0
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "00000000-0000-0000-0000-00000003f9dd",
"product_id": "1846b908-6be2-4524-8d7b-243a7a6cc5c9",
"quantity": 10,
"reason": "expired"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: e988209cc92b20000000000000000001-b7ed2bb9976227c5-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTEsImlhdCI6MTc3OTgxNDAxMSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiN2JkZjNkMjQtNjM5My00Y2YyLWFiOGQtNTVjMjgwN2RjNDY3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDEwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NTc1IiwidHlwIjoiYWNjZXNzIn0.Z1p0J2sZ-sXEVXKIhbTobUNvq4_petZNsZ1N7QOpGow
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": 10,
"description": "test",
"location_id": "00000000-0000-0000-0000-00000003f9fa",
"product_id": "6374caca-d280-4a29-9f8a-c24e6b99cc4d",
"reason": "expired"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 9aaa63c2e6ffd0000000000000000001-c10a26ef67fdd8fb-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTAsImlhdCI6MTc3OTgxNDAxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNGRiYmRlZmEtNDRlYi00MjEwLWIzY2MtMmU4ZjNkMjM2OWYyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NDc0IiwidHlwIjoiYWNjZXNzIn0.7Xi1_z3AkiBxiMYRiulKD1_Uvp7jyr357_rwJ4RqgFQ
{
"batch_id": "f6ea7b31-f2a0-40ae-b380-61c34ec226c2",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "312d8848-6cf4-418e-924c-33fe8eb67cda",
"package_id": "501c3289-e75e-4db4-a9b9-224989de3b1f",
"product_id": "195b5b11-d16b-4aa6-9516-70cc43904916",
"reason": "expired"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 6cf440b593d904000000000000000001-0032bc7536a30910-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTAsImlhdCI6MTc3OTgxNDAxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDQ0MDA3NDctODU2NC00OTNmLWI4NzItMjM0NjcyNWViOTE1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5MzkwIiwidHlwIjoiYWNjZXNzIn0.41YAz9He9wMgJUBEjnC-Q-YUSTi6pyGMk2L3aP0Ohrw
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "94ed0f05-92b3-4d23-8cac-0ffcd0a29622",
"reason": "expired"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 9737c34ac18408000000000000000001-5e1ee420ffb718fe-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTAsImlhdCI6MTc3OTgxNDAxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMThlNDFiZWEtYTZmOC00YzI5LTk1NzktMzc3YjY1NTExMmUzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NDYyIiwidHlwIjoiYWNjZXNzIn0.hkwnu2Sp5-SDELu3rFz71kLOcssJ5pqdX7n5ISFCyeA
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "0d6c7993-d5d1-4a19-acac-4ccf1b2a948c",
"product_id": "f56024e7-07ac-4cf1-9405-249440f90f2b",
"quantity": 10,
"reason": "waste"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: d52b9496f1ad48000000000000000001-473e892016c5995e-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDksImlhdCI6MTc3OTgxNDAwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYzg1ZDgwN2MtZDkyZS00Y2UzLTgxZWEtM2FiNzUyYWU4OGFlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5MjYzIiwidHlwIjoiYWNjZXNzIn0.nTudfGD6u_01-fbVCtCaB1EXSKxMtv4fXxdhrqRmI2g
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": 10,
"description": "test",
"location_id": "d53a80fd-1162-4c4f-913e-a868a619549d",
"package_id": "4db6e4bd-de0b-4df8-b4a4-aee3cde74cc7",
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 69e683e0403704000000000000000001-9ee4e97b6af71dd3-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDgsImlhdCI6MTc3OTgxNDAwOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDczOTE1MjYtMGQ2ZS00MjhlLThiNmMtNTQ3ZmNkNWQ5Y2E2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4NzY5IiwidHlwIjoiYWNjZXNzIn0.N4JKbdvY7zi99OUjF8goF8wQax5FxkYbKRDtUOXn1jY
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"product_id": "bfe7c122-994e-4a00-b794-c12f4acda2df",
"quantity": 10,
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: f42c10bd3385c8000000000000000001-5d8f698a9cc96a98-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTEsImlhdCI6MTc3OTgxNDAxMSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiY2E3NDcwMWMtNzJjMi00MGJmLTljNGQtNmNlNGMzMDhiZjZlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDEwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NTQ2IiwidHlwIjoiYWNjZXNzIn0.h-CxpTB7TY9hIXA4zt8no0paMCDO5iNfZZrZWXUhHO0
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "5d325ea7-1374-46d2-bfe9-ccb0f037b1af",
"product_id": "5601a2e5-dbc4-452a-af07-934795b0365f",
"quantity": 10,
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 1b157fe7fa728f000000000000000001-7242b60a06973f31-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTEsImlhdCI6MTc3OTgxNDAxMSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiM2ZjN2MxZjEtNTIzNS00NGUwLTg4ZWQtMzkyYjAyOTg3NDkwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDEwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NTY0IiwidHlwIjoiYWNjZXNzIn0.5H04VJnDeQ294H67Ux3a7aMnuRfSrr8dXWKYdoirOiI
{
"batch_id": "00000000-0000-0000-0000-000000035988",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "054162c6-e910-4439-97c5-d59709777f81",
"quantity": 10,
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 0210687b9bb744600000000000000001-fa76eff49aaf2127-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MTAsImlhdCI6MTc3OTgxNDAxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNjdkYmIwOTctOTQyYy00Yzk4LTk4ZmItNzFkYjIzN2M5ODI5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5NDAxIiwidHlwIjoiYWNjZXNzIn0.b1uu6Cs0j6ECTatDs0GeB4wsjWVkDPBp3UVPNIqG7Ss
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": 10,
"description": "test",
"package_id": "00000000-0000-0000-0000-000000011616",
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: e85c015a4e7308000000000000000001-e3a8f097ae0f7347-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDksImlhdCI6MTc3OTgxNDAwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGI3ZDRlNTgtNTdlOS00MmQ0LWI2MjMtMjk3M2U1MzUyM2I2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5MjI5IiwidHlwIjoiYWNjZXNzIn0.20U4dFT3Sg9SEQ29oq2fM_X-DGq_3AizazFScMOSC88
{
"batch_id": "00000000-0000-0000-0000-000000035923",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "00000000-0000-0000-0000-00000003f9a4",
"quantity": 10,
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 905c48154f7ae0000000000000000001-1e6b71361169e0d7-0
{
"errors": [
{
"context": {},
"message": "Location not found",
"pointer": [
"location_id"
],
"section": "body"
}
]
}
Required permission: products_permissions_adjust_inventory.
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDcsImlhdCI6MTc3OTgxNDAwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTZhZDc1MmItNjJjNy00YmY3LWI1ZmEtMTUzMTc1OTMxNTI5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4NDkwIiwidHlwIjoiYWNjZXNzIn0.uX_T_MFtMdxpspzLf4ikmJS9Am-MhrESYnIw0EPET7Y
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: aa0ea99e42a4f0000000000000000001-e81e77a1358d9dad-0
{
"data": [
{
"id": "00000000-0000-0000-0000-000000002285",
"name": "Strain 13",
"strain_type": "INDICA"
},
{
"id": "00000000-0000-0000-0000-000000002286",
"name": "Strain 14",
"strain_type": null
}
],
"next_page": null
}
Get strains filtered by various attributes
Note: The page size for this endpoint is 50k strains per page.
Required permission: settings_permissions_strains.
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 | query | number | false | ?page[number]=1 | |
| 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDgsImlhdCI6MTc3OTgxNDAwOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYTk3NTdhZDEtZTQ3My00OTA4LWJjNTEtOWU0MTlmNDEyZjYyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4NzQ2IiwidHlwIjoiYWNjZXNzIn0.86pFk4GCcWJEVr1V_llhthEpWtbKcKN3cSTGzpfvlQM
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 6639927b46af2c000000000000000001-fc71dd96226ccec8-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-000000001e54",
"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-0000000115f6",
"release_date": "2026-05-26",
"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-05-26T16:46:48.291394Z"
},
{
"additional_test_results": {
"thca_percentage": "12"
},
"batch_id": "00000000-0000-0000-0000-0000000358bd",
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-000000001e55",
"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-05-26T16:46:48.311291Z"
},
{
"additional_test_results": {},
"batch_id": null,
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-000000001e56",
"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-0000000115f9",
"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-05-26T16:46:48.411626Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDcsImlhdCI6MTc3OTgxNDAwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNGZjNTJhMzYtYjQ1OS00ZGJkLThmZWEtODM4MGRhYmVkNTZjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4NDg3IiwidHlwIjoiYWNjZXNzIn0.LmIIgLmSxm1_fXsuQto9gJv2SYLOjE_qEM_Yx6U3y_w
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: e68bab3a0950e8000000000000000001-edec8f5b8eae9bae-0
{
"data": [
{
"additional_test_results": {
"spiroxamine_a_ug_per_g": "13",
"thiacloprid_ug_per_g": "14"
},
"batch_id": "00000000-0000-0000-0000-00000003587e",
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-000000001e52",
"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-05-26T16:46:47.123675Z"
}
],
"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.
Required permission: products_permissions_view.
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 | query | number | false | ?page[number]=1 |
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDcsImlhdCI6MTc3OTgxNDAwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDgzMGYxMGYtNzljOS00MGNjLWFkZWYtYTZkOGI1ODA4MjI1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4NTcyIiwidHlwIjoiYWNjZXNzIn0.DBC4mOWe7PgO-6GLLdROcqPRBEFxmYKcVsfU-BnX1Vo
{
"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-00000003589b",
"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: 9f5aab7cff2da0000000000000000001-54a124b2c6d24fe0-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-00000003589b",
"cbd_mg_per_unit": "1.1",
"cbd_percentage": "2.2",
"id": "00000000-0000-0000-0000-000000001e53",
"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-05-26T16:46:47.433268Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDgsImlhdCI6MTc3OTgxNDAwOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZWY5MDA1NjYtYTFhZS00MTRiLTkzYjItZmZkNWJlNGZiY2RiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4OTA0IiwidHlwIjoiYWNjZXNzIn0.ush9xhr4E0aSTozg928wVKEcpemJMjzDiuMUV9p5fPI
{
"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-0000000115ff"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 49eb102a508864000000000000000001-797331b37fefec4f-0
{
"data": {
"additional_test_results": {},
"batch_id": null,
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-000000001e59",
"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-0000000115ff",
"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-05-26T16:46:48.830993Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDYsImlhdCI6MTc3OTgxNDAwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTEwZmJkYmItOWQ4Yi00YjczLWI0ZjYtOGJlODI4NmI2MTAyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4MzIzIiwidHlwIjoiYWNjZXNzIn0.HL-vf78M1PL2u0l3al3Kdd8vLX-K_Ow1Y1mADJ7YiCE
{
"batch_id": "00000000-0000-0000-0000-00000003584d",
"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: e233b462a5d408000000000000000001-e1a96f6ce0430713-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDksImlhdCI6MTc3OTgxNDAwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYTk5NzllNmMtODg5Ni00YTY4LWI1ZmMtZDc3NzdmNmQ3MjU5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5MDk0IiwidHlwIjoiYWNjZXNzIn0.Jl8HBCKRXeUjFsV4Pw7Kf0oX9XrbidOdGFIZqNAjlKg
{
"additional_test_results": {},
"batch_id": "00000000-0000-0000-0000-000000035902",
"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: becd7da787c318000000000000000001-2ff1c473b2911523-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDksImlhdCI6MTc3OTgxNDAwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGJmMjkzYTEtOTE2Ny00OWE4LTkxYWMtYzY4ZGQyMGI1YTgzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5MTYxIiwidHlwIjoiYWNjZXNzIn0.UKRylLq4WPQzhRGyJcS1WNIBfAKC115cOAv7SsDEBNw
{
"additional_test_results": {
"thca_percentage": "15"
},
"id": "00000000-0000-0000-0000-000000001e5c",
"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: 8a1791efce1670000000000000000001-d10e947410d127f8-0
{
"data": {
"additional_test_results": {
"thca_percentage": "15"
},
"batch_id": "00000000-0000-0000-0000-000000035913",
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-000000001e5c",
"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-05-26T16:46:49.677100Z"
}
}
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. Required permission: products_permissions_edit.
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTEyNjM2MDcsImlhdCI6MTc3OTgxNDAwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZWFmNjk1YjYtNmMxNy00ZWE4LThmMzUtOWJlMWFlNDY3ZDA2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc5ODE0MDA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4NTMwIiwidHlwIjoiYWNjZXNzIn0.qK-WJdyg0Kb0hPeEI6W6j9CTAjJw2qy7W2HnZX3PSDE
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 7305e503f96284000000000000000001-c6280e64beb0ee50-0
{
"data": [
{
"banned": false,
"deleted_at": null,
"email": "owner-219@example.com",
"full_name": "FirstName444 LastName445",
"id": "00000000-0000-0000-0000-0000000d19a2",
"role": {
"id": "00000000-0000-0000-0000-0000000d094a",
"name": "Admin 216"
}
},
{
"banned": false,
"deleted_at": null,
"email": "owner-220@example.com",
"full_name": "FirstName446 LastName447",
"id": "00000000-0000-0000-0000-0000000d19a3",
"role": {
"id": "00000000-0000-0000-0000-0000000d094b",
"name": "Admin 217"
}
}
],
"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.
Required permission: settings_permissions_manage_team.
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 | query | number | false | ?page[number]=1 | |
| 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/v1/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.
2026-02-10
- Added the
payment_terms_namefield to GETpublic/v1/orders
2026-02-12
- Added the
completion_datetimeas a query parameter to GETpublic/v1/adjustments - Added the
inserted_atfield topublic/v1/adjustments
2026-02-13
- Added
batch_ids[]query parameter to GET/public/v1/batchesendpoint to filter batches by batch IDs.
2026-03-10
- Added
POST /public/v1/products/{id}/imagesendpoint - Added
POST /public/v1/companiesendpoint
2026-03-27
- Removed
POST /public/v1/products/{id}/imagesendpoint
2026-05-01
- Added
custom_datafield to POST/public/v1/productsendpoint
2026-05-06
- Added
menu_idandmenu_namefilter parameters to GET/public/v1/productsendpoint
2026-05-11
- Added
lab_testing_statefield to GET/public/v1/packagesendpoint - Added support for non-admin users to use the API.
- Added permission checks to most controllers.
2026-05-17
- Added
company_idfilter parameter to GET/public/v1/ordersendpoint - Added GET
/public/v1/menusendpoint
2026-05-25
- Added GET
/public/v1/returnsendpoint