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 |
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 |
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 |
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 |
AssemblyInput
An input for an assembly as shown in Distru
| Property | Description | Type | Required |
|---|---|---|---|
| batch | A batch for a product as shown in Distru | Batch | false |
| compliance_quantity | The quantity of this input expressed in the package's unit type. Null if this input is not package-tracked. | number | false |
| cost_per_unit_actual | The cost per unit of this input | number | false |
| cost_per_unit_default | The default cost per unit (from the configured product unit cost) of this input | number | false |
| location | A location as shown in Distru | Location | false |
| package | A package as shown in Distru | Package | false |
| product | A product as shown in Distru | Product | false |
| quantity | The quantity of this input in its product's unit | number | false |
| total_cost_actual | The total actual cost of this input | number | false |
| total_cost_default | The total default cost (from the configured product unit cost) of this input | number | false |
Inventories
A list of active and available quantity for each group
| Property | Description | Type | Required |
|---|
Brand
A brand as shown in Distru
{
"name": "Brand 123"
}
| Property | Description | Type | Required |
|---|---|---|---|
| name | Name of the brand | string | false |
Users
A collection of Users
| Property | Description | Type | Required |
|---|
Assembly
Get assemblies
GET /public/v1/assemblies returns proper data for non-compliance assembly
GET /public/v1/assemblies?creation_source=MANUALLY_CREATED&page[number]=1
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTcsImlhdCI6MTc3ODgzMzA1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGZmN2M1MGYtMzc3ZC00NzQ2LWFmYTgtMTVjNjVjYTVkMDRjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQyIiwidHlwIjoiYWNjZXNzIn0.MfW7Bytjf0BW1qL_vJG3Wx-8SZPB6an8xrEm3hbJVUM
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 1eda7e92671a8c000000000000000001-28bbe71bda727526-0
{
"data": [
{
"assembly_number": "AS-0000001",
"completion_datetime": "2026-05-15T08:17:37.293021Z",
"compliance_type": "NONE",
"creation_source": "MANUALLY_CREATED",
"custom_data": [
{
"id": 36,
"name": "Custom Field 12",
"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": "9e47dbd9-57bb-4538-9cf0-cd0f1e7cbc54",
"is_metrc_processing_job": false,
"license": null,
"outputs": [
{
"additional_costs": [
{
"cost_per_unit": "-1",
"description": null,
"name": "CostType 3",
"quantity": "1",
"total_cost_actual": "-1",
"total_cost_default": "0",
"unit_type": {
"id": "00000000-0000-0000-0000-000000002759",
"name": "Unit Type 4"
}
}
],
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000010c",
"name": "B929"
},
"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-00000000010c",
"name": "B929"
},
"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-000000000309",
"id": "00000000-0000-0000-0000-0000000000c3",
"license_id": null,
"name": "Place 194"
},
"package": null,
"product": {
"id": "c9a5dfea-a053-4aab-96fb-6461279b4253",
"name": "Product 927",
"sku": "sku 928",
"updated_datetime": "2026-05-15T08:17:37.251818Z"
},
"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-000000000309",
"id": "00000000-0000-0000-0000-0000000000c3",
"license_id": null,
"name": "Place 194"
},
"package": null,
"package_datetime": null,
"package_unit_type": null,
"product": {
"id": "c9a5dfea-a053-4aab-96fb-6461279b4253",
"name": "Product 927",
"sku": "sku 928",
"updated_datetime": "2026-05-15T08:17:37.251818Z"
},
"quantity": "2",
"total_cost_actual": "-0.6",
"total_cost_default": "1"
}
],
"owner_id": "00000000-0000-0000-0000-0000000003ae",
"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-00000057&page[number]=1
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTYsImlhdCI6MTc3ODgzMzA1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiN2JmY2QxMTUtMTY3Yi00NzEzLTk1MzEtNWMyNWI5MmUxZDFiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODc4IiwidHlwIjoiYWNjZXNzIn0.DUruCGqri7OTNrPjI571SFwVTc8RdWiEoItrbNaaBUA
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 9aaeceb3a92118000000000000000001-98b7ec1f773c1456-0
{
"data": [
{
"assembly_number": "AS-0000001",
"completion_datetime": null,
"compliance_type": "METRC",
"creation_source": "MANUALLY_CREATED",
"custom_data": [
{
"id": 35,
"name": "Custom Field 11",
"value": null
}
],
"description": null,
"estimated_start_date": null,
"estimated_work_hours": null,
"estimated_work_minutes": null,
"fulfilled": true,
"id": "f8022f4c-d4a1-411e-ad0e-25d298893d84",
"is_metrc_processing_job": false,
"license": {
"id": "00000000-0000-0000-0000-00000000003a",
"license_number": "CDPH-00000057"
},
"outputs": [
{
"additional_costs": [],
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000000f8",
"name": "B872"
},
"compliance_label": "1A4010200001234000000002",
"compliance_quantity": "2",
"cost_per_unit": null,
"cost_per_unit_default": null,
"expiration_datetime": null,
"ingredients": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000000f8",
"name": "B872"
},
"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-0000000002dd",
"id": "00000000-0000-0000-0000-0000000000ad",
"license_id": "00000000-0000-0000-0000-00000000003a",
"name": "Place 172"
},
"package": {
"batch_number": "1234567890",
"compliance_label": "ABCDEF012345670000000120",
"id": "00000000-0000-0000-0000-00000000003f",
"metrc_label": "ABCDEF012345670000000120",
"status": "active"
},
"product": {
"id": "ad4bd586-39e2-4fba-9807-8c0325e4a4a6",
"name": "Product 866",
"sku": "sku 867",
"updated_datetime": "2026-05-15T08:17:36.985583Z"
},
"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-0000000002dd",
"id": "00000000-0000-0000-0000-0000000000ad",
"license_id": "00000000-0000-0000-0000-00000000003a",
"name": "Place 172"
},
"package": null,
"package_datetime": "2026-05-15",
"package_unit_type": {
"id": "00000000-0000-0000-0000-0000000024a3",
"name": "Gram"
},
"product": {
"id": "ad4bd586-39e2-4fba-9807-8c0325e4a4a6",
"name": "Product 866",
"sku": "sku 867",
"updated_datetime": "2026-05-15T08:17:36.985583Z"
},
"quantity": "2",
"total_cost_actual": null,
"total_cost_default": null
}
],
"owner_id": "00000000-0000-0000-0000-00000000036e",
"status": "PENDING"
}
],
"next_page": null
}
GET /public/v1/assemblies returns proper data for completed metrc assembly
GET /public/v1/assemblies?completion_datetime=2026-05-15+07%3A17%3A36.625097Z%2C2026-05-15+09%3A17%3A36.625097Z&creation_source=MANUALLY_CREATED&license_number=CDPH-00000049&page[number]=1
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTYsImlhdCI6MTc3ODgzMzA1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDcyYmNmMWUtNjdhYi00N2RjLWEzNWYtMWYxYWM2ZDg1ODIxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzE2IiwidHlwIjoiYWNjZXNzIn0.xYc-x-mPEHu61s8VVDU8Tmd31zxvaRoM3BuDXUKW4Z0
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: b878b7b06260c8000000000000000001-e1ee5372581fadc2-0
{
"data": [
{
"assembly_number": "AS-0000001",
"completion_datetime": "2026-05-15T08:17:36.625097Z",
"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": "68187f5f-2316-4355-86e6-44986481c223",
"is_metrc_processing_job": false,
"license": {
"id": "00000000-0000-0000-0000-000000000032",
"license_number": "CDPH-00000049"
},
"outputs": [
{
"additional_costs": [],
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000000ae",
"name": "B632"
},
"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-0000000000ae",
"name": "B632"
},
"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-000000000257",
"id": "00000000-0000-0000-0000-00000000008e",
"license_id": "00000000-0000-0000-0000-000000000032",
"name": "Place 141"
},
"package": {
"batch_number": "1234567890",
"compliance_label": "ABCDEF012345670000000090",
"id": "00000000-0000-0000-0000-000000000031",
"metrc_label": "ABCDEF012345670000000090",
"status": "active"
},
"product": {
"id": "b2255c38-202e-4c20-ae3d-77ecf1b8c28a",
"name": "Product 620",
"sku": "sku 621",
"updated_datetime": "2026-05-15T08:17:36.465675Z"
},
"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-000000000257",
"id": "00000000-0000-0000-0000-00000000008e",
"license_id": "00000000-0000-0000-0000-000000000032",
"name": "Place 141"
},
"package": {
"batch_number": null,
"compliance_label": "1A4010200001234000000001",
"id": "00000000-0000-0000-0000-000000000036",
"metrc_label": "1A4010200001234000000001",
"status": "active"
},
"package_datetime": "2026-05-15",
"package_unit_type": {
"id": "00000000-0000-0000-0000-000000001def",
"name": "Gram"
},
"product": {
"id": "b2255c38-202e-4c20-ae3d-77ecf1b8c28a",
"name": "Product 620",
"sku": "sku 621",
"updated_datetime": "2026-05-15T08:17:36.465675Z"
},
"quantity": "2",
"total_cost_actual": null,
"total_cost_default": null
}
],
"owner_id": "00000000-0000-0000-0000-0000000002cc",
"status": "COMPLETED"
}
],
"next_page": null
}
GET /public/v1/assemblies returns proper data for biotrack assembly
GET /public/v1/assemblies?completion_datetime=2026-05-15+07%3A17%3A35.685906Z%2C2026-05-15+09%3A17%3A35.685906Z&creation_source=MANUALLY_CREATED&license_number=CDPH-00000012&page[number]=1
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTQsImlhdCI6MTc3ODgzMzA1NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzY3MTZhN2YtNjA5Zi00MzIxLTkyYWQtODY1Y2I0ZTI0YWRiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDUzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTU0IiwidHlwIjoiYWNjZXNzIn0.tyh842j-GNwzifylQWPKPePOCsGv1M3tubwDC6msmMU
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 6e29a619039984000000000000000001-0e4ae68277cc5650-0
{
"data": [
{
"assembly_number": "AS-0000001",
"completion_datetime": "2026-05-15T08:17:35.685906Z",
"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": "fcf97925-e9c1-430c-be98-568b25743e0c",
"is_metrc_processing_job": false,
"license": {
"id": "00000000-0000-0000-0000-00000000000d",
"license_number": "CDPH-00000012"
},
"outputs": [
{
"additional_costs": [],
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000001d",
"name": "B104"
},
"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-00000000001d",
"name": "B104"
},
"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-00000000007c",
"id": "00000000-0000-0000-0000-000000000027",
"license_id": "00000000-0000-0000-0000-00000000000d",
"name": "Place 38"
},
"package": {
"batch_number": null,
"compliance_label": "0000000000000001",
"id": "00000000-0000-0000-0000-00000000000e",
"metrc_label": "0000000000000001",
"status": "active"
},
"product": {
"id": "5f5726c0-877a-4f66-bc7d-41d81774871f",
"name": "Product 100",
"sku": "sku 101",
"updated_datetime": "2026-05-15T08:17:34.907480Z"
},
"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-00000000007c",
"id": "00000000-0000-0000-0000-000000000027",
"license_id": "00000000-0000-0000-0000-00000000000d",
"name": "Place 38"
},
"package": {
"batch_number": null,
"compliance_label": null,
"id": "00000000-0000-0000-0000-00000000001b",
"metrc_label": null,
"status": "active"
},
"package_datetime": null,
"package_unit_type": {
"id": "00000000-0000-0000-0000-000000000634",
"name": "Gram"
},
"product": {
"id": "5f5726c0-877a-4f66-bc7d-41d81774871f",
"name": "Product 100",
"sku": "sku 101",
"updated_datetime": "2026-05-15T08:17:34.907480Z"
},
"quantity": "1",
"total_cost_actual": null,
"total_cost_default": null
}
],
"owner_id": "00000000-0000-0000-0000-00000000009a",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTYsImlhdCI6MTc3ODgzMzA1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjJmNDhlZDUtMTc1Ni00YjYyLWI4MTgtNDJhNzUwN2VmODBmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzQwIiwidHlwIjoiYWNjZXNzIn0.vSmy9FQGCMFzCTpD7HTOTeI6pyuLySxQPBu2aGgtdKE
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: dac69398a62020000000000000000001-82528d06f239690b-0
{
"data": [
{
"batch_number": null,
"custom_data": [
{
"id": 33,
"name": "Custom Field 9",
"value": "Custom Data 1"
}
],
"deleted_at": null,
"description": null,
"expiration_date": "2024-01-01T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-0000000000b6",
"manufactured_datetime": "2024-01-02T03:04:05.000000Z",
"name": "B652",
"owner_id": "00000000-0000-0000-0000-0000000002ea",
"primary_test_result": null,
"product_id": "c5f3fa6b-b123-4c2a-9bea-abccfa716e28"
},
{
"batch_number": null,
"custom_data": [
{
"id": 33,
"name": "Custom Field 9",
"value": null
}
],
"deleted_at": null,
"description": null,
"expiration_date": null,
"id": "00000000-0000-0000-0000-0000000000b7",
"manufactured_datetime": "2024-01-02T03:04:05.000000Z",
"name": "B661",
"owner_id": "00000000-0000-0000-0000-0000000002f7",
"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": "10eba3a4-d2b7-4f7a-a359-3413f122fd60"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTYsImlhdCI6MTc3ODgzMzA1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNWM1YTQ0ODctNDBjMi00YzVkLTgxMTYtODRiYTNmMjQ0NDY0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTgwIiwidHlwIjoiYWNjZXNzIn0.moS24SmGW7PSYzW2m_V8LlZU5RSGB02xBFXShUQw684
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 15b0ab9e5481cb000000000000000001-df3e9cc82e78c8c1-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-000000000086",
"manufactured_datetime": "2026-05-15T08:17:36.039256Z",
"name": "B503",
"owner_id": "00000000-0000-0000-0000-000000000251",
"primary_test_result": null,
"product_id": "8692c4b7-7aa7-4e32-9bec-f9446f7f97a0",
"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-000000000015&batch_ids[]=00000000-0000-0000-0000-000000000017
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTQsImlhdCI6MTc3ODgzMzA1NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMmFkYzM3OGMtNzc1Ni00MTVkLWJhNWUtZmI0NWVmODJkYzVhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDUzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTM0IiwidHlwIjoiYWNjZXNzIn0.EWmgDwoqLqQsKhZPvBAEUKluNa_JVic3_YAo6Nmf3Yw
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 408a10a5fc2770000000000000000001-99c79b44d4e6f100-0
{
"data": [
{
"batch_number": null,
"custom_data": [],
"deleted_at": null,
"description": null,
"expiration_date": null,
"id": "00000000-0000-0000-0000-000000000015",
"manufactured_datetime": "2026-05-15T08:17:34.700863Z",
"name": "B75",
"owner_id": "00000000-0000-0000-0000-000000000088",
"primary_test_result": null,
"product_id": "d2b9a850-6150-48d0-b601-edfc88db98b1"
},
{
"batch_number": null,
"custom_data": [],
"deleted_at": null,
"description": null,
"expiration_date": null,
"id": "00000000-0000-0000-0000-000000000017",
"manufactured_datetime": "2026-05-15T08:17:34.700863Z",
"name": "B81",
"owner_id": "00000000-0000-0000-0000-00000000008c",
"primary_test_result": null,
"product_id": "f77046b2-053f-4491-abda-6eee3a11cfaa"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTUsImlhdCI6MTc3ODgzMzA1NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTdmNTBmZTEtMmRkMy00M2QwLThmOTctMTlkMmFhNjI4MTgwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjM2IiwidHlwIjoiYWNjZXNzIn0.27uhdnWjaMBcfw7fSRDdRtHVgaSQEB0hZSUfoICb1K0
{
"owner_id": "b6db4638-a8be-4471-b669-61404dadf9e5",
"product_id": "01bf2df2-a696-4a17-9eca-1ae5f0703888"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 3398a5ff0bb104000000000000000001-b1e9425141b6915a-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTMsImlhdCI6MTc3ODgzMzA1MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiYzRjNDQwMzItNzVlNC00MWQ3LTkyNjUtYzU4OTdjYzlkNzk5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDUyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OSIsInR5cCI6ImFjY2VzcyJ9.TjtOJT5uTKzfYPKFHZTmCe3ro8N6bHUPnyzAmbu7dyw
{
"product_id": "9644fdbc-9b9d-497d-9350-318dbb7fcb02"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: fe296ab628a568000000000000000001-c0193279514dbe7c-0
{
"data": {
"batch_number": null,
"custom_data": [],
"deleted_at": null,
"description": null,
"expiration_date": null,
"id": "00000000-0000-0000-0000-000000000009",
"manufactured_datetime": "2026-05-15T08:17:33.292846Z",
"name": "B1",
"owner_id": null,
"product_id": "9644fdbc-9b9d-497d-9350-318dbb7fcb02"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTYsImlhdCI6MTc3ODgzMzA1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGRmNWJkZmMtMGQ2Ny00NWYzLTg5MTUtZjY0ODQwYTZmZWU3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjEwIiwidHlwIjoiYWNjZXNzIn0.oXoIRL8KtF-zkDAWlSXDAnkpXozAy4f6zLyTwfm8Wj8
{
"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-00000000026a",
"product_id": "1c3891da-1dfe-4237-9c12-89173f057706"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 6785782d4e9c4c000000000000000001-f32c03a6d3b2d9fa-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-00000000008a",
"manufactured_datetime": "2025-01-02T03:04:05.000000Z",
"name": "B1",
"owner_id": "00000000-0000-0000-0000-00000000026a",
"product_id": "1c3891da-1dfe-4237-9c12-89173f057706"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTYsImlhdCI6MTc3ODgzMzA1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMmUwZDNjMjMtMjNhZC00NWE5LWJjZGEtYTEzNzQ5Yjg1ZjBlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjY2IiwidHlwIjoiYWNjZXNzIn0.gaWV-ExQnvXSxgJJRDOZGp2B_n3ZeAiIsg9ymF2gKjs
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 733e60ee4a38c8000000000000000001-71ea89f45df2d4ea-0
{
"data": [
{
"category": "Retailer",
"custom_data": [
{
"id": 31,
"name": "Custom Field 7",
"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-000000000002",
"name": "Comp Rel Group 1"
},
"id": "00000000-0000-0000-0000-000000000141",
"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-00000000023c",
"id": "00000000-0000-0000-0000-000000000084",
"license_id": null,
"name": "Place 131"
}
],
"name": "Company 568",
"order_shipment_email": "order shipment email",
"outstanding_balance_threshold": 1000,
"owner_id": "00000000-0000-0000-0000-0000000002ac",
"phone_number": "1234567890",
"purchase_order_email": "purchase email",
"relationship_type": {
"id": "00000000-0000-0000-0000-000000000002",
"name": "Supplier"
},
"sales_order_email": "order email",
"updated_datetime": "2023-11-03T00:00:00.000000Z",
"website": "https://www.example.com"
},
{
"category": "Delivery",
"custom_data": [
{
"id": 31,
"name": "Custom Field 7",
"value": null
}
],
"default_email": "company-1247@example.com",
"default_purchase_order_notes": null,
"default_sales_order_notes": null,
"deleted_at": null,
"group": null,
"id": "00000000-0000-0000-0000-000000000144",
"invoice_email": null,
"legal_business_name": "Company Legal Name 571",
"licenses": [
{
"id": "00000000-0000-0000-0000-000000000030",
"license_number": "CDPH-00000047"
}
],
"locations": [],
"name": "Company 571",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTUsImlhdCI6MTc3ODgzMzA1NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZmI4NTAxODgtMTc1YS00Zjg2LWJmZTUtNDNmMTkwYTI5ZThkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MzY2IiwidHlwIjoiYWNjZXNzIn0.8zg_pvoLjal66sBBHTCVscXZoyBvU6wtEUqqNE1PgAQ
{
"name": "New Retailer"
}
Response
201
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 1671b473638221000000000000000001-f16ae957b5096e16-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-000000000097",
"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-15T08:17:35.528601Z",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTYsImlhdCI6MTc3ODgzMzA1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNWYxNTAyZjItYTAzOC00NjFhLWJhNWUtOGQ1Mzk0YmFjODcyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTk5IiwidHlwIjoiYWNjZXNzIn0.6hlWAcufKmVUWMqKCIWqhpai8-_y9q4djOqB_oZMOXQ
{
"category": "Retail",
"custom_data": {
"30": "VIP"
},
"default_email": "info@fullretailer.com",
"default_purchase_order_notes": "Purchase notes",
"default_sales_order_notes": "Sales notes",
"group_id": "00000000-0000-0000-0000-000000000001",
"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-000000000259",
"phone_number": "555-1234",
"purchase_order_email": "purchasing@fullretailer.com",
"relationship_type_id": "00000000-0000-0000-0000-000000000001",
"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: 00eb3b4966eb98780000000000000001-a71cfa307c700dff-0
{
"data": {
"category": "Retail",
"custom_data": [
{
"id": 30,
"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-000000000001",
"name": "Comp Rel Group 0"
},
"id": "00000000-0000-0000-0000-000000000120",
"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-000000000259",
"phone_number": "555-1234",
"purchase_order_email": "purchasing@fullretailer.com",
"relationship_type": {
"id": "00000000-0000-0000-0000-000000000001",
"name": "Supplier"
},
"sales_order_email": "orders@fullretailer.com",
"updated_datetime": "2026-05-15T08:17:36.147351Z",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTQsImlhdCI6MTc3ODgzMzA1NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYzFlN2U0ZDUtYTQ4MC00ODIyLWI1MzgtM2EzZGQxNTcwZDAyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDUzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTEyIiwidHlwIjoiYWNjZXNzIn0.jJDaSpEpt7gtp36HbxVo9SwJrC7YMCLEr4qP--mkByM
{
"id": "00000000-0000-0000-0000-000000000025",
"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: e6c36f43662390000000000000000001-09c5bc99ad104327-0
{
"data": {
"category": "Cultivator",
"custom_data": [],
"default_email": "company-209@example.com",
"default_purchase_order_notes": null,
"default_sales_order_notes": null,
"deleted_at": null,
"group": null,
"id": "00000000-0000-0000-0000-000000000025",
"invoice_email": "newinvoice@example.com",
"legal_business_name": "Company Legal Name 97",
"licenses": [],
"locations": [],
"name": "Updated Name",
"order_shipment_email": null,
"outstanding_balance_threshold": null,
"owner_id": "00000000-0000-0000-0000-000000000071",
"phone_number": null,
"purchase_order_email": null,
"relationship_type": null,
"sales_order_email": null,
"updated_datetime": "2026-05-15T08:17:34.741318Z",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTYsImlhdCI6MTc3ODgzMzA1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYmQyYTMyMmYtMTM1Zi00YjdkLWJmMDUtNzVkYjNmMWNlNThkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzU4IiwidHlwIjoiYWNjZXNzIn0._szKh1wRLK0LatPtsvRLDVla2QhSMHC4f8CM-7UXvy0
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: d38b9e0537dca0000000000000000001-a4bdc08f465304d7-0
{
"data": [
{
"company": {
"id": "00000000-0000-0000-0000-00000000016f"
},
"custom_data": [
{
"id": 34,
"name": "Custom Field 10",
"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-000000000026",
"last_name": "name1",
"owner": {
"id": "00000000-0000-0000-0000-0000000002fb"
},
"phone_number": "1234567890",
"title": null,
"work_phone_number": "1234567891"
},
{
"company": {
"id": "00000000-0000-0000-0000-000000000171"
},
"custom_data": [
{
"id": 34,
"name": "Custom Field 10",
"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-000000000027",
"last_name": "name2",
"owner": {
"id": "00000000-0000-0000-0000-0000000002ff"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTYsImlhdCI6MTc3ODgzMzA1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiN2VkMjU3Y2MtN2MxOS00MDIyLTgwZTctYThjODcxMDI4ZTJjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6Njg3IiwidHlwIjoiYWNjZXNzIn0.KmBHIT5xIOt7Swy9493j_bsRpyEzyOxPomeXmy8GePk
{
"company_id": "00000000-0000-0000-0000-00000000014a",
"custom_data": {
"32": "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-0000000002b5",
"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: 6607175f6e9e28000000000000000001-f6d02dd76c067182-0
{
"data": {
"company": {
"id": "00000000-0000-0000-0000-00000000014a"
},
"custom_data": [
{
"id": 32,
"name": "Custom Field 8",
"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-000000000024",
"last_name": "Doe",
"owner": {
"id": "00000000-0000-0000-0000-0000000002b5"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTUsImlhdCI6MTc3ODgzMzA1NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGUwZWQ2NzItMzliYS00MDRmLThjYzItZDM4MDA1YjBiOWFlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NDAwIiwidHlwIjoiYWNjZXNzIn0.IT9Vp1DIxkoSJDB_eBYtSWRl5_C5uhrDTkdAZ_Yjq68
{
"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: 665fe60905bb78000000000000000001-55543c967d0ed799-0
{
"data": {
"description": "Notes",
"field_options": [],
"field_type": "text",
"filterable": false,
"id": 29,
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTUsImlhdCI6MTc3ODgzMzA1NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjY5ODU4OWMtOTgzNy00MzE1LWIzM2MtZGE5ZTZkMzhhZDdhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MzEzIiwidHlwIjoiYWNjZXNzIn0.YKHfDpbc8InhaJoLbBUDq8CO-l3bU2WiQjlu3z3RPzY
{
"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: 1f40ba9062737f000000000000000001-969600ebdf97d37d-0
{
"data": {
"description": null,
"field_options": [],
"field_type": "date",
"filterable": false,
"id": 27,
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTQsImlhdCI6MTc3ODgzMzA1NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYTA0YzdlZGItM2VjNy00MGI0LWIxODAtMzE0MThjZDQ2NDZkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDUzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTMiLCJ0eXAiOiJhY2Nlc3MifQ.clNtgGlJF-YRlfcyli62lTGUNQXhpVt00ZRZhbxXOEo
{
"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: cf3a160cef9248000000000000000001-82505f24d07e43ed-0
{
"data": {
"description": null,
"field_options": [
"A",
"B"
],
"field_type": "dropdown",
"filterable": true,
"id": 2,
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTQsImlhdCI6MTc3ODgzMzA1NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTcwM2VjZmEtOTVmOS00Mzc1LTlhMWYtNjc1ZjgwMGIxZDdiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDUzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTY4IiwidHlwIjoiYWNjZXNzIn0.xO-CW7j_C2fTJCgA2NtN2s7-plyyAmjm-oGZcT4-m7g
{
"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: 6abf753cec8884000000000000000001-962f5fa4ef1cc34b-0
{
"data": {
"description": null,
"field_options": [
"Option 1"
],
"field_type": "checkbox",
"filterable": true,
"id": 4,
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTYsImlhdCI6MTc3ODgzMzA1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNzRiOTZhMWEtZTM2NC00YjFmLTk2ZGMtYTgwMmZmMDg0MGRiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjQwIiwidHlwIjoiYWNjZXNzIn0.a7cyqd1FOm2eDfIzexa-cpyzaqfuBzA9cWywlUodpOA
{
"file": {
"content_type": "image/png",
"filename": "test-image.png"
},
"name": "My Test Image",
"product_id": "e837779d-a498-451a-a7f6-ef29d1586897"
}
Response
201
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 3d75c182e023f0000000000000000001-790269c67fde31c9-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-00000000001b",
"invoice_id": null,
"license_id": null,
"mime_type": "image/png",
"name": "My Test Image",
"order_id": null,
"order_shipment_id": null,
"product_id": "e837779d-a498-451a-a7f6-ef29d1586897",
"purchase_id": null,
"request_id": null,
"return_id": null,
"size_in_bytes": 355974,
"stock_transfer_id": null,
"task_id": null,
"upload_datetime": "2026-05-15T08:17:36.273116Z",
"uploader": {
"id": "00000000-0000-0000-0000-000000000280",
"name": "FirstName1326 LastName1327"
},
"url": "/tmp/ad6d8411-43d2-408a-8a85-a98da23fcac8/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[]=fc1b0f92-294e-4cbb-9b62-2715ed38ce3f
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NjIsImlhdCI6MTc3ODgzMzA2MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjE5MzEyNzQtMTBiYS00MjYyLWIzN2QtYWFlNzFmNWU0NTBmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDYxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTk4MCIsInR5cCI6ImFjY2VzcyJ9.WgmGJgyFKMKEVzbU95bj6mfTCHjFwSwvs2vFHRbXyfg
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: eb188705c47a98000000000000000001-159581a1b1171424-0
{
"data": [
{
"active": "10.000000000",
"available": "10.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "fc1b0f92-294e-4cbb-9b62-2715ed38ce3f",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-15T08:17:42.621418Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NjEsImlhdCI6MTc3ODgzMzA2MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYWNiNDQzZmMtN2U3ZS00YTc1LWI0NzctNTc2ODczMjI4YWNjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDYwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTgyNSIsInR5cCI6ImFjY2VzcyJ9.saZXJ-9p9pqd5bBR4TQOMnpHtzn3hUDO4OAZz58p4UI
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 97ec67a51116b0000000000000000001-8215413efea6e5dc-0
{
"data": [
{
"active": "50.000000000",
"available": "50.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "3ad04e9f-5508-42f1-a160-47cd56edf20c",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-15T08:17:41.803507Z"
},
{
"active": "95.000000000",
"available": "80.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "4f8d9da8-b1d6-488d-9b4b-60284815c998",
"reserved": "15.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-15T08:17:41.913093Z"
},
{
"active": "100.000000000",
"available": "90.000000000",
"cost_default_per_unit": "2.06",
"cost_per_unit_actual": "0.03",
"product_id": "cc545fbb-35ed-4a61-b2e6-46bde2d91290",
"reserved": "10.000000000",
"total_cost_actual": "3",
"total_cost_default": "206",
"updated_datetime": "2026-05-15T08:17:41.911953Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTUsImlhdCI6MTc3ODgzMzA1NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjQ3ZjVkYmUtMDJjYi00ZTc1LWIyYjktODVhZWEzODhmOTg1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjYwIiwidHlwIjoiYWNjZXNzIn0.51n7mjlMU9OW5VatcQ3ItFTU5oCunjSgkuLpf_ecueQ
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 5fd11712beb1f0000000000000000001-2caf511b16d6a8a0-0
{
"data": [
{
"active": "0.000000000",
"available": "-15.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-00000000003c",
"product_id": "0875a216-ef2a-4f09-a5b7-9832415c0788",
"reserved": "15.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-15T08:17:35.918882Z"
},
{
"active": "0.000000000",
"available": "-8.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-00000000003d",
"product_id": "0875a216-ef2a-4f09-a5b7-9832415c0788",
"reserved": "8.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-15T08:17:35.920795Z"
},
{
"active": "190.000000000",
"available": "169.000000000",
"cost_default_per_unit": "1",
"cost_per_unit_actual": "0.5",
"location_id": "00000000-0000-0000-0000-000000000046",
"product_id": "0875a216-ef2a-4f09-a5b7-9832415c0788",
"reserved": "21.000000000",
"total_cost_actual": "95",
"total_cost_default": "190",
"updated_datetime": "2026-05-15T08:17:35.921682Z"
},
{
"active": "80.000000000",
"available": "80.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-000000000047",
"product_id": "0875a216-ef2a-4f09-a5b7-9832415c0788",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-15T08:17:35.694861Z"
},
{
"active": "0.000000000",
"available": "-1.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": null,
"product_id": "0875a216-ef2a-4f09-a5b7-9832415c0788",
"reserved": "1.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-15T08:17:35.926953Z"
},
{
"active": "100.000000000",
"available": "90.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-00000000003c",
"product_id": "2c549ff2-c8ce-4526-a608-000d6780b5d6",
"reserved": "10.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-15T08:17:35.915491Z"
},
{
"active": "0.000000000",
"available": "-1.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-00000000003d",
"product_id": "2c549ff2-c8ce-4526-a608-000d6780b5d6",
"reserved": "1.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-15T08:17:35.917902Z"
},
{
"active": "100.000000000",
"available": "100.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-00000000003d",
"product_id": "e0027cc6-8e85-47c9-974e-12adbf35e50c",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-15T08:17:35.339027Z"
},
{
"active": "30.000000000",
"available": "26.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": null,
"product_id": "e0027cc6-8e85-47c9-974e-12adbf35e50c",
"reserved": "4.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-15T08:17:35.924753Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTUsImlhdCI6MTc3ODgzMzA1NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMmIyNjY1NTMtNDI0Ni00YzY5LWEyYjctYjZhMDFmNWJhNmIzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTQyIiwidHlwIjoiYWNjZXNzIn0.Y39jOh9zUDFX_-r1HA4LiHdVzN3yIQqjBRdJszznbbM
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 1cbbc091486ad1000000000000000001-f94449862734eed9-0
{
"data": [
{
"active": "8.000000000",
"available": "8.000000000",
"batch_number": "TEST-1",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "139eb1f4-729f-43c4-8f1f-e71f1a6d6ff4",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-15T08:17:36.285902Z"
},
{
"active": "43.000000000",
"available": "43.000000000",
"batch_number": null,
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "5d747eee-0e9e-4135-8385-b267427eae7c",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-15T08:17:36.415239Z"
},
{
"active": "47.000000000",
"available": "47.000000000",
"batch_number": "1",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "5d747eee-0e9e-4135-8385-b267427eae7c",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-15T08:17:36.545416Z"
},
{
"active": "25.000000000",
"available": "25.000000000",
"batch_number": "2",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "5d747eee-0e9e-4135-8385-b267427eae7c",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-15T08:17:36.597922Z"
},
{
"active": "26.000000000",
"available": "26.000000000",
"batch_number": null,
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "73c96acb-1ddd-4bda-958a-0cae63878608",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-15T08:17:36.677839Z"
},
{
"active": "27.000000000",
"available": "27.000000000",
"batch_number": "1",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "73c96acb-1ddd-4bda-958a-0cae63878608",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-15T08:17:36.732732Z"
},
{
"active": "19.000000000",
"available": "19.000000000",
"batch_number": null,
"cost_default_per_unit": "2",
"cost_per_unit_actual": "1",
"product_id": "d9ffec69-7bd1-4d4d-96e8-5ee2aee5e595",
"reserved": "0.000000000",
"total_cost_actual": "19",
"total_cost_default": "38",
"updated_datetime": "2026-05-15T08:17:36.151404Z"
},
{
"active": "13.000000000",
"available": "13.000000000",
"batch_number": "TEST-1",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "d9ffec69-7bd1-4d4d-96e8-5ee2aee5e595",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-15T08:17:36.233538Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NjEsImlhdCI6MTc3ODgzMzA2MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYmRhMTdhZTQtYzAwNC00MzExLTg1MTUtY2YwNmI1ZTc3YzE2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDYwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTkwMiIsInR5cCI6ImFjY2VzcyJ9.VN9Mc80PnT4CPBmubs1C5IHk07RuqI31J_S9N7gMmaE
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 107465a313e95e000000000000000001-a4eb1ed37d42d4b7-0
{
"data": [
{
"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-0000000001b8",
"product_id": "76ae1a5d-1445-446c-b66f-ebc5ad4869d2",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-15T08:17:42.291471Z"
},
{
"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-0000000001b8",
"product_id": "76ae1a5d-1445-446c-b66f-ebc5ad4869d2",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-15T08:17:42.432987Z"
},
{
"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-0000000001b9",
"product_id": "76ae1a5d-1445-446c-b66f-ebc5ad4869d2",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-15T08:17:42.360820Z"
},
{
"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-0000000001b9",
"product_id": "76ae1a5d-1445-446c-b66f-ebc5ad4869d2",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-15T08:17:42.507307Z"
},
{
"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-0000000001b8",
"product_id": "7ced02dd-bbf7-49f2-b0d2-ad75e747035b",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-15T08:17:42.086866Z"
},
{
"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-0000000001b8",
"product_id": "7ced02dd-bbf7-49f2-b0d2-ad75e747035b",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-15T08:17:42.163982Z"
},
{
"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-0000000001b9",
"product_id": "7ced02dd-bbf7-49f2-b0d2-ad75e747035b",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-15T08:17:42.128901Z"
},
{
"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-0000000001b9",
"product_id": "7ced02dd-bbf7-49f2-b0d2-ad75e747035b",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-05-15T08:17:42.204623Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NjUsImlhdCI6MTc3ODgzMzA2NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYTJmY2EyODQtMjZlMC00ODJkLWJiN2UtYWU5NWNiNDM2YTdhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDY0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjE5NiIsInR5cCI6ImFjY2VzcyJ9.K-pJkwfuuSQdJAxd2VAwjyXsReHp7iqwOKAq6oBURpg
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: b575224408f5a8000000000000000001-3d67d8e7ce5e17fa-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000004fa",
"name": "Company 1731",
"updated_datetime": "2026-05-15T08:17:45.791031Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2180@example.com",
"full_name": "FirstName4426 LastName4427",
"id": "00000000-0000-0000-0000-00000000089f",
"role": {
"id": "00000000-0000-0000-0000-0000000008b9",
"name": "Admin 2232"
}
},
"custom_data": [
{
"id": 42,
"name": "Custom Field 18",
"value": null
}
],
"due_datetime": "2026-05-15T08:17:45.864617Z",
"id": "00000000-0000-0000-0000-00000000004b",
"inserted_datetime": "2026-05-15T08:17:45.865255Z",
"invoice_datetime": "2026-05-15T08:17:45.864615Z",
"invoice_number": "Invoice #67",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000003a2",
"name": "B2836"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000072",
"order_item_id": "9e1bcbc1-fa8b-4a8f-adda-091241e4cd6d",
"package": null,
"price": "10.000000000",
"product": {
"id": "44da3ebb-d617-4e36-919b-28626655bf11",
"name": "Product 2834",
"sku": "sku 2835",
"updated_datetime": "2026-05-15T08:17:45.800473Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000003a3",
"name": "B2839"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000073",
"order_item_id": "9360806c-47cc-4fd6-a1c3-85dc140241ce",
"package": null,
"price": "10.000000000",
"product": {
"id": "a986385e-1d6b-4a9d-9e47-837c433cbfb6",
"name": "Product 2837",
"sku": "sku 2838",
"updated_datetime": "2026-05-15T08:17:45.813775Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "f4d97b79-56a4-4813-a7f7-b52f4722dccf",
"order_number": "SO-122",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-2180@example.com",
"full_name": "FirstName4426 LastName4427",
"id": "00000000-0000-0000-0000-00000000089f",
"role": {
"id": "00000000-0000-0000-0000-0000000008b9",
"name": "Admin 2232"
}
},
"paid_amount": "0.0",
"remaining_amount": "200.00",
"status": "NOT_PAID",
"total": "200.00",
"updated_datetime": "2026-05-15T08:17:45.865255Z"
},
{
"charges": [
{
"id": "75b9807c-c7cd-4119-b60a-a803782df199",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000004f7",
"name": "Company 1728",
"updated_datetime": "2026-05-15T08:17:45.684933Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000000891",
"role": {
"id": "00000000-0000-0000-0000-0000000008ab",
"name": "Admin 2218"
}
},
"custom_data": [
{
"id": 42,
"name": "Custom Field 18",
"value": "Custom Field Value 1"
}
],
"due_datetime": "2020-01-01T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-00000000004a",
"inserted_datetime": "2026-05-15T08:17:45.705458Z",
"invoice_datetime": "2020-01-01T00:00:02.000000Z",
"invoice_number": "INV-123",
"items": [
{
"batch": {
"batch_number": "UID1",
"id": "00000000-0000-0000-0000-00000000039f",
"name": "B1"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000071",
"order_item_id": "a0550bdc-1ea8-4d81-820c-3127b05078b8",
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000000183",
"id": "00000000-0000-0000-0000-00000000005f",
"metrc_label": "ABCDEF012345670000000183",
"status": "active"
},
"price": "10.000000000",
"product": {
"id": "d7a9fe90-9afc-4f91-aa5d-a83668667a7a",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-15T08:17:45.659675Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "f80b46aa-65ac-4d7d-bc2c-939dd16a1fa4",
"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-000000000893",
"role": {
"id": "00000000-0000-0000-0000-0000000008ad",
"name": "Admin 2220"
}
},
"paid_amount": "5.00",
"remaining_amount": "3.00",
"status": "PARTIALLY_PAID",
"total": "8.00",
"updated_datetime": "2026-05-15T08:17:45.728562Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NjMsImlhdCI6MTc3ODgzMzA2MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGJiODYyNWYtOGMxYi00MDhmLWFiMWMtZWIwNzZmYmJkNzg0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDYyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjAyNCIsInR5cCI6ImFjY2VzcyJ9.amhcOyH0Zk-_2LFyUn933NA_7VcOI65nWLZu4J1Ph3g
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 24e5928cb0b15e000000000000000001-44bf561c0062ed6b-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000000046c",
"name": "Company 1571",
"updated_datetime": "2026-05-15T08:17:43.097336Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2020@example.com",
"full_name": "FirstName4106 LastName4107",
"id": "00000000-0000-0000-0000-0000000007f8",
"role": {
"id": "00000000-0000-0000-0000-00000000080f",
"name": "Admin 2062"
}
},
"custom_data": [],
"due_datetime": "2026-05-15T08:17:43.196195Z",
"id": "00000000-0000-0000-0000-000000000038",
"inserted_datetime": "2026-05-15T08:17:43.196653Z",
"invoice_datetime": "2026-05-15T08:17:43.196194Z",
"invoice_number": "Invoice #49",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000336",
"name": "B2510"
},
"cost_per_unit": "10.026",
"cost_per_unit_default": "5",
"id": "00000000-0000-0000-0000-00000000004f",
"order_item_id": "72c5b1bc-94b7-4aae-b323-c50e9df5fa9d",
"package": null,
"price": "513169.000000000",
"product": {
"id": "a11a62cd-3fe4-4526-a8c1-d57e5e7c3771",
"name": "Product 2508",
"sku": "sku 2509",
"updated_datetime": "2026-05-15T08:17:43.024178Z"
},
"quantity": "2.000000000",
"returned_quantity": "2",
"total_cost_actual": "20.052",
"total_cost_default": "10"
}
],
"order": {
"id": "9755dc75-1643-4a6e-8ae4-8276f265c22c",
"order_number": "SO-0000001",
"status": "Processing",
"total": "1026338.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-2020@example.com",
"full_name": "FirstName4106 LastName4107",
"id": "00000000-0000-0000-0000-0000000007f8",
"role": {
"id": "00000000-0000-0000-0000-00000000080f",
"name": "Admin 2062"
}
},
"paid_amount": "0.0",
"remaining_amount": "32.00",
"status": "NOT_PAID",
"total": "32.00",
"updated_datetime": "2026-05-15T08:17:43.196653Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NjQsImlhdCI6MTc3ODgzMzA2NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiM2UzMjU0NDAtYjJlZi00ODE2LThiNTMtNzZlYjA4YThlOGI5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDYzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjEyMSIsInR5cCI6ImFjY2VzcyJ9.HhaDLlkc6XwL-bHP74XPuxq3HA9_hZE64K_cN9OfZdI
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: dd5314f9417750000000000000000001-4a217648d55e878b-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000004ca",
"name": "Company 1676",
"updated_datetime": "2026-05-15T08:17:44.623774Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2120@example.com",
"full_name": "FirstName4306 LastName4307",
"id": "00000000-0000-0000-0000-00000000085d",
"role": {
"id": "00000000-0000-0000-0000-000000000877",
"name": "Admin 2166"
}
},
"custom_data": [],
"due_datetime": "2026-05-15T08:17:44.675006Z",
"id": "00000000-0000-0000-0000-000000000044",
"inserted_datetime": "2026-05-15T08:17:44.675511Z",
"invoice_datetime": "2020-01-01T12:30:00.000000Z",
"invoice_number": "Invoice #61",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000037e",
"name": "B2726"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000064",
"order_item_id": "af18856f-a7d0-41c6-a426-52a06fd39410",
"package": null,
"price": "10.000000000",
"product": {
"id": "5d59983c-1517-471b-bb97-26d26829faed",
"name": "Product 2724",
"sku": "sku 2725",
"updated_datetime": "2026-05-15T08:17:44.631596Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000380",
"name": "B2732"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000065",
"order_item_id": "aaf8246b-8e75-4d45-837a-bdc52144b02c",
"package": null,
"price": "10.000000000",
"product": {
"id": "b7065cde-0f34-420b-a565-b54bdd910dc3",
"name": "Product 2730",
"sku": "sku 2731",
"updated_datetime": "2026-05-15T08:17:44.639523Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "488f274b-18c8-4db1-a342-f92e615fa2de",
"order_number": "SO-113",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-2120@example.com",
"full_name": "FirstName4306 LastName4307",
"id": "00000000-0000-0000-0000-00000000085d",
"role": {
"id": "00000000-0000-0000-0000-000000000877",
"name": "Admin 2166"
}
},
"paid_amount": "0.0",
"remaining_amount": "200.00",
"status": "NOT_PAID",
"total": "200.00",
"updated_datetime": "2026-05-15T08:17:44.675511Z"
},
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000004c2",
"name": "Company 1667",
"updated_datetime": "2026-05-15T08:17:44.497258Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2112@example.com",
"full_name": "FirstName4290 LastName4291",
"id": "00000000-0000-0000-0000-000000000855",
"role": {
"id": "00000000-0000-0000-0000-00000000086e",
"name": "Admin 2157"
}
},
"custom_data": [],
"due_datetime": "2026-05-15T08:17:44.591166Z",
"id": "00000000-0000-0000-0000-000000000043",
"inserted_datetime": "2026-05-15T08:17:44.592544Z",
"invoice_datetime": "2020-01-01T12:20:00.000000Z",
"invoice_number": "Invoice #60",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000378",
"name": "B2708"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000062",
"order_item_id": "60f4e670-2d2e-4cb9-aa91-67261c500c99",
"package": null,
"price": "10.000000000",
"product": {
"id": "341470c0-8b6b-4b32-b1d5-a2476a015d58",
"name": "Product 2706",
"sku": "sku 2707",
"updated_datetime": "2026-05-15T08:17:44.513422Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000379",
"name": "B2711"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000063",
"order_item_id": "b28cedec-9f42-4fa0-b3e6-e2cec2986d2d",
"package": null,
"price": "10.000000000",
"product": {
"id": "d1ce06f5-724a-4126-a1ff-bc73bc7c7a4b",
"name": "Product 2709",
"sku": "sku 2710",
"updated_datetime": "2026-05-15T08:17:44.531058Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "4466583a-ea06-4018-85c0-77abaa6001c0",
"order_number": "SO-112",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-2112@example.com",
"full_name": "FirstName4290 LastName4291",
"id": "00000000-0000-0000-0000-000000000855",
"role": {
"id": "00000000-0000-0000-0000-00000000086e",
"name": "Admin 2157"
}
},
"paid_amount": "0.0",
"remaining_amount": "200.00",
"status": "FULLY_PAID",
"total": "200.00",
"updated_datetime": "2026-05-15T08:17:44.592544Z"
},
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000004b6",
"name": "Company 1655",
"updated_datetime": "2026-05-15T08:17:44.279106Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2101@example.com",
"full_name": "FirstName4268 LastName4269",
"id": "00000000-0000-0000-0000-00000000084a",
"role": {
"id": "00000000-0000-0000-0000-000000000863",
"name": "Admin 2146"
}
},
"custom_data": [],
"due_datetime": "2026-05-15T08:17:44.343247Z",
"id": "00000000-0000-0000-0000-000000000041",
"inserted_datetime": "2026-05-15T08:17:44.343768Z",
"invoice_datetime": "2020-01-01T12:00:00.000000Z",
"invoice_number": "Invoice #58",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000036e",
"name": "B2678"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-00000000005e",
"order_item_id": "378f71eb-b133-4ba8-afb6-aad9634b9f16",
"package": null,
"price": "10.000000000",
"product": {
"id": "ebfe9e7b-8247-4d26-9dd7-8276de951bf7",
"name": "Product 2676",
"sku": "sku 2677",
"updated_datetime": "2026-05-15T08:17:44.289945Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000036f",
"name": "B2681"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-00000000005f",
"order_item_id": "da44dd4d-0f3e-48a9-b621-8cd16b45123c",
"package": null,
"price": "10.000000000",
"product": {
"id": "a58bf192-593d-4168-89b7-e03947435948",
"name": "Product 2679",
"sku": "sku 2680",
"updated_datetime": "2026-05-15T08:17:44.299511Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "e13610a4-fff4-4462-b744-1c2fe39eca49",
"order_number": "SO-110",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-2101@example.com",
"full_name": "FirstName4268 LastName4269",
"id": "00000000-0000-0000-0000-00000000084a",
"role": {
"id": "00000000-0000-0000-0000-000000000863",
"name": "Admin 2146"
}
},
"paid_amount": "0.0",
"remaining_amount": "200.00",
"status": "FULLY_PAID",
"total": "200.00",
"updated_datetime": "2026-05-15T08:17:44.343768Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTksImlhdCI6MTc3ODgzMzA1OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMmE2ODMzMmMtMjQzNS00NTUwLThhNmMtZjZjMzMyYTE0ZDBiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTQyMiIsInR5cCI6ImFjY2VzcyJ9.kawq9f5eNezgTX2rJO0YDG4gg3LXUz5e1BGa5ry2U6M
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 30e1a726c798d0000000000000000001-7761539896953a1a-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000301",
"name": "Company 1136",
"updated_datetime": "2026-05-15T08:17:39.104402Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1450@example.com",
"full_name": "FirstName2966 LastName2967",
"id": "00000000-0000-0000-0000-0000000005b5",
"role": {
"id": "00000000-0000-0000-0000-0000000005d8",
"name": "Admin 1495"
}
},
"custom_data": [],
"due_datetime": "2026-05-15T08:17:39.238405Z",
"id": "00000000-0000-0000-0000-000000000019",
"inserted_datetime": "2026-05-15T08:17:39.238779Z",
"invoice_datetime": "2026-05-15T08:17:39.238403Z",
"invoice_number": "Invoice #22",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000219",
"name": "B1666"
},
"cost_per_unit": "10.026",
"cost_per_unit_default": "5",
"id": "00000000-0000-0000-0000-000000000028",
"order_item_id": "4d5e5826-2cda-4caa-86ed-6f430f546df3",
"package": null,
"price": "290660.000000000",
"product": {
"id": "46dd7ceb-38d3-4f63-8010-571aa1010c68",
"name": "Product 1662",
"sku": "sku 1663",
"updated_datetime": "2026-05-15T08:17:39.057009Z"
},
"quantity": "1.000000000",
"returned_quantity": "1",
"total_cost_actual": "10.026",
"total_cost_default": "5"
}
],
"order": {
"id": "0ffa4c39-082f-4072-ac7e-ada3fc085ff3",
"order_number": "SO-0000001",
"status": "Processing",
"total": "581320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1450@example.com",
"full_name": "FirstName2966 LastName2967",
"id": "00000000-0000-0000-0000-0000000005b5",
"role": {
"id": "00000000-0000-0000-0000-0000000005d8",
"name": "Admin 1495"
}
},
"paid_amount": "0.0",
"remaining_amount": "32.00",
"status": "NOT_PAID",
"total": "32.00",
"updated_datetime": "2026-05-15T08:17:39.238779Z"
}
],
"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-000000000006/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTYsImlhdCI6MTc3ODgzMzA1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNGM0YWM5M2MtNGRlNy00YjQ5LWE1NGUtOTg2Njg0MmI0YjRkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTY0IiwidHlwIjoiYWNjZXNzIn0.f8P3Dc4TJqYNqaQEybLgWpEBREP8KeWxQfwTRdOE7DM
{
"amount": 100.01,
"description": "Payment for invoice",
"payment_datetime": "2020-01-01T00:00:00.000000Z",
"payment_method_id": "00000000-0000-0000-0000-000000000008",
"quickbooks_deposit_account_id": "QBD-123"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 8a2b081c7e76f0000000000000000001-93d852a8c93fb3e9-0
{
"data": {
"amount": "100",
"description": "Payment for invoice",
"id": "00000000-0000-0000-0000-000000000001",
"inserted_datetime": "2026-05-15T08:17:36.130247Z",
"invoice_id": "00000000-0000-0000-0000-000000000006",
"payment_date": "2020-01-01T00:00:00.000000Z",
"payment_method": {
"deleted_at": null,
"id": "00000000-0000-0000-0000-000000000008",
"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-000000000006/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTYsImlhdCI6MTc3ODgzMzA1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNGM0YWM5M2MtNGRlNy00YjQ5LWE1NGUtOTg2Njg0MmI0YjRkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTY0IiwidHlwIjoiYWNjZXNzIn0.f8P3Dc4TJqYNqaQEybLgWpEBREP8KeWxQfwTRdOE7DM
{
"amount": 100.01,
"description": "Payment for invoice",
"payment_datetime": "2020-01-01T00:00:00.000000Z",
"payment_method_id": "00000000-0000-0000-0000-000000000008",
"quickbooks_deposit_account_name": "QBD-NAME"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 8a2b081c7e76f0000000000000000001-6ff21767233e2653-0
{
"data": {
"amount": "100",
"description": "Payment for invoice",
"id": "00000000-0000-0000-0000-000000000002",
"inserted_datetime": "2026-05-15T08:17:36.321655Z",
"invoice_id": "00000000-0000-0000-0000-000000000006",
"payment_date": "2020-01-01T00:00:00.000000Z",
"payment_method": {
"deleted_at": null,
"id": "00000000-0000-0000-0000-000000000008",
"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-000000000022
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NjAsImlhdCI6MTc3ODgzMzA2MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDZiN2ZlNzUtMjNjMi00N2ZhLWI5MDAtMGExNDM3YTk1MTRkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTcwMCIsInR5cCI6ImFjY2VzcyJ9.hSaTlNwueCY9GucIIOspidkeCPomxauJ5oeNYQ0tz3s
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 55d063780746b8000000000000000001-22080f7e3ca03e2f-0
{
"data": {
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000003a6",
"name": "Company 1334",
"updated_datetime": "2026-05-15T08:17:40.609916Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1687@example.com",
"full_name": "FirstName3440 LastName3441",
"id": "00000000-0000-0000-0000-0000000006a6",
"role": {
"id": "00000000-0000-0000-0000-0000000006be",
"name": "Admin 1725"
}
},
"custom_data": [
{
"id": 40,
"name": "Custom Field 16",
"value": "Custom Field Value 1"
}
],
"due_datetime": "2026-05-15T08:17:40.732399Z",
"id": "00000000-0000-0000-0000-000000000022",
"inserted_datetime": "2026-05-15T08:17:40.733369Z",
"invoice_datetime": "2026-05-15T08:17:40.732397Z",
"invoice_number": "Invoice #31",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000029a",
"name": "B2058"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000039",
"order_item_id": "f0c88738-6578-4bb3-a574-1eb8bfd88065",
"package": null,
"price": "10.000000000",
"product": {
"id": "5099351a-bfe0-4019-937c-7e62807083a1",
"name": "Product 2056",
"sku": "sku 2057",
"updated_datetime": "2026-05-15T08:17:40.629421Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000029b",
"name": "B2061"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-00000000003a",
"order_item_id": "5119a3ae-520a-4c40-89c1-347d3382c164",
"package": null,
"price": "10.000000000",
"product": {
"id": "bc51a588-9ab9-4ef9-810c-44db8a6c6d8e",
"name": "Product 2059",
"sku": "sku 2060",
"updated_datetime": "2026-05-15T08:17:40.651098Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "ef01c8ac-421f-484b-97b5-a4c2e08731b0",
"order_number": "SO-56",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1687@example.com",
"full_name": "FirstName3440 LastName3441",
"id": "00000000-0000-0000-0000-0000000006a6",
"role": {
"id": "00000000-0000-0000-0000-0000000006be",
"name": "Admin 1725"
}
},
"paid_amount": "0.0",
"remaining_amount": null,
"status": "NOT_PAID",
"total": "200.00",
"updated_datetime": "2026-05-15T08:17:40.733369Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NjIsImlhdCI6MTc3ODgzMzA2MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYzcyYjQ3N2YtZDFiYi00MTYzLTg3ZjItMDUwYTViYjg3ZGNiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDYxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjAxNCIsInR5cCI6ImFjY2VzcyJ9.M9HfJOAFc81oLxzH4LSTT-ADJFfJwrkuIPUlHYIRL5E
{
"billing_location_id": "00000000-0000-0000-0000-0000000001d0",
"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": "318514f4-e8ab-4894-8b66-49d1b17361d7",
"quantity": "1.000000000"
},
{
"order_item_id": "58831f53-445b-4610-9d40-26415f14af6d",
"quantity": "10.000000000"
}
],
"order_id": "640fc51b-a7c7-4a70-b1bb-74cf2fcc118f"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 68ec27a309c1f8000000000000000001-9ba9b1a7f4b8b5a4-0
{
"data": {
"charges": [
{
"id": "fd539c10-b4f4-4c82-b5cb-2f6d7e3a729f",
"name": "C1",
"percent": "10.0000",
"price": "5.30",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "e8abd5d2-525d-47c8-a90d-fd08db164b91",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-00000000045c",
"name": "Company 1552",
"updated_datetime": "2026-05-15T08:17:42.840254Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-0000000007de",
"role": {
"id": "00000000-0000-0000-0000-0000000007f6",
"name": "Admin 2037"
}
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-000000000037",
"inserted_datetime": "2026-05-15T08:17:42.886067Z",
"invoice_datetime": "2020-01-01T00:00:00.000000Z",
"invoice_number": "INV-0000001",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000032f",
"name": "B1"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-00000000004d",
"order_item_id": "318514f4-e8ab-4894-8b66-49d1b17361d7",
"package": null,
"price": "3.000000000",
"product": {
"id": "3e48d6dd-e69e-4d4c-bcab-7a0bacb70bfc",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-15T08:17:42.851436Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000330",
"name": "B2"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-00000000004e",
"order_item_id": "58831f53-445b-4610-9d40-26415f14af6d",
"package": null,
"price": "5.000000000",
"product": {
"id": "e74c6b90-6c59-448e-911c-b343d934733d",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-05-15T08:17:42.860517Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "640fc51b-a7c7-4a70-b1bb-74cf2fcc118f",
"order_number": "SO-89",
"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-15T08:17:42.891017Z"
}
}
POST /invoices updates an invoice
POST /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NjQsImlhdCI6MTc3ODgzMzA2NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMGY2N2ExNDQtYzE0OS00YTRjLTlkZGYtZmNiMTRhZjEzMTlhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDYzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjE1MyIsInR5cCI6ImFjY2VzcyJ9.OEtWGoZ4DpZ7rucMefsMBa2xZJKGWtPvqlZ59ju0DYk
{
"billing_location_id": "00000000-0000-0000-0000-0000000001fd",
"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": "fd2c9f1a-b842-4642-ad7a-5a3c3bf8befd",
"quantity": "1.000000000"
},
{
"order_item_id": "def5b3a8-e805-4824-b5d5-5d1df66f8002",
"quantity": "10.000000000"
}
],
"order_id": "2b111fc8-4275-47dc-8a74-b37269a5cc90"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 309107f5a87e42000000000000000001-502fc20943748c71-0
{
"data": {
"charges": [
{
"id": "3c0be433-5d8a-4874-a3dc-2c1da81ab08e",
"name": "C1",
"percent": "10.0000",
"price": "5.30",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "2df4915f-cc40-45b1-8038-5e287362c7dd",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000004d5",
"name": "Company 1688",
"updated_datetime": "2026-05-15T08:17:44.704528Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000000869",
"role": {
"id": "00000000-0000-0000-0000-000000000883",
"name": "Admin 2178"
}
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-000000000045",
"inserted_datetime": "2026-05-15T08:17:44.754334Z",
"invoice_datetime": "2020-01-01T00:00:00.000000Z",
"invoice_number": "INV-0000001",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000387",
"name": "B1"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000066",
"order_item_id": "fd2c9f1a-b842-4642-ad7a-5a3c3bf8befd",
"package": null,
"price": "3.000000000",
"product": {
"id": "4c61d8d5-354d-4b3c-a9a9-a04e1ef6893f",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-15T08:17:44.720693Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000388",
"name": "B2"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000067",
"order_item_id": "def5b3a8-e805-4824-b5d5-5d1df66f8002",
"package": null,
"price": "5.000000000",
"product": {
"id": "faf5777d-156c-4023-beb3-f9172b66b193",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-05-15T08:17:44.730435Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "2b111fc8-4275-47dc-8a74-b37269a5cc90",
"order_number": "SO-115",
"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-15T08:17:44.761681Z"
}
}
POST /invoices updates an invoice
POST /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NjQsImlhdCI6MTc3ODgzMzA2NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMGY2N2ExNDQtYzE0OS00YTRjLTlkZGYtZmNiMTRhZjEzMTlhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDYzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjE1MyIsInR5cCI6ImFjY2VzcyJ9.OEtWGoZ4DpZ7rucMefsMBa2xZJKGWtPvqlZ59ju0DYk
{
"billing_location_id": "00000000-0000-0000-0000-0000000001fe",
"charges": [
{
"id": "3c0be433-5d8a-4874-a3dc-2c1da81ab08e",
"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-000000000045",
"invoice_datetime": "2020-01-02T00:00:00.000000Z",
"items": [
{
"id": "00000000-0000-0000-0000-000000000066",
"order_item_id": "fd2c9f1a-b842-4642-ad7a-5a3c3bf8befd",
"quantity": "1.000000000"
},
{
"order_item_id": "def5b3a8-e805-4824-b5d5-5d1df66f8002",
"quantity": "8.000000000"
}
],
"order_id": "2b111fc8-4275-47dc-8a74-b37269a5cc90"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 309107f5a87e42000000000000000001-f098b359cff29f13-0
{
"data": {
"charges": [
{
"id": "3c0be433-5d8a-4874-a3dc-2c1da81ab08e",
"name": "C1",
"percent": "10.0000",
"price": "4.30",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "f26549c2-321e-49c7-9ecc-42993da5885c",
"name": "C3",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000004d5",
"name": "Company 1688",
"updated_datetime": "2026-05-15T08:17:44.704528Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000000869",
"role": {
"id": "00000000-0000-0000-0000-000000000883",
"name": "Admin 2178"
}
},
"custom_data": [],
"due_datetime": "2020-01-28T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-000000000045",
"inserted_datetime": "2026-05-15T08:17:44.754334Z",
"invoice_datetime": "2020-01-02T00:00:00.000000Z",
"invoice_number": "INV-0000001",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000387",
"name": "B1"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000066",
"order_item_id": "fd2c9f1a-b842-4642-ad7a-5a3c3bf8befd",
"package": null,
"price": "3.000000000",
"product": {
"id": "4c61d8d5-354d-4b3c-a9a9-a04e1ef6893f",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-15T08:17:44.720693Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000388",
"name": "B2"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000068",
"order_item_id": "def5b3a8-e805-4824-b5d5-5d1df66f8002",
"package": null,
"price": "5.000000000",
"product": {
"id": "faf5777d-156c-4023-beb3-f9172b66b193",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-05-15T08:17:44.730435Z"
},
"quantity": "8.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "2b111fc8-4275-47dc-8a74-b37269a5cc90",
"order_number": "SO-115",
"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-15T08:17:44.875713Z"
}
}
POST /invoices reports various errors correctly on update
POST /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NjIsImlhdCI6MTc3ODgzMzA2MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOWY4NzIyNmEtZWNiYy00NzNiLWFmZjYtY2UwMWJhMjBkNGQ0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDYxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTk0NCIsInR5cCI6ImFjY2VzcyJ9.TtFSAUNmly-OadoI9Mgd0XMnERj37IDbsLxi_y-Orlw
{
"billing_location_id": "00000000-0000-0000-0000-0000000001bf",
"charges": [
{
"name": "C1",
"percent": "-1000.0000",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"due_datetime": "2020-01-30T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-000000000033",
"invoice_datetime": "2020-01-01T00:00:00.000000Z",
"items": [
{
"order_item_id": "00000000-0000-0000-0000-000000000000",
"quantity": "15.000"
},
{
"order_item_id": "a04a7c2c-34c7-4679-ba84-2e16d38fdceb",
"quantity": "19.000"
}
],
"order_id": "d9722bbb-068c-4e4d-8b73-088c11b942c0"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: efe28f3a8a95d0000000000000000001-1d20f392f3496af4-0
{
"errors": [
{
"context": {
"id": "689c7b46-e7bc-49f0-9f84-ec1c458b9321"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTUsImlhdCI6MTc3ODgzMzA1NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTk4N2Y4MzAtNWY2MC00MmU0LTk4MmQtNGIwNzc1NDBiNjIxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjUzIiwidHlwIjoiYWNjZXNzIn0.5NbBpAF3IvtFfvpDswK2YrPDPm9L-714Kt7DtI78kS0
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 3aa0797b3f84fa000000000000000001-b8ddbb6198129910-0
{
"data": [
{
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000000d2",
"deleted_at": null,
"id": "00000000-0000-0000-0000-000000000038",
"license": null,
"license_id": null,
"name": "Place 55"
},
{
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000000d2",
"deleted_at": null,
"id": "00000000-0000-0000-0000-000000000039",
"license": {
"id": "00000000-0000-0000-0000-000000000013",
"license_number": "CDPH-00000018"
},
"license_id": "00000000-0000-0000-0000-000000000013",
"name": "Place 56"
}
],
"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 |
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NjksImlhdCI6MTc3ODgzMzA2OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTFkZWUwZWEtMDBlZC00OTBkLThiNTktZTQxZTdhZjQ2OWIxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDY4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjM1MyIsInR5cCI6ImFjY2VzcyJ9.cX0kJHGJp43iW60ywjGGcij857gjSmKSfgfxmtpPY7c
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 948389b254fe68000000000000000001-acce93a05e8f3dc7-0
{
"data": [
{
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000755",
"id": "00000000-0000-0000-0000-000000000235",
"license_id": null,
"name": "Place 563"
},
"biotrack_id": null,
"charges": [
{
"id": "0dc6e3b1-55f9-4ac5-aee7-5039d0168c8e",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000000573",
"name": "Company 1875",
"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-00000000092f",
"role": {
"id": "00000000-0000-0000-0000-00000000094c",
"name": "Admin 2379"
}
},
"custom_data": [
{
"id": 45,
"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": "894b4727-4524-43c4-b5d1-9b6417f0c553",
"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-0000000003fe",
"name": "B1"
},
"compliance_quantity": "10.0000",
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "01e9e2ad-e2fc-4c70-b9fc-4464638db689",
"is_sample": true,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000755",
"id": "00000000-0000-0000-0000-000000000235",
"license_id": null,
"name": "Place 563"
},
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000000187",
"id": "00000000-0000-0000-0000-000000000061",
"metrc_label": "ABCDEF012345670000000187",
"status": "active"
},
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "11918416-7060-4300-ba66-5d5c949cf199",
"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": "f598642b-8762-4d05-b6c8-1fdb3462f677",
"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-000000000930",
"role": {
"id": "00000000-0000-0000-0000-00000000094d",
"name": "Admin 2380"
}
},
"payment_term_name": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000755",
"id": "00000000-0000-0000-0000-000000000235",
"license_id": null,
"name": "Place 563"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NjcsImlhdCI6MTc3ODgzMzA2NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNGNkNDA3ZTEtNzhmMC00ZDY2LTgwM2UtMmYyNDcyNGJkZGZkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDY2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjI1MCIsInR5cCI6ImFjY2VzcyJ9.t4Q9j-Pe4a-HHbCG-CGOH0mTAdszHumXKWNsRGU12rY
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: b0983916465d98000000000000000001-27ee5d6af3ce6ec2-0
{
"data": [
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000512",
"name": "Company 1764",
"updated_datetime": "2026-05-15T08:17:47.078499Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2227@example.com",
"full_name": "FirstName4520 LastName4521",
"id": "00000000-0000-0000-0000-0000000008cf",
"role": {
"id": "00000000-0000-0000-0000-0000000008ec",
"name": "Admin 2283"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-05-15T08:17:47.079408Z",
"external_notes": null,
"id": "301337ed-8f19-4c23-ba0a-9ad0a3e7609b",
"inserted_datetime": "2026-05-15T08:17:47.098000Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000003b1",
"name": "B2881"
},
"compliance_quantity": null,
"cost_per_unit": "10.026",
"cost_per_unit_default": "5",
"id": "e7933ed7-3e37-4e25-98ec-585821ab8d02",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000006e6",
"id": "00000000-0000-0000-0000-00000000021d",
"license_id": null,
"name": "Place 539"
},
"package": null,
"price": "297680.000000000",
"price_base": "297680",
"product": {
"id": "4ddff753-4293-4ff4-919d-e78c5859c28d",
"name": "Product 2879",
"sku": "sku 2880",
"updated_datetime": "2026-05-15T08:17:47.031916Z"
},
"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-15T08:17:47.079411Z",
"order_number": "SO-0000001",
"owner": null,
"payment_term_name": null,
"shipping_location": null,
"status": "PROCESSING",
"total": "595360.00",
"updated_datetime": "2026-05-15T08:17:47.098000Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NjEsImlhdCI6MTc3ODgzMzA2MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOWMxZGU0NWItYjA2NC00NzhlLTk5MjUtN2E3MTk1NTg2Y2JjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDYwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg0OSIsInR5cCI6ImFjY2VzcyJ9.p12Wua2uVo09lYkB_7N3IE_5tdmgi8RLEqUb004T8W0
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: bdb00e6de03890000000000000000001-c48f125251370af8-0
{
"data": [
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000423",
"name": "Company 1483",
"updated_datetime": "2026-05-15T08:17:42.013473Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1893@example.com",
"full_name": "FirstName3852 LastName3853",
"id": "00000000-0000-0000-0000-000000000775",
"role": {
"id": "00000000-0000-0000-0000-00000000078b",
"name": "Admin 1930"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-05-15T08:17:42.034825Z",
"external_notes": null,
"id": "2260ddfe-e483-4acb-93df-e8e7a615dc6c",
"inserted_datetime": "2026-05-15T08:17:42.035234Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000002fb",
"name": "B2347"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "9edee77b-1b9d-44f7-b0d7-0aff79cf1d26",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "3e4e9a48-523c-4803-9414-98e2dafa01ea",
"name": "Product 2345",
"sku": "sku 2346",
"updated_datetime": "2026-05-15T08:17:42.047955Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000002fd",
"name": "B2353"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "07e550e4-8e60-48c7-92de-88f8cfab222f",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "d147566f-0b8f-4cfd-8f45-e592c27a8878",
"name": "Product 2350",
"sku": "sku 2351",
"updated_datetime": "2026-05-15T08:17:42.061669Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000002fe",
"name": "B2356"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "005d63f8-59f4-495c-9500-8bc5238e6f23",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "534d19c9-afd4-46ba-b4eb-af70e4634d9f",
"name": "Product 2354",
"sku": "sku 2355",
"updated_datetime": "2026-05-15T08:17:42.076859Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000300",
"name": "B2360"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "12b4cbce-6978-48d5-9f48-3c2005ff0100",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "6e1b77ab-983a-4431-98fe-30237b360841",
"name": "Product 2358",
"sku": "sku 2359",
"updated_datetime": "2026-05-15T08:17:42.091499Z"
},
"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-77",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1893@example.com",
"full_name": "FirstName3852 LastName3853",
"id": "00000000-0000-0000-0000-000000000775",
"role": {
"id": "00000000-0000-0000-0000-00000000078b",
"name": "Admin 1930"
}
},
"payment_term_name": null,
"shipping_location": null,
"status": "CANCELED",
"total": "320.00",
"updated_datetime": "2026-05-15T08:17:42.118287Z"
},
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000000041a",
"name": "Company 1472",
"updated_datetime": "2026-05-15T08:17:41.904329Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1879@example.com",
"full_name": "FirstName3824 LastName3825",
"id": "00000000-0000-0000-0000-000000000767",
"role": {
"id": "00000000-0000-0000-0000-00000000077c",
"name": "Admin 1915"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-05-15T08:17:41.928356Z",
"external_notes": null,
"id": "782f8b9a-6499-427d-935d-4abe3313a953",
"inserted_datetime": "2026-05-15T08:17:41.929574Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000002f4",
"name": "B2326"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "d3cbd73b-ea8f-40ae-918d-412653c1b7f1",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "f144bed7-1247-45a5-a7c6-918ea2f36144",
"name": "Product 2324",
"sku": "sku 2325",
"updated_datetime": "2026-05-15T08:17:41.937689Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000002f5",
"name": "B2329"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "da557e03-426e-4009-857e-0c09bd164946",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "845e3e7a-65eb-431e-951b-1db5da354482",
"name": "Product 2327",
"sku": "sku 2328",
"updated_datetime": "2026-05-15T08:17:41.944728Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000002f6",
"name": "B2332"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "98bc8d3d-a5ac-46ea-9237-a6e1f2751138",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "5ae0aeb1-d303-4946-97ac-0a8124912148",
"name": "Product 2330",
"sku": "sku 2331",
"updated_datetime": "2026-05-15T08:17:41.956982Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000002f7",
"name": "B2337"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "689c3579-179e-4ea3-a407-6bcc3630a168",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "8e107443-0d68-4298-947f-7278bdeb0243",
"name": "Product 2335",
"sku": "sku 2336",
"updated_datetime": "2026-05-15T08:17:41.970268Z"
},
"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-75",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1879@example.com",
"full_name": "FirstName3824 LastName3825",
"id": "00000000-0000-0000-0000-000000000767",
"role": {
"id": "00000000-0000-0000-0000-00000000077c",
"name": "Admin 1915"
}
},
"payment_term_name": null,
"shipping_location": null,
"status": "COMPLETED",
"total": "320.00",
"updated_datetime": "2026-05-15T08:17:42.002399Z"
},
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000403",
"name": "Company 1449",
"updated_datetime": "2026-05-15T08:17:41.687910Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1835@example.com",
"full_name": "FirstName3736 LastName3737",
"id": "00000000-0000-0000-0000-00000000073b",
"role": {
"id": "00000000-0000-0000-0000-00000000074f",
"name": "Admin 1870"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-05-15T08:17:41.718171Z",
"external_notes": null,
"id": "a1e717f6-14e6-4a67-a0a6-c5da1d6643ab",
"inserted_datetime": "2026-05-15T08:17:41.718678Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000002e6",
"name": "B2286"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "028c124a-08b5-4023-ba5f-95b5ed86800c",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "c5c359d1-7d06-4a18-9bfa-ae80ef3ad187",
"name": "Product 2284",
"sku": "sku 2285",
"updated_datetime": "2026-05-15T08:17:41.728786Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000002e7",
"name": "B2289"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "9fcefa87-1284-4a17-b056-5e25a6ca3b7b",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "b1284382-dae7-4643-8c30-88d0103d1737",
"name": "Product 2287",
"sku": "sku 2288",
"updated_datetime": "2026-05-15T08:17:41.741474Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000002e8",
"name": "B2292"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "538f0ede-e814-43aa-915d-aa6b418e47cd",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "795149d7-b7ac-4134-9664-9cf99e977da9",
"name": "Product 2290",
"sku": "sku 2291",
"updated_datetime": "2026-05-15T08:17:41.758606Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000002ea",
"name": "B2298"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "f99b015b-8c6a-4ff4-a149-672ba484023d",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "6f51f664-3c52-40f3-9f00-cc952eca461d",
"name": "Product 2296",
"sku": "sku 2297",
"updated_datetime": "2026-05-15T08:17:41.774487Z"
},
"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-68",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1835@example.com",
"full_name": "FirstName3736 LastName3737",
"id": "00000000-0000-0000-0000-00000000073b",
"role": {
"id": "00000000-0000-0000-0000-00000000074f",
"name": "Admin 1870"
}
},
"payment_term_name": null,
"shipping_location": null,
"status": "COMPLETED",
"total": "320.00",
"updated_datetime": "2026-05-15T08:17:41.794754Z"
}
],
"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 |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A list of orders | Orders |
Get an order
GET /orders/:id returns the expected order
GET /public/v1/orders/fda4f8cc-5258-4d64-9a93-ae4b0267eba5
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NjcsImlhdCI6MTc3ODgzMzA2NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiYzEwMTAyYzItYzA0NS00OGU1LWJlZTUtNTgyMDEzYmQwY2FiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDY2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjI3NiIsInR5cCI6ImFjY2VzcyJ9.294Pp4a2i_5qmvQN2ifdIl1yVkEhUoUEcmmNgMyfvno
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 8b5298f1f38ad8000000000000000001-8e603048bc037c35-0
{
"data": {
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000000051e",
"name": "Company 1782",
"updated_datetime": "2026-05-15T08:17:47.731057Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2248@example.com",
"full_name": "FirstName4562 LastName4563",
"id": "00000000-0000-0000-0000-0000000008e5",
"role": {
"id": "00000000-0000-0000-0000-000000000902",
"name": "Admin 2305"
}
},
"custom_data": [
{
"id": 44,
"name": "Custom Field 20",
"value": "Custom Field Value 1"
}
],
"delivery_datetime": null,
"due_datetime": "2026-05-15T08:17:47.748765Z",
"external_notes": null,
"id": "fda4f8cc-5258-4d64-9a93-ae4b0267eba5",
"inserted_datetime": "2026-05-15T08:17:47.749200Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000003ba",
"name": "B2908"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "acf3b884-5832-4e75-a560-4e1a11eddb7e",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "c09bbb93-a40d-4c00-a0b9-e9b69bf5f7e0",
"name": "Product 2906",
"sku": "sku 2907",
"updated_datetime": "2026-05-15T08:17:47.761199Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000003bb",
"name": "B2911"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "b0f26d20-e033-44de-b411-761b29927c79",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "1ef29c05-69a2-4528-a5f2-9406a78b34e9",
"name": "Product 2909",
"sku": "sku 2910",
"updated_datetime": "2026-05-15T08:17:47.777595Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000003bc",
"name": "B2914"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "7017b6f7-7599-4c92-8891-02f0e5d24724",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "583b23b3-8a71-4edb-b030-701a0fc0d4df",
"name": "Product 2912",
"sku": "sku 2913",
"updated_datetime": "2026-05-15T08:17:47.787461Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000003bd",
"name": "B2917"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "cc96213d-5e02-413c-912b-016b099a4881",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "5f0af4cb-a168-4050-96f2-3d402c44f626",
"name": "Product 2915",
"sku": "sku 2916",
"updated_datetime": "2026-05-15T08:17:47.804293Z"
},
"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-15T08:17:47.748764Z",
"order_number": "SO-129",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-2248@example.com",
"full_name": "FirstName4562 LastName4563",
"id": "00000000-0000-0000-0000-0000000008e5",
"role": {
"id": "00000000-0000-0000-0000-000000000902",
"name": "Admin 2305"
}
},
"payment_term_name": null,
"shipping_location": null,
"status": "COMPLETED",
"total": "320.00",
"updated_datetime": "2026-05-15T08:17:47.839388Z"
}
}
GET /orders/:id returns cost data for order items
GET /public/v1/orders/d5337cbe-ffc6-49e4-bcdd-3d96f04fd242
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NjIsImlhdCI6MTc3ODgzMzA2MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYTQ3MzIzMTktYWMyOC00ODExLTg5NjUtYzE4YzhlMDczY2U2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDYxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTk5MiIsInR5cCI6ImFjY2VzcyJ9.CONIAAMUhRnGpjIXOhWAPyeXfO8aKTZH6X-Iyo7vG_s
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: bf503cec5340b8000000000000000001-dbf7d9fb3da24abf-0
{
"data": {
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000454",
"name": "Company 1542",
"updated_datetime": "2026-05-15T08:17:42.701808Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1981@example.com",
"full_name": "FirstName4028 LastName4029",
"id": "00000000-0000-0000-0000-0000000007cf",
"role": {
"id": "00000000-0000-0000-0000-0000000007e7",
"name": "Admin 2022"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-05-15T08:17:42.703161Z",
"external_notes": null,
"id": "d5337cbe-ffc6-49e4-bcdd-3d96f04fd242",
"inserted_datetime": "2026-05-15T08:17:42.714535Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000323",
"name": "B2455"
},
"compliance_quantity": null,
"cost_per_unit": "10.026",
"cost_per_unit_default": "5",
"id": "57153f62-82d5-4037-8d01-4d68c1df09bc",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000602",
"id": "00000000-0000-0000-0000-0000000001cb",
"license_id": null,
"name": "Place 457"
},
"package": null,
"price": "145834.000000000",
"price_base": "145834",
"product": {
"id": "79dd3603-a3e0-4685-8ee1-8b7b152fc87e",
"name": "Product 2451",
"sku": "sku 2452",
"updated_datetime": "2026-05-15T08:17:42.643415Z"
},
"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-15T08:17:42.703163Z",
"order_number": "SO-0000001",
"owner": null,
"payment_term_name": null,
"shipping_location": null,
"status": "PROCESSING",
"total": "291668.00",
"updated_datetime": "2026-05-15T08:17:42.714535Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NjcsImlhdCI6MTc3ODgzMzA2NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDFmMjE4ZjgtOGE0Mi00MWUxLTgyODUtYTcxZWI1ZDVmZGNiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDY2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjI2NiIsInR5cCI6ImFjY2VzcyJ9.pQ2YhAKn8cO56C5odxLb6lnQ7TO4blnrbmvnwfMRy-I
{
"billing_location_id": "00000000-0000-0000-0000-000000000221",
"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-000000000516",
"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-000000000221",
"price_base": "10.000000000",
"product_id": "089470f4-1375-463d-b2df-055e934d0730",
"quantity": "1.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"owner_id": "00000000-0000-0000-0000-0000000008da",
"shipping_location_id": "00000000-0000-0000-0000-000000000221",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 5cc4d755fbaff8000000000000000001-6f4884ff9c9d95fe-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000006ee",
"id": "00000000-0000-0000-0000-000000000221",
"license_id": "00000000-0000-0000-0000-0000000000a7",
"name": "Place 543"
},
"biotrack_id": null,
"charges": [
{
"id": "9ea93f77-b7fa-41f0-8309-052ae96d2add",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "6755f71a-e6af-4dd7-9e4d-debba73c805b",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000000516",
"name": "Company 1771",
"updated_datetime": "2026-05-15T08:17:47.313287Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-0000000008da",
"role": {
"id": "00000000-0000-0000-0000-0000000008f6",
"name": "Admin 2293"
}
},
"custom_data": [
{
"id": 43,
"name": "Custom Field 19",
"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": "36aeb63e-9e70-46ea-9fd0-121de4b1d0ee",
"inserted_datetime": "2026-05-15T08:17:47.378426Z",
"internal_notes": "Internal notes for this order",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000003b3",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "32660fb9-87be-406a-acc0-f671e1a74a3b",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000006ee",
"id": "00000000-0000-0000-0000-000000000221",
"license_id": "00000000-0000-0000-0000-0000000000a7",
"name": "Place 543"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "089470f4-1375-463d-b2df-055e934d0730",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-15T08:17:47.344541Z"
},
"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-0000000008da",
"role": {
"id": "00000000-0000-0000-0000-0000000008f6",
"name": "Admin 2293"
}
},
"payment_term_name": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000006ee",
"id": "00000000-0000-0000-0000-000000000221",
"license_id": "00000000-0000-0000-0000-0000000000a7",
"name": "Place 543"
},
"status": "PROCESSING",
"total": "6.00",
"updated_datetime": "2026-05-15T08:17:47.416835Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NjYsImlhdCI6MTc3ODgzMzA2NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTMxNmJhZjctYzFmMS00YzZmLTg2NWUtNjBkOGYwODQyNTlhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDY1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjIzNyIsInR5cCI6ImFjY2VzcyJ9.d2PJHTNXQWmk-ox-aMaOaUAYfA9cFiGanNQusyt7Awo
{
"billing_location_id": "00000000-0000-0000-0000-00000000021a",
"charges": [],
"company_id": "00000000-0000-0000-0000-00000000050b",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000000021a",
"price_base": "10.000000000",
"product_id": "ba2d61f4-6e3d-405e-9f55-938c044ed619",
"quantity": "1.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-00000000021a",
"status": "PROCESSING"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 19671daa83d97f000000000000000001-b8d116a8c8dbd156-0
{
"errors": [
{
"context": {
"id": "12d808b0-7e69-479d-aa24-36c3e0bb4fb8"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NjYsImlhdCI6MTc3ODgzMzA2NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTMxNmJhZjctYzFmMS00YzZmLTg2NWUtNjBkOGYwODQyNTlhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDY1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjIzNyIsInR5cCI6ImFjY2VzcyJ9.d2PJHTNXQWmk-ox-aMaOaUAYfA9cFiGanNQusyt7Awo
{
"billing_location_id": "00000000-0000-0000-0000-00000000021a",
"blaze_payment_type": "CASH",
"charges": [],
"company_id": "00000000-0000-0000-0000-00000000050b",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000000021a",
"price_base": "10.000000000",
"product_id": "ba2d61f4-6e3d-405e-9f55-938c044ed619",
"quantity": "1.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-00000000021a",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 19671daa83d97f000000000000000001-53bb8867c1de17b5-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000006dd",
"id": "00000000-0000-0000-0000-00000000021a",
"license_id": "00000000-0000-0000-0000-0000000000a4",
"name": "Place 536"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000000050b",
"name": "Company 1754",
"updated_datetime": "2026-05-15T08:17:46.564232Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2209@example.com",
"full_name": "FirstName4484 LastName4485",
"id": "00000000-0000-0000-0000-0000000008bd",
"role": {
"id": "00000000-0000-0000-0000-0000000008d9",
"name": "Admin 2264"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "8d0ff883-58b8-4ea0-8e3f-ebf2857886b5",
"inserted_datetime": "2026-05-15T08:17:46.651826Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000003ad",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "85f777c4-a770-4a2e-b81a-46c0cfe84337",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000006dd",
"id": "00000000-0000-0000-0000-00000000021a",
"license_id": "00000000-0000-0000-0000-0000000000a4",
"name": "Place 536"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "ba2d61f4-6e3d-405e-9f55-938c044ed619",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-15T08:17:46.598947Z"
},
"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-0000000006dd",
"id": "00000000-0000-0000-0000-00000000021a",
"license_id": "00000000-0000-0000-0000-0000000000a4",
"name": "Place 536"
},
"status": "PROCESSING",
"total": "10.00",
"updated_datetime": "2026-05-15T08:17:46.651826Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NjgsImlhdCI6MTc3ODgzMzA2OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTdiZjA4MDktOTQ4ZC00N2MwLThlNDctNjQ1NmI2ZTAxMGUwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDY3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjMyMSIsInR5cCI6ImFjY2VzcyJ9._obM8kpWUPhPsVxLckKRVqfzNph3xNak473fyhJem_0
{
"billing_location_id": "00000000-0000-0000-0000-00000000022f",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000000556",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000000022f",
"position": 1,
"price_base": "100.000000000",
"product_id": "5a42b1f4-174c-4f85-a82f-31cf51f3e519",
"quantity": "80.000000000"
},
{
"location_id": "00000000-0000-0000-0000-00000000022f",
"position": 2,
"price_base": "200.000000000",
"product_id": "5a42b1f4-174c-4f85-a82f-31cf51f3e519",
"quantity": "10.000000000"
},
{
"location_id": "00000000-0000-0000-0000-00000000022f",
"position": 3,
"price_base": "300.000000000",
"product_id": "6097714e-7c30-4d3c-9597-ec7db2dca923",
"quantity": "20.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-00000000022f",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: bfe03c98d6dd40000000000000000001-cc5bb33f51fbc374-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000735",
"id": "00000000-0000-0000-0000-00000000022f",
"license_id": "00000000-0000-0000-0000-0000000000aa",
"name": "Place 557"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000556",
"name": "Company 1842",
"updated_datetime": "2026-05-15T08:17:48.837394Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2292@example.com",
"full_name": "FirstName4650 LastName4651",
"id": "00000000-0000-0000-0000-000000000911",
"role": {
"id": "00000000-0000-0000-0000-00000000092e",
"name": "Admin 2349"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "8d1afe64-d8c3-4d09-8033-cf88588d45a9",
"inserted_datetime": "2026-05-15T08:17:48.937896Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000003e7",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "a224647b-1089-486b-87fe-1c92f21b1207",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000735",
"id": "00000000-0000-0000-0000-00000000022f",
"license_id": "00000000-0000-0000-0000-0000000000aa",
"name": "Place 557"
},
"package": null,
"price": "80.000000000",
"price_base": "100.000000000",
"product": {
"id": "5a42b1f4-174c-4f85-a82f-31cf51f3e519",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-15T08:17:48.860902Z"
},
"quantity": "80.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000003e7",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "29a5adcd-cc2a-4222-8a36-414d54b88bac",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000735",
"id": "00000000-0000-0000-0000-00000000022f",
"license_id": "00000000-0000-0000-0000-0000000000aa",
"name": "Place 557"
},
"package": null,
"price": "180.000000000",
"price_base": "200.000000000",
"product": {
"id": "5a42b1f4-174c-4f85-a82f-31cf51f3e519",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-15T08:17:48.860902Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000003e8",
"name": "B2"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "5f3b15c7-64bd-4b92-a651-a1fd18e4b9cc",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000735",
"id": "00000000-0000-0000-0000-00000000022f",
"license_id": "00000000-0000-0000-0000-0000000000aa",
"name": "Place 557"
},
"package": null,
"price": "270.000000000",
"price_base": "300.000000000",
"product": {
"id": "6097714e-7c30-4d3c-9597-ec7db2dca923",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-05-15T08:17:48.878523Z"
},
"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-000000000735",
"id": "00000000-0000-0000-0000-00000000022f",
"license_id": "00000000-0000-0000-0000-0000000000aa",
"name": "Place 557"
},
"status": "PROCESSING",
"total": "13600.00",
"updated_datetime": "2026-05-15T08:17:48.981792Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTUsImlhdCI6MTc3ODgzMzA1NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNGM1ZWEwNzgtN2FkNi00ZTk1LTgxOGYtYWNlZGRkNjgyNjhjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NDQ5IiwidHlwIjoiYWNjZXNzIn0.I0HhPp1ZMRv52pZnt9NOO8o0AkRtkfegS86yOVtgEso
{
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"batch_id": "00000000-0000-0000-0000-000000000060",
"location_id": "00000000-0000-0000-0000-00000000005b",
"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: c60af6e12eac98000000000000000001-477a4e157d7cec82-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-0000000001c1",
"role": {
"id": "00000000-0000-0000-0000-0000000001e3",
"name": "Admin 482"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "5024f5f2-2059-4fca-8e48-5dd76e0b296b",
"inserted_datetime": "2026-05-15T08:17:35.918130Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000060",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "277beb62-1d2f-4528-a409-2c47ce66cdc4",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000174",
"id": "00000000-0000-0000-0000-00000000005b",
"license_id": "00000000-0000-0000-0000-000000000022",
"name": "Place 90"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "7069c7f9-093e-4f5d-a7de-d6fd799cdb3e",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-15T08:17:35.881728Z"
},
"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-15T08:17:35.918130Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NjYsImlhdCI6MTc3ODgzMzA2NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNGI0ZWI5OTgtMjNjMi00YmY0LWFmNTUtMjRmY2EyOTQyMGE5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDY1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjIyOSIsInR5cCI6ImFjY2VzcyJ9.wZA_qAR5BWknx-Ai3J0AFS7JbmeRkAp3dGGmjEmYfRI
{
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000000218",
"price_base": "10.000000000",
"product_id": "60fa3ab0-b635-4212-baad-dd02bdcd7221",
"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: 024d279bfbc37fc00000000000000001-af5ce1bd93682df6-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-0000000008b5",
"role": {
"id": "00000000-0000-0000-0000-0000000008d1",
"name": "Admin 2256"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "df51dba4-cd2d-4fd4-9315-279c9f38db1d",
"inserted_datetime": "2026-05-15T08:17:46.349826Z",
"internal_notes": null,
"items": [
{
"batch": null,
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "c5ff70e7-2bfc-4322-aa25-c923742a712f",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000006d9",
"id": "00000000-0000-0000-0000-000000000218",
"license_id": "00000000-0000-0000-0000-0000000000a2",
"name": "Place 534"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "60fa3ab0-b635-4212-baad-dd02bdcd7221",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-15T08:17:46.334622Z"
},
"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-15T08:17:46.349826Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NjUsImlhdCI6MTc3ODgzMzA2NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMmQ2ZjZkYzUtZDA2Ny00ZjMxLWFmOGItMjNjNGVmZGRhNDdlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDY0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjE3MiIsInR5cCI6ImFjY2VzcyJ9.TyGUJISNcS00kiT63ShT7-QqqxUcIKCfA_tJvkR1XDo
{
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"compliance_quantity": "1.0000",
"is_sample": true,
"location_id": "00000000-0000-0000-0000-000000000204",
"package_id": "00000000-0000-0000-0000-00000000005e",
"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: 842692e6caa138000000000000000001-cfcd106208e5b491-0
{
"data": {
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": null,
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2149@example.com",
"full_name": "FirstName4364 LastName4365",
"id": "00000000-0000-0000-0000-00000000087c",
"role": {
"id": "00000000-0000-0000-0000-000000000896",
"name": "Admin 2197"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "d808bfb5-7328-43e3-827a-830d343ebe57",
"inserted_datetime": "2026-05-15T08:17:45.260477Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000393",
"name": "B1"
},
"compliance_quantity": "1.0000",
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "ac5f5091-08f2-4492-9388-f428f501eed5",
"is_sample": true,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000006ac",
"id": "00000000-0000-0000-0000-000000000204",
"license_id": "00000000-0000-0000-0000-000000000097",
"name": "Place 514"
},
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000000180",
"id": "00000000-0000-0000-0000-00000000005e",
"metrc_label": "ABCDEF012345670000000180",
"status": "selling"
},
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "2372ece0-1f7e-4d93-b4ce-0b38d07c2f44",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-15T08:17:45.158718Z"
},
"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-15T08:17:45.260477Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NjQsImlhdCI6MTc3ODgzMzA2NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGY3Y2YxZjktM2M2MC00MTU3LThkNDMtN2M2ZjM1NzVjM2JmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDYzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjE1OCIsInR5cCI6ImFjY2VzcyJ9.ORkyAqc_qri6grVG8s7zGUdbVaaasP3K_KPf0SIXUjc
{
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-0000000001ff",
"price_base": "10.000000000",
"product_id": "177e0543-adf4-4c9e-86a5-5c2c7ecb75ec",
"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: ad9043fb6b3eb8000000000000000001-dc645e7a061642be-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-00000000086e",
"role": {
"id": "00000000-0000-0000-0000-000000000888",
"name": "Admin 2183"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "48c52f78-201b-421a-948a-c29c9aef2e71",
"inserted_datetime": "2026-05-15T08:17:44.950807Z",
"internal_notes": null,
"items": [
{
"batch": null,
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "93e1b62e-e26a-45d6-a627-c8842ea117dd",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000069d",
"id": "00000000-0000-0000-0000-0000000001ff",
"license_id": "00000000-0000-0000-0000-000000000095",
"name": "Place 509"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "177e0543-adf4-4c9e-86a5-5c2c7ecb75ec",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-15T08:17:44.940658Z"
},
"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-15T08:17:44.950807Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTYsImlhdCI6MTc3ODgzMzA1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTMzNWVhZDUtNWMyNC00MmE0LTlkZTEtOTEwMGQ1YTJhMDZiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjY1IiwidHlwIjoiYWNjZXNzIn0.yLipUAOSpnDtbXuYhJKBG_s7KyupX1fWQVE7-RAXh8A
{
"billing_location_id": "00000000-0000-0000-0000-000000000082",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000000139",
"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": "de2b028b-e420-4fc0-8001-4dc0f95b9d87",
"location_id": "00000000-0000-0000-0000-000000000082",
"package_id": "00000000-0000-0000-0000-00000000002c",
"price_base": "10.000000000",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000000082",
"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-000000000299",
"shipping_location_id": "00000000-0000-0000-0000-000000000082",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 1f6ea3768f5621000000000000000001-9a01620f5203cd05-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000223",
"id": "00000000-0000-0000-0000-000000000082",
"license_id": "00000000-0000-0000-0000-00000000002f",
"name": "Place 129"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000139",
"name": "Company 556",
"updated_datetime": "2026-05-15T08:17:36.302911Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000000299",
"role": {
"id": "00000000-0000-0000-0000-0000000002c0",
"name": "Admin 703"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "4ed2386d-9246-45bc-bc7b-2717b124ceac",
"inserted_datetime": "2026-05-15T08:17:36.450564Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000099",
"name": "B2"
},
"compliance_quantity": "1.0000",
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "de2b028b-e420-4fc0-8001-4dc0f95b9d87",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000223",
"id": "00000000-0000-0000-0000-000000000082",
"license_id": "00000000-0000-0000-0000-00000000002f",
"name": "Place 129"
},
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000000080",
"id": "00000000-0000-0000-0000-00000000002c",
"metrc_label": "ABCDEF012345670000000080",
"status": "selling"
},
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "11028902-368a-4b06-838c-bae0ddcaea28",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-15T08:17:36.327905Z"
},
"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-000000000299",
"role": {
"id": "00000000-0000-0000-0000-0000000002c0",
"name": "Admin 703"
}
},
"payment_term_name": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000223",
"id": "00000000-0000-0000-0000-000000000082",
"license_id": "00000000-0000-0000-0000-00000000002f",
"name": "Place 129"
},
"status": "PROCESSING",
"total": "10.00",
"updated_datetime": "2026-05-15T08:17:36.571744Z"
}
}
POST /public/v1/orders updates an order
POST /public/v1/orders
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NjQsImlhdCI6MTc3ODgzMzA2NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTA1ZjFhYzktMzhjZS00YjcyLWFjYWYtNDY5MzE1MjAxN2Y5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDYzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjExMyIsInR5cCI6ImFjY2VzcyJ9.BUC_nGKppa4ZMPJOQ_dP3wZb3HGl_AqvCJWz5BZ4nIU
{
"billing_location_id": "00000000-0000-0000-0000-0000000001f1",
"charges": [
{
"id": "1033d377-a5b0-4ead-8166-253b0bcacffb",
"name": "C1",
"percent": "10.0000",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "491cbfdd-2929-4000-bf89-f2b6fc673394",
"name": "C2",
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company_id": "00000000-0000-0000-0000-0000000004b0",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": "gonna make you sweat",
"id": "249f1cb8-b6a7-4560-a8eb-5e5e1c56cef5",
"items": [
{
"id": "566655f5-d2ae-42f2-94a0-8650ac8ca337",
"is_sample": true,
"location_id": "00000000-0000-0000-0000-0000000001f1",
"price_base": "10.000000000",
"product_id": "d21dc4b4-8020-4e6a-9c21-7ea8c2060117",
"quantity": "2.000000000"
},
{
"id": "1377cd6d-65de-473a-8663-530128b4e067",
"location_id": "00000000-0000-0000-0000-0000000001f1",
"price_base": "100.000000000",
"product_id": "d21dc4b4-8020-4e6a-9c21-7ea8c2060117",
"quantity": "3.000000000"
},
{
"compliance_quantity": "1.0000",
"id": "8de38154-11cc-469f-b61b-6dbd6f8d5160",
"location_id": "00000000-0000-0000-0000-0000000001f1",
"package_id": "00000000-0000-0000-0000-00000000005d",
"price_base": "10.000000000",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-0000000001f1",
"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-00000000084d",
"shipping_location_id": "00000000-0000-0000-0000-0000000001f1",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 733f41e55630bc000000000000000001-be28dc11402cb445-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000671",
"id": "00000000-0000-0000-0000-0000000001f1",
"license_id": "00000000-0000-0000-0000-00000000008f",
"name": "Place 495"
},
"biotrack_id": null,
"charges": [
{
"id": "1033d377-a5b0-4ead-8166-253b0bcacffb",
"name": "C1",
"percent": "10.0000",
"price": "33.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "491cbfdd-2929-4000-bf89-f2b6fc673394",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000004b0",
"name": "Company 1648",
"updated_datetime": "2026-05-15T08:17:44.137023Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000000840",
"role": {
"id": "00000000-0000-0000-0000-000000000859",
"name": "Admin 2136"
}
},
"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": "249f1cb8-b6a7-4560-a8eb-5e5e1c56cef5",
"inserted_datetime": "2026-05-15T08:17:44.184861Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000036b",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "566655f5-d2ae-42f2-94a0-8650ac8ca337",
"is_sample": true,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000671",
"id": "00000000-0000-0000-0000-0000000001f1",
"license_id": "00000000-0000-0000-0000-00000000008f",
"name": "Place 495"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "d21dc4b4-8020-4e6a-9c21-7ea8c2060117",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-15T08:17:44.163513Z"
},
"quantity": "2.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000036b",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "1377cd6d-65de-473a-8663-530128b4e067",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000671",
"id": "00000000-0000-0000-0000-0000000001f1",
"license_id": "00000000-0000-0000-0000-00000000008f",
"name": "Place 495"
},
"package": null,
"price": "100.000000000",
"price_base": "100.000000000",
"product": {
"id": "d21dc4b4-8020-4e6a-9c21-7ea8c2060117",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-15T08:17:44.163513Z"
},
"quantity": "3.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000036c",
"name": "B2"
},
"compliance_quantity": "1.0000",
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "8de38154-11cc-469f-b61b-6dbd6f8d5160",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000671",
"id": "00000000-0000-0000-0000-0000000001f1",
"license_id": "00000000-0000-0000-0000-00000000008f",
"name": "Place 495"
},
"package": {
"batch_number": "B2",
"compliance_label": "ABCDEF012345670000000178",
"id": "00000000-0000-0000-0000-00000000005d",
"metrc_label": "ABCDEF012345670000000178",
"status": "selling"
},
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "c4470044-1b4f-4474-8a7e-6f504b804d3f",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-05-15T08:17:44.203106Z"
},
"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-109",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-2104@example.com",
"full_name": "FirstName4274 LastName4275",
"id": "00000000-0000-0000-0000-00000000084d",
"role": {
"id": "00000000-0000-0000-0000-000000000866",
"name": "Admin 2149"
}
},
"payment_term_name": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000671",
"id": "00000000-0000-0000-0000-0000000001f1",
"license_id": "00000000-0000-0000-0000-00000000008f",
"name": "Place 495"
},
"status": "PROCESSING",
"total": "358.00",
"updated_datetime": "2026-05-15T08:17:44.407296Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTYsImlhdCI6MTc3ODgzMzA1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTAxNTdkODQtZmM0ZS00NzQ3LTk1NWUtMjFjMjRkNzEyMzY2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODM4IiwidHlwIjoiYWNjZXNzIn0.Uf8mepFWHJCOlEKbSZU0-z6X5-NzyrMPLDs6CThu-yw
{
"billing_location_id": "00000000-0000-0000-0000-0000000000a3",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000000199",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-0000000000a3",
"position": 1,
"price_base": "100.000000000",
"product_id": "7ac7a95f-a617-4822-be5a-a9865dfb8c88",
"quantity": "10.000000000"
},
{
"location_id": "00000000-0000-0000-0000-0000000000a3",
"position": 2,
"price_base": "200.000000000",
"product_id": "0212b6dd-b978-4a00-9879-dd0909cf4659",
"quantity": "10.000000000"
},
{
"location_id": "00000000-0000-0000-0000-0000000000a3",
"position": 3,
"price_base": "300.000000000",
"product_id": "a60530d8-cb55-486c-b4bf-d389b6caed5a",
"quantity": "10.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-0000000000a3",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: e9a4ec5346bb58000000000000000001-5f39c9ce0f5e761e-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000002b1",
"id": "00000000-0000-0000-0000-0000000000a3",
"license_id": "00000000-0000-0000-0000-000000000037",
"name": "Place 162"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000199",
"name": "Company 694",
"updated_datetime": "2026-05-15T08:17:36.821929Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-832@example.com",
"full_name": "FirstName1726 LastName1727",
"id": "00000000-0000-0000-0000-000000000346",
"role": {
"id": "00000000-0000-0000-0000-00000000036f",
"name": "Admin 878"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "092a95fa-20b5-4460-bd18-99589af4ec92",
"inserted_datetime": "2026-05-15T08:17:36.997686Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000000df",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "b3794125-5aba-4b20-93d1-77e30f3f8f24",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000002b1",
"id": "00000000-0000-0000-0000-0000000000a3",
"license_id": "00000000-0000-0000-0000-000000000037",
"name": "Place 162"
},
"package": null,
"price": "90.000000000",
"price_base": "100.000000000",
"product": {
"id": "7ac7a95f-a617-4822-be5a-a9865dfb8c88",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-15T08:17:36.863750Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000000e3",
"name": "B2"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "c52546d7-c938-4d24-b967-61a18729f818",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000002b1",
"id": "00000000-0000-0000-0000-0000000000a3",
"license_id": "00000000-0000-0000-0000-000000000037",
"name": "Place 162"
},
"package": null,
"price": "200.000000000",
"price_base": "200.000000000",
"product": {
"id": "0212b6dd-b978-4a00-9879-dd0909cf4659",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-05-15T08:17:36.896471Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000000e9",
"name": "B3"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "613d9c50-fde1-4211-8d4d-548464955d4d",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000002b1",
"id": "00000000-0000-0000-0000-0000000000a3",
"license_id": "00000000-0000-0000-0000-000000000037",
"name": "Place 162"
},
"package": null,
"price": "290.000000000",
"price_base": "300.000000000",
"product": {
"id": "a60530d8-cb55-486c-b4bf-d389b6caed5a",
"name": "P3",
"sku": "SKU3",
"updated_datetime": "2026-05-15T08:17:36.916106Z"
},
"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-0000000002b1",
"id": "00000000-0000-0000-0000-0000000000a3",
"license_id": "00000000-0000-0000-0000-000000000037",
"name": "Place 162"
},
"status": "PROCESSING",
"total": "5800.00",
"updated_datetime": "2026-05-15T08:17:37.075058Z"
}
}
POST /public/v1/orders deleting order items & charges
POST /public/v1/orders
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NjUsImlhdCI6MTc3ODgzMzA2NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNjM3MmI2MzUtOGViMS00YzFhLWI5YTUtMTFkODdkNTk1NDgyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDY0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjIwMiIsInR5cCI6ImFjY2VzcyJ9.cpPcoDGFboQn3nnGn8jTUsSLMY0RpMEwr34SgcK1SOo
{
"billing_location_id": "00000000-0000-0000-0000-00000000020c",
"charges": [],
"company_id": "00000000-0000-0000-0000-0000000004f6",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"id": "4299b783-37a2-4742-8b2a-f323d28f4152",
"items": [
{
"id": "23ae95f4-73b3-43f4-94b3-4503f7375dad",
"location_id": "00000000-0000-0000-0000-00000000020c",
"price_base": "10.000000000",
"product_id": "02d612fa-1cb8-4da1-b60a-682b8b56b8ed",
"quantity": "1.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-00000000020c",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: aa527c51339ca0000000000000000001-c9740bccb97ff57c-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000006c1",
"id": "00000000-0000-0000-0000-00000000020c",
"license_id": "00000000-0000-0000-0000-00000000009c",
"name": "Place 522"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000004f6",
"name": "Company 1726",
"updated_datetime": "2026-05-15T08:17:45.657929Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-00000000089a",
"role": {
"id": "00000000-0000-0000-0000-0000000008b4",
"name": "Admin 2227"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "4299b783-37a2-4742-8b2a-f323d28f4152",
"inserted_datetime": "2026-05-15T08:17:45.940231Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000003a6",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "23ae95f4-73b3-43f4-94b3-4503f7375dad",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000006c1",
"id": "00000000-0000-0000-0000-00000000020c",
"license_id": "00000000-0000-0000-0000-00000000009c",
"name": "Place 522"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "02d612fa-1cb8-4da1-b60a-682b8b56b8ed",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-15T08:17:45.925382Z"
},
"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-124",
"owner": null,
"payment_term_name": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000006c1",
"id": "00000000-0000-0000-0000-00000000020c",
"license_id": "00000000-0000-0000-0000-00000000009c",
"name": "Place 522"
},
"status": "PROCESSING",
"total": "10.00",
"updated_datetime": "2026-05-15T08:17:46.027846Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTcsImlhdCI6MTc3ODgzMzA1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiY2QwNjJkZWUtMzgzYS00NzAzLTliN2UtN2U1NWMxYTkyYTJhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTA1OCIsInR5cCI6ImFjY2VzcyJ9.1cJME9XzvnNr-BsNRUYFd9xAob05z5C02zv2Y6lNdCk
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 92d54ad5234bb0000000000000000001-1c07c23e4aae9f06-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000138",
"custom_data": [
{
"id": 37,
"name": "Custom Field 13",
"value": "Custom Field Value 1"
}
],
"expiration_date": "2024-01-01T00:00:00.000000Z",
"harvest_date": "2024-06-15",
"id": "00000000-0000-0000-0000-000000000048",
"is_trade_sample": true,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-000000000047",
"license_number": "CDPH-00000070"
},
"location": {
"id": "00000000-0000-0000-0000-0000000000dd",
"name": "Place 220"
},
"metrc_label": "ABCDEF012345670000000138",
"packaged_date": "2024-07-01",
"primary_test_result": null,
"product_id": "83390502-8f64-4859-b6f8-05e2f0b3c0a9",
"product_unit_quantity": "7.500000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-000000002af6",
"name": "3"
},
"quantity": "5.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "5.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-000000002af7",
"name": "2"
}
},
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000140",
"custom_data": [
{
"id": 37,
"name": "Custom Field 13",
"value": null
}
],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-000000000049",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-000000000047",
"license_number": "CDPH-00000070"
},
"location": {
"id": "00000000-0000-0000-0000-0000000000e0",
"name": "Place 223"
},
"metrc_label": "ABCDEF012345670000000140",
"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": "83390502-8f64-4859-b6f8-05e2f0b3c0a9",
"product_unit_quantity": "15.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-000000002af6",
"name": "3"
},
"quantity": "20.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "20.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-000000002af8",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTYsImlhdCI6MTc3ODgzMzA1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYTIzMjFlMzAtYmQ4Yi00YjYyLWE1MDgtZGQ3YmI0MWNiN2YyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjIyIiwidHlwIjoiYWNjZXNzIn0.2UywuCalxGIiTZ56-6T0ih03M001KoU5MRJtDZYhttQ
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: a995a3b35d37d8000000000000000001-9822a74b63d6c91b-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000076",
"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-00000000002a",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-00000000002e",
"license_number": "CDPH-00000045"
},
"location": {
"id": "00000000-0000-0000-0000-00000000007f",
"name": "Place 126"
},
"metrc_label": "ABCDEF012345670000000076",
"packaged_date": "2014-11-29",
"primary_test_result": null,
"product_id": "1d2f344d-59f2-4356-a573-da73498058e0",
"product_unit_quantity": "141.747462720",
"product_unit_type": {
"id": "00000000-0000-0000-0000-000000001a2e",
"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-000000001a30",
"name": "Ounce"
}
}
],
"next_page": null
}
GET /public/v1/packages allows filtering by product_ids
GET /public/v1/packages?product_ids[]=da249056-e512-4092-a418-23a36002a57e&product_ids[]=6d0db2fd-475e-4aa5-9433-6fe992122adc
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTUsImlhdCI6MTc3ODgzMzA1NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYTQ4OTFhMDctZWRkNS00Y2Q4LWJkNjAtZWNmY2E3ZjVkMTFiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NDU5IiwidHlwIjoiYWNjZXNzIn0.P5jtHHFE0ZFmTsJtfEDhnoy3In6Le4UPTjm6jdZoWNE
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 7358312c21098c000000000000000001-f413ef4f9e61a188-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000055",
"custom_data": [],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-00000000001e",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-000000000023",
"license_number": "CDPH-00000034"
},
"location": {
"id": "00000000-0000-0000-0000-00000000005e",
"name": "Place 93"
},
"metrc_label": "ABCDEF012345670000000055",
"packaged_date": null,
"primary_test_result": null,
"product_id": "da249056-e512-4092-a418-23a36002a57e",
"product_unit_quantity": "10.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-000000001319",
"name": "Gram"
},
"quantity": "10.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "10.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-000000001319",
"name": "Gram"
}
},
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000057",
"custom_data": [],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-00000000001f",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-000000000023",
"license_number": "CDPH-00000034"
},
"location": {
"id": "00000000-0000-0000-0000-000000000060",
"name": "Place 95"
},
"metrc_label": "ABCDEF012345670000000057",
"packaged_date": null,
"primary_test_result": null,
"product_id": "6d0db2fd-475e-4aa5-9433-6fe992122adc",
"product_unit_quantity": "10.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-000000001319",
"name": "Gram"
},
"quantity": "10.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "10.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-000000001319",
"name": "Gram"
}
}
],
"next_page": null
}
GET /public/v1/packages allows filtering by ids
GET /public/v1/packages?ids[]=00000000-0000-0000-0000-000000000040
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTcsImlhdCI6MTc3ODgzMzA1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiODA1OGUxYTMtMGY1Zi00ZGQzLWFjOWMtMDI2NmZhMmE1Y2QyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTYzIiwidHlwIjoiYWNjZXNzIn0.9OtiZ0yUX0iDm9cOfi9Jqq0_Icn1CQE3aUcQjDA3Va0
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 12a5c97b1bc479000000000000000001-1e053463b18d7373-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000123",
"custom_data": [],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-000000000040",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-00000000003e",
"license_number": "CDPH-00000061"
},
"location": {
"id": "00000000-0000-0000-0000-0000000000c7",
"name": "Place 198"
},
"metrc_label": "ABCDEF012345670000000123",
"packaged_date": null,
"primary_test_result": null,
"product_id": "3dd635d6-50b3-485e-b0c4-7962a3f648bf",
"product_unit_quantity": "10.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-000000002774",
"name": "Gram"
},
"quantity": "10.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "10.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-000000002774",
"name": "Gram"
}
}
],
"next_page": null
}
GET /public/v1/packages allows filtering by location_ids
GET /public/v1/packages?location_ids[]=00000000-0000-0000-0000-0000000000d5&location_ids[]=00000000-0000-0000-0000-0000000000d6
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTcsImlhdCI6MTc3ODgzMzA1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTNlYTE3MTUtYjRmNC00Y2QyLTgwYTgtYTJkYmM1ZTkwM2U3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTAxNSIsInR5cCI6ImFjY2VzcyJ9.EXdRUZb9LYdNnK9I_uMJSkGTJqjgZb-D1Y1L3dEh3A8
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: d4d2d07c031c68000000000000000001-0376fdcd6829f771-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000133",
"custom_data": [],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-000000000045",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-000000000043",
"license_number": "CDPH-00000066"
},
"location": {
"id": "00000000-0000-0000-0000-0000000000d5",
"name": "Place 212"
},
"metrc_label": "ABCDEF012345670000000133",
"packaged_date": null,
"primary_test_result": null,
"product_id": "c08809f4-a378-49cd-9596-25d09812d637",
"product_unit_quantity": "10.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-00000000293c",
"name": "Gram"
},
"quantity": "10.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "10.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-00000000293c",
"name": "Gram"
}
},
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000135",
"custom_data": [],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-000000000046",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-000000000043",
"license_number": "CDPH-00000066"
},
"location": {
"id": "00000000-0000-0000-0000-0000000000d6",
"name": "Place 213"
},
"metrc_label": "ABCDEF012345670000000135",
"packaged_date": null,
"primary_test_result": null,
"product_id": "03686300-b3fb-4520-8c98-3ea8255f21f4",
"product_unit_quantity": "10.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-00000000293c",
"name": "Gram"
},
"quantity": "10.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "10.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-00000000293c",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTYsImlhdCI6MTc3ODgzMzA1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDJiYTYxYWEtNjNhNC00Mzk2LWI4YWYtN2Q4YTc0MWNjOGNkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzEzIiwidHlwIjoiYWNjZXNzIn0.9U_A1ixWqZHXRn-RAQBXpCPWTO5wEJqE10GsKQhj7mc
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: bcfee85cb87718000000000000000001-8b88a24d502ffeac-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000086",
"custom_data": [],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-000000000030",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-000000000031",
"license_number": "CDPH-00000048"
},
"location": {
"id": "00000000-0000-0000-0000-00000000008a",
"name": "Place 137"
},
"metrc_label": "ABCDEF012345670000000086",
"packaged_date": "2014-11-29",
"primary_test_result": null,
"product_id": "f3dd39b2-77c3-4320-9eca-8d87662b569c",
"product_unit_quantity": "1.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-000000001db5",
"name": "Ounce"
},
"quantity": "1.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "1.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-000000001db5",
"name": "Ounce"
}
},
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000094",
"custom_data": [],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-000000000034",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-000000000031",
"license_number": "CDPH-00000048"
},
"location": {
"id": "00000000-0000-0000-0000-000000000091",
"name": "Place 144"
},
"metrc_label": "ABCDEF012345670000000094",
"packaged_date": "2014-11-29",
"primary_test_result": null,
"product_id": "5d013a70-2c26-4b0c-b536-5ab81a830469",
"product_unit_quantity": "0.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-000000001db5",
"name": "Ounce"
},
"quantity": "0.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "0.000000000",
"status": "finished",
"unit_type": {
"id": "00000000-0000-0000-0000-000000001db5",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTQsImlhdCI6MTc3ODgzMzA1NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNWRhNmMyMTEtOGJiMy00OWE2LWE1ZWUtNDU0NzhhNzM3YjBjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDUzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTUiLCJ0eXAiOiJhY2Nlc3MifQ.gntu0Pk7CKBWzqIB0J55r8aZnlpVn40mq83-JqyNkts
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: b813013b948128000000000000000001-26658b59f6e14a10-0
{
"data": [
{
"deleted_at": null,
"id": "00000000-0000-0000-0000-000000000005",
"name": "Payment Method 4"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTgsImlhdCI6MTc3ODgzMzA1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMmFjMzg2ZGEtNGVmNy00YmU5LTg2ZjMtNTQ2MTRkMjExYzJkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTIyMyIsInR5cCI6ImFjY2VzcyJ9.8SidmZ5gvZPlT5gGIf5BHP7288BtBRsDl6Ybg5z-gxI
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 68ec455ec6be7c000000000000000001-a50157edb03d7795-0
{
"data": [
{
"brand": {
"id": "00000000-0000-0000-0000-000000000280",
"name": "Company 990",
"updated_datetime": "2030-11-01T00:00:00.000000Z"
},
"category": {
"id": "00000000-0000-0000-0000-0000000001e6",
"name": "Some category 485",
"type": "OTHER"
},
"custom_data": [
{
"id": 39,
"name": "Custom Field 15",
"value": "Custom Field Value 1"
}
],
"deleted_at": null,
"description": "test",
"description_markdown": "# test",
"external_name": "External Name",
"id": "5a56915d-d16d-4027-bc04-1cce51620f92",
"images": [
{
"id": "00000000-0000-0000-0000-00000000000a",
"name": "Image Name 71",
"rank": 0,
"url": "https://google.com/original-5.jpg"
},
{
"id": "00000000-0000-0000-0000-00000000000b",
"name": "Image Name 72",
"rank": 1,
"url": "https://google.com/original-6.jpg"
}
],
"is_active": true,
"menus": [],
"msrp": null,
"name": "Product 1359",
"product_group": {
"id": "00000000-0000-0000-0000-0000000001e1",
"name": "Product Group 480"
},
"sku": "sku 1360",
"strain": {
"id": "00000000-0000-0000-0000-00000000001a",
"name": "Strain 25",
"strain_type": "INDICA"
},
"subcategory": {
"id": "00000000-0000-0000-0000-0000000001e1",
"name": "Some subcategory 480"
},
"unit_cost": null,
"unit_net_weight": "20",
"unit_net_weight_serving_size_unit_type": {
"id": "00000000-0000-0000-0000-0000000031d5",
"name": "Ounce"
},
"unit_price": "1",
"unit_serving_size": "10",
"unit_type": {
"id": "00000000-0000-0000-0000-0000000031d3",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2023-11-01T00:00:00.000000Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000000286",
"name": "Company 996",
"updated_datetime": "2030-11-03T00:00:00.000000Z"
}
},
{
"brand": {
"id": "00000000-0000-0000-0000-000000000283",
"name": "Company 993",
"updated_datetime": "2030-11-02T00:00:00.000000Z"
},
"category": {
"id": "00000000-0000-0000-0000-0000000001e9",
"name": "Some category 488",
"type": "OTHER"
},
"custom_data": [
{
"id": 39,
"name": "Custom Field 15",
"value": null
}
],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "bd000dc7-9258-461f-b576-d54ccbfc67a3",
"images": [],
"is_active": false,
"menus": [],
"msrp": "100",
"name": "Product 1366",
"product_group": {
"id": "00000000-0000-0000-0000-0000000001e4",
"name": "Product Group 483"
},
"sku": "sku 1367",
"strain": null,
"subcategory": {
"id": "00000000-0000-0000-0000-0000000001e3",
"name": "Some subcategory 482"
},
"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-0000000031d1",
"name": "Pound"
},
"units_per_case": null,
"updated_datetime": "2023-11-02T00:00:00.000000Z",
"vendor": {
"id": "00000000-0000-0000-0000-00000000028a",
"name": "Company 999",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTcsImlhdCI6MTc3ODgzMzA1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMWZjMWJmYWMtZDliZS00MDNkLWJmMzQtOGFjOWY3NmZiNDRjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTA4MyIsInR5cCI6ImFjY2VzcyJ9.7oKTjy3WbLUfJv_SRGTe5RxRkrc1FoTcIJphBm0k2sA
{
"unit_net_weight_and_serving_size_unit_type_id": "00000000-0000-0000-0000-000000002bd5",
"is_featured": true,
"description_markdown": "# My Product Description Markdown",
"wholesale_unit_price": "90.50",
"msrp": "100.5",
"custom_data": {
"38": "VIP"
},
"unit_type_id": "00000000-0000-0000-0000-000000002bdc",
"quantity_available_threshold_min": "5.5",
"total_thc": "10.4",
"brand_id": "00000000-0000-0000-0000-000000000222",
"sku": "12345",
"unit_price": "100",
"category_id": "00000000-0000-0000-0000-00000000018d",
"unit_serving_size": "2.2",
"tags": [
"00000000-0000-0000-0000-000000000002"
],
"total_cbd": "5.2",
"unit_cost": "50.4",
"group_id": "00000000-0000-0000-0000-00000000018a",
"is_inactive": true,
"units_per_case": "0.2",
"menus": [
"00000000-0000-0000-0000-00000000000a"
],
"vendor_id": "00000000-0000-0000-0000-00000000021f",
"total_cannabinoid_unit": "PERCENT",
"menu_visibility": "INCLUDE_IN_ALL",
"inventory_tracking_method": "PACKAGE",
"description": "My Product Description",
"owner_id": "00000000-0000-0000-0000-00000000043a",
"subcategory_id": "00000000-0000-0000-0000-000000000189",
"quantity_available_threshold_max": "10.5",
"upc": "036000291452",
"unit_net_weight": "3.1",
"strain_id": "00000000-0000-0000-0000-000000000018",
"name": "My Product"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 686565405c77b0000000000000000001-51e6d2042ddbe2e1-0
{
"data": {
"brand": {
"id": "00000000-0000-0000-0000-000000000222",
"name": "Company 876",
"updated_datetime": "2026-05-15T08:17:37.780537Z"
},
"category": {
"id": "00000000-0000-0000-0000-00000000018d",
"name": "Some category 396",
"type": "OTHER"
},
"custom_data": [
{
"id": 38,
"name": "Custom Field 14",
"value": "VIP"
}
],
"deleted_at": null,
"description": "My Product Description",
"description_markdown": "# My Product Description Markdown",
"external_name": null,
"id": "bc7c755c-0ba7-4dd6-a95e-08bd91fc35fc",
"images": [],
"is_active": false,
"menus": [
{
"menu_id": "00000000-0000-0000-0000-00000000000a",
"menu_name": "Menu 29"
}
],
"msrp": "100.5",
"name": "My Product",
"product_group": {
"id": "00000000-0000-0000-0000-00000000018a",
"name": "Product Group 393"
},
"sku": "12345",
"strain": {
"id": "00000000-0000-0000-0000-000000000018",
"name": "Strain 23",
"strain_type": null
},
"subcategory": {
"id": "00000000-0000-0000-0000-000000000189",
"name": "Some subcategory 392"
},
"unit_cost": "50.4",
"unit_net_weight": "3.1",
"unit_net_weight_serving_size_unit_type": {
"id": "00000000-0000-0000-0000-000000002bd5",
"name": "Ounce"
},
"unit_price": "100",
"unit_serving_size": "2.2",
"unit_type": {
"id": "00000000-0000-0000-0000-000000002bdc",
"name": "Unit"
},
"units_per_case": "0.2",
"updated_datetime": "2026-05-15T08:17:37.816872Z",
"vendor": {
"id": "00000000-0000-0000-0000-00000000021f",
"name": "Company 871",
"updated_datetime": "2026-05-15T08:17:37.765269Z"
}
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTUsImlhdCI6MTc3ODgzMzA1NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTNlNmExYmItNDM5Yi00MGEzLTlmYTUtZjA0YTJmYmU2MmZmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NDk1IiwidHlwIjoiYWNjZXNzIn0.HwmDUkElDKpqYFagLw-JE8Amm0D8ylJycpwJLaw88_Q
{
"category_id": "00000000-0000-0000-0000-000000000093",
"inventory_tracking_method": "PACKAGE",
"name": "My Product",
"sku": "12345",
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-0000000014a5",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-0000000000de"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 737cf143715538000000000000000001-92343b882ec0dff3-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-000000000093",
"name": "Some category 146",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "067752a8-18af-4495-980a-3dcf991bf472",
"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-0000000014a5",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-05-15T08:17:35.951689Z",
"vendor": {
"id": "00000000-0000-0000-0000-0000000000de",
"name": "Company 422",
"updated_datetime": "2026-05-15T08:17:35.877015Z"
}
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTUsImlhdCI6MTc3ODgzMzA1NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTNlNmExYmItNDM5Yi00MGEzLTlmYTUtZjA0YTJmYmU2MmZmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NDk1IiwidHlwIjoiYWNjZXNzIn0.HwmDUkElDKpqYFagLw-JE8Amm0D8ylJycpwJLaw88_Q
{
"unit_net_weight_and_serving_size_unit_type_id": "00000000-0000-0000-0000-0000000014a7",
"id": "067752a8-18af-4495-980a-3dcf991bf472",
"is_featured": true,
"wholesale_unit_price": "90.50",
"msrp": "100.5",
"unit_type_id": "00000000-0000-0000-0000-0000000014ae",
"quantity_available_threshold_min": "5.5",
"total_thc": "10.4",
"brand_id": "00000000-0000-0000-0000-000000000113",
"sku": "45678",
"unit_price": "200",
"category_id": "00000000-0000-0000-0000-0000000000b4",
"unit_serving_size": "2.2",
"tags": [
"00000000-0000-0000-0000-000000000001"
],
"total_cbd": "5.2",
"unit_cost": "50.4",
"group_id": "00000000-0000-0000-0000-0000000000b5",
"is_inactive": true,
"units_per_case": "0.2",
"menus": [
"00000000-0000-0000-0000-000000000004"
],
"vendor_id": "00000000-0000-0000-0000-00000000010c",
"total_cannabinoid_unit": "PERCENT",
"menu_visibility": "INCLUDE_IN_ALL",
"inventory_tracking_method": "PACKAGE",
"description": "My Product Description",
"owner_id": "00000000-0000-0000-0000-00000000024f",
"subcategory_id": "00000000-0000-0000-0000-0000000000b1",
"external_name": "External Name",
"quantity_available_threshold_max": "10.5",
"upc": "036000291453",
"unit_net_weight": "3.1",
"strain_id": "00000000-0000-0000-0000-000000000017",
"name": "Updated Name"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 737cf143715538000000000000000001-7deb70f2547fd389-0
{
"data": {
"brand": {
"id": "00000000-0000-0000-0000-000000000113",
"name": "Company 494",
"updated_datetime": "2026-05-15T08:17:36.055279Z"
},
"category": {
"id": "00000000-0000-0000-0000-0000000000b4",
"name": "Some category 179",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": "My Product Description",
"description_markdown": "My Product Description",
"external_name": "External Name",
"id": "067752a8-18af-4495-980a-3dcf991bf472",
"images": [],
"is_active": false,
"menus": [
{
"menu_id": "00000000-0000-0000-0000-000000000004",
"menu_name": "Menu 11"
}
],
"msrp": "100.5",
"name": "Updated Name",
"product_group": {
"id": "00000000-0000-0000-0000-0000000000b5",
"name": "Product Group 180"
},
"sku": "45678",
"strain": {
"id": "00000000-0000-0000-0000-000000000017",
"name": "Strain 22",
"strain_type": null
},
"subcategory": {
"id": "00000000-0000-0000-0000-0000000000b1",
"name": "Some subcategory 176"
},
"unit_cost": "50.4",
"unit_net_weight": "3.1",
"unit_net_weight_serving_size_unit_type": {
"id": "00000000-0000-0000-0000-0000000014a7",
"name": "Ounce"
},
"unit_price": "200",
"unit_serving_size": "2.2",
"unit_type": {
"id": "00000000-0000-0000-0000-0000000014ae",
"name": "Unit"
},
"units_per_case": "0.2",
"updated_datetime": "2026-05-15T08:17:36.131699Z",
"vendor": {
"id": "00000000-0000-0000-0000-00000000010c",
"name": "Company 480",
"updated_datetime": "2026-05-15T08:17:36.027684Z"
}
}
}
POST /public/v1/products Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTcsImlhdCI6MTc3ODgzMzA1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDJkYTliYzYtYmI3Mi00ZmZlLWI3ODUtOGM4ZWJhY2FmZDE1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTE3IiwidHlwIjoiYWNjZXNzIn0.oOPovwR2TGTAeTphL69upGVMT5qzJmczWyXXUDTQO-A
{
"category_id": "00000000-0000-0000-0000-00000000014b",
"inventory_tracking_method": "PACKAGE",
"menu_visibility": "INCLUDE_IN_ALL",
"menus": [
"00000000-0000-0000-0000-000000000007"
],
"name": "My Product",
"sku": "12345",
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-0000000025db",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-0000000001cf"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 6017d627fae86c000000000000000001-c756711677b5f7f6-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-00000000014b",
"name": "Some category 330",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "0b1dc8d5-435a-4b23-bd8d-46f05c0a23ab",
"images": [],
"is_active": true,
"menus": [
{
"menu_id": "00000000-0000-0000-0000-000000000007",
"menu_name": "Menu 20"
},
{
"menu_id": "00000000-0000-0000-0000-000000000008",
"menu_name": "Menu 23"
},
{
"menu_id": "00000000-0000-0000-0000-000000000009",
"menu_name": "Menu 26"
}
],
"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-0000000025db",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-05-15T08:17:37.184671Z",
"vendor": {
"id": "00000000-0000-0000-0000-0000000001cf",
"name": "Company 757",
"updated_datetime": "2026-05-15T08:17:37.107428Z"
}
}
}
POST /public/v1/products Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTcsImlhdCI6MTc3ODgzMzA1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDJkYTliYzYtYmI3Mi00ZmZlLWI3ODUtOGM4ZWJhY2FmZDE1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTE3IiwidHlwIjoiYWNjZXNzIn0.oOPovwR2TGTAeTphL69upGVMT5qzJmczWyXXUDTQO-A
{
"category_id": "00000000-0000-0000-0000-00000000014b",
"id": "0b1dc8d5-435a-4b23-bd8d-46f05c0a23ab",
"inventory_tracking_method": "PACKAGE",
"menu_visibility": "DO_NOT_INCLUDE",
"menus": [
"00000000-0000-0000-0000-000000000007",
"00000000-0000-0000-0000-000000000008"
],
"name": "My Product",
"sku": "12345",
"tags": [],
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-0000000025db",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-0000000001cf"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 6017d627fae86c000000000000000001-e317b15377074263-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-00000000014b",
"name": "Some category 330",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "0b1dc8d5-435a-4b23-bd8d-46f05c0a23ab",
"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-0000000025db",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-05-15T08:17:37.269992Z",
"vendor": {
"id": "00000000-0000-0000-0000-0000000001cf",
"name": "Company 757",
"updated_datetime": "2026-05-15T08:17:37.107428Z"
}
}
}
POST /public/v1/products Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTcsImlhdCI6MTc3ODgzMzA1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDJkYTliYzYtYmI3Mi00ZmZlLWI3ODUtOGM4ZWJhY2FmZDE1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTE3IiwidHlwIjoiYWNjZXNzIn0.oOPovwR2TGTAeTphL69upGVMT5qzJmczWyXXUDTQO-A
{
"category_id": "00000000-0000-0000-0000-00000000014b",
"id": "0b1dc8d5-435a-4b23-bd8d-46f05c0a23ab",
"inventory_tracking_method": "PACKAGE",
"menu_visibility": "INCLUDE_IN_SELECT",
"menus": [
"00000000-0000-0000-0000-000000000007",
"00000000-0000-0000-0000-000000000008"
],
"name": "My Product",
"sku": "12345",
"tags": [],
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-0000000025db",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-0000000001cf"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 6017d627fae86c000000000000000001-c5d44fad0177c408-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-00000000014b",
"name": "Some category 330",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "0b1dc8d5-435a-4b23-bd8d-46f05c0a23ab",
"images": [],
"is_active": true,
"menus": [
{
"menu_id": "00000000-0000-0000-0000-000000000007",
"menu_name": "Menu 20"
},
{
"menu_id": "00000000-0000-0000-0000-000000000008",
"menu_name": "Menu 23"
}
],
"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-0000000025db",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-05-15T08:17:37.319075Z",
"vendor": {
"id": "00000000-0000-0000-0000-0000000001cf",
"name": "Company 757",
"updated_datetime": "2026-05-15T08:17:37.107428Z"
}
}
}
POST /public/v1/products Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTcsImlhdCI6MTc3ODgzMzA1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDJkYTliYzYtYmI3Mi00ZmZlLWI3ODUtOGM4ZWJhY2FmZDE1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTE3IiwidHlwIjoiYWNjZXNzIn0.oOPovwR2TGTAeTphL69upGVMT5qzJmczWyXXUDTQO-A
{
"category_id": "00000000-0000-0000-0000-00000000014b",
"id": "0b1dc8d5-435a-4b23-bd8d-46f05c0a23ab",
"inventory_tracking_method": "PACKAGE",
"menu_visibility": "INCLUDE_IN_SELECT",
"menus": [
"00000000-0000-0000-0000-000000000008"
],
"name": "My Product",
"sku": "12345",
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-0000000025db",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-0000000001cf"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 6017d627fae86c000000000000000001-3e03b9549863f493-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-00000000014b",
"name": "Some category 330",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "0b1dc8d5-435a-4b23-bd8d-46f05c0a23ab",
"images": [],
"is_active": true,
"menus": [
{
"menu_id": "00000000-0000-0000-0000-000000000008",
"menu_name": "Menu 23"
}
],
"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-0000000025db",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-05-15T08:17:37.365199Z",
"vendor": {
"id": "00000000-0000-0000-0000-0000000001cf",
"name": "Company 757",
"updated_datetime": "2026-05-15T08:17:37.107428Z"
}
}
}
POST /public/v1/products Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTcsImlhdCI6MTc3ODgzMzA1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDJkYTliYzYtYmI3Mi00ZmZlLWI3ODUtOGM4ZWJhY2FmZDE1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTE3IiwidHlwIjoiYWNjZXNzIn0.oOPovwR2TGTAeTphL69upGVMT5qzJmczWyXXUDTQO-A
{
"category_id": "00000000-0000-0000-0000-00000000014b",
"id": "0b1dc8d5-435a-4b23-bd8d-46f05c0a23ab",
"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-0000000025db",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-0000000001cf"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 6017d627fae86c000000000000000001-c85c6d43e9c8b4eb-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-00000000014b",
"name": "Some category 330",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "0b1dc8d5-435a-4b23-bd8d-46f05c0a23ab",
"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-0000000025db",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-05-15T08:17:37.411260Z",
"vendor": {
"id": "00000000-0000-0000-0000-0000000001cf",
"name": "Company 757",
"updated_datetime": "2026-05-15T08:17:37.107428Z"
}
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTcsImlhdCI6MTc3ODgzMzA1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDI5YzczYWUtMDI4OS00OGI5LWJiNTMtMzc3MzhmZGE2N2FjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTA3MyIsInR5cCI6ImFjY2VzcyJ9.zHq6KH4BDAEqWCuj_tO7V4qxutnvdHKi-uuwGl83Ko8
{
"id": "6db723eb-a1e6-4e87-a803-fecdc81f9764",
"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: a4eda08b00d920000000000000000001-6fdc862c5d453a6b-0
{
"errors": [
{
"context": {
"id": "6db723eb-a1e6-4e87-a803-fecdc81f9764"
},
"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": "6db723eb-a1e6-4e87-a803-fecdc81f9764"
},
"message": "Unit Serving Size can't be greater than Unit Net Weight/Volume",
"pointer": [
"unit_serving_size"
],
"section": "body"
},
{
"context": {
"id": "6db723eb-a1e6-4e87-a803-fecdc81f9764"
},
"message": "Cannot be negative",
"pointer": [
"quantity_available_threshold_max"
],
"section": "body"
},
{
"context": {
"id": "6db723eb-a1e6-4e87-a803-fecdc81f9764"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTcsImlhdCI6MTc3ODgzMzA1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZGUxNzA0NWEtYTNmZi00OTZhLWI1OTYtOTMyYjYwM2JjNDcwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTAxMCIsInR5cCI6ImFjY2VzcyJ9.qGtMQPrTM8bCAkzzWMQabmEqxPX3ONPyAoePU6lSvhs
{
"id": "cd1b5837-8d40-4e7e-a9be-4e524d21150f",
"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: 8b2bc8409fb6b8000000000000000001-33f792594e812946-0
{
"errors": [
{
"context": {
"id": "cd1b5837-8d40-4e7e-a9be-4e524d21150f"
},
"message": "Must be greater than threshold min",
"pointer": [
"quantity_available_threshold_max"
],
"section": "body"
},
{
"context": {
"id": "cd1b5837-8d40-4e7e-a9be-4e524d21150f"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTgsImlhdCI6MTc3ODgzMzA1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGJjNjRlZGMtZjRlYi00ZmQ0LTgwMTItYmY1ZjY3YWQxYmU3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTE1NiIsInR5cCI6ImFjY2VzcyJ9.LXlIir6Pgiza1PrOrErxq3OB_jdCROG56KgO8QxJgbM
{
"brand_id": "00000000-0000-0000-0000-00000000025b",
"category_id": "00000000-0000-0000-0000-0000000001ba",
"cbd": "5.2",
"description": "My Product Description",
"description_markdown": "# My Product Description Markdown",
"group_id": "00000000-0000-0000-0000-0000000001bb",
"inventory_tracking_method": "PACKAGE",
"is_featured": true,
"is_inactive": true,
"menu_visibility": "INCLUDE_IN_ALL",
"menus": [
"00000000-0000-0000-0000-00000000000e",
"00000000-0000-0000-0000-00000000000f",
"00000000-0000-0000-0000-000000000010"
],
"msrp": "100.5",
"name": "My Product",
"owner_id": "00000000-0000-0000-0000-000000000489",
"quantity_available_threshold_max": "10.5",
"quantity_available_threshold_min": "5.5555",
"sku": "12345",
"strain_id": "00000000-0000-0000-0000-000000000019",
"subcategory_id": "00000000-0000-0000-0000-0000000001b8",
"tags": [
"00000000-0000-0000-0000-000000000003",
"00000000-0000-0000-0000-000000000004",
"00000000-0000-0000-0000-000000000005"
],
"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-000000002f89",
"unit_price": "100",
"unit_serving_size": "2.2",
"unit_type_id": "00000000-0000-0000-0000-000000002f90",
"units_per_case": "0.2",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-000000000255",
"wholesale_unit_price": "90.50"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: dc2ecbb27afe48000000000000000001-65314a595e1642f1-0
{
"errors": [
{
"context": {
"id": "72f7820d-dfc6-45e5-b641-e3eee21a302c"
},
"message": "Brand does not exist",
"pointer": [
"brand_id"
],
"section": "body"
},
{
"context": {
"id": "72f7820d-dfc6-45e5-b641-e3eee21a302c"
},
"message": "Category does not exist",
"pointer": [
"category_id"
],
"section": "body"
},
{
"context": {
"id": "72f7820d-dfc6-45e5-b641-e3eee21a302c"
},
"message": "Vendor does not exist",
"pointer": [
"vendor_id"
],
"section": "body"
},
{
"context": {
"id": "72f7820d-dfc6-45e5-b641-e3eee21a302c"
},
"message": "Group does not exist",
"pointer": [
"group_id"
],
"section": "body"
},
{
"context": {
"id": "72f7820d-dfc6-45e5-b641-e3eee21a302c"
},
"message": "Serving unit type does not exist",
"pointer": [
"unit_net_weight_and_serving_size_unit_type_id"
],
"section": "body"
},
{
"context": {
"id": "72f7820d-dfc6-45e5-b641-e3eee21a302c"
},
"message": "Owner does not exist",
"pointer": [
"owner_id"
],
"section": "body"
},
{
"context": {
"id": "72f7820d-dfc6-45e5-b641-e3eee21a302c"
},
"message": "Strain does not exist",
"pointer": [
"strain_id"
],
"section": "body"
},
{
"context": {
"id": "72f7820d-dfc6-45e5-b641-e3eee21a302c"
},
"message": "Subcategory does not belong to the product category",
"pointer": [
"subcategory_id"
],
"section": "body"
},
{
"context": {
"id": "72f7820d-dfc6-45e5-b641-e3eee21a302c"
},
"message": "One or more of the provided tags do not exist",
"pointer": [
"tags"
],
"section": "body"
},
{
"context": {
"id": "72f7820d-dfc6-45e5-b641-e3eee21a302c"
},
"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-00000000000e"
],
"section": "body"
},
{
"context": {},
"message": "Menu does not exist",
"pointer": [
"menus",
1,
"00000000-0000-0000-0000-00000000000f"
],
"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/1
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTMsImlhdCI6MTc3ODgzMzA1MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTdmYWE5ZmYtODMyMy00Yjg3LWJjODEtNzEyNzJlZTM4ZjgyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDUyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTAiLCJ0eXAiOiJhY2Nlc3MifQ.WyJJIZuPlPcV7BKyfaUP-gFgC8hcQQrXZxzvR2lNvYQ
Response
204
cache-control: max-age=0, private, must-revalidate
b3: d8042be71d2b10000000000000000001-f9a1df7caabec7c8-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTUsImlhdCI6MTc3ODgzMzA1NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNGQ3NzE5OWMtMTU2ZS00MzZjLWE5YjktYTQ3NWJmNmVlMTdmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTA2IiwidHlwIjoiYWNjZXNzIn0.zm9Q8MtEk7KJvwmuaObyfUqKMfPWBe3OVx_5KXBCl0s
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 16326aea76fc29000000000000000001-84c15be75aeac6a8-0
{
"data": [
{
"blaze_asset_id": null,
"blaze_product_id": "blaze_123",
"blaze_retailer_id": "ef98d28b-2a02-438b-bf93-81a9b7525163",
"id": 8,
"inserted_at": "2026-05-15T08:17:35.943524Z",
"pos_type": "BLAZE",
"product_id": "9df36fe6-c782-4095-aff8-fd8fd9817b81",
"updated_at": "2026-05-15T08:17:35.943524Z"
},
{
"dutchie_product_id": 456,
"dutchie_retailer_id": "9ce03094-d1fd-4dbf-8bd0-39218e4d259a",
"id": 9,
"inserted_at": "2026-05-15T08:17:35.958251Z",
"pos_type": "DUTCHIE",
"product_id": "85e2e6e7-1f41-4c3e-af6c-0289aef5fd3c",
"updated_at": "2026-05-15T08:17:35.958251Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTQsImlhdCI6MTc3ODgzMzA1NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiODk2MGQyN2MtZTMyMS00OTc1LTlhOWUtM2E5OWVmYTIyNzExIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDUzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTAyIiwidHlwIjoiYWNjZXNzIn0.nGF2ozpIYW6boz1P6GSNjUF9qQ3nIn969-WgapOJRaE
{
"blaze_product_id": "blaze_123",
"blaze_retailer_id": "165de428-0bf3-4a60-b799-b62fa0e90fa3",
"product_id": "d05fb461-a993-4dad-af53-40ee7e4b4284"
}
Response
201
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 6ff85b7b35d8b8000000000000000001-a9a260b671ad6bd3-0
{
"data": {
"blaze_asset_id": null,
"blaze_product_id": "blaze_123",
"blaze_retailer_id": "165de428-0bf3-4a60-b799-b62fa0e90fa3",
"id": 2,
"inserted_at": "2026-05-15T08:17:34.729780Z",
"pos_type": "BLAZE",
"product_id": "d05fb461-a993-4dad-af53-40ee7e4b4284",
"updated_at": "2026-05-15T08:17:34.729780Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTUsImlhdCI6MTc3ODgzMzA1NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDc5MTAyZjQtZjU3Ni00YmE0LTk0NzMtNDZmZGMzZTRhYmEyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjA1IiwidHlwIjoiYWNjZXNzIn0.dxQuJH2wzQTnTtOZhgtLl8QCYSNY9vk_K2c8MopiNU8
{
"blaze_product_id": "blaze_456",
"blaze_retailer_id": "ed62fe06-9b42-4906-87a1-f4c435024078",
"product_id": "0310ea66-d77f-43a8-a094-acf4ba457984"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 29b79d9524a5aa000000000000000001-5755a72f64198a28-0
{
"data": {
"blaze_asset_id": null,
"blaze_product_id": "blaze_456",
"blaze_retailer_id": "ed62fe06-9b42-4906-87a1-f4c435024078",
"id": 4,
"inserted_at": "2026-05-15T08:17:35.084009Z",
"pos_type": "BLAZE",
"product_id": "0310ea66-d77f-43a8-a094-acf4ba457984",
"updated_at": "2026-05-15T08:17:35.094869Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NjEsImlhdCI6MTc3ODgzMzA2MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzE5MjFlYTctMDg2NC00NjNiLTg1MmItMDU0Y2JmNDk2MWI4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDYwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc4MyIsInR5cCI6ImFjY2VzcyJ9.pQeQndU6leqSzgCAAw8CPp7O6wV8zyV4E1yTuzwn9I4
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 407b622bd8a384000000000000000001-1698eb57493184fe-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000003e1",
"name": "Company 1405",
"updated_datetime": "2026-05-15T08:17:41.247020Z"
},
"custom_data": [
{
"id": 41,
"name": "Custom Field 17",
"value": null
}
],
"due_datetime": "2026-05-15T08:17:41.284272Z",
"id": "00000000-0000-0000-0000-000000000040",
"inserted_datetime": "2026-05-15T08:17:41.285097Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000002cd",
"name": "B2219"
},
"compliance_quantity": null,
"id": "0e0bff35-4275-4a35-a8bf-60ecdb817b21",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000578",
"id": "00000000-0000-0000-0000-000000000193",
"license_id": null,
"name": "Place 401"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "18981933-ec17-4467-bfc2-9086bb06b6a6",
"name": "Product 2209",
"sku": "sku 2210",
"updated_datetime": "2026-05-15T08:17:41.292998Z"
},
"quantity": "15.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000002cf",
"name": "B2221"
},
"compliance_quantity": null,
"id": "96e66433-7f62-4fab-b8eb-eb51fb0630e3",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000578",
"id": "00000000-0000-0000-0000-000000000193",
"license_id": null,
"name": "Place 401"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "a4cc8565-34f7-482d-b265-e0bf12c2951a",
"name": "Product 2211",
"sku": "sku 2212",
"updated_datetime": "2026-05-15T08:17:41.302522Z"
},
"quantity": "10.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000002d0",
"name": "B2222"
},
"compliance_quantity": null,
"id": "8ecca19b-dda3-4589-afb6-4519dc338b45",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000578",
"id": "00000000-0000-0000-0000-000000000193",
"license_id": null,
"name": "Place 401"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "8abb6db7-96e5-4800-8692-f35b169ab3fb",
"name": "Product 2213",
"sku": "sku 2214",
"updated_datetime": "2026-05-15T08:17:41.313291Z"
},
"quantity": "5.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000002d1",
"name": "B2223"
},
"compliance_quantity": null,
"id": "ae0fcfe9-3c32-46bb-a2c2-dce466e4a6f8",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000578",
"id": "00000000-0000-0000-0000-000000000193",
"license_id": null,
"name": "Place 401"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "06243449-fdba-4bb7-8206-a9ae38539696",
"name": "Product 2217",
"sku": "sku 2218",
"updated_datetime": "2026-05-15T08:17:41.323284Z"
},
"quantity": "2.000000000",
"received_quantity": "0.000000000"
}
],
"order_datetime": "2026-05-15T08:17:41.284271Z",
"purchase_number": "Purchase #58",
"status": "PENDING",
"total": "32.00",
"updated_datetime": "2026-05-15T08:17:41.285097Z"
},
{
"charges": [
{
"id": "ddd55bd2-fc32-40fd-b9e4-7bb57380a848",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000003dd",
"name": "Company 1401",
"updated_datetime": "2030-11-01T00:00:00.000000Z"
},
"custom_data": [
{
"id": 41,
"name": "Custom Field 17",
"value": "Custom Field Value 1"
}
],
"due_datetime": "2020-01-01T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-00000000003f",
"inserted_datetime": "2020-01-01T00:00:03.000000Z",
"items": [
{
"batch": {
"batch_number": "UID1",
"id": "00000000-0000-0000-0000-0000000002c4",
"name": "B1"
},
"compliance_quantity": "1.0000",
"id": "ad97e1fc-fc2b-41d6-9efd-f0847d32a119",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000578",
"id": "00000000-0000-0000-0000-00000000018c",
"license_id": "00000000-0000-0000-0000-000000000071",
"name": "Place 394"
},
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000000155",
"id": "00000000-0000-0000-0000-000000000052",
"metrc_label": "ABCDEF012345670000000155",
"status": "active"
},
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "819fde1b-94fc-4408-9fd5-d6ab685db177",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTYsImlhdCI6MTc3ODgzMzA1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTEwODk1NzYtYjdjZS00ODkxLWFmMWQtYjE4NGNkOGNiYzYxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6Nzk2IiwidHlwIjoiYWNjZXNzIn0.i7QnpY5p4xt43F07PzszHNNLFKBArHO3DK8Gt7dpkJ4
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 52fb0d7f95dea4000000000000000001-2104543c119cc21d-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000001be",
"name": "Company 736",
"updated_datetime": "2026-05-15T08:17:36.978562Z"
},
"custom_data": [],
"due_datetime": "2026-05-15T08:17:37.012496Z",
"id": "00000000-0000-0000-0000-000000000010",
"inserted_datetime": "2026-05-15T08:17:37.013600Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000000ff",
"name": "B897"
},
"compliance_quantity": null,
"id": "ecf36fce-5210-4793-85d0-fbcfa90d61ce",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000299",
"id": "00000000-0000-0000-0000-0000000000af",
"license_id": null,
"name": "Place 174"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "b31dfa04-e1f3-40b8-8a8e-49efd7dde68d",
"name": "Product 882",
"sku": "sku 883",
"updated_datetime": "2026-05-15T08:17:37.030279Z"
},
"quantity": "15.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000100",
"name": "B898"
},
"compliance_quantity": null,
"id": "af53b343-f361-4db8-820b-383cf72ed130",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000299",
"id": "00000000-0000-0000-0000-0000000000af",
"license_id": null,
"name": "Place 174"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "f92c0828-feb4-45be-8046-cb14935ff5f3",
"name": "Product 887",
"sku": "sku 888",
"updated_datetime": "2026-05-15T08:17:37.047253Z"
},
"quantity": "10.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000101",
"name": "B899"
},
"compliance_quantity": null,
"id": "5c3a8d72-2c90-42a0-be9e-f265e452aa2a",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000299",
"id": "00000000-0000-0000-0000-0000000000af",
"license_id": null,
"name": "Place 174"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "c85022e5-b7a3-4467-a38a-d72c2a46c848",
"name": "Product 892",
"sku": "sku 893",
"updated_datetime": "2026-05-15T08:17:37.056685Z"
},
"quantity": "5.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000102",
"name": "B900"
},
"compliance_quantity": null,
"id": "990b2482-a9a2-4f90-b025-38fb91050f99",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000299",
"id": "00000000-0000-0000-0000-0000000000af",
"license_id": null,
"name": "Place 174"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "19e75506-8c76-4685-9125-5dfcac4dc84e",
"name": "Product 895",
"sku": "sku 896",
"updated_datetime": "2026-05-15T08:17:37.064895Z"
},
"quantity": "2.000000000",
"received_quantity": "0.000000000"
}
],
"order_datetime": "2020-01-01T12:30:00.000000Z",
"purchase_number": "Purchase #14",
"status": "PENDING",
"total": "32.00",
"updated_datetime": "2026-05-15T08:17:37.013600Z"
},
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000001a9",
"name": "Company 712",
"updated_datetime": "2026-05-15T08:17:36.900221Z"
},
"custom_data": [],
"due_datetime": "2026-05-15T08:17:36.922119Z",
"id": "00000000-0000-0000-0000-00000000000f",
"inserted_datetime": "2026-05-15T08:17:36.922648Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000000ef",
"name": "B853"
},
"compliance_quantity": null,
"id": "85af7ce3-9f92-4b08-9f6d-a14b950168c6",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000299",
"id": "00000000-0000-0000-0000-0000000000aa",
"license_id": null,
"name": "Place 169"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "93c2e556-be73-40e4-8c92-7eed8bbcdc29",
"name": "Product 831",
"sku": "sku 832",
"updated_datetime": "2026-05-15T08:17:36.928599Z"
},
"quantity": "15.000000000",
"received_quantity": "15.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000000f0",
"name": "B854"
},
"compliance_quantity": null,
"id": "e75dfdb1-cf80-4485-9941-98c3b178fa39",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000299",
"id": "00000000-0000-0000-0000-0000000000aa",
"license_id": null,
"name": "Place 169"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "a99df0a4-8a0d-4025-b631-c7452d8191da",
"name": "Product 834",
"sku": "sku 835",
"updated_datetime": "2026-05-15T08:17:36.937844Z"
},
"quantity": "10.000000000",
"received_quantity": "10.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000000f1",
"name": "B855"
},
"compliance_quantity": null,
"id": "643f1981-4dce-4b60-9dc5-728eae492821",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000299",
"id": "00000000-0000-0000-0000-0000000000aa",
"license_id": null,
"name": "Place 169"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "f7718d47-3605-47a8-bb65-42e928c93c86",
"name": "Product 844",
"sku": "sku 845",
"updated_datetime": "2026-05-15T08:17:36.949503Z"
},
"quantity": "5.000000000",
"received_quantity": "5.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000000f2",
"name": "B856"
},
"compliance_quantity": null,
"id": "b02d0101-64dd-49c5-b1ea-588bc091e2d3",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000299",
"id": "00000000-0000-0000-0000-0000000000aa",
"license_id": null,
"name": "Place 169"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "777f1f29-7b2b-480b-b026-3949d8e4a096",
"name": "Product 851",
"sku": "sku 852",
"updated_datetime": "2026-05-15T08:17:36.959711Z"
},
"quantity": "2.000000000",
"received_quantity": "2.000000000"
}
],
"order_datetime": "2020-01-01T12:20:00.000000Z",
"purchase_number": "Purchase #13",
"status": "COMPLETED",
"total": "32.00",
"updated_datetime": "2026-05-15T08:17:36.922648Z"
},
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000185",
"name": "Company 665",
"updated_datetime": "2026-05-15T08:17:36.673962Z"
},
"custom_data": [],
"due_datetime": "2026-05-15T08:17:36.717609Z",
"id": "00000000-0000-0000-0000-00000000000d",
"inserted_datetime": "2026-05-15T08:17:36.718238Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000000cf",
"name": "B747"
},
"compliance_quantity": null,
"id": "7de74836-d774-4977-98aa-1f7f4eec2cb3",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000299",
"id": "00000000-0000-0000-0000-00000000009d",
"license_id": null,
"name": "Place 156"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "64c930e8-e639-41f9-83e3-d48240f241ec",
"name": "Product 726",
"sku": "sku 727",
"updated_datetime": "2026-05-15T08:17:36.729803Z"
},
"quantity": "15.000000000",
"received_quantity": "15.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000000d0",
"name": "B748"
},
"compliance_quantity": null,
"id": "865d3eda-c24d-4234-b485-bc52abf711e8",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000299",
"id": "00000000-0000-0000-0000-00000000009d",
"license_id": null,
"name": "Place 156"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "62eb9e4f-3860-4526-93a7-ba09b91de73c",
"name": "Product 732",
"sku": "sku 733",
"updated_datetime": "2026-05-15T08:17:36.740198Z"
},
"quantity": "10.000000000",
"received_quantity": "10.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000000d1",
"name": "B749"
},
"compliance_quantity": null,
"id": "8afd6bcf-1a60-402a-bf88-87382f00e6e5",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000299",
"id": "00000000-0000-0000-0000-00000000009d",
"license_id": null,
"name": "Place 156"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "2cd3d131-faab-4fb6-9b2f-bdb85b0dc957",
"name": "Product 736",
"sku": "sku 737",
"updated_datetime": "2026-05-15T08:17:36.748347Z"
},
"quantity": "5.000000000",
"received_quantity": "5.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000000d2",
"name": "B750"
},
"compliance_quantity": null,
"id": "e5763b0a-f567-4b0d-b810-3b0df6459c01",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000299",
"id": "00000000-0000-0000-0000-00000000009d",
"license_id": null,
"name": "Place 156"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "b0099580-e6ac-4e21-be65-42936d72a165",
"name": "Product 745",
"sku": "sku 746",
"updated_datetime": "2026-05-15T08:17:36.761548Z"
},
"quantity": "2.000000000",
"received_quantity": "2.000000000"
}
],
"order_datetime": "2020-01-01T12:00:00.000000Z",
"purchase_number": "Purchase #11",
"status": "COMPLETED",
"total": "32.00",
"updated_datetime": "2026-05-15T08:17:36.718238Z"
}
],
"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-000000000015/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTcsImlhdCI6MTc3ODgzMzA1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGJmNmUwZDUtN2VkNS00ZDdhLTkzZTYtMGFhNGYwNmE5MzlkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTAwMiIsInR5cCI6ImFjY2VzcyJ9.jzquU8iZY3D2lcajWE8_MHQhzwrHGkAATejpE-89ovM
{
"amount": 100.01,
"description": "Payment for purchase",
"payment_datetime": "2020-01-01T00:00:00.000000Z",
"payment_method_id": "00000000-0000-0000-0000-00000000000a",
"quickbooks_deposit_account_id": "QBD-123"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 357930e0a7486c000000000000000001-446124ed5863cbac-0
{
"data": {
"amount": "100.01",
"description": "Payment for purchase",
"id": "00000000-0000-0000-0000-000000000002",
"inserted_datetime": "2026-05-15T08:17:37.503039Z",
"payment_date": "2020-01-01T00:00:00.000000Z",
"payment_method": {
"deleted_at": null,
"id": "00000000-0000-0000-0000-00000000000a",
"name": "Payment Method 0"
},
"payment_number": "PYT-0000001",
"purchase_id": "00000000-0000-0000-0000-000000000015",
"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-000000000015/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTcsImlhdCI6MTc3ODgzMzA1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGJmNmUwZDUtN2VkNS00ZDdhLTkzZTYtMGFhNGYwNmE5MzlkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTAwMiIsInR5cCI6ImFjY2VzcyJ9.jzquU8iZY3D2lcajWE8_MHQhzwrHGkAATejpE-89ovM
{
"amount": 100.01,
"description": "Payment for purchase",
"payment_datetime": "2020-01-01T00:00:00.000000Z",
"payment_method_id": "00000000-0000-0000-0000-00000000000a",
"quickbooks_deposit_account_name": "QBD-NAME"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 357930e0a7486c000000000000000001-10be1f0330756320-0
{
"data": {
"amount": "100.01",
"description": "Payment for purchase",
"id": "00000000-0000-0000-0000-000000000003",
"inserted_datetime": "2026-05-15T08:17:37.548124Z",
"payment_date": "2020-01-01T00:00:00.000000Z",
"payment_method": {
"deleted_at": null,
"id": "00000000-0000-0000-0000-00000000000a",
"name": "Payment Method 0"
},
"payment_number": "PYT-0000002",
"purchase_id": "00000000-0000-0000-0000-000000000015",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTQsImlhdCI6MTc3ODgzMzA1NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNjE0NzJmMDEtNTY0Mi00OTVhLWIxYTQtNmZlODBmNjUzMjIzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDUzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjQiLCJ0eXAiOiJhY2Nlc3MifQ.pWAAgRvWaB2ovyqznI7RyAHiSYqrlnWi82MuoBDPNqI
{
"billing_location_id": "00000000-0000-0000-0000-00000000000a",
"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-00000000000c",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000000006",
"price": "10.000000000",
"product_id": "133e4a7b-45d7-4f04-9d15-9fe29234baa5",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000000006",
"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: 0e6e12e7bcc8d9800000000000000001-9fb6b498b0e36e71-0
{
"data": {
"charges": [
{
"id": "da478dba-6fc1-4f86-ad6d-87ce4a3c85a2",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "6683d569-6613-4655-bd64-6c281330d389",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-00000000000c",
"name": "Company 36",
"updated_datetime": "2026-05-15T08:17:34.211393Z"
},
"custom_data": [
{
"id": 1,
"name": "Custom Field 0",
"value": null
}
],
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-000000000001",
"inserted_datetime": "2026-05-15T08:17:34.769226Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000008",
"name": "B1"
},
"compliance_quantity": null,
"id": "ffd7a405-315b-4220-ad6a-71c65cc430e1",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000020",
"id": "00000000-0000-0000-0000-000000000006",
"license_id": "00000000-0000-0000-0000-000000000003",
"name": "Place 5"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "133e4a7b-45d7-4f04-9d15-9fe29234baa5",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-15T08:17:34.352847Z"
},
"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-15T08:17:34.877317Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NjAsImlhdCI6MTc3ODgzMzA2MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDk5NmVkYzQtYjUyNS00YjY5LTg0YWItM2NlN2U3ZDY1ZWM3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTYwMyIsInR5cCI6ImFjY2VzcyJ9.LImiM4MhLtrnkOgaJWBPyHtlztiQ0WhucqzQzkFoMSw
{
"billing_location_id": "00000000-0000-0000-0000-000000000165",
"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-00000000035e",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"batch_id": "00000000-0000-0000-0000-000000000260",
"location_id": "00000000-0000-0000-0000-000000000165",
"price": "10.000000000",
"product_id": "69ca39bd-cf45-41eb-ba5e-c110b02049c6",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000000165",
"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: c492dd29c50b10000000000000000001-58d2b3a426547ce3-0
{
"data": {
"charges": [
{
"id": "3247bc65-ca92-4ce1-85d9-ab17d1807a0d",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "71bc7572-45be-41f8-80d5-58fbee8941b5",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-00000000035e",
"name": "Company 1255",
"updated_datetime": "2026-05-15T08:17:40.017382Z"
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-000000000036",
"inserted_datetime": "2026-05-15T08:17:40.075739Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000260",
"name": "B1"
},
"compliance_quantity": null,
"id": "e349162f-9bb2-49ca-bd1e-2145eeab3274",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000004e7",
"id": "00000000-0000-0000-0000-000000000165",
"license_id": "00000000-0000-0000-0000-000000000065",
"name": "Place 355"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "69ca39bd-cf45-41eb-ba5e-c110b02049c6",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-15T08:17:40.051295Z"
},
"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-15T08:17:40.085490Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTgsImlhdCI6MTc3ODgzMzA1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZWQyNzI5NjMtYjliMC00MjQ0LTk1MGItMWNjOTIzMDg2YjZmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTI5NCIsInR5cCI6ImFjY2VzcyJ9.oW3Lbz-3jKENIhaSX_XzMSR6lpyb7gjI5P1jSPrTIvs
{
"billing_location_id": "00000000-0000-0000-0000-000000000108",
"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-000000000297",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000000108",
"price": "10.000000000",
"product_id": "6632595d-7048-4896-87f6-ec5e35439f5d",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000000108",
"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: 832efd8f86e030000000000000000001-bb21c109ef596758-0
{
"data": {
"charges": [
{
"id": "d5c75b72-0501-430d-8d10-8f7491cd4cbb",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "ddee4bae-bb1c-402a-93a1-e5a8aefa68ad",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000000297",
"name": "Company 1019",
"updated_datetime": "2026-05-15T08:17:38.425194Z"
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-00000000001f",
"inserted_datetime": "2026-05-15T08:17:38.504077Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000001ce",
"name": "B1"
},
"compliance_quantity": null,
"id": "08b225be-4d38-47c5-b542-cba62785d74b",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000003fc",
"id": "00000000-0000-0000-0000-000000000108",
"license_id": "00000000-0000-0000-0000-000000000050",
"name": "Place 263"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "6632595d-7048-4896-87f6-ec5e35439f5d",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-15T08:17:38.468874Z"
},
"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-15T08:17:38.517366Z"
}
}
POST /public/v1/purchases updates a purchase
POST /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTcsImlhdCI6MTc3ODgzMzA1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNGZiNmU4YTItNjUyNi00NDcxLThiZTMtMWNmODllZjk1YWFlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTA0NiIsInR5cCI6ImFjY2VzcyJ9.WCzrMRnG_8y_lAbskdQbHX8TkC0cABPvzp_J9kDh800
{
"billing_location_id": "00000000-0000-0000-0000-0000000000dc",
"charges": [
{
"name": "C1",
"percent": "10.0000",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company_id": "00000000-0000-0000-0000-000000000205",
"due_datetime": "2020-01-20T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-0000000000dc",
"price": "10.000000000",
"product_id": "c25cd320-878e-48c6-a57b-97b0da60b963",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-0000000000dc",
"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: c3c026cf8b3920000000000000000001-e3e96b36ddd4fa59-0
{
"data": {
"charges": [
{
"id": "56e1bfe8-30aa-4fd7-85e3-7e0278627524",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000000205",
"name": "Company 839",
"updated_datetime": "2026-05-15T08:17:37.597444Z"
},
"custom_data": [],
"due_datetime": "2020-01-20T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-000000000016",
"inserted_datetime": "2026-05-15T08:17:37.660364Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000012e",
"name": "B1"
},
"compliance_quantity": null,
"id": "39ff3e52-ffa0-413b-9805-54931bd6fd25",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000349",
"id": "00000000-0000-0000-0000-0000000000dc",
"license_id": "00000000-0000-0000-0000-000000000046",
"name": "Place 219"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "c25cd320-878e-48c6-a57b-97b0da60b963",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-15T08:17:37.617084Z"
},
"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-15T08:17:37.667794Z"
}
}
POST /public/v1/purchases updates a purchase
POST /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTcsImlhdCI6MTc3ODgzMzA1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNGZiNmU4YTItNjUyNi00NDcxLThiZTMtMWNmODllZjk1YWFlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTA0NiIsInR5cCI6ImFjY2VzcyJ9.WCzrMRnG_8y_lAbskdQbHX8TkC0cABPvzp_J9kDh800
{
"billing_location_id": "00000000-0000-0000-0000-0000000000dc",
"charges": [
{
"id": "56e1bfe8-30aa-4fd7-85e3-7e0278627524",
"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-000000000205",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-000000000016",
"items": [
{
"id": "39ff3e52-ffa0-413b-9805-54931bd6fd25",
"location_id": "00000000-0000-0000-0000-0000000000dc",
"price": "10.000000000",
"product_id": "c25cd320-878e-48c6-a57b-97b0da60b963",
"quantity": "1.000000000"
},
{
"batch_id": "00000000-0000-0000-0000-000000000130",
"location_id": "00000000-0000-0000-0000-0000000000dc",
"price": "5.000000000",
"product_id": "71aa4e12-b9ee-4836-acdd-6ed54acdf77d",
"quantity": "2.000000000"
}
],
"location_id": "00000000-0000-0000-0000-0000000000dc",
"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: c3c026cf8b3920000000000000000001-83a74ea01c3a2d5e-0
{
"data": {
"charges": [
{
"id": "56e1bfe8-30aa-4fd7-85e3-7e0278627524",
"name": "C1",
"percent": "10.0000",
"price": "2.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "5d813795-3eb4-49fb-877b-222768042614",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000000205",
"name": "Company 839",
"updated_datetime": "2026-05-15T08:17:37.597444Z"
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-000000000016",
"inserted_datetime": "2026-05-15T08:17:37.660364Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000012e",
"name": "B1"
},
"compliance_quantity": null,
"id": "39ff3e52-ffa0-413b-9805-54931bd6fd25",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000349",
"id": "00000000-0000-0000-0000-0000000000dc",
"license_id": "00000000-0000-0000-0000-000000000046",
"name": "Place 219"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "c25cd320-878e-48c6-a57b-97b0da60b963",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-05-15T08:17:37.617084Z"
},
"quantity": "1.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000130",
"name": "B2"
},
"compliance_quantity": null,
"id": "c85e379f-d8bf-462a-8463-f51029d58a2b",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000000349",
"id": "00000000-0000-0000-0000-0000000000dc",
"license_id": "00000000-0000-0000-0000-000000000046",
"name": "Place 219"
},
"package": null,
"price": "5.000000000",
"price_base": "5.000000000",
"product": {
"id": "71aa4e12-b9ee-4836-acdd-6ed54acdf77d",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-05-15T08:17:37.634629Z"
},
"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-15T08:17:37.723212Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTcsImlhdCI6MTc3ODgzMzA1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjJkZjU5YTctMDVhMC00YmQ0LTk2YWUtYzhkNTVhYjk2NWFiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTA5NyIsInR5cCI6ImFjY2VzcyJ9.glxeHpfy1NR_t8luFR0cLfE1yc_iKSrmqJfOR_fqtXQ
{
"billing_location_id": "00000000-0000-0000-0000-0000000000e5",
"company_id": "00000000-0000-0000-0000-000000000225",
"due_datetime": "2020-01-20T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-0000000000e5",
"price": "10",
"product_id": "67565b33-1d43-44f5-bb49-f243b72ff733",
"quantity": "1"
}
],
"location_id": "00000000-0000-0000-0000-0000000000e5",
"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: b744903fa59800000000000000000001-b1ac1339d7e23307-0
{
"data": {
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000225",
"name": "Company 879",
"updated_datetime": "2026-05-15T08:17:37.794589Z"
},
"custom_data": [],
"due_datetime": "2020-01-20T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-000000000018",
"inserted_datetime": "2026-05-15T08:17:37.829798Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000144",
"name": "B1114"
},
"compliance_quantity": null,
"id": "d1ca8aad-7af9-411c-9247-a9c05dd7c6fb",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000036f",
"id": "00000000-0000-0000-0000-0000000000e5",
"license_id": "00000000-0000-0000-0000-000000000049",
"name": "Place 228"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "67565b33-1d43-44f5-bb49-f243b72ff733",
"name": "Product 1106",
"sku": "sku 1107",
"updated_datetime": "2026-05-15T08:17:37.813894Z"
},
"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-15T08:17:37.829798Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTcsImlhdCI6MTc3ODgzMzA1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjJkZjU5YTctMDVhMC00YmQ0LTk2YWUtYzhkNTVhYjk2NWFiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTA5NyIsInR5cCI6ImFjY2VzcyJ9.glxeHpfy1NR_t8luFR0cLfE1yc_iKSrmqJfOR_fqtXQ
{
"company_id": "00000000-0000-0000-0000-000000000225",
"id": "00000000-0000-0000-0000-000000000018",
"items": [
{
"location_id": "00000000-0000-0000-0000-0000000000e5",
"price": "2",
"product_id": "67565b33-1d43-44f5-bb49-f243b72ff733",
"quantity": "1"
}
]
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: b744903fa59800000000000000000001-e818e760cea38008-0
{
"data": {
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000225",
"name": "Company 879",
"updated_datetime": "2026-05-15T08:17:37.794589Z"
},
"custom_data": [],
"due_datetime": "2020-01-20T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-000000000018",
"inserted_datetime": "2026-05-15T08:17:37.829798Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000144",
"name": "B1114"
},
"compliance_quantity": null,
"id": "892a8ed8-6758-42e4-96df-b9affb6ffc48",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000036f",
"id": "00000000-0000-0000-0000-0000000000e5",
"license_id": "00000000-0000-0000-0000-000000000049",
"name": "Place 228"
},
"package": null,
"price": "2.000000000",
"price_base": "2.000000000",
"product": {
"id": "67565b33-1d43-44f5-bb49-f243b72ff733",
"name": "Product 1106",
"sku": "sku 1107",
"updated_datetime": "2026-05-15T08:17:37.813894Z"
},
"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-15T08:17:37.908003Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTksImlhdCI6MTc3ODgzMzA1OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNmNkNjVlMzEtNzU5ZC00YjYxLWE3MGMtOGU4OTczZmU0MmZmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTU4MCIsInR5cCI6ImFjY2VzcyJ9.6wXpe1gjjR2DKudWD3UiCD6L9zhaZTzg_67fz4KNv_0
{
"billing_location_id": "00000000-0000-0000-0000-000000000162",
"charges": [],
"company_id": "00000000-0000-0000-0000-00000000034e",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-000000000035",
"items": [
{
"batch_id": "00000000-0000-0000-0000-000000000252",
"id": "b404d955-0748-41a1-bf09-412de91dd413",
"location_id": "00000000-0000-0000-0000-000000000162",
"price": "10.000000000",
"product_id": "10274210-9e8f-4516-8884-7e74525e36ea",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000000162",
"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: 0f92f10b68a3a0800000000000000001-740504b4c89f4935-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTcsImlhdCI6MTc3ODgzMzA1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiN2U4YmU5NDYtOWZiYS00YTFkLWJmMTEtNmFhMGVkMmNhZDY2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTU1IiwidHlwIjoiYWNjZXNzIn0.iq2puXf-uvNaLh8_yElVbVyC89MFqrIlxuimMxs6gJw
{
"billing_location_id": "00000000-0000-0000-0000-0000000000c4",
"charges": [],
"company_id": "00000000-0000-0000-0000-0000000001dd",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-0000000000c4",
"price": "10.000000000",
"product_id": "c307dd3a-dd33-40ec-ab87-127eac67bf7f",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-0000000000c4",
"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: 8f3fceec2b5aa8000000000000000001-a30d75967dbe9407-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTksImlhdCI6MTc3ODgzMzA1OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTQ5Mzk1NDAtYjc2OC00ZjkzLTg3MjItZTUzNWEyZmY0ODdlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTUxOCIsInR5cCI6ImFjY2VzcyJ9.2VAOfdqY8S8ejx_CmZApLyEnCEft1fFoL47ammfIKP4
{
"billing_location_id": "00000000-0000-0000-0000-000000000148",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000000327",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000000148",
"price": "10.000000000",
"product_id": "fb726b94-e110-420e-958f-6d92817b7f18",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000000148",
"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: 6e1c54acbea3d0000000000000000001-f0d0e3756de8d513-0
{
"errors": [
{
"context": {
"id": "b5aeeacd-b88f-4662-96b4-3f833dd2553c"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTksImlhdCI6MTc3ODgzMzA1OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNGY3M2U0MjQtYTUyNC00ODA3LTkzODItODI4Y2E5MDkwNDRlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTU2OSIsInR5cCI6ImFjY2VzcyJ9.kiOErDps3ihg9Grr-pJQ92yeC50wTBZRSoztjQS_8mY
{
"billing_location_id": "00000000-0000-0000-0000-00000000015f",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000000348",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"batch_id": "00000000-0000-0000-0000-00000000024c",
"location_id": "00000000-0000-0000-0000-00000000015f",
"price": "10.000000000",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-00000000015f",
"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: f0403190c8a540000000000000000001-17cdc9b7825db3d1-0
{
"errors": [
{
"context": {
"id": "eac47aad-f103-46dc-8492-660e6e116b49"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTksImlhdCI6MTc3ODgzMzA1OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTFmNDQ1NjUtN2VkOS00NmI0LWI2Y2YtMWE0YmE3NDk1MjM0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTUzNiIsInR5cCI6ImFjY2VzcyJ9.EOLu3fXAsNIydKT8zJn80b4-dKbaH2LAUPT1z5KT4aY
{
"billing_location_id": "00000000-0000-0000-0000-00000000014a",
"charges": [],
"company_id": "00000000-0000-0000-0000-00000000032f",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000000014b",
"price": "10.000000000",
"product_id": "d68c900a-55a9-4b34-9e10-284b504047eb",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-00000000014b",
"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: 51a7f7f72fb548000000000000000001-19ccd7b296e28b0c-0
{
"errors": [
{
"context": {
"id": "38a7989d-81d9-4532-8b66-76ab9a261370"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NjAsImlhdCI6MTc3ODgzMzA2MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjM0NTNkMDAtYzZiMy00MWQ4LTkyYWMtZWQ0ZTczNmFjZGI5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTcxNSIsInR5cCI6ImFjY2VzcyJ9.U0xIlCX3P7flzebYaMnqXiHZYsZ8o53d6kobYDnseHY
{
"billing_location_id": "00000000-0000-0000-0000-00000000017a",
"charges": [],
"company_id": "00000000-0000-0000-0000-0000000003aa",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000000017a",
"price": "10.000000000",
"product_id": "e424f4e1-ce79-4a9e-9f89-b5a5c10180a5",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-00000000017b",
"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: 21dd8c029de8f2000000000000000001-7c01b1cdfd58a780-0
{
"errors": [
{
"context": {
"id": "1b33e36f-16d6-476f-ae71-a8b5731b7f09"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTUsImlhdCI6MTc3ODgzMzA1NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNjExMThiMDUtMmEyYi00NzAwLTg3YzEtMGY2NGFhNTgwY2VmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6Mjk3IiwidHlwIjoiYWNjZXNzIn0.MC3utOU-Q1u3rciCXhekoVddPO8MoI6_88T7mpYzGYw
{
"billing_location_id": "00000000-0000-0000-0000-000000000041",
"charges": [],
"company_id": "00000000-0000-0000-0000-00000000006d",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000000003f",
"price": "10.000000000",
"product_id": "2af22baa-e8c5-4261-84bd-513be8188804",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-00000000003f",
"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: 861dad2b75fa48000000000000000001-0d334adcf6747a37-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 |
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTYsImlhdCI6MTc3ODgzMzA1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzMxY2RiMjAtNmZlMC00YTIzLTk3NWEtMWQ4ZGUwZmYzOTJhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzgyIiwidHlwIjoiYWNjZXNzIn0.c24o_3ZrS2CIuSNoD29o3CMZ51WfPtoApNzklMrYcLc
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 0023f2c4e983c9e40000000000000001-b13d9bb421c7e751-0
{
"data": [
{
"batch_id": null,
"completion_datetime": "2026-05-15T08:17:36.684883Z",
"compliance_quantity": null,
"compliance_unit_type": null,
"description": null,
"id": "00000000-0000-0000-0000-00000000001b",
"inserted_at": "2026-05-15T08:17:36.686042Z",
"license_id": null,
"location_id": null,
"owner_id": "00000000-0000-0000-0000-00000000030e",
"package_id": null,
"product_id": "611a6535-4303-45fd-98ca-096e79636c2c",
"quantity": "10",
"reason": "revaluation",
"total_cost": "10000",
"unit_type": {
"id": "00000000-0000-0000-0000-00000000209b",
"name": "Gram"
}
},
{
"batch_id": null,
"completion_datetime": "2026-05-15T08:17:36.877644Z",
"compliance_quantity": "1",
"compliance_unit_type": {
"id": "00000000-0000-0000-0000-00000000209d",
"name": "Ounce"
},
"description": "A default note describing this transaction",
"id": "00000000-0000-0000-0000-00000000001c",
"inserted_at": "2026-05-15T08:17:36.882835Z",
"license_id": "00000000-0000-0000-0000-000000000035",
"location_id": "00000000-0000-0000-0000-0000000000a0",
"owner_id": null,
"package_id": "00000000-0000-0000-0000-000000000039",
"product_id": "42c9950f-26fd-480f-b512-d8a1c483a7ad",
"quantity": "1",
"reason": "Voluntary Surrender",
"total_cost": "900",
"unit_type": {
"id": "00000000-0000-0000-0000-00000000209d",
"name": "Ounce"
}
},
{
"batch_id": "00000000-0000-0000-0000-0000000000ee",
"completion_datetime": "2026-05-15T08:17:36.966784Z",
"compliance_quantity": null,
"compliance_unit_type": null,
"description": null,
"id": "00000000-0000-0000-0000-00000000001d",
"inserted_at": "2026-05-15T08:17:36.967375Z",
"license_id": null,
"location_id": "00000000-0000-0000-0000-00000000009a",
"owner_id": null,
"package_id": null,
"product_id": "905e6342-9a98-48e1-a3d6-e577b6de623a",
"quantity": "1",
"reason": "revaluation",
"total_cost": "-800",
"unit_type": {
"id": "00000000-0000-0000-0000-00000000209b",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTcsImlhdCI6MTc3ODgzMzA1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTA4OGU3ZDgtYWUwZi00MjIxLTgzY2ItNzU2ZWMwMTk4OWFmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTY4IiwidHlwIjoiYWNjZXNzIn0.G6tZZ5IcGmXMehCMERnryTMrQF3AoLTMd_vX1qcdCHs
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "00000000-0000-0000-0000-0000000000c9",
"product_id": "0f47442f-a1f0-4224-a28a-05fdd481cfd2",
"quantity": 10,
"reason": "expired"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 9959a423eff3c0000000000000000001-ae79e33887d1b861-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-00000000002b",
"inserted_at": "2026-05-15T08:17:37.367935Z",
"license_id": null,
"location_id": "00000000-0000-0000-0000-0000000000c9",
"owner_id": null,
"package_id": null,
"product_id": "0f47442f-a1f0-4224-a28a-05fdd481cfd2",
"quantity": "10",
"reason": "expired",
"total_cost": null,
"unit_type": {
"id": "00000000-0000-0000-0000-0000000027a4",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTQsImlhdCI6MTc3ODgzMzA1NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZGU3MzhiYzYtYjc5Ny00ZmVkLTk2NDMtYTAyNmEwYjIxYjdlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDUzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjEiLCJ0eXAiOiJhY2Nlc3MifQ.0ExbDkuj1u_RFBrvC_ZQ6hIivRbc3vCVShqYTGZuHYE
{
"batch_id": "00000000-0000-0000-0000-000000000006",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "00000000-0000-0000-0000-00000000000e",
"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: 9b9aaa946c4810000000000000000001-bbaf164964be638f-0
{
"data": {
"batch_id": "00000000-0000-0000-0000-000000000006",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": null,
"compliance_unit_type": null,
"description": "test",
"id": "00000000-0000-0000-0000-000000000002",
"inserted_at": "2026-05-15T08:17:34.363233Z",
"license_id": null,
"location_id": "00000000-0000-0000-0000-00000000000e",
"owner_id": null,
"package_id": null,
"product_id": "8a84aaaf-1c3d-4230-86c6-8998d6d3ba14",
"quantity": "10",
"reason": "expired",
"total_cost": "10000",
"unit_type": {
"id": "00000000-0000-0000-0000-00000000027f",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTUsImlhdCI6MTc3ODgzMzA1NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNWU2YzlhOWEtMjg0Yy00MmM3LTlmN2YtZWFhNjA2MjQ3MDc0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjI3IiwidHlwIjoiYWNjZXNzIn0.0mRnHeaoYAgJ2JJNNRvxRbkbihtmlG2DwZGZ8rtRX9c
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": 10,
"description": "test",
"package_id": "00000000-0000-0000-0000-00000000000f",
"reason": "Damage (BCC)",
"unit_cost": 1000
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 02f862c2f0c662400000000000000001-2c5c7adf16d8fbf1-0
{
"data": {
"batch_id": null,
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": "10",
"compliance_unit_type": {
"id": "00000000-0000-0000-0000-00000000083a",
"name": "Ounce"
},
"description": "test",
"id": "00000000-0000-0000-0000-000000000006",
"inserted_at": "2026-05-15T08:17:35.375949Z",
"license_id": "00000000-0000-0000-0000-000000000010",
"location_id": "00000000-0000-0000-0000-000000000035",
"owner_id": null,
"package_id": "00000000-0000-0000-0000-00000000000f",
"product_id": "d9e4f7f6-aaf0-4fe7-b354-2fbca21876d8",
"quantity": "0.35274",
"reason": "Damage (BCC)",
"total_cost": "10000.000000005834",
"unit_type": {
"id": "00000000-0000-0000-0000-000000000838",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTcsImlhdCI6MTc3ODgzMzA1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZmU1ZGUyNjUtODdiNi00YmQ5LWI4MDYtNGI3ZWMzM2M3MWE2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTg1IiwidHlwIjoiYWNjZXNzIn0.Cb4lAiQXVJk03-NxojeB6CB_dXtQsXoajQkfOXDbhIE
{
"description": "test",
"package_id": "00000000-0000-0000-0000-000000000044",
"quantity": 10,
"reason": "Damage (BCC)"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 0d09918a95b82c800000000000000001-53ae333985998fbd-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTYsImlhdCI6MTc3ODgzMzA1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYWExOWY1YjktNTA5NS00YTM5LWFhYTctYTUzNWNjZDJjODcxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjI2IiwidHlwIjoiYWNjZXNzIn0.qhhYSp4gWg1Jxucng4DqCu2H3cdp2LtdJLM3TsMdQaM
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "00000000-0000-0000-0000-00000000007d",
"product_id": "1dc7fde4-734a-442a-8e42-896f0488fc76",
"quantity": 10,
"reason": "expired"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: f6a032080726f0000000000000000001-0c9530b1308943cf-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTcsImlhdCI6MTc3ODgzMzA1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTk3ZjBiYWUtYzkxYy00NDM5LTgyMzMtMjc5ZDJhZjY3ZTZjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTUzIiwidHlwIjoiYWNjZXNzIn0.4dQp-CCieHzRU2ohGHOeyuNgs-OlWjJiQDsWHkbC4Qk
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": 10,
"description": "test",
"location_id": "00000000-0000-0000-0000-0000000000c5",
"product_id": "8d7e79ba-2ae9-47f1-ac63-cb42c8b1bc95",
"reason": "expired"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 1a5006a1725d77000000000000000001-3d041cc40f2bba5c-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTMsImlhdCI6MTc3ODgzMzA1MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTJkNDU0NGYtM2U4ZS00MGMxLTlmYzgtZjIzODg3YjEzZmU2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDUyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTMiLCJ0eXAiOiJhY2Nlc3MifQ.IyuGrg-R-jJdDL2R8pTGtDOOAZBEU0x1oAjgOVtHyDE
{
"batch_id": "9a616ae7-460c-4815-8d6c-5ad09564b86f",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "c4297b47-079a-4368-8a4a-6a0901dc4d7e",
"package_id": "068f9304-1e78-4371-a834-695d8bb96cfb",
"product_id": "c8531a67-0f30-4aa7-bde8-348ac9068330",
"reason": "expired"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 2003c4e6515e5a000000000000000001-fc53ebd565ca1d1f-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTcsImlhdCI6MTc3ODgzMzA1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiODMxOTk0MGMtZjhiYi00ZmI1LWFlOWQtYWI4ODA1MjUyZWRiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQ4IiwidHlwIjoiYWNjZXNzIn0.flxDbmAarLGZo3knPuHSbWbToq5lMZzPZG5sFmF1ME0
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "5ba50b69-5812-4542-9520-7a1e5eea1b0f",
"reason": "expired"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 48e5d5da7293ac000000000000000001-096a220db5f3e779-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTYsImlhdCI6MTc3ODgzMzA1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTNmN2I2YWUtODg5ZS00ZGU2LWI5OGItMmRlYTE4MDRiZjZjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjU2IiwidHlwIjoiYWNjZXNzIn0.jh0Cxke9xtzIjBm1SUbIM_IfXgnU6ZrtZ6lgadymHFU
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "1e7a2f0f-35be-41d4-b482-7452b8738526",
"product_id": "9027130a-3f87-4ae7-b30e-81b8fe0ce1ee",
"quantity": 10,
"reason": "waste"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: d67042875192b8000000000000000001-ca522aecedb3bf1c-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTYsImlhdCI6MTc3ODgzMzA1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjZhOWEyMmItZTRiMS00ZmQ3LWJkNTctM2NkZTk1NDgxNTBlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTk4IiwidHlwIjoiYWNjZXNzIn0.UPsrepY3vRWMxGS_FxorAzT1TAynZMLCa63IbpTpKKE
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": 10,
"description": "test",
"location_id": "a17b1a30-347f-40d9-90e5-1647eb3d59ac",
"package_id": "e5a9790e-6427-4e0c-b6d2-9753b560d043",
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 19ae646c800c20000000000000000001-994f6b0fa2430b95-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTYsImlhdCI6MTc3ODgzMzA1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTE1YTY0ZGMtM2ZjZC00YWNlLWE2MzItZTg0NTg0ODRmYmJmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjA2IiwidHlwIjoiYWNjZXNzIn0.LRgoyjvPPHvkmMGHQYlzeCmkGnRzspCE7Mn7t2cYmWc
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"product_id": "6da36339-9779-497e-b87e-276a3332352f",
"quantity": 10,
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 3480163bd05e02000000000000000001-32a80f5bf5263ddb-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTcsImlhdCI6MTc3ODgzMzA1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDgwMTI2MGItZjQyMC00OTVjLWJmZjQtNDVhMzhiNTJhMzk1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQwIiwidHlwIjoiYWNjZXNzIn0.i2rjHIxlHQx_js8v_8BLNx6xhsbMgMh1xAclKyVDGpc
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "2c0015f4-ab69-495d-a723-4cb49ef9e4ef",
"product_id": "2665a32e-6929-4e17-9051-d03a9b5653c9",
"quantity": 10,
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: dcadd00fc739d0000000000000000001-8d7aa67a48a11683-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTYsImlhdCI6MTc3ODgzMzA1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDFlYTNmODgtMjkyZC00MjMwLTk3NGYtNDliOGE3OWIzZWFiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTczIiwidHlwIjoiYWNjZXNzIn0.5A6PTRWZ8dPdxfixDSTSML_cfgNjsXoeKCv7CttS18o
{
"batch_id": "00000000-0000-0000-0000-000000000082",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "216a0fb1-6a66-47dc-90c0-7068bfa3e173",
"quantity": 10,
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 4ad4bc57e521b4000000000000000001-087d419084810b9d-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTYsImlhdCI6MTc3ODgzMzA1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiM2VmNGViYWItYWFmYy00ZjlmLThiNzMtZTY3NmYwNTY5ZjA0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzQzIiwidHlwIjoiYWNjZXNzIn0.ZmQyvqPTn6fxMm2Xx8KROEacUUcDzJHk9odcvyNzKBQ
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": 10,
"description": "test",
"package_id": "00000000-0000-0000-0000-000000000033",
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: a240406d0af418000000000000000001-3f7181c9bd5259e1-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTcsImlhdCI6MTc3ODgzMzA1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjQyM2NlNWQtMzJiMy00ODhmLTk0ODEtZWY5YzgxZDYxY2E2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTI4IiwidHlwIjoiYWNjZXNzIn0.O1Ta5lMrIRPrp5dpOtmRCaXFoMhAPsy7NJt3DhMjHlk
{
"batch_id": "00000000-0000-0000-0000-000000000107",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "00000000-0000-0000-0000-0000000000bf",
"quantity": 10,
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 4d012446c13d04000000000000000001-01512330f3615574-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTQsImlhdCI6MTc3ODgzMzA1NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjZkNGYwNGQtODIyYS00NDczLWFkNzUtMDk2YTBmYTIyYWE4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDUzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc5IiwidHlwIjoiYWNjZXNzIn0.PzLA0WyPC2KRyd6oJ8AOLmp5xzVBQ_bJ5uIfE-o2v_8
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: a1f12764e8d290000000000000000001-1e48e26373bf4138-0
{
"data": [
{
"id": "00000000-0000-0000-0000-000000000014",
"name": "Strain 19",
"strain_type": "INDICA"
},
{
"id": "00000000-0000-0000-0000-000000000015",
"name": "Strain 20",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTYsImlhdCI6MTc3ODgzMzA1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjI5NWRmM2MtY2JiZC00MzhhLThhOTUtNWQ3NjM3NWJmNjU0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODQwIiwidHlwIjoiYWNjZXNzIn0.1TsZWuKpsceidjQ1K8DDDIK9f_BBZNSUiNbuZduH8Jg
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: f074f0070e7bd0000000000000000001-13b0d62bd40a07cb-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-000000000014",
"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-00000000003b",
"release_date": "2026-05-15",
"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-15T08:17:36.961216Z"
},
{
"additional_test_results": {
"thca_percentage": "12"
},
"batch_id": "00000000-0000-0000-0000-0000000000f4",
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-000000000015",
"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-15T08:17:36.973115Z"
},
{
"additional_test_results": {},
"batch_id": null,
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-000000000016",
"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-00000000003c",
"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-15T08:17:37.056070Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTYsImlhdCI6MTc3ODgzMzA1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiM2ZiMDA5N2MtMzhiMS00MjllLWE4NjMtYTJhNWE3NDljYjQ0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzcwIiwidHlwIjoiYWNjZXNzIn0.8oPZMsmrjrdW-jFBhkaays04VpvNHoyQGhoxi6PzhsE
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: a4cb7ca65d4528000000000000000001-dd044f30c7f3c3d1-0
{
"data": [
{
"additional_test_results": {
"spiroxamine_a_ug_per_g": "13",
"thiacloprid_ug_per_g": "14"
},
"batch_id": "00000000-0000-0000-0000-0000000000c1",
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-000000000011",
"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-15T08:17:36.606979Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTUsImlhdCI6MTc3ODgzMzA1NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTY4MzZlMTMtOWFmMi00YjJhLTk1N2YtMDAzNjVhY2VhZmQ4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MzM5IiwidHlwIjoiYWNjZXNzIn0.rxCOdc-UMxrjfdWPhJdtSYrOctfG_vZp4fzl2hbH1bA
{
"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-000000000040",
"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: c6ae3196ffe5d8000000000000000001-2bef2e884eaecc51-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-000000000040",
"cbd_mg_per_unit": "1.1",
"cbd_percentage": "2.2",
"id": "00000000-0000-0000-0000-000000000002",
"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-15T08:17:35.516130Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTUsImlhdCI6MTc3ODgzMzA1NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZmJkMDVmNDQtYjcxZi00ZThiLWE4YjktNDFmM2Y2MmVkNjY3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NDE0IiwidHlwIjoiYWNjZXNzIn0.7IxDm6MoKRGEH5Uc--AO5Odzgy5W96et0du6UX6KfVo
{
"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-00000000001c"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 4ed31956ff3e7c000000000000000001-5e58eeb5426796e5-0
{
"data": {
"additional_test_results": {},
"batch_id": null,
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-000000000003",
"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-00000000001c",
"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-15T08:17:35.783413Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTYsImlhdCI6MTc3ODgzMzA1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTc0YWEzMDMtNGUzYi00MTljLWFkODQtNTc1ZDQwMzdkZjhkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODIzIiwidHlwIjoiYWNjZXNzIn0._hQyWlyPtIbQj_eYOB9o7Wql52TmU47OLAwg9Q5Bjek
{
"batch_id": "00000000-0000-0000-0000-0000000000d6",
"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: c473fa41fea750000000000000000001-a9bf992939462243-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTYsImlhdCI6MTc3ODgzMzA1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTBmNDc2NmEtNzNlNy00MGE1LTljMmQtYzJmNzUwYTJkZmFkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjUyIiwidHlwIjoiYWNjZXNzIn0.g5mMtxH5evuXW-jDh1cpXntyjU8TgvZcuVKjY7I7K-o
{
"additional_test_results": {},
"batch_id": "00000000-0000-0000-0000-000000000091",
"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: db33d56d17f8a8000000000000000001-5f8f6b90979bff24-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTYsImlhdCI6MTc3ODgzMzA1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYWE4Mjc0OGQtOTY3Yy00MzNjLWI1MDktYzdhMTA0MDZhYWM5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTc3IiwidHlwIjoiYWNjZXNzIn0.FcMPXOMT4wI_YPDw4AMpXUyl5mlon6M2ySDgrBmfe1E
{
"additional_test_results": {
"thca_percentage": "15"
},
"id": "00000000-0000-0000-0000-00000000000b",
"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: 7c11a64ef5fa98000000000000000001-addaf54b32fa390b-0
{
"data": {
"additional_test_results": {
"thca_percentage": "15"
},
"batch_id": "00000000-0000-0000-0000-00000000007f",
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-00000000000b",
"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-15T08:17:36.100796Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTAyODI2NTUsImlhdCI6MTc3ODgzMzA1NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiODVmNTkzNmYtOTVkYS00MmU4LThiMWYtZGIxNzBhY2IyN2RiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzc4ODMzMDU0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MjM3IiwidHlwIjoiYWNjZXNzIn0.drFgnePIQNCXbE6p8f4TBJeoX0MN7uFDyLhwKcOVM80
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 61999283883854000000000000000001-2621ae472e57d743-0
{
"data": [
{
"banned": false,
"deleted_at": null,
"email": "owner-235@example.com",
"full_name": "FirstName484 LastName485",
"id": "00000000-0000-0000-0000-0000000000ed",
"role": {
"id": "00000000-0000-0000-0000-000000000105",
"name": "Admin 260"
}
},
{
"banned": false,
"deleted_at": null,
"email": "owner-239@example.com",
"full_name": "FirstName492 LastName493",
"id": "00000000-0000-0000-0000-0000000000f0",
"role": {
"id": "00000000-0000-0000-0000-000000000109",
"name": "Admin 264"
}
}
],
"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