Distru API
Stay Up To Date
To stay up to date with the latest breaking changes to the Distru public API, please sign up for our email list.
Overview
Distru's public API allows you to easily access and manipulate your data in our system automatically.
- Integrate your supply chain with the rest of your business Build your own custom connectors that support your most important workflows.
- Extend your reports Take data from Distru and pipe it into other systems for a unified view of your business.
- Maximize your efficiency Automate tasks based on changes in your distribution, manufacturing, and sales.
Base URL
All API requests should be made to the base URL: https://app.distru.com
Getting Started
To integrate with Distru, you'll need to contact a representative that will can enable your account's API access. From there, have a look at the following information on how to authenticate with Distru.
Authentication
An admin user can generate API keys in the Distru app by following these steps.
Steps:
- Log in to Distru with your admin account.
- Navigate to the Settings page from the left menu.
- Click on Distru API under the Integrations section.
- Use the Create API Key option to generate your API token.
Models
Strain
A strain as shown in Distru
{
"id": "12345",
"name": "Strain 123"
}
| Property | Description | Type | Required |
|---|---|---|---|
| id | Unique ID for this strain | string | false |
| name | Name of the strain | string | false |
StockAdjustments
A collection of Stock Adjustments
| Property | Description | Type | Required |
|---|
Product
A product as shown in Distru
{
"brand": {
"name": "Brand 123"
},
"category": {
"id": "89c8323f-aaaa-45v3-88f9-64009d68h3n8",
"name": "Super Dank Buds"
},
"external_name": "Blue Dream Preroll",
"id": "02c88a3f-d759-4973-88f9-60049d682524",
"images": [
{
"id": "12345",
"name": "image.jpg",
"url": "https://example.com/image.jpg"
}
],
"is_active": true,
"msrp": 100.1,
"name": "Blue Dream Preroll 1G",
"sku": "BDP-1G",
"unit_price": 1.5,
"unit_type": {
"name": "Gram"
},
"units_per_case": 6
}
| Property | Description | Type | Required |
|---|---|---|---|
| brand | A brand as shown in Distru | Brand | false |
| category | A product category as shown in Distru | ProductCategory | false |
| company | A company as shown in Distru | Company | false |
| custom_data | The custom data for this product | array(CustomField) | false |
| deleted_at | The datetime of deletion if the product was deleted | string | false |
| description | The description of this product | string | false |
| description_markdown | The description of this product in markdown format | string | false |
| external_name | Customer-facing name for DistruCommerce menus and Order Tracker | string | false |
| id | Unique ID for this product | string | false |
| images | The images associated with the product | array(Image) | false |
| is_active | Is this product active? | boolean | false |
| msrp | The MSRP of the product | number | false |
| name | Human readable name for this product | string | false |
| sku | The SKU configured for the product | string | false |
| strain | A strain as shown in Distru | Strain | false |
| subcategory | A product subcategory as shown in Distru | ProductSubcategory | false |
| unit_cost | The cost (or purchase price) of the product per unit. | number | false |
| unit_net_weight | The net weight of the product per unit | number | false |
| unit_net_weight_and_serving_size_unit_type_id | A unit type as shown in Distru | UnitType | false |
| unit_price | The price of one unit of this product | number | false |
| unit_serving_size | The serving size of the product per unit | number | false |
| unit_type | A unit type as shown in Distru | UnitType | false |
| units_per_case | The number of units of this product that come in one case, if any | number | false |
| updated_datetime | The datetime this product was last updated at | string | false |
AdditionalCost
An additional cost for an assembly as shown in Distru
| Property | Description | Type | Required |
|---|---|---|---|
| cost_per_unit | The cost per unit of the additional cost | number | false |
| description | The description of the additional cost | string | false |
| name | The name of the additional cost | string | false |
| quantity | The quantity of the additional cost | number | false |
| total_cost_actual | The total actual cost of the additional cost | number | false |
| total_cost_default | The total default cost (from the configured cost type) of the additional cost | number | false |
| unit_type | A unit type as shown in Distru | UnitType | false |
Products
A collection of Products
| Property | Description | Type | Required |
|---|
CompanyGroup
A company group as shown in Distru
{
"id": "12345",
"name": "Group 123"
}
| Property | Description | Type | Required |
|---|---|---|---|
| id | Unique ID for this company group | string | false |
| name | Name of the company group | string | false |
Assembly
An assembly as shown in Distru
| Property | Description | Type | Required |
|---|---|---|---|
| assembly_number | The assembly number for this assembly | string | false |
| completion_datetime | The datetime this assembly was completed at | string | false |
| compliance_type | The compliance type for this assembly. Options include METRC, BIOTRACK or NONE | string | false |
| creation_source | The creation source for this assembly | string | false |
| custom_data | The custom data for this assembly | array(CustomField) | false |
| description | The description for this assembly | string | false |
| estimated_start_date | The datetime this assembly is expected to start | string | false |
| estimated_work_hours | The estimated work hours for this assembly | integer | false |
| estimated_work_minutes | The estimated work minutes for this assembly | integer | false |
| fulfilled | True if all assembly inputs have been fulfilled with batches or packages, false otherwise. | boolean | false |
| id | Unique ID for this assembly | string | false |
| is_metrc_processing_job | True if this assembly is associated with a Metrc processing job, false otherwise | boolean | false |
| license | The license number for this assembly | string | false |
| outputs | The outputs for this assembly | array(AssemblyOutput) | false |
| owner_id | The ID of the user that owns this assembly | string | false |
| status | The status of this assembly | string | false |
OrderItemsRequest
A collection of Order item params
| Property | Description | Type | Required |
|---|
Locations
A collection of Locations
| Property | Description | Type | Required |
|---|
Charge
A line representing a Tax, Discount, or Charge added to an order
| Property | Description | Type | Required |
|---|---|---|---|
| id | Unique ID for this charge | string | false |
| name | The name for this charge | string | false |
| percent | The percent to charge for this line if it is a percentage | number | false |
| price | The price of this line if it is a flat charge | number | false |
| type | What type of additional line is this | array(any) | false |
| unit_type | Determines if this line is tracked as a percentage or a flat charge | array(any) | false |
| tax.id | Unique ID for this Tax | string | false |
| tax.name | The name of this tax | string | false |
| tax.percent | The amount of tax levied | string | false |
Strains
A collection of Strains. Note: This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
| Property | Description | Type | Required |
|---|
Role
A user role as shown in Distru
{
"id": "12345",
"name": "Admin"
}
| Property | Description | Type | Required |
|---|---|---|---|
| id | Unique ID for this role | string | false |
| name | Name of the role | string | false |
OrderTransferTemplateTransporterInfoRequest
A Metrc-specific Order transfer template transporter info
| Property | Description | Type | Required |
|---|---|---|---|
| driver_license_number | The driver's license number | string | false |
| driver_name | The driver's name | string | false |
| driver_occupational_license_number | The driver's occupational license number | string | false |
| driver_phone_number | The driver's phone number | string | false |
| estimated_arrival_datetime | The estimated arrival datetime (ISO 8601 format) | string | false |
| estimated_departure_datetime | The estimated departure datetime (ISO 8601 format) | string | false |
| transporter_license_number | The transporter's license number | string | false |
| vehicle_license_plate_number | The vehicle's license plate number | string | false |
| vehicle_make | The vehicle's make | string | false |
| vehicle_model | The vehicle's model | string | false |
InvoiceItemsRequest
A collection of invoice item params
| Property | Description | Type | Required |
|---|
InvoiceItem
A invoice line item as shown in Distru
| Property | Description | Type | Required |
|---|---|---|---|
| batch | A batch for a product as shown in Distru | Batch | false |
| cost_per_unit | The cost per unit of this invoice item. | number | false |
| cost_per_unit_default | The default cost per unit (from the configured product unit cost) of this invoice item. | number | false |
| id | Unique ID for this invoice item | string | false |
| package | A package as shown in Distru | Package | false |
| price | Price per unit of this invoice item | number | false |
| product | A product as shown in Distru | Product | false |
| quantity | Quantity used on this invoice item | number | false |
| returned_quantity | Quantity returned on this invoice item. This is the sum of all return items associated with this invoice item allocated proportionally based on the quantity |
of the invoice item relative to its associated order item. For example, if an invoice item with a quantity of 1 has an order item with a quantity of 2, and a return item with a quantity of 2, the returned_quantity would be 1, calculated as (1 ÷ 2) × 2. |number|false| |total_cost_actual|Total cost of the non-returned quantity in this order item, in other words, this is the total cost of order_item.quantity minus order_item.returned quantity. The cost is allocated proportionally based on the quantity of the invoice item relative to its associated order item. For example, if an invoice item with a quantity of 1 has an order item with a quantity of 2 and a total cost of $10, the total_cost_actual would be $5, calculated as (1 ÷ 2) × $10. |number|false| |total_cost_default|Default cost of the non-returned quantity in this order item, in other words, this is the default cost of order_item.quantity minus order_item.returned quantity. The cost is allocated proportionally based on the quantity of the invoice item relative to its associated order item. For example, if an invoice item with a quantity of 1 has an order item with a quantity of 2 and a total cost of $10, the total_cost_default would be $5, calculated as (1 ÷ 2) × $10. |number|false|
RelationshipType
A relationship type as shown in Distru
{
"id": "12345",
"name": "Supplier"
}
| Property | Description | Type | Required |
|---|---|---|---|
| id | Unique ID for this relationship type | string | false |
| name | Name of the relationship type | string | false |
OrderItemRequest
Order item params
| Property | Description | Type | Required |
|---|---|---|---|
| batch_id | The ID of the batch (if the product is batch-tracked) | string | false |
| id | Unique ID for this order item. If it exists, an update will be performed; otherwise, it will be used as the ID of a new order item record | string | false |
| is_sample | True if this order is a sample | boolean | false |
| package_id | The ID of the package (if the product is package-tracked) | string | false |
| price_base | Price per unit of this order item (prior to price tier items being applied) | number | true |
| product_id | The ID of the product (if the product is product-tracked) | string | false |
| quantity | Quantity used on this order item | number | true |
Batch
A batch for a product as shown in Distru
| Property | Description | Type | Required |
|---|---|---|---|
| id | Unique ID for this batch | string | false |
| name | Human readable name for this batch | string | false |
TestResults
A collection of Test Results
| Property | Description | Type | Required |
|---|
PurchaseChargesRequest
A collection of 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 that this package expires | string | false |
| id | Unique ID for this package in Distru | string | false |
| is_trade_sample | True if this package is a Metrc trade sample | boolean | false |
| license | A license as shown in Distru | License | false |
| product_unit_quantity | The quantity of this package expressed in it's product's unit type | string | false |
| product_unit_type | A unit type as shown in Distru | UnitType | false |
| quantity | The last known accurate quantity of this package | string | false |
| quantity_assembling | This quantity of this package currently allocated towards a pending assembly | string | false |
| quantity_available | The quantity available for use of this package (i.e. inventory that is not held up on a sales order or assembly.) | string | false |
| status | The status of this package | array(any) | false |
| total_cost_actual | The total actual cost of this package | number | false |
| total_cost_default | The total default cost (from the configured product unit cost) of this package | number | false |
| unit_type | A unit type as shown in Distru | UnitType | false |
| location.id | Unique ID for this Location | string | false |
| location.name | The name of this Location | string | false |
License
A license as shown in Distru
| Property | Description | Type | Required |
|---|---|---|---|
| id | Unique ID for this license | string | false |
| license_number | License number | string | false |
Purchases
A collection of Purchases
| Property | Description | Type | Required |
|---|
AssemblyOutput
An output for an assembly as shown in Distru
| Property | Description | Type | Required |
|---|---|---|---|
| additional_costs | The additional costs for this assembly output | array(AdditionalCost) | false |
| batch | A batch for a product as shown in Distru | Batch | false |
| compliance_label | The compliance label for this assembly output | string | false |
| compliance_quantity | The quantity of this output expressed in the package's unit type. Null if this input is not package-tracked. | number | false |
| cost_per_unit_actual | The cost per unit of this output | number | false |
| cost_per_unit_default | The default cost per unit (from the configured product unit cost) of this output | number | false |
| expiration_date | The expiration date for this assembly output | string | false |
| ingredients | The ingredients for this assembly output | array(AssemblyInput) | false |
| is_finished_good | Is this output a finished good? | boolean | false |
| is_production_batch | Is this output a production batch? | boolean | false |
| location | A location as shown in Distru | Location | false |
| package | A package as shown in Distru | Package | false |
| package_date | The date that this package was created at | string | false |
| package_unit_type | A unit type as shown in Distru | UnitType | false |
| product | A product as shown in Distru | Product | false |
| quantity | The quantity of this output in its product's unit | number | false |
| total_cost_actual | The total actual cost of this output | number | false |
| total_cost_default | The total default cost (from the configured product unit cost) of this output | number | false |
PurchaseItemsRequest
A collection of purchase item params
| Property | Description | Type | Required |
|---|
Location
A location as shown in Distru
| Property | Description | Type | Required |
|---|---|---|---|
| address | Human readable address for this location | string | false |
| company_id | ID of the company that owns this location | string | false |
| deleted_at | The datetime of deletion if the location was deleted | string | false |
| id | Unique ID for this location | string | false |
| license | A license as shown in Distru | License | false |
| license_id | ID of the license that this location is associated with, if null, then this location is not associated to a license | string | false |
| name | Human readable name for this location | string | false |
TestResult
A test result as shown in Distru
| Property | Description | Type | Required |
|---|---|---|---|
| additional_test_results | An additional test result object for a test result as shown in Distru | AdditionalTestResult | false |
| cbd_mg_per_unit | The CBD mg per unit for this test result | string | false |
| cbd_percentage | The CBD percentage for this test result | string | false |
| id | Unique ID for this test result | string | false |
| is_primary | True if this is the primary test result for the product | boolean | false |
| lab_license_number | The license number for the lab that performed this test | string | false |
| lab_name | The name of the lab that performed this test | string | false |
| mg_per_unit_type | The unit type for the mg per unit fields | string | false |
| name | The name of the test result | string | false |
| release_date | The release date for this test result | string | false |
| thc_mg_per_unit | The THC mg per unit for this test result | string | false |
| thc_percentage | The THC percentage for this test result | string | false |
| total_cbd_mg_per_unit | The total CBD mg per unit for this test result | string | false |
| total_cbd_percentage | The total CBD percentage for this test result | string | false |
| total_thc_mg_per_unit | The total THC mg per unit for this test result | string | false |
| total_thc_percentage | The total THC percentage for this test result | string | false |
| updated_datetime | The datetime this test result was updated at | string | false |
ProductCategory
A product category as shown in Distru
{
"id": "88c02a3f-57d9-9473-f8f9-40609d68bbh4",
"name": "Flower",
"type": "FLOWER"
}
| Property | Description | Type | Required |
|---|---|---|---|
| id | Unique ID for this category | string | false |
| name | Human readable name for this category | string | false |
| type | The type of this category | string | false |
OrderChargesRequest
A collection of Order charge params
| Property | Description | Type | Required |
|---|
Contact
Information about a contact in Distru's CRM
{
"company": {
"id": "3f128a34-cc59-4b49-8883-23bf10e59c6c"
},
"email": "contact@example.com",
"full_name": "John Doe",
"id": "12345",
"owner": {
"id": "02c88a3f-d759-4973-88f9-60049d682524"
}
}
| Property | Description | Type | Required |
|---|---|---|---|
| company | A company as shown in Distru | Company | false |
| custom_data | The custom data for this contact | array(CustomField) | false |
| deleted_at | The datetime of deletion if the contact was deleted | string | false |
| description | The description of this contact | string | false |
| driver_license_issuing_state | Driver license issuing state for shipping manifests | string | false |
| driver_license_number | Driver license number for shipping manifests | string | false |
| The email address of this contact | string | false | |
| first_name | The first name of this contact | string | false |
| full_name | The full name of this contact | string | false |
| id | Unique ID for this contact | string | false |
| last_name | The last name of this contact | string | false |
| owner | Information about a user in Distru | User | false |
| phone_number | The phone number of this contact | string | false |
| title | The title of this contact | string | false |
| work_phone_number | The work phone number of this contact | string | false |
PaymentMethods
A collection of Payment Methods
| Property | Description | Type | Required |
|---|
InvoiceChargeRequest
Invoice charge params
| Property | Description | Type | Required |
|---|---|---|---|
| id | Unique ID for this invoice charge. If it exists, an update will be performed; otherwise, it will be used as the ID of a new invoice charge record | string | false |
| name | The name of this charge | string | false |
| percent | The percent (if it is percent-based) of this charge | number | false |
| price | The flat price (if it is price-based) of this charge | number | false |
| type | Determines if this is a charge or discount | string | true |
| unit_type | Determines if this line is tracked as a percentage or a flat charge | string | true |
Companies
A collection of companies
| Property | Description | Type | Required |
|---|
UnitType
A unit type as shown in Distru
{
"name": "Gram"
}
| Property | Description | Type | Required |
|---|---|---|---|
| id | Unique ID for this unit type | string | false |
| name | Human readable name for this unit type | string | false |
ProductPosMapping
A mapping between a Distru product and a POS product
| Property | Description | Type | Required |
|---|---|---|---|
| blaze_product_id | Blaze product ID | string | false |
| blaze_retailer_id | Blaze retailer ID | string | false |
| dutchie_product_id | Dutchie product ID | integer | false |
| dutchie_retailer_id | Dutchie retailer ID | string | false |
| id | Mapping ID | string | false |
| inserted_at | Creation timestamp | string | false |
| pos_type | POS type (BLAZE, DUTCHIE, or TREEZ) | string | false |
| product_id | Distru product ID | string | false |
| treez_product_id | Treez product ID | string | false |
| treez_retailer_id | Treez retailer ID | string | false |
| updated_at | Last update timestamp | string | false |
Company
A company as shown in Distru
| Property | Description | Type | Required |
|---|---|---|---|
| category | The category of this company | string | false |
| custom_data | The custom data for this company | array(CustomField) | false |
| default_email | The default email for this company | string | false |
| default_purchase_order_notes | The default notes that will be automatically added to purchase orders when this company is the supplier | string | false |
| default_sales_order_notes | The default external notes that will be automatically added to sales orders when this company is the customer | string | false |
| deleted_at | The datetime this company relationship was deleted at | string | false |
| group | A company group as shown in Distru | CompanyGroup | false |
| id | Unique ID for this company | string | false |
| invoice_email | The email address where sales order invoices are delivered | string | false |
| legal_business_name | The legal business name for this company | string | false |
| licenses | The license for the company | array(License) | false |
| locations | The location for the company | array(Location) | false |
| name | Human readable name for this company | string | false |
| order_shipment_email | The email address where sales order shipment packing slips are delivered | string | false |
| outstanding_balance_threshold | Threshold that determines when a company is considered to have a too high an outstanding balance. When exceeded, Distru will show a warning banner in the company's page and when selling to this company. | integer | false |
| owner_id | The ID of the user that owns this company | string | false |
| phone_number | The phone number for this company | string | false |
| purchase_order_email | The email address where purchase order slips are delivered | string | false |
| relationship_type | A relationship type as shown in Distru | RelationshipType | false |
| sales_order_email | The email address where sales order slips are delivered | string | false |
| updated_datetime | The datetime this company was last updated at | string | false |
| website | The website for this company | string | false |
AssemblyInput
An input for an assembly as shown in Distru
| Property | Description | Type | Required |
|---|---|---|---|
| batch | A batch for a product as shown in Distru | Batch | false |
| compliance_quantity | The quantity of this input expressed in the package's unit type. Null if this input is not package-tracked. | number | false |
| cost_per_unit_actual | The cost per unit of this input | number | false |
| cost_per_unit_default | The default cost per unit (from the configured product unit cost) of this input | number | false |
| location | A location as shown in Distru | Location | false |
| package | A package as shown in Distru | Package | false |
| product | A product as shown in Distru | Product | false |
| quantity | The quantity of this input in its product's unit | number | false |
| total_cost_actual | The total actual cost of this input | number | false |
| total_cost_default | The total default cost (from the configured product unit cost) of this input | number | false |
Inventories
A list of active and available quantity for each group
| Property | Description | Type | Required |
|---|
Brand
A brand as shown in Distru
{
"name": "Brand 123"
}
| Property | Description | Type | Required |
|---|---|---|---|
| name | Name of the brand | string | false |
Users
A collection of Users
| Property | Description | Type | Required |
|---|
Assembly
Get assemblies
GET /public/v1/assemblies returns proper data for non-compliance assembly
GET /public/v1/assemblies?creation_source=MANUALLY_CREATED&page[number]=1
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTksImlhdCI6MTc3MzE1MjI1OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGI2ZmYwOTgtMjUwNy00Yzg4LWFlN2EtOTA3OGY5ZDVlOTRiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTMxNiIsInR5cCI6ImFjY2VzcyJ9.hQpA3eQ_RnH2EQ0suT8bD7QBHxkoOMh7hhgfAae30LY
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: aa1ae1bf962530000000000000000001-da230c438d644055-0
{
"data": [
{
"assembly_number": "AS-0000001",
"completion_datetime": "2026-03-10T14:17:39.974390Z",
"compliance_type": "NONE",
"creation_source": "MANUALLY_CREATED",
"custom_data": [
{
"id": 214,
"name": "Custom Field 13",
"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": "af066401-96ec-4185-bded-446149cf36e2",
"is_metrc_processing_job": false,
"license": null,
"outputs": [
{
"additional_costs": [
{
"cost_per_unit": "-1",
"description": null,
"name": "CostType 2",
"quantity": "1",
"total_cost_actual": "-1",
"total_cost_default": "0",
"unit_type": {
"id": "00000000-0000-0000-0000-000000016b56",
"name": "Unit Type 5"
}
}
],
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000fc2",
"name": "B1021"
},
"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-000000000fc2",
"name": "B1021"
},
"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-000000001c29",
"id": "00000000-0000-0000-0000-000000000855",
"license_id": null,
"name": "Place 171"
},
"package": null,
"product": {
"id": "8acbbd7e-bcff-4ff5-8d60-d0e1bf87d5f1",
"name": "Product 1016",
"sku": "sku 1017",
"updated_datetime": "2026-03-10T14:17:39.944096Z"
},
"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-000000001c29",
"id": "00000000-0000-0000-0000-000000000855",
"license_id": null,
"name": "Place 171"
},
"package": null,
"package_datetime": null,
"package_unit_type": null,
"product": {
"id": "8acbbd7e-bcff-4ff5-8d60-d0e1bf87d5f1",
"name": "Product 1016",
"sku": "sku 1017",
"updated_datetime": "2026-03-10T14:17:39.944096Z"
},
"quantity": "2",
"total_cost_actual": "-0.6",
"total_cost_default": "1"
}
],
"owner_id": "00000000-0000-0000-0000-000000002464",
"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-00000056&page[number]=1
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjAsImlhdCI6MTc3MzE1MjI2MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTY0MDczMDktODM0ZC00MmY2LWE2NmEtMzhmZjNhYTM1MzVjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTM1OCIsInR5cCI6ImFjY2VzcyJ9.kAFapdo1sCWEB24RnNb853-e5MXh0OHYFYhSjZUx_fI
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 6b4012055dbea0000000000000000001-026063e2b5b38778-0
{
"data": [
{
"assembly_number": "AS-0000001",
"completion_datetime": null,
"compliance_type": "METRC",
"creation_source": "MANUALLY_CREATED",
"custom_data": [
{
"id": 215,
"name": "Custom Field 14",
"value": null
}
],
"description": null,
"estimated_start_date": null,
"estimated_work_hours": null,
"estimated_work_minutes": null,
"fulfilled": true,
"id": "047e1523-1cb6-4f19-865d-37cff001639b",
"is_metrc_processing_job": false,
"license": {
"id": "00000000-0000-0000-0000-0000000002ae",
"license_number": "CDPH-00000056"
},
"outputs": [
{
"additional_costs": [],
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000fd6",
"name": "B1076"
},
"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-000000000fd6",
"name": "B1076"
},
"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-000000001c46",
"id": "00000000-0000-0000-0000-000000000861",
"license_id": "00000000-0000-0000-0000-0000000002ae",
"name": "Place 183"
},
"package": {
"batch_number": "1234567890",
"compliance_label": "ABCDEF012345670000000104",
"id": "00000000-0000-0000-0000-00000000019c",
"metrc_label": "ABCDEF012345670000000104",
"status": "active"
},
"product": {
"id": "836a7fd5-5ed6-4a52-b397-1b0ef876f64a",
"name": "Product 1074",
"sku": "sku 1075",
"updated_datetime": "2026-03-10T14:17:40.102207Z"
},
"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-000000001c46",
"id": "00000000-0000-0000-0000-000000000861",
"license_id": "00000000-0000-0000-0000-0000000002ae",
"name": "Place 183"
},
"package": null,
"package_datetime": "2026-03-10",
"package_unit_type": {
"id": "00000000-0000-0000-0000-000000016c61",
"name": "Gram"
},
"product": {
"id": "836a7fd5-5ed6-4a52-b397-1b0ef876f64a",
"name": "Product 1074",
"sku": "sku 1075",
"updated_datetime": "2026-03-10T14:17:40.102207Z"
},
"quantity": "2",
"total_cost_actual": null,
"total_cost_default": null
}
],
"owner_id": "00000000-0000-0000-0000-00000000248e",
"status": "PENDING"
}
],
"next_page": null
}
GET /public/v1/assemblies returns proper data for completed metrc assembly
GET /public/v1/assemblies?completion_datetime=2026-03-10+13%3A17%3A39.761934Z%2C2026-03-10+15%3A17%3A39.761934Z&creation_source=MANUALLY_CREATED&license_number=CDPH-00000038&page[number]=1
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTksImlhdCI6MTc3MzE1MjI1OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjdkN2ZmYzktN2NlNi00YzI5LWJjZDItNDcxODliMzE3MmIwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTIxOSIsInR5cCI6ImFjY2VzcyJ9.hj-Von6Eo-hUg8FDPVSK334cocJCCDMDqriJtlV51JM
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: d7639b7444cee8000000000000000001-48d6dba5b290003d-0
{
"data": [
{
"assembly_number": "AS-0000001",
"completion_datetime": "2026-03-10T14:17:39.761934Z",
"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": "be85d9a1-f190-4ae7-9173-da8ed716c5ac",
"is_metrc_processing_job": false,
"license": {
"id": "00000000-0000-0000-0000-00000000029c",
"license_number": "CDPH-00000038"
},
"outputs": [
{
"additional_costs": [],
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000f95",
"name": "B884"
},
"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-000000000f95",
"name": "B884"
},
"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-000000001bde",
"id": "00000000-0000-0000-0000-00000000083c",
"license_id": "00000000-0000-0000-0000-00000000029c",
"name": "Place 146"
},
"package": {
"batch_number": "1234567890",
"compliance_label": "ABCDEF012345670000000076",
"id": "00000000-0000-0000-0000-00000000018c",
"metrc_label": "ABCDEF012345670000000076",
"status": "active"
},
"product": {
"id": "6e6f1e39-aac0-42ff-a6aa-e9d5c4a1e6da",
"name": "Product 879",
"sku": "sku 880",
"updated_datetime": "2026-03-10T14:17:39.577237Z"
},
"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-000000001bde",
"id": "00000000-0000-0000-0000-00000000083c",
"license_id": "00000000-0000-0000-0000-00000000029c",
"name": "Place 146"
},
"package": {
"batch_number": null,
"compliance_label": "1A4010200001234000000001",
"id": "00000000-0000-0000-0000-00000000018d",
"metrc_label": "1A4010200001234000000001",
"status": "active"
},
"package_datetime": "2026-03-10",
"package_unit_type": {
"id": "00000000-0000-0000-0000-000000016707",
"name": "Gram"
},
"product": {
"id": "6e6f1e39-aac0-42ff-a6aa-e9d5c4a1e6da",
"name": "Product 879",
"sku": "sku 880",
"updated_datetime": "2026-03-10T14:17:39.577237Z"
},
"quantity": "2",
"total_cost_actual": null,
"total_cost_default": null
}
],
"owner_id": "00000000-0000-0000-0000-000000002403",
"status": "COMPLETED"
}
],
"next_page": null
}
GET /public/v1/assemblies returns proper data for biotrack assembly
GET /public/v1/assemblies?completion_datetime=2026-03-10+13%3A17%3A38.609527Z%2C2026-03-10+15%3A17%3A38.609527Z&creation_source=MANUALLY_CREATED&license_number=CDPH-00000004&page[number]=1
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTcsImlhdCI6MTc3MzE1MjI1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDg5Y2ZmMmUtZWNlNy00ZGRmLWI4OTQtZGQxMGVkMDc2MmNiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODQwMCIsInR5cCI6ImFjY2VzcyJ9.spzm3xDtLcEjT9gv5xbp4nHZ3JCxmS_3geB_hddUQBc
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 45aba751c12b6c000000000000000001-9c97afcbc8ef554d-0
{
"data": [
{
"assembly_number": "AS-0000001",
"completion_datetime": "2026-03-10T14:17:38.609527Z",
"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": "a8ed4e0a-8230-4c86-9129-98143df8edbf",
"is_metrc_processing_job": false,
"license": {
"id": "00000000-0000-0000-0000-00000000027a",
"license_number": "CDPH-00000004"
},
"outputs": [
{
"additional_costs": [],
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000e87",
"name": "B60"
},
"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-000000000e87",
"name": "B60"
},
"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-00000000197a",
"id": "00000000-0000-0000-0000-0000000007b3",
"license_id": "00000000-0000-0000-0000-00000000027a",
"name": "Place 9"
},
"package": {
"batch_number": null,
"compliance_label": "1",
"id": "00000000-0000-0000-0000-000000000173",
"metrc_label": "1",
"status": "active"
},
"product": {
"id": "fdece6ce-62ff-4922-a86e-623c2d7552c8",
"name": "Product 58",
"sku": "sku 59",
"updated_datetime": "2026-03-10T14:17:37.212613Z"
},
"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-00000000197a",
"id": "00000000-0000-0000-0000-0000000007b3",
"license_id": "00000000-0000-0000-0000-00000000027a",
"name": "Place 9"
},
"package": {
"batch_number": null,
"compliance_label": null,
"id": "00000000-0000-0000-0000-000000000179",
"metrc_label": null,
"status": "active"
},
"package_datetime": null,
"package_unit_type": {
"id": "00000000-0000-0000-0000-00000001484f",
"name": "Gram"
},
"product": {
"id": "fdece6ce-62ff-4922-a86e-623c2d7552c8",
"name": "Product 58",
"sku": "sku 59",
"updated_datetime": "2026-03-10T14:17:37.212613Z"
},
"quantity": "1",
"total_cost_actual": null,
"total_cost_default": null
}
],
"owner_id": "00000000-0000-0000-0000-0000000020d0",
"status": "COMPLETED"
}
],
"next_page": null
}
Get assemblies ordered from oldest to newest by their last modified date.
Note: The page size for this endpoint is 500 assemblies per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Request
GET /public/v1/assemblies
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| completion_datetime | Filter assemblies by their completion datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| page | Pagination information | 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNmU2Y2ZkZjgtOTNjOC00ZDY3LTkwMGQtOTI0MDlhOTI3MGE4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODc1MiIsInR5cCI6ImFjY2VzcyJ9.Vr30aIjVEUCbIX6xURomkfU40e2IpVFFdMZJ7uEOMAU
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 2fd203d9d42b8a000000000000000001-ac0ad9c54d884f08-0
{
"data": [
{
"batch_number": null,
"custom_data": [
{
"id": 206,
"name": "Custom Field 5",
"value": "Custom Data 1"
}
],
"deleted_at": null,
"description": null,
"expiration_date": "2024-01-01T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-000000000ebf",
"manufactured_datetime": "2024-01-02T03:04:05.000000Z",
"name": "B302",
"owner_id": "00000000-0000-0000-0000-000000002236",
"primary_test_result": null,
"product_id": "1e3fabbc-ea67-42f8-aa49-34f9befb52a5"
},
{
"batch_number": null,
"custom_data": [
{
"id": 206,
"name": "Custom Field 5",
"value": null
}
],
"deleted_at": null,
"description": null,
"expiration_date": null,
"id": "00000000-0000-0000-0000-000000000ec0",
"manufactured_datetime": "2024-01-02T03:04:05.000000Z",
"name": "B305",
"owner_id": "00000000-0000-0000-0000-00000000223d",
"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": "7188a191-218a-4696-b11c-4fc64f7ac1f7"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNjAxNWIxNTEtZTA4OS00YzI0LTkwZjUtYzM1YjI0NTU3Y2RkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODkwOCIsInR5cCI6ImFjY2VzcyJ9.kyZrsHV689w811csnYw-j4uBqjUY6sLCo1BH3zmp-FI
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 517d697ad31994000000000000000001-979ba69fca261245-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-000000000ee9",
"manufactured_datetime": "2026-03-10T14:17:38.711310Z",
"name": "B445",
"owner_id": "00000000-0000-0000-0000-0000000022d7",
"primary_test_result": null,
"product_id": "9623e66b-2a48-43d5-a650-259caacbcdbd",
"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-000000000e94&batch_ids[]=00000000-0000-0000-0000-000000000e96
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTcsImlhdCI6MTc3MzE1MjI1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTU1OThkYzgtYTdjNC00NzhhLTk5MDUtYzllNjhlY2U4YTdmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODQ1NSIsInR5cCI6ImFjY2VzcyJ9.n4qfCqnxP_25KFGVWUAS1dW-YHbO4w26QY7KiNzvoy0
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 1b7c8b9941e108000000000000000001-bd1161dc5f681aeb-0
{
"data": [
{
"batch_number": null,
"custom_data": [],
"deleted_at": null,
"description": null,
"expiration_date": null,
"id": "00000000-0000-0000-0000-000000000e94",
"manufactured_datetime": "2026-03-10T14:17:37.369152Z",
"name": "B113",
"owner_id": "00000000-0000-0000-0000-00000000210a",
"primary_test_result": null,
"product_id": "ef5cdc84-7a6e-4132-885d-d113ae1b9e08"
},
{
"batch_number": null,
"custom_data": [],
"deleted_at": null,
"description": null,
"expiration_date": null,
"id": "00000000-0000-0000-0000-000000000e96",
"manufactured_datetime": "2026-03-10T14:17:37.369152Z",
"name": "B119",
"owner_id": "00000000-0000-0000-0000-000000002114",
"primary_test_result": null,
"product_id": "b97cb85b-9bc1-4631-89e6-33f7bd327e17"
}
],
"next_page": null
}
Get batches sorted by their creation date and filtered by various attributes.
Note: The page size for this endpoint is 5000 batches per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Request
GET /public/v1/batches
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjU5OGQ2OTgtZWE5Zi00ZGY5LWEwNzYtNDkyZDlkMjM0ZDYwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODY3OSIsInR5cCI6ImFjY2VzcyJ9.phOU45BFh8ZX1ltl1ggWx4nNcBnprEf8VUkx0X_O_2o
{
"owner_id": "2ca76d9a-ffd2-48a3-8424-762e889c77ec",
"product_id": "a5128c44-2968-46f5-adb0-b1d751a4c02b"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 3a549a75ae3d3c000000000000000001-6f42fe3b540f421d-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTcsImlhdCI6MTc3MzE1MjI1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTdjMDQ3YjUtYWFmNi00YWQ0LTlmMzYtYjAxMTcxZWQ2YWZkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU0NyIsInR5cCI6ImFjY2VzcyJ9.TF9CFVtvoICGLm_7cIYgXq6OopFZL3seChHReU9gXW0
{
"product_id": "f7c6d968-30c6-40ac-8738-8d4e956060b2"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: e6e5967166e350000000000000000001-fead3699127abf60-0
{
"data": {
"batch_number": null,
"custom_data": [],
"deleted_at": null,
"description": null,
"expiration_date": null,
"id": "00000000-0000-0000-0000-000000000ea4",
"manufactured_datetime": "2026-03-10T14:17:37.723254Z",
"name": "B1",
"owner_id": null,
"product_id": "f7c6d968-30c6-40ac-8738-8d4e956060b2"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDhiZTU4YzgtOGIyNS00MzVmLWJkZDQtZTM1OGRhMjA0ZTY5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODgzMiIsInR5cCI6ImFjY2VzcyJ9.JOww-rEQKPzKamK01kBuaN7sLA-79OESw8wKu5nB-Uo
{
"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-00000000228c",
"product_id": "df47ebc4-30a6-4c0e-ab2b-ff2017042456"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 39ebec540bd5e2000000000000000001-1f755f97ee07275c-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-000000000ed7",
"manufactured_datetime": "2025-01-02T03:04:05.000000Z",
"name": "B1",
"owner_id": "00000000-0000-0000-0000-00000000228c",
"product_id": "df47ebc4-30a6-4c0e-ab2b-ff2017042456"
}
}
Create a single batch.
Request
POST /public/v1/batches
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| product_id | The ID of the product that this batch belongs to. | query | string | false | ||
| batch_number | The batch number of the batch. | query | string | false | ||
| expiration_date | The expiration date of the batch. | query | string | false | ||
| manufactured_datetime | The manufactured datetime of the batch (ISO 8601 format). | query | string | false | ||
| owner_id | The ID of the user that is the designated owner of this batch. | query | string | false | ||
| description | The description of the batch. | query | string | false |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single batch | Batch |
Company
Get companies
GET /public/companies returns companies related to the company
GET /public/v1/companies
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjRmNTQxNjUtNWMxYS00MDNiLWJhZDUtZWFhOTJjZDc3YmRhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODcyNSIsInR5cCI6ImFjY2VzcyJ9.BNc_L6W3ozB-b5DfW2IZUGZTiZILikDzADR8kcuZiR0
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: db2872e4849d58000000000000000001-681d6b2569098b39-0
{
"data": [
{
"category": "Retailer",
"custom_data": [
{
"id": 205,
"name": "Custom Field 4",
"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-00000000000c",
"name": "Comp Rel Group 1"
},
"id": "00000000-0000-0000-0000-0000000013d6",
"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-000000001a6c",
"id": "00000000-0000-0000-0000-0000000007f0",
"license_id": null,
"name": "Place 70"
}
],
"name": "Company 285",
"order_shipment_email": "order shipment email",
"outstanding_balance_threshold": 1000,
"owner_id": "00000000-0000-0000-0000-000000002226",
"phone_number": "1234567890",
"purchase_order_email": "purchase email",
"relationship_type": {
"id": "00000000-0000-0000-0000-00000000000c",
"name": "Supplier"
},
"sales_order_email": "order email",
"updated_datetime": "2023-11-03T00:00:00.000000Z",
"website": "https://www.example.com"
},
{
"category": "Lab",
"custom_data": [
{
"id": 205,
"name": "Custom Field 4",
"value": null
}
],
"default_email": "company-677@example.com",
"default_purchase_order_notes": null,
"default_sales_order_notes": null,
"deleted_at": null,
"group": null,
"id": "00000000-0000-0000-0000-0000000013da",
"invoice_email": null,
"legal_business_name": "Company Legal Name 290",
"licenses": [
{
"id": "00000000-0000-0000-0000-000000000288",
"license_number": "CDPH-00000018"
}
],
"locations": [],
"name": "Company 290",
"order_shipment_email": null,
"outstanding_balance_threshold": null,
"owner_id": null,
"phone_number": null,
"purchase_order_email": null,
"relationship_type": null,
"sales_order_email": null,
"updated_datetime": "2023-12-02T00:00:00.000000Z",
"website": null
}
],
"next_page": null
}
Get companies sorted by their creation date and filtered by various attributes
Note: The page size for this endpoint is 5000 companies per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Request
GET /public/v1/companies
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| inserted_datetime | Filter companies by their creation datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| deleted | Filter deleted companies. no returns non-deleted, only returns deleted, include returns both. |
query | string | false | no | |
| page | Pagination information | 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiODFkNmFmOWItMWJkMS00ZDgxLTg4M2UtMzRjMzkxZTJlOTQ5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODkzMCIsInR5cCI6ImFjY2VzcyJ9.FqEY6xmyIchLmDrSaZrquY45rCUBeyPaOOtY08S2UCE
{
"name": "New Retailer"
}
Response
201
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 2c40c601b598fc000000000000000001-492d4565253047b4-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-00000000144c",
"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-03-10T14:17:38.823748Z",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMWIyYjFmMzMtNzk2Ny00MmU3LTk3YzUtNTY0NjRlYzlhZjhiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODY5NiIsInR5cCI6ImFjY2VzcyJ9.V8irOiFf_VaWL80gU8E1fdeV4IsJ90qHepCXsnoslAw
{
"category": "Retail",
"custom_data": {
"203": "VIP"
},
"default_email": "info@fullretailer.com",
"default_purchase_order_notes": "Purchase notes",
"default_sales_order_notes": "Sales notes",
"group_id": "00000000-0000-0000-0000-00000000000b",
"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-0000000021fb",
"phone_number": "555-1234",
"purchase_order_email": "purchasing@fullretailer.com",
"relationship_type_id": "00000000-0000-0000-0000-00000000000b",
"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: e144b77d9f7aa8000000000000000001-5e8dd79b295974fe-0
{
"data": {
"category": "Retail",
"custom_data": [
{
"id": 203,
"name": "Custom Field 2",
"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-00000000000b",
"name": "Comp Rel Group 0"
},
"id": "00000000-0000-0000-0000-0000000013c1",
"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-0000000021fb",
"phone_number": "555-1234",
"purchase_order_email": "purchasing@fullretailer.com",
"relationship_type": {
"id": "00000000-0000-0000-0000-00000000000b",
"name": "Supplier"
},
"sales_order_email": "orders@fullretailer.com",
"updated_datetime": "2026-03-10T14:17:38.259991Z",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTcsImlhdCI6MTc3MzE1MjI1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZWIxNGQzMjQtZTJiMS00ZTFlLWEzZDgtZmI2Mzc5YjBiNTcwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU2NyIsInR5cCI6ImFjY2VzcyJ9.THdwNskyRDeHn1u1NTTsa29CSXAf3-kkcvvNIGbZJXo
{
"id": "00000000-0000-0000-0000-000000001396",
"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: 818183b8c172a8000000000000000001-f306c795e83fb33f-0
{
"data": {
"category": "Other",
"custom_data": [],
"default_email": "company-394@example.com",
"default_purchase_order_notes": null,
"default_sales_order_notes": null,
"deleted_at": null,
"group": null,
"id": "00000000-0000-0000-0000-000000001396",
"invoice_email": "newinvoice@example.com",
"legal_business_name": "Company Legal Name 176",
"licenses": [],
"locations": [],
"name": "Updated Name",
"order_shipment_email": null,
"outstanding_balance_threshold": null,
"owner_id": "00000000-0000-0000-0000-000000002179",
"phone_number": null,
"purchase_order_email": null,
"relationship_type": null,
"sales_order_email": null,
"updated_datetime": "2026-03-10T14:17:37.894369Z",
"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.
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYTg2ZDA3ZTUtYjc2Mi00ODY4LTlkZDgtMmI0NzUyZmYxNjBmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODcyNCIsInR5cCI6ImFjY2VzcyJ9.YdNvlfN3O1vrwDOK6B6GBdJZPcEOXQRfPJAFqR_7qSg
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 8c125131411b50000000000000000001-4de62e63a1631a59-0
{
"data": [
{
"company": {
"id": "00000000-0000-0000-0000-0000000013d0"
},
"custom_data": [
{
"id": 204,
"name": "Custom Field 3",
"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-000000000095",
"last_name": "name1",
"owner": {
"id": "00000000-0000-0000-0000-00000000221b"
},
"phone_number": "1234567890",
"title": null,
"work_phone_number": "1234567891"
},
{
"company": {
"id": "00000000-0000-0000-0000-0000000013d4"
},
"custom_data": [
{
"id": 204,
"name": "Custom Field 3",
"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-000000000097",
"last_name": "name2",
"owner": {
"id": "00000000-0000-0000-0000-000000002221"
},
"phone_number": "1234567890",
"title": null,
"work_phone_number": "1234567892"
}
],
"next_page": null
}
Get contacts sorted by their creation date and filtered by various attributes
Note: The page size for this endpoint is 1000 contacts per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Request
GET /public/v1/contacts
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| inserted_datetime | Filter contacts by their creation datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| deleted | Filter deleted contacts. no returns non-deleted, only returns deleted, include returns both. |
query | string | false | no | |
| page | Pagination information | 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMWI5MzcyMjctM2QyOS00OTI3LWJjZWQtMTU4YWUwODgxMTdiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODY4NCIsInR5cCI6ImFjY2VzcyJ9.tcjWdGYIrJjgLqg3gubZQnNxWLWcr5XRjit0Zlm4O84
{
"company_id": "00000000-0000-0000-0000-0000000013bd",
"custom_data": {
"202": "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-0000000021f1",
"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: 73529811778de8000000000000000001-28fa22c9ebcaf85a-0
{
"data": {
"company": {
"id": "00000000-0000-0000-0000-0000000013bd"
},
"custom_data": [
{
"id": 202,
"name": "Custom Field 1",
"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-000000000094",
"last_name": "Doe",
"owner": {
"id": "00000000-0000-0000-0000-0000000021f1"
},
"phone_number": "555-1111",
"title": "Buyer",
"work_phone_number": "555-2222"
}
}
Upsert a single contact. To update an existing contact, pass in an existing contact ID in the id field as well as the other fields you want to update. If you do not pass in an ID, a new contact will be created.
Request
POST /public/v1/contacts
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Unique ID for this contact. If given, the contact matching the ID will be updated. If not given, a new contact will be created. | query | string | false | ||
| first_name | First name for the contact | query | string | true | ||
| last_name | Last name for the contact | query | string | false | ||
| title | Job title for the contact | query | string | false | ||
| Email address for the contact | query | string | false | |||
| phone_number | Phone number for the contact | query | string | false | ||
| work_phone_number | Work phone number for the contact | query | string | false | ||
| description | Description for the contact | query | string | false | ||
| company_id | The ID of the company relationship (company) this contact belongs to | query | string | false | ||
| driver_license_number | Driver license number for shipping manifests | query | string | false | ||
| driver_license_issuing_state | Driver license issuing state for shipping manifests | query | string | false | ||
| owner_id | The ID of the user that owns this contact | query | string | false | ||
| custom_data | The custom data for this contact | query | object | false |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | An updated contact | Contact |
| 201 | A new contact | Contact |
| 400 | Bad request | |
| 404 | Not found |
CustomField
Create a custom field
POST /public/v1/custom-fields can create a custom field of type text
POST /public/v1/custom-fields
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTcsImlhdCI6MTc3MzE1MjI1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTk2OWU2ODEtNzQyZi00N2Q4LTg1ZWItMWM1ZDQ5OTMxYTE2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODYwNSIsInR5cCI6ImFjY2VzcyJ9.5SQ7KTjw4ybKFcbCU4YhCkOGnc9Wv05iHNOSvKvJU_k
{
"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: 8912081ecbf6c0000000000000000001-946eeca643cb4c34-0
{
"data": {
"description": "Notes",
"field_options": [],
"field_type": "text",
"filterable": false,
"id": 197,
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOWQ4OWEwMDUtYTZlNS00YzIwLWE3YzUtYjk0ODIyMGVkMTRkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODYzNyIsInR5cCI6ImFjY2VzcyJ9.r3oM_-qhRtlxdtTaWUyC62T2DT6ft1nDjbTo--SAzdg
{
"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: 70dd6fb920cb84000000000000000001-292511598d52ff13-0
{
"data": {
"description": null,
"field_options": [],
"field_type": "date",
"filterable": false,
"id": 198,
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTYsImlhdCI6MTc3MzE1MjI1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMGZhZjgxYWYtYmQwMy00MjhlLWE0NDMtMTY1NTkwZWNhZDMyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODM1NiIsInR5cCI6ImFjY2VzcyJ9.cWVNwxvirQjq799RMDgCB35CUH-gP7lr3VU60WeCB_g
{
"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: da5483984b4718000000000000000001-9f8a88dbff3f3285-0
{
"data": {
"description": null,
"field_options": [
"A",
"B"
],
"field_type": "dropdown",
"filterable": true,
"id": 179,
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTcsImlhdCI6MTc3MzE1MjI1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiM2VhMGIyN2MtOGFhMi00NTBlLTgzZmItNzAyNDVhMjg1ODlhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODQ4NyIsInR5cCI6ImFjY2VzcyJ9.EvQxo-Vy57UrHSWbW1nvxs0ZGsQzqz8eSVizDCo2I9I
{
"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: e849c5a826b948000000000000000001-7eee9c9cb5bed097-0
{
"data": {
"description": null,
"field_options": [
"Option 1"
],
"field_type": "checkbox",
"filterable": true,
"id": 180,
"name": "Checkbox Field",
"parent_object": "product"
}
}
Create a custom field for the specified parent object. Updates are not supported for this endpoint.
Request
POST /public/v1/custom-fields
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| name | Name of the custom field | query | string | true | ||
| description | Description of the custom field | query | string | false | ||
| parent_object | Parent object attached to the field | query | string | true | ||
| field_type | Field type | query | string | true | ||
| filterable | Whether the field is filterable | query | boolean | false | ||
| field_options | Field options | query | array | false |
Responses
| Status | Description | Schema |
|---|---|---|
| 201 | Custom field created | CustomFieldDefinition |
| 400 | Invalid parameters |
FileAttachment
Insert a file attachment
POST /public/v1/file-attachments uploads and creates a file attachment successfully with simplified reference
POST /public/v1/file-attachments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTcsImlhdCI6MTc3MzE1MjI1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMGU3NWViZWItNTI5Zi00ZDJkLWJlZGYtNTEwNDgzYzEzMzIwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODYwNyIsInR5cCI6ImFjY2VzcyJ9.FTteYvm5Q3oZ0EI22Ox2-hfyvyrYLRimszUwS8TJpGM
{
"file": {
"content_type": "image/png",
"filename": "test-image.png"
},
"name": "My Test Image",
"product_id": "5fbee8d0-7a4a-45bf-80b5-87466e15eeee"
}
Response
201
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: cf99b0e76c2d90000000000000000001-c15e091b22b05297-0
{
"data": {
"ai_order_intake_id": null,
"assembly_id": null,
"batch_id": null,
"company_relationship_id": null,
"contact_id": null,
"id": "00000000-0000-0000-0000-00000000006d",
"invoice_id": null,
"license_id": null,
"mime_type": "image/png",
"name": "My Test Image",
"order_id": null,
"order_shipment_id": null,
"product_id": "5fbee8d0-7a4a-45bf-80b5-87466e15eeee",
"purchase_id": null,
"request_id": null,
"return_id": null,
"size_in_bytes": 355974,
"stock_transfer_id": null,
"task_id": null,
"upload_datetime": "2026-03-10T14:17:37.948418Z",
"uploader": {
"id": "00000000-0000-0000-0000-00000000219f",
"name": "FirstName532 LastName533"
},
"url": "/tmp/e543ae62-bd68-4526-bbc4-4d4c8dadc7af/test-image.png"
}
}
Insert a new file attachment. The file will be uploaded to S3 and associated with the specified entity. Exactly one reference ID must be provided (product_id, order_id, purchase_id, etc.).
Request
POST /public/v1/file-attachments
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| file | The file to upload | formData | file | true | ||
| name | Display name for the attachment (defaults to filename if not provided) | formData | string | false | ||
| product_id | Product ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
| order_id | Order ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
| purchase_id | Purchase ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
| invoice_id | Invoice ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
| batch_id | Batch ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
| contact_id | Contact ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
| company_relationship_id | Company relationship ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
| request_id | Request ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
| task_id | Task ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
| stock_transfer_id | Stock transfer ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
| assembly_id | Assembly ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
| return_id | Return ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
| order_shipment_id | Order shipment ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
| license_id | License ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 |
Responses
| Status | Description | Schema |
|---|---|---|
| 201 | File attachment inserted successfully | FileAttachment |
| 400 | Invalid parameters | |
| 422 | Storage quota exceeded or other validation error |
Inventory
Get inventory levels
GET /public/v1/inventory returns stock quantities filtered by product IDs
GET /public/v1/inventory?grouping[]=PRODUCT&product_ids[]=b22d24df-4aa3-451e-b6aa-f247e913f3c9
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjEsImlhdCI6MTc3MzE1MjI2MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZGJhMjlmOTMtNWYyMi00NjcxLTk5ZGItMzk4NDRhMmEyZThiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjYwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTYwOCIsInR5cCI6ImFjY2VzcyJ9.XuZ-fste3jVzGDVc_hYebiw7LothuNErD7hE-KvAgac
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 458df63f2251e4000000000000000001-f0dfeedf58a45d5c-0
{
"data": [
{
"active": "10.000000000",
"available": "10.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "b22d24df-4aa3-451e-b6aa-f247e913f3c9",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-03-10T14:17:41.482458Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjIsImlhdCI6MTc3MzE1MjI2MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjUwZmQ5NmQtMjM2Ni00MWFhLWI0NzktZmMxZTc0ZTFhMDExIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjYxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTg5OCIsInR5cCI6ImFjY2VzcyJ9.eluHIbFnpk-lCHW7KqpZPq3erSEMYIlBhjmY9O_CsIA
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 7d75aab2edfff0000000000000000001-71b456c20825b4c1-0
{
"data": [
{
"active": "95.000000000",
"available": "80.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "7a24a3d8-99be-4fd0-be77-72f42c9705cf",
"reserved": "15.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-03-10T14:17:43.079804Z"
},
{
"active": "100.000000000",
"available": "90.000000000",
"cost_default_per_unit": "2.06",
"cost_per_unit_actual": "0.03",
"product_id": "c5cd2074-a1c6-4949-8caa-b6659b0ae861",
"reserved": "10.000000000",
"total_cost_actual": "3",
"total_cost_default": "206",
"updated_datetime": "2026-03-10T14:17:43.078198Z"
},
{
"active": "50.000000000",
"available": "50.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "e6401fdc-dbd5-4be4-91c1-a7af2dd009d2",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-03-10T14:17:42.989323Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMmNkMjM3N2ItNzIyZi00OWZjLTljOWMtNTJjZWI1MGVmOGQ5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODc4NCIsInR5cCI6ImFjY2VzcyJ9.gfyyGYg3RigEmGtJFB-8LqzdTv0ZYk8qUimUxphDCaE
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: aaaf69f28831a0000000000000000001-a609b5be001ccdd8-0
{
"data": [
{
"active": "0.000000000",
"available": "-15.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-0000000007f5",
"product_id": "1dfedfc0-8d83-4553-92b8-7e93b70f4e38",
"reserved": "15.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-03-10T14:17:38.907275Z"
},
{
"active": "0.000000000",
"available": "-8.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-0000000007f6",
"product_id": "1dfedfc0-8d83-4553-92b8-7e93b70f4e38",
"reserved": "8.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-03-10T14:17:38.908006Z"
},
{
"active": "190.000000000",
"available": "169.000000000",
"cost_default_per_unit": "1",
"cost_per_unit_actual": "0.5",
"location_id": "00000000-0000-0000-0000-0000000007ff",
"product_id": "1dfedfc0-8d83-4553-92b8-7e93b70f4e38",
"reserved": "21.000000000",
"total_cost_actual": "95",
"total_cost_default": "190",
"updated_datetime": "2026-03-10T14:17:38.908674Z"
},
{
"active": "80.000000000",
"available": "80.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-000000000800",
"product_id": "1dfedfc0-8d83-4553-92b8-7e93b70f4e38",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-03-10T14:17:38.833383Z"
},
{
"active": "0.000000000",
"available": "-1.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": null,
"product_id": "1dfedfc0-8d83-4553-92b8-7e93b70f4e38",
"reserved": "1.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-03-10T14:17:38.912118Z"
},
{
"active": "100.000000000",
"available": "100.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-0000000007f6",
"product_id": "59e715b3-b671-4861-9af1-e2562d0d8b43",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-03-10T14:17:38.533498Z"
},
{
"active": "30.000000000",
"available": "26.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": null,
"product_id": "59e715b3-b671-4861-9af1-e2562d0d8b43",
"reserved": "4.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-03-10T14:17:38.910943Z"
},
{
"active": "100.000000000",
"available": "90.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-0000000007f5",
"product_id": "88eaeb35-d485-4f7e-8c86-bb7341f7d9e7",
"reserved": "10.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-03-10T14:17:38.903855Z"
},
{
"active": "0.000000000",
"available": "-1.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-0000000007f6",
"product_id": "88eaeb35-d485-4f7e-8c86-bb7341f7d9e7",
"reserved": "1.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-03-10T14:17:38.905148Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjMsImlhdCI6MTc3MzE1MjI2MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDA3MWU1NGEtYTQ5ZS00MTFiLWJkZmYtYjU2ZDFhMDY3NmE3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjYyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTAwMzAiLCJ0eXAiOiJhY2Nlc3MifQ.mmVg3CII_cMwI6_EM9VOAAznkAAx-O7nwYYJaaxLDXc
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 442ffddb4ba668000000000000000001-9ef077dc2842ce06-0
{
"data": [
{
"active": "26.000000000",
"available": "26.000000000",
"batch_number": null,
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "675d9f2f-3ead-4fa6-b66c-ce22886b82a2",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-03-10T14:17:43.914915Z"
},
{
"active": "27.000000000",
"available": "27.000000000",
"batch_number": "1",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "675d9f2f-3ead-4fa6-b66c-ce22886b82a2",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-03-10T14:17:43.959947Z"
},
{
"active": "19.000000000",
"available": "19.000000000",
"batch_number": null,
"cost_default_per_unit": "2",
"cost_per_unit_actual": "1",
"product_id": "ec194b8e-d5f1-4f3f-aabc-3f551ab924cc",
"reserved": "0.000000000",
"total_cost_actual": "19",
"total_cost_default": "38",
"updated_datetime": "2026-03-10T14:17:43.561527Z"
},
{
"active": "13.000000000",
"available": "13.000000000",
"batch_number": "TEST-1",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "ec194b8e-d5f1-4f3f-aabc-3f551ab924cc",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-03-10T14:17:43.608373Z"
},
{
"active": "8.000000000",
"available": "8.000000000",
"batch_number": "TEST-1",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "f76e29ff-24ba-4964-883e-60f498ae8241",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-03-10T14:17:43.639924Z"
},
{
"active": "43.000000000",
"available": "43.000000000",
"batch_number": null,
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "ff239ca2-de77-413b-a3b4-e174dcb41f93",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-03-10T14:17:43.745003Z"
},
{
"active": "47.000000000",
"available": "47.000000000",
"batch_number": "1",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "ff239ca2-de77-413b-a3b4-e174dcb41f93",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-03-10T14:17:43.827517Z"
},
{
"active": "25.000000000",
"available": "25.000000000",
"batch_number": "2",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "ff239ca2-de77-413b-a3b4-e174dcb41f93",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-03-10T14:17:43.857344Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjAsImlhdCI6MTc3MzE1MjI2MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYTAyNzA2NmMtOGJjOS00MDRmLTg2ZjgtOTA5OWM1YTQxNGQ4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQ5MiIsInR5cCI6ImFjY2VzcyJ9.KlxTftA4L2DYboDcYxigCGLY3claCO17WH0E_3jDf_Q
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 8be81279cda2d0000000000000000001-31ac402815048d4a-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-000000000886",
"product_id": "7ef1ca3c-4098-41d5-b68b-a76c28aa7579",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-03-10T14:17:41.122146Z"
},
{
"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-000000000886",
"product_id": "7ef1ca3c-4098-41d5-b68b-a76c28aa7579",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-03-10T14:17:41.297737Z"
},
{
"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-000000000887",
"product_id": "7ef1ca3c-4098-41d5-b68b-a76c28aa7579",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-03-10T14:17:41.205331Z"
},
{
"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-000000000887",
"product_id": "7ef1ca3c-4098-41d5-b68b-a76c28aa7579",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-03-10T14:17:41.389590Z"
},
{
"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-000000000886",
"product_id": "c7e4236c-4f6b-4e92-a090-d4254dd7f341",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-03-10T14:17:40.903039Z"
},
{
"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-000000000886",
"product_id": "c7e4236c-4f6b-4e92-a090-d4254dd7f341",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-03-10T14:17:40.988238Z"
},
{
"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-000000000887",
"product_id": "c7e4236c-4f6b-4e92-a090-d4254dd7f341",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-03-10T14:17:40.935447Z"
},
{
"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-000000000887",
"product_id": "c7e4236c-4f6b-4e92-a090-d4254dd7f341",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-03-10T14:17:41.015884Z"
}
],
"next_page": null
}
Get active and available quantities grouped by a specified list of attributes. Groups with 0 active and 0 available quantity won't be returned. Groups are sorted by the IDs of the attributes they are grouped by. Note: The page size for this endpoint is 5000 groups per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Request
GET /public/v1/inventory
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| grouping | Attributes to group inventory by. PRODUCT is required to be in the list. Accepted values are "BATCH_NUMBER", "LOCATION" and "PRODUCT". | query | array | false | ["PRODUCT","LOCATION"] | |
| page | Pagination information | 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjIsImlhdCI6MTc3MzE1MjI2MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZGViNWNkZWEtOGFjYi00MzJiLTgzM2QtZDQ0YWYyNjRjZDU3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjYxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTc2MiIsInR5cCI6ImFjY2VzcyJ9.wxG4GEQdaScQgM0FmQNkaOJhbKrRuz1Lm5U0G9wERlA
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: ee78a0e28627f8000000000000000001-c03337dd7cba754a-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000001666",
"name": "Company 1113",
"updated_datetime": "2026-03-10T14:17:42.185933Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1437@example.com",
"full_name": "FirstName2928 LastName2929",
"id": "00000000-0000-0000-0000-000000002648",
"role": {
"id": "00000000-0000-0000-0000-000000002552",
"name": "Admin 1408"
}
},
"custom_data": [
{
"id": 219,
"name": "Custom Field 18",
"value": null
}
],
"due_datetime": "2026-03-10T14:17:42.303873Z",
"id": "00000000-0000-0000-0000-000000000120",
"inserted_datetime": "2026-03-10T14:17:42.304480Z",
"invoice_datetime": "2026-03-10T14:17:42.303872Z",
"invoice_number": "Invoice #30",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000010d6",
"name": "B1832"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000001c5",
"order_item_id": "dc69b345-576e-4d36-a4fb-c9ba8af829d9",
"package": null,
"price": "10.000000000",
"product": {
"id": "9cbecf27-9b28-42a3-8ef1-b0ef9429e03b",
"name": "Product 1830",
"sku": "sku 1831",
"updated_datetime": "2026-03-10T14:17:42.200235Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000010d8",
"name": "B1842"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000001c6",
"order_item_id": "7c3b4335-e439-460c-bb4d-b650283d4fb3",
"package": null,
"price": "10.000000000",
"product": {
"id": "26e92d6f-12af-41ff-b7e4-8fcad404ac85",
"name": "Product 1840",
"sku": "sku 1841",
"updated_datetime": "2026-03-10T14:17:42.220567Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "d2958a07-11b0-48f6-963e-973874965a2d",
"order_number": "SO-50",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1437@example.com",
"full_name": "FirstName2928 LastName2929",
"id": "00000000-0000-0000-0000-000000002648",
"role": {
"id": "00000000-0000-0000-0000-000000002552",
"name": "Admin 1408"
}
},
"paid_amount": "0.0",
"remaining_amount": "200.00",
"status": "NOT_PAID",
"total": "200.00",
"updated_datetime": "2026-03-10T14:17:42.304480Z"
},
{
"charges": [
{
"id": "4a4c812d-c366-4278-856c-8f271a394068",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000001655",
"name": "Company 1093",
"updated_datetime": "2026-03-10T14:17:42.046616Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-00000000261e",
"role": {
"id": "00000000-0000-0000-0000-00000000252a",
"name": "Admin 1368"
}
},
"custom_data": [
{
"id": 219,
"name": "Custom Field 18",
"value": "Custom Field Value 1"
}
],
"due_datetime": "2020-01-01T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-00000000011f",
"inserted_datetime": "2026-03-10T14:17:42.070676Z",
"invoice_datetime": "2020-01-01T00:00:02.000000Z",
"invoice_number": "INV-123",
"items": [
{
"batch": {
"batch_number": "UID1",
"id": "00000000-0000-0000-0000-0000000010bf",
"name": "B1"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000001c4",
"order_item_id": "bf96f7c3-5457-4ed1-87cc-7ce6e3a497a6",
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000000131",
"id": "00000000-0000-0000-0000-0000000001aa",
"metrc_label": "ABCDEF012345670000000131",
"status": "active"
},
"price": "10.000000000",
"product": {
"id": "5c055e21-63de-46a4-bea4-b809d24b786d",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-03-10T14:17:42.017337Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "3e92727e-1d68-4ef2-9ede-89299829ca19",
"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-00000000261f",
"role": {
"id": "00000000-0000-0000-0000-00000000252b",
"name": "Admin 1369"
}
},
"paid_amount": "5.00",
"remaining_amount": "3.00",
"status": "PARTIALLY_PAID",
"total": "8.00",
"updated_datetime": "2026-03-10T14:17:42.106636Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjMsImlhdCI6MTc3MzE1MjI2MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDY1NzU1ZDAtMDZhYi00ZjRiLWFmOGYtY2Y0OTg0N2QxYTIwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjYyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTAwNDEiLCJ0eXAiOiJhY2Nlc3MifQ.JSdgd4cUzvvIklO9i7Pk1pqC_QObIB14KyluaO3AHm8
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 7ccc69fff32c7c000000000000000001-07f4cb6cb966833f-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000001703",
"name": "Company 1302",
"updated_datetime": "2026-03-10T14:17:43.629462Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1698@example.com",
"full_name": "FirstName3450 LastName3451",
"id": "00000000-0000-0000-0000-000000002756",
"role": {
"id": "00000000-0000-0000-0000-000000002659",
"name": "Admin 1671"
}
},
"custom_data": [],
"due_datetime": "2026-03-10T14:17:43.729998Z",
"id": "00000000-0000-0000-0000-000000000128",
"inserted_datetime": "2026-03-10T14:17:43.730401Z",
"invoice_datetime": "2026-03-10T14:17:43.729996Z",
"invoice_number": "Invoice #34",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001157",
"name": "B2209"
},
"cost_per_unit": "10.026",
"cost_per_unit_default": "5",
"id": "00000000-0000-0000-0000-0000000001d0",
"order_item_id": "f5948bdf-6d76-4fcd-b4fb-ce95d0629182",
"package": null,
"price": "103053.000000000",
"product": {
"id": "e5cfa4a2-a4d8-43b4-bd92-119ea20c7269",
"name": "Product 2204",
"sku": "sku 2205",
"updated_datetime": "2026-03-10T14:17:43.576701Z"
},
"quantity": "2.000000000",
"returned_quantity": "2",
"total_cost_actual": "20.052",
"total_cost_default": "10"
}
],
"order": {
"id": "b45313ac-7bbf-4677-8505-19c822a44fd6",
"order_number": "SO-0000001",
"status": "Processing",
"total": "206106.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1698@example.com",
"full_name": "FirstName3450 LastName3451",
"id": "00000000-0000-0000-0000-000000002756",
"role": {
"id": "00000000-0000-0000-0000-000000002659",
"name": "Admin 1671"
}
},
"paid_amount": "0.0",
"remaining_amount": "32.00",
"status": "NOT_PAID",
"total": "32.00",
"updated_datetime": "2026-03-10T14:17:43.730401Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjMsImlhdCI6MTc3MzE1MjI2MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiYWM3MWExMDAtODYwMS00NzFmLTliN2EtYWIyMTJkN2Q3NmEwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjYyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTAwNzUiLCJ0eXAiOiJhY2Nlc3MifQ.qopV_lEa3q5QToXaQvJ7VNJq-20rj88UAOFpB_Osu10
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: a37d6fe7af9cd0000000000000000001-04f942ea673be2b6-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000001725",
"name": "Company 1344",
"updated_datetime": "2026-03-10T14:17:44.051012Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1750@example.com",
"full_name": "FirstName3554 LastName3555",
"id": "00000000-0000-0000-0000-00000000278c",
"role": {
"id": "00000000-0000-0000-0000-00000000268f",
"name": "Admin 1725"
}
},
"custom_data": [],
"due_datetime": "2026-03-10T14:17:44.113363Z",
"id": "00000000-0000-0000-0000-00000000012c",
"inserted_datetime": "2026-03-10T14:17:44.114060Z",
"invoice_datetime": "2020-01-01T12:30:00.000000Z",
"invoice_number": "Invoice #38",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001174",
"name": "B2294"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000001d7",
"order_item_id": "832eefd7-0245-4462-b7f0-2f24784e4205",
"package": null,
"price": "10.000000000",
"product": {
"id": "9d5fa4f5-f7dd-4fd4-bd4d-3cc550a4a5e2",
"name": "Product 2292",
"sku": "sku 2293",
"updated_datetime": "2026-03-10T14:17:44.060372Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001175",
"name": "B2297"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000001d8",
"order_item_id": "f03b4b59-9622-4ae7-b675-27e6517e7eb8",
"package": null,
"price": "10.000000000",
"product": {
"id": "92fba644-befd-4173-be21-feeedd2f0806",
"name": "Product 2295",
"sku": "sku 2296",
"updated_datetime": "2026-03-10T14:17:44.072316Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "91b94d7c-af43-4142-9253-cc6d99203b8f",
"order_number": "SO-77",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1750@example.com",
"full_name": "FirstName3554 LastName3555",
"id": "00000000-0000-0000-0000-00000000278c",
"role": {
"id": "00000000-0000-0000-0000-00000000268f",
"name": "Admin 1725"
}
},
"paid_amount": "0.0",
"remaining_amount": "200.00",
"status": "NOT_PAID",
"total": "200.00",
"updated_datetime": "2026-03-10T14:17:44.114060Z"
},
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000000171d",
"name": "Company 1335",
"updated_datetime": "2026-03-10T14:17:43.976895Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1735@example.com",
"full_name": "FirstName3524 LastName3525",
"id": "00000000-0000-0000-0000-00000000277d",
"role": {
"id": "00000000-0000-0000-0000-000000002680",
"name": "Admin 1710"
}
},
"custom_data": [],
"due_datetime": "2026-03-10T14:17:44.030121Z",
"id": "00000000-0000-0000-0000-00000000012b",
"inserted_datetime": "2026-03-10T14:17:44.030604Z",
"invoice_datetime": "2020-01-01T12:20:00.000000Z",
"invoice_number": "Invoice #37",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000116d",
"name": "B2273"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000001d5",
"order_item_id": "39e8541e-b242-4328-94c7-984e4be08385",
"package": null,
"price": "10.000000000",
"product": {
"id": "b24bfa3a-4d86-4a1e-9f1f-a03280b8ca5e",
"name": "Product 2271",
"sku": "sku 2272",
"updated_datetime": "2026-03-10T14:17:43.984802Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000116e",
"name": "B2278"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000001d6",
"order_item_id": "c4f6a96c-3bd7-4a46-b01d-e904f6940d5f",
"package": null,
"price": "10.000000000",
"product": {
"id": "df262611-0bcf-41c4-8eb9-26bf64e89919",
"name": "Product 2276",
"sku": "sku 2277",
"updated_datetime": "2026-03-10T14:17:43.994409Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "54ecc792-d131-42d9-a6fc-072c82e2a7e4",
"order_number": "SO-75",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1735@example.com",
"full_name": "FirstName3524 LastName3525",
"id": "00000000-0000-0000-0000-00000000277d",
"role": {
"id": "00000000-0000-0000-0000-000000002680",
"name": "Admin 1710"
}
},
"paid_amount": "0.0",
"remaining_amount": "200.00",
"status": "FULLY_PAID",
"total": "200.00",
"updated_datetime": "2026-03-10T14:17:44.030604Z"
},
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000000170a",
"name": "Company 1313",
"updated_datetime": "2026-03-10T14:17:43.789055Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1704@example.com",
"full_name": "FirstName3462 LastName3463",
"id": "00000000-0000-0000-0000-00000000275c",
"role": {
"id": "00000000-0000-0000-0000-00000000265f",
"name": "Admin 1677"
}
},
"custom_data": [],
"due_datetime": "2026-03-10T14:17:43.850913Z",
"id": "00000000-0000-0000-0000-000000000129",
"inserted_datetime": "2026-03-10T14:17:43.851520Z",
"invoice_datetime": "2020-01-01T12:00:00.000000Z",
"invoice_number": "Invoice #35",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000115f",
"name": "B2229"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000001d1",
"order_item_id": "1d0f186a-1d85-4a3e-acbf-d2949cc1f8e1",
"package": null,
"price": "10.000000000",
"product": {
"id": "bbd4d63f-05e8-40db-8757-06abe0e2eef1",
"name": "Product 2227",
"sku": "sku 2228",
"updated_datetime": "2026-03-10T14:17:43.799272Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001160",
"name": "B2232"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000001d2",
"order_item_id": "29633e12-c7f5-4afd-b54f-d4886adc8054",
"package": null,
"price": "10.000000000",
"product": {
"id": "7efc3c8f-8783-44e5-b46c-2d4c5639a376",
"name": "Product 2230",
"sku": "sku 2231",
"updated_datetime": "2026-03-10T14:17:43.807393Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "9af04a44-adb7-4281-8a81-1c84a48cc412",
"order_number": "SO-73",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1704@example.com",
"full_name": "FirstName3462 LastName3463",
"id": "00000000-0000-0000-0000-00000000275c",
"role": {
"id": "00000000-0000-0000-0000-00000000265f",
"name": "Admin 1677"
}
},
"paid_amount": "0.0",
"remaining_amount": "200.00",
"status": "FULLY_PAID",
"total": "200.00",
"updated_datetime": "2026-03-10T14:17:43.851520Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjUsImlhdCI6MTc3MzE1MjI2NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYTlhNmVhM2YtZjIzOC00YWEzLWI3M2QtYmI1NDBiZTgyNjMxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjY0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTAyNjYiLCJ0eXAiOiJhY2Nlc3MifQ.fDcPW0DhFGVoDyv3LgZAN1h5Nps-l1G3bt7sXHh-6Yo
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 6829a22e5bd0c8000000000000000001-7b5d83ac99f1a8e1-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000001791",
"name": "Company 1471",
"updated_datetime": "2026-03-10T14:17:45.872529Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1901@example.com",
"full_name": "FirstName3856 LastName3857",
"id": "00000000-0000-0000-0000-000000002828",
"role": {
"id": "00000000-0000-0000-0000-00000000272a",
"name": "Admin 1880"
}
},
"custom_data": [],
"due_datetime": "2026-03-10T14:17:45.948118Z",
"id": "00000000-0000-0000-0000-00000000013f",
"inserted_datetime": "2026-03-10T14:17:45.948641Z",
"invoice_datetime": "2026-03-10T14:17:45.948117Z",
"invoice_number": "Invoice #57",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000011c0",
"name": "B2526"
},
"cost_per_unit": "10.026",
"cost_per_unit_default": "5",
"id": "00000000-0000-0000-0000-0000000001ed",
"order_item_id": "c9c836bf-d57b-4132-9a3d-bc2170a58c65",
"package": null,
"price": "389839.000000000",
"product": {
"id": "ab8b7a48-db7a-4d2a-8d53-c79691070a02",
"name": "Product 2524",
"sku": "sku 2525",
"updated_datetime": "2026-03-10T14:17:45.838092Z"
},
"quantity": "1.000000000",
"returned_quantity": "1",
"total_cost_actual": "10.026",
"total_cost_default": "5"
}
],
"order": {
"id": "eb9505c3-089f-495d-bb04-da7fadbdf129",
"order_number": "SO-0000001",
"status": "Processing",
"total": "779678.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1901@example.com",
"full_name": "FirstName3856 LastName3857",
"id": "00000000-0000-0000-0000-000000002828",
"role": {
"id": "00000000-0000-0000-0000-00000000272a",
"name": "Admin 1880"
}
},
"paid_amount": "0.0",
"remaining_amount": "32.00",
"status": "NOT_PAID",
"total": "32.00",
"updated_datetime": "2026-03-10T14:17:45.948641Z"
}
],
"next_page": null
}
Get invoices sorted by Invoice Date descendingly date and filtered by various attributes
Note: The page size for this endpoint is 500 invoices per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Request
GET /public/v1/invoices
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| due_datetime | Filter invoices by the due datetime | query | string | false | ,2022-07-10T00:00:00Z | |
| inserted_datetime | Filter invoices by their creation datetime | query | string | false | 2022-07-10T00:00:00Z,2022-07-11T00:00:00Z | |
| invoice_datetime | Filter invoices by the invoice datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| invoice_number | Filter invoices by whether their invoice number contains the given string | query | string | false | 001 | |
| order_id | Filter invoices by order IDs | query | array | false | ["67ae9080-8dc2-4ab7-9704-19673f4d9f21","213c7080-8dc2-4ab7-9704-19673f4d9f22"] | |
| page | Pagination information | 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-000000000122/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjIsImlhdCI6MTc3MzE1MjI2MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjMyYzUwODEtY2ZmOC00NzFlLWJjMmYtMzY0ZDA5YjI0ZWZmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjYxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTg0MSIsInR5cCI6ImFjY2VzcyJ9.xl5ECRteAn9suF6iJ1mFU5NTRp9CcLgRU389g8zKDFE
{
"amount": 100.01,
"description": "Payment for invoice",
"payment_datetime": "2020-01-01T00:00:00.000000Z",
"payment_method_id": "00000000-0000-0000-0000-000000000036",
"quickbooks_deposit_account_id": "QBD-123"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: b493f2339ba6d0000000000000000001-c35311736840c621-0
{
"data": {
"amount": "100",
"description": "Payment for invoice",
"id": "00000000-0000-0000-0000-000000000012",
"inserted_datetime": "2026-03-10T14:17:42.425203Z",
"invoice_id": "00000000-0000-0000-0000-000000000122",
"payment_date": "2020-01-01T00:00:00.000000Z",
"payment_method": {
"deleted_at": null,
"id": "00000000-0000-0000-0000-000000000036",
"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-000000000122/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjIsImlhdCI6MTc3MzE1MjI2MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjMyYzUwODEtY2ZmOC00NzFlLWJjMmYtMzY0ZDA5YjI0ZWZmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjYxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTg0MSIsInR5cCI6ImFjY2VzcyJ9.xl5ECRteAn9suF6iJ1mFU5NTRp9CcLgRU389g8zKDFE
{
"amount": 100.01,
"description": "Payment for invoice",
"payment_datetime": "2020-01-01T00:00:00.000000Z",
"payment_method_id": "00000000-0000-0000-0000-000000000036",
"quickbooks_deposit_account_name": "QBD-NAME"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: b493f2339ba6d0000000000000000001-336964d6fdfc3104-0
{
"data": {
"amount": "100",
"description": "Payment for invoice",
"id": "00000000-0000-0000-0000-000000000013",
"inserted_datetime": "2026-03-10T14:17:42.510190Z",
"invoice_id": "00000000-0000-0000-0000-000000000122",
"payment_date": "2020-01-01T00:00:00.000000Z",
"payment_method": {
"deleted_at": null,
"id": "00000000-0000-0000-0000-000000000036",
"name": "Payment Method 0"
},
"payment_number": "PYT-0000002",
"quickbooks_deposit_account_id": "QBD-123"
}
}
Request
POST /public/v1/invoices/{id}/payments
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| payment_method_id | Payment method ID | query | string | true | ||
| amount | Amount of the payment. Will round to 2 decimal places | query | decimal | true | ||
| payment_datetime | Payment date | query | string | true | ||
| description | Description of the payment | query | string | true | ||
| quickbooks_deposit_account_id | Quickbooks deposit account ID. Cannot include both this and quickbooks_deposit_account_name. If user's company is integrated with Quickbooks, either this or quickbooks_deposit_account_name must be provided. Account type must be "Bank" or "Other Current Asset" | query | string | false | ||
| quickbooks_deposit_account_name | Quickbooks deposit account name. Cannot include both this and quickbooks_deposit_account_id. If user's company is integrated with Quickbooks, either this or quickbooks_deposit_account_id must be provided. Account type must be "Bank" or "Other Current Asset" | query | string | false |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single payment | InvoicePayment |
Get an invoice
GET /invoices/:id returns the expected invoice
GET /public/v1/invoices/00000000-0000-0000-0000-000000000139
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjQsImlhdCI6MTc3MzE1MjI2NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjEwNmY3OGYtYTBkNi00ZGE4LTk3NWYtYjNkMmYwZjc2Njc2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjYzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTAyMDciLCJ0eXAiOiJhY2Nlc3MifQ.b4vDnzubYNzlNJ01zaBEkVLA_3_NFA-gFWjsmaRk8m4
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 1c47472e5c5334000000000000000001-177b5b8d2798ae8b-0
{
"data": {
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000000175b",
"name": "Company 1408",
"updated_datetime": "2026-03-10T14:17:45.006260Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1831@example.com",
"full_name": "FirstName3716 LastName3717",
"id": "00000000-0000-0000-0000-0000000027e0",
"role": {
"id": "00000000-0000-0000-0000-0000000026e3",
"name": "Admin 1809"
}
},
"custom_data": [
{
"id": 222,
"name": "Custom Field 21",
"value": "Custom Field Value 1"
}
],
"due_datetime": "2026-03-10T14:17:45.092121Z",
"id": "00000000-0000-0000-0000-000000000139",
"inserted_datetime": "2026-03-10T14:17:45.093045Z",
"invoice_datetime": "2026-03-10T14:17:45.092120Z",
"invoice_number": "Invoice #51",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001196",
"name": "B2398"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000001e1",
"order_item_id": "703ae689-bddc-4ec3-8d1b-ec39ab2cc51a",
"package": null,
"price": "10.000000000",
"product": {
"id": "7d798718-e2d9-4195-a9bb-fdb8d1e4e280",
"name": "Product 2396",
"sku": "sku 2397",
"updated_datetime": "2026-03-10T14:17:45.018364Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001197",
"name": "B2401"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000001e2",
"order_item_id": "415eb7cd-47b4-4e9d-9ce2-923ac81bce38",
"package": null,
"price": "10.000000000",
"product": {
"id": "d5525074-3b56-4932-bbea-58b498f3a042",
"name": "Product 2399",
"sku": "sku 2400",
"updated_datetime": "2026-03-10T14:17:45.032983Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "3cfdcc75-7213-4776-a905-401635c36419",
"order_number": "SO-93",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1831@example.com",
"full_name": "FirstName3716 LastName3717",
"id": "00000000-0000-0000-0000-0000000027e0",
"role": {
"id": "00000000-0000-0000-0000-0000000026e3",
"name": "Admin 1809"
}
},
"paid_amount": "0.0",
"remaining_amount": null,
"status": "NOT_PAID",
"total": "200.00",
"updated_datetime": "2026-03-10T14:17:45.093045Z"
}
}
Get a single invoice given the ID
Request
GET /public/v1/invoices/{id}
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Unique ID for an invoice | path | string | true |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | An invoice | Invoice |
Upsert an invoice
POST /invoices creates an invoice
POST /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjIsImlhdCI6MTc3MzE1MjI2MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDBmY2U3OTItNGRhZC00YzJmLWIyNDQtNmU5NmY2NTY4YzkwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjYxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTk0MCIsInR5cCI6ImFjY2VzcyJ9.cyky3XH1nM8Fsfdd-WkOCsmCm4WpoVELs4XqMpTy6qI
{
"billing_location_id": "00000000-0000-0000-0000-000000000900",
"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": "8c7b68c2-46cc-4200-af3e-578a012d6e40",
"quantity": "1.000000000"
},
{
"order_item_id": "9e34fa55-7955-40dd-8973-a9a2b2e3b64a",
"quantity": "10.000000000"
}
],
"order_id": "82de6240-c72b-4435-b66f-806249463ec5"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: a80e5fc4fa2538000000000000000001-2e79c2e0e2c519b1-0
{
"data": {
"charges": [
{
"id": "f00409e3-0aa1-418f-837c-cf188d936dd3",
"name": "C1",
"percent": "10.0000",
"price": "5.30",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "80fb8286-7cb5-4a0b-a007-fad358679e10",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000016c9",
"name": "Company 1230",
"updated_datetime": "2026-03-10T14:17:42.931889Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-0000000026d4",
"role": {
"id": "00000000-0000-0000-0000-0000000025d8",
"name": "Admin 1542"
}
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-000000000125",
"inserted_datetime": "2026-03-10T14:17:42.987304Z",
"invoice_datetime": "2020-01-01T00:00:00.000000Z",
"invoice_number": "INV-0000001",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001127",
"name": "B1"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000001c9",
"order_item_id": "8c7b68c2-46cc-4200-af3e-578a012d6e40",
"package": null,
"price": "3.000000000",
"product": {
"id": "38d75310-43d3-4865-823a-ca3ee9a5da6d",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-03-10T14:17:42.944704Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001129",
"name": "B2"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000001ca",
"order_item_id": "9e34fa55-7955-40dd-8973-a9a2b2e3b64a",
"package": null,
"price": "5.000000000",
"product": {
"id": "1b669b7e-e94e-4630-828d-69083399cc9d",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-03-10T14:17:42.951777Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "82de6240-c72b-4435-b66f-806249463ec5",
"order_number": "SO-62",
"status": "Processing",
"total": "0.00"
},
"owner": null,
"paid_amount": "0.0",
"remaining_amount": "53.30",
"status": "NOT_PAID",
"total": "53.30",
"updated_datetime": "2026-03-10T14:17:42.998689Z"
}
}
POST /invoices updates an invoice
POST /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjMsImlhdCI6MTc3MzE1MjI2MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjQ4OGE1OTgtMjM2Mi00MDI3LTljODYtZGY0ZGE3N2Y3OTNlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjYyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTAwMTkiLCJ0eXAiOiJhY2Nlc3MifQ.YqTfnwNW3m4IuERqP-dw8aSHuFhatGQGzhQlubhWtjI
{
"billing_location_id": "00000000-0000-0000-0000-000000000911",
"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": "4901e8a2-7c50-4b84-88cd-7daf8c149a16",
"quantity": "1.000000000"
},
{
"order_item_id": "eb75ffd5-28f5-4ea2-9814-62f580922b4c",
"quantity": "10.000000000"
}
],
"order_id": "b7f95089-4244-4fe5-a0c3-2ae330eee55e"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: ebf33a3dbaf500000000000000000001-bc140e98714d1e59-0
{
"data": {
"charges": [
{
"id": "4eaac1f1-1fd3-41e8-ba36-0a5a9ad91b43",
"name": "C1",
"percent": "10.0000",
"price": "5.30",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "73785c4d-c97a-4e65-a50a-05729e497d89",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000016f9",
"name": "Company 1288",
"updated_datetime": "2026-03-10T14:17:43.339561Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000002723",
"role": {
"id": "00000000-0000-0000-0000-000000002627",
"name": "Admin 1621"
}
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-000000000127",
"inserted_datetime": "2026-03-10T14:17:43.386235Z",
"invoice_datetime": "2020-01-01T00:00:00.000000Z",
"invoice_number": "INV-0000001",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001150",
"name": "B1"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000001cd",
"order_item_id": "4901e8a2-7c50-4b84-88cd-7daf8c149a16",
"package": null,
"price": "3.000000000",
"product": {
"id": "c73270cb-aba3-4c52-a858-19c53bef6753",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-03-10T14:17:43.349014Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001151",
"name": "B2"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000001ce",
"order_item_id": "eb75ffd5-28f5-4ea2-9814-62f580922b4c",
"package": null,
"price": "5.000000000",
"product": {
"id": "4d030af3-3f1f-460a-a6bf-d771234debfa",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-03-10T14:17:43.356917Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "b7f95089-4244-4fe5-a0c3-2ae330eee55e",
"order_number": "SO-69",
"status": "Processing",
"total": "0.00"
},
"owner": null,
"paid_amount": "0.0",
"remaining_amount": "53.30",
"status": "NOT_PAID",
"total": "53.30",
"updated_datetime": "2026-03-10T14:17:43.393073Z"
}
}
POST /invoices updates an invoice
POST /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjMsImlhdCI6MTc3MzE1MjI2MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjQ4OGE1OTgtMjM2Mi00MDI3LTljODYtZGY0ZGE3N2Y3OTNlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjYyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTAwMTkiLCJ0eXAiOiJhY2Nlc3MifQ.YqTfnwNW3m4IuERqP-dw8aSHuFhatGQGzhQlubhWtjI
{
"billing_location_id": "00000000-0000-0000-0000-000000000912",
"charges": [
{
"id": "4eaac1f1-1fd3-41e8-ba36-0a5a9ad91b43",
"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-000000000127",
"invoice_datetime": "2020-01-02T00:00:00.000000Z",
"items": [
{
"id": "00000000-0000-0000-0000-0000000001cd",
"order_item_id": "4901e8a2-7c50-4b84-88cd-7daf8c149a16",
"quantity": "1.000000000"
},
{
"order_item_id": "eb75ffd5-28f5-4ea2-9814-62f580922b4c",
"quantity": "8.000000000"
}
],
"order_id": "b7f95089-4244-4fe5-a0c3-2ae330eee55e"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: ebf33a3dbaf500000000000000000001-daf49614faeab43d-0
{
"data": {
"charges": [
{
"id": "4eaac1f1-1fd3-41e8-ba36-0a5a9ad91b43",
"name": "C1",
"percent": "10.0000",
"price": "4.30",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "353e04ef-a647-4220-9d71-4860322f0340",
"name": "C3",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000016f9",
"name": "Company 1288",
"updated_datetime": "2026-03-10T14:17:43.339561Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000002723",
"role": {
"id": "00000000-0000-0000-0000-000000002627",
"name": "Admin 1621"
}
},
"custom_data": [],
"due_datetime": "2020-01-28T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-000000000127",
"inserted_datetime": "2026-03-10T14:17:43.386235Z",
"invoice_datetime": "2020-01-02T00:00:00.000000Z",
"invoice_number": "INV-0000001",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001150",
"name": "B1"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000001cd",
"order_item_id": "4901e8a2-7c50-4b84-88cd-7daf8c149a16",
"package": null,
"price": "3.000000000",
"product": {
"id": "c73270cb-aba3-4c52-a858-19c53bef6753",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-03-10T14:17:43.349014Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001151",
"name": "B2"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000001cf",
"order_item_id": "eb75ffd5-28f5-4ea2-9814-62f580922b4c",
"package": null,
"price": "5.000000000",
"product": {
"id": "4d030af3-3f1f-460a-a6bf-d771234debfa",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-03-10T14:17:43.356917Z"
},
"quantity": "8.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "b7f95089-4244-4fe5-a0c3-2ae330eee55e",
"order_number": "SO-69",
"status": "Processing",
"total": "0.00"
},
"owner": null,
"paid_amount": "0.0",
"remaining_amount": "42.30",
"status": "NOT_PAID",
"total": "42.30",
"updated_datetime": "2026-03-10T14:17:43.490620Z"
}
}
POST /invoices reports various errors correctly on update
POST /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjUsImlhdCI6MTc3MzE1MjI2NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYWQ4MjdmYTAtOTQ2Ny00MDljLWFlODEtOTljZTJkNDFmNTMzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjY0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTAyODgiLCJ0eXAiOiJhY2Nlc3MifQ.Ujurm6nYB1LTjNjaygTJaOUfWVFukZsGA48RfqOtwyc
{
"billing_location_id": "00000000-0000-0000-0000-000000000972",
"charges": [
{
"name": "C1",
"percent": "-1000.0000",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"due_datetime": "2020-01-30T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-000000000140",
"invoice_datetime": "2020-01-01T00:00:00.000000Z",
"items": [
{
"order_item_id": "00000000-0000-0000-0000-000000000000",
"quantity": "15.000"
},
{
"order_item_id": "a681f448-c54c-4419-bd92-1853861679e9",
"quantity": "19.000"
}
],
"order_id": "f486240d-70be-4993-9ea1-4c7a8495e840"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 911688332e4368000000000000000001-5da354359e70923a-0
{
"errors": [
{
"context": {
"id": "7213abbd-f5bf-4b57-b4b4-5c7ffd6b4d7b"
},
"message": "Must be less than or equal to 100",
"pointer": [
"charges",
0,
"percent"
],
"section": "body"
},
{
"context": {},
"message": "Order item not found",
"pointer": [
"items",
2,
"order_item_id"
],
"section": "body"
},
{
"context": {},
"message": "Only 10 left uninvoiced",
"pointer": [
"items",
3,
"quantity"
],
"section": "body"
}
]
}
Upsert a single invoice. To update an existing invoice, pass in an existing invoice ID in the id field. When updating an invoice, you must pass in all fields (no sparse update currently supported). Any existing invoice item or charge you do not pass in to items and charges respectively will be deleted
Request
POST /public/v1/invoices
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| due_datetime | The datetime at which the invoice is due | query | string | false | ||
| id | Unique ID for this invoice. If it exists, an update will be performed; otherwise, it will be used as the ID of a new invoice record | query | string | false | ||
| invoice_datetime | The datetime on which the invoice was placed | query | string | false | ||
| charges | The additional lines of Charge, Discount, or Tax added to this invoice | body | InvoiceChargesRequest | false | ||
| items | The invoice items present on this order | body | InvoiceItemsRequest | false | ||
| billing_location_id | The billing location's ID | query | string | false |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single invoice | Invoice |
Location
Get locations
GET /public/v1/locations returns locations related to the company
GET /public/v1/locations
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTcsImlhdCI6MTc3MzE1MjI1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZWE3OGE0Y2EtNzU2Ni00ZTNlLThhM2EtZmM1MjEzNzU1OTMzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODUwMCIsInR5cCI6ImFjY2VzcyJ9.HPLzSq7-RS9RUuVgtjCnvnPRpjQGg1WKIMZCGa_bjn8
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 901b4f364401d0000000000000000001-612ee08166bdc792-0
{
"data": [
{
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000019c1",
"deleted_at": null,
"id": "00000000-0000-0000-0000-0000000007ca",
"license": null,
"license_id": null,
"name": "Place 32"
},
{
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000019c1",
"deleted_at": null,
"id": "00000000-0000-0000-0000-0000000007cb",
"license": {
"id": "00000000-0000-0000-0000-00000000027d",
"license_number": "CDPH-00000007"
},
"license_id": "00000000-0000-0000-0000-00000000027d",
"name": "Place 33"
}
],
"next_page": null
}
Get locations sorted by their creation date and filtered by various attributes
Note: The page size for this endpoint is 1000 locations per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Request
GET /public/v1/locations
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| inserted_datetime | Filter locations by their creation datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| deleted | Filter deleted locations. no returns non-deleted, only returns deleted, include returns both. |
query | string | false | no | |
| page | Pagination information | 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjMsImlhdCI6MTc3MzE1MjI2MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGFmYmIzNzgtMmEyNy00ZjNmLTgwZTktMjQzOWQyOTc5M2Q4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjYyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTAwMzkiLCJ0eXAiOiJhY2Nlc3MifQ.oZzTXz0Ua_JIPfBZnuESw7K91kKe7SlsxaDCCV4aBjg
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: aea92ac0684888000000000000000001-11edc0307d59a117-0
{
"data": [
{
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001e5b",
"id": "00000000-0000-0000-0000-000000000914",
"license_id": null,
"name": "Place 361"
},
"biotrack_id": null,
"charges": [
{
"id": "0717907b-2300-4d1b-9ef9-a65cf0d09914",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000001701",
"name": "Company 1300",
"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-00000000272a",
"role": {
"id": "00000000-0000-0000-0000-00000000262e",
"name": "Admin 1628"
}
},
"custom_data": [
{
"id": 220,
"name": "Custom Field 19",
"value": "Custom Field Value 1"
}
],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "3b317973-2cd7-487e-9bda-9b191fab04cb",
"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-000000001158",
"name": "B1"
},
"compliance_quantity": "10.0000",
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "06c60e2e-f644-4c2f-a208-50b95c04299c",
"is_sample": true,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001e5b",
"id": "00000000-0000-0000-0000-000000000914",
"license_id": null,
"name": "Place 361"
},
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000000141",
"id": "00000000-0000-0000-0000-0000000001af",
"metrc_label": "ABCDEF012345670000000141",
"status": "active"
},
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "0841c8fa-81f8-4f2a-86da-2a9e1840b469",
"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": "64709016-6472-4d75-93a5-e2a753bd7a69",
"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-000000002736",
"role": {
"id": "00000000-0000-0000-0000-00000000263a",
"name": "Admin 1640"
}
},
"payment_term_name": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001e5b",
"id": "00000000-0000-0000-0000-000000000914",
"license_id": null,
"name": "Place 361"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjYsImlhdCI6MTc3MzE1MjI2NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZGMyM2NiOGEtZWMxMC00YzkxLWE1YmUtYWEyZDNmNmI4NWVmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjY1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTAyOTkiLCJ0eXAiOiJhY2Nlc3MifQ.Q-KcAQX1boCCC5MhKhNjoX9o79MB_slzYf7UP0W1wTE
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 9ed71e10e36908000000000000000001-3f89eb29f9c2f640-0
{
"data": [
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000000179b",
"name": "Company 1487",
"updated_datetime": "2026-03-10T14:17:46.187507Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1924@example.com",
"full_name": "FirstName3902 LastName3903",
"id": "00000000-0000-0000-0000-000000002840",
"role": {
"id": "00000000-0000-0000-0000-000000002742",
"name": "Admin 1904"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-03-10T14:17:46.188021Z",
"external_notes": null,
"id": "8a7538c3-c63f-418a-b31a-0747ee481612",
"inserted_datetime": "2026-03-10T14:17:46.208295Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000011c6",
"name": "B2544"
},
"compliance_quantity": null,
"cost_per_unit": "10.026",
"cost_per_unit_default": "5",
"id": "4f0f04eb-fd11-46fc-83c3-41c63904222f",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001f1d",
"id": "00000000-0000-0000-0000-000000000974",
"license_id": null,
"name": "Place 457"
},
"package": null,
"price": "178594.000000000",
"price_base": "178594",
"product": {
"id": "152356c1-b227-40d3-be77-d9eb59c7318f",
"name": "Product 2542",
"sku": "sku 2543",
"updated_datetime": "2026-03-10T14:17:46.141412Z"
},
"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-03-10T14:17:46.188023Z",
"order_number": "SO-0000001",
"owner": null,
"payment_term_name": null,
"shipping_location": null,
"status": "PROCESSING",
"total": "357188.00",
"updated_datetime": "2026-03-10T14:17:46.208295Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjEsImlhdCI6MTc3MzE1MjI2MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOWY1NzdiYjUtOThhYy00YzRkLThhMzItZTkwMzU2YTdjZWU4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjYwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTY3NyIsInR5cCI6ImFjY2VzcyJ9.Xsx2NhNqWwyb9p085y-x1RNRnWnGcjh-ANL4QdKgVnc
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 58542831417040000000000000000001-ff6a38d86d4bc7a0-0
{
"data": [
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000001647",
"name": "Company 1079",
"updated_datetime": "2026-03-10T14:17:42.001432Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1398@example.com",
"full_name": "FirstName2850 LastName2851",
"id": "00000000-0000-0000-0000-000000002620",
"role": {
"id": "00000000-0000-0000-0000-00000000252d",
"name": "Admin 1371"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-03-10T14:17:42.016589Z",
"external_notes": null,
"id": "fbe8d432-f77e-4492-89b9-067c32250d00",
"inserted_datetime": "2026-03-10T14:17:42.016925Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000010c1",
"name": "B1767"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "26d2168d-5a08-4ebb-917d-77844c7ebc27",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "6f84f932-f797-4f51-add4-06032eb2e9d1",
"name": "Product 1765",
"sku": "sku 1766",
"updated_datetime": "2026-03-10T14:17:42.022979Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000010c2",
"name": "B1772"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "d3de023f-0c2f-4b35-a433-6b6a9899dd07",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "c76100df-300e-4f32-9211-a8807e48952d",
"name": "Product 1770",
"sku": "sku 1771",
"updated_datetime": "2026-03-10T14:17:42.028539Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000010c4",
"name": "B1776"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "f9b48a2a-9fd3-4240-8f31-7cb001beda8d",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "15f6e779-51a0-4405-9061-75cc33e2e479",
"name": "Product 1774",
"sku": "sku 1775",
"updated_datetime": "2026-03-10T14:17:42.033899Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000010c6",
"name": "B1782"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "a050dfef-7f6a-4182-84ed-30761d505f9c",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "2a42f737-4f5d-4423-8a5b-b42f6fab6d39",
"name": "Product 1780",
"sku": "sku 1781",
"updated_datetime": "2026-03-10T14:17:42.039678Z"
},
"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-47",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1398@example.com",
"full_name": "FirstName2850 LastName2851",
"id": "00000000-0000-0000-0000-000000002620",
"role": {
"id": "00000000-0000-0000-0000-00000000252d",
"name": "Admin 1371"
}
},
"payment_term_name": null,
"shipping_location": null,
"status": "CANCELED",
"total": "320.00",
"updated_datetime": "2026-03-10T14:17:42.054068Z"
},
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000001636",
"name": "Company 1060",
"updated_datetime": "2026-03-10T14:17:41.939040Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1377@example.com",
"full_name": "FirstName2808 LastName2809",
"id": "00000000-0000-0000-0000-00000000260a",
"role": {
"id": "00000000-0000-0000-0000-000000002517",
"name": "Admin 1349"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-03-10T14:17:41.955713Z",
"external_notes": null,
"id": "72875d88-e6c4-447c-9373-2edb7f691451",
"inserted_datetime": "2026-03-10T14:17:41.956242Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000010b0",
"name": "B1716"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "2f067235-04ef-465e-b7c2-2d452c29da16",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "67168a07-7b10-426a-ba4b-960ae6905191",
"name": "Product 1714",
"sku": "sku 1715",
"updated_datetime": "2026-03-10T14:17:41.964123Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000010b2",
"name": "B1722"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "fe266878-2ce4-435d-92b1-cb5f1f94801f",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "da6ab674-f652-4946-9a46-ee3264eb80ed",
"name": "Product 1719",
"sku": "sku 1720",
"updated_datetime": "2026-03-10T14:17:41.971848Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000010b3",
"name": "B1729"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "eee062ca-6857-42ca-8b85-8bdfd5faa834",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "2862be73-a9c2-410b-8a3f-19262515a849",
"name": "Product 1727",
"sku": "sku 1728",
"updated_datetime": "2026-03-10T14:17:41.978037Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000010b6",
"name": "B1734"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "c070be96-adb3-4bb1-9fe2-272005e2faeb",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "472a7872-7275-4fc6-9909-78ed2eb38011",
"name": "Product 1732",
"sku": "sku 1733",
"updated_datetime": "2026-03-10T14:17:41.984935Z"
},
"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-46",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1377@example.com",
"full_name": "FirstName2808 LastName2809",
"id": "00000000-0000-0000-0000-00000000260a",
"role": {
"id": "00000000-0000-0000-0000-000000002517",
"name": "Admin 1349"
}
},
"payment_term_name": null,
"shipping_location": null,
"status": "COMPLETED",
"total": "320.00",
"updated_datetime": "2026-03-10T14:17:41.996013Z"
},
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000001607",
"name": "Company 1010",
"updated_datetime": "2026-03-10T14:17:41.787474Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1318@example.com",
"full_name": "FirstName2690 LastName2691",
"id": "00000000-0000-0000-0000-0000000025cf",
"role": {
"id": "00000000-0000-0000-0000-0000000024e3",
"name": "Admin 1297"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-03-10T14:17:41.821714Z",
"external_notes": null,
"id": "b6adadd8-7bb8-44c9-b404-a2f8987917c7",
"inserted_datetime": "2026-03-10T14:17:41.822109Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001092",
"name": "B1628"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "46ff3247-0cb6-44da-971d-ac3c4b457a2c",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "f6d0c2bc-c37a-4ccd-ad98-3c0b8e1de676",
"name": "Product 1626",
"sku": "sku 1627",
"updated_datetime": "2026-03-10T14:17:41.832942Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001095",
"name": "B1637"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "77222e1f-1f6b-4552-9c46-a425d7e7987f",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "0ddfba9d-03c4-4489-b56f-e181dd77e373",
"name": "Product 1635",
"sku": "sku 1636",
"updated_datetime": "2026-03-10T14:17:41.840610Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001097",
"name": "B1641"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "77bd571c-2a3b-45a5-882f-29aaab3bf928",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "796086f8-60c8-4863-b8c6-a12ee1b91eb6",
"name": "Product 1639",
"sku": "sku 1640",
"updated_datetime": "2026-03-10T14:17:41.847482Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001099",
"name": "B1647"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "781805ef-6758-410a-b5dc-a606d955f54c",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "1ecf7b0c-0b17-41aa-bcb8-d1d7208318a0",
"name": "Product 1645",
"sku": "sku 1646",
"updated_datetime": "2026-03-10T14:17:41.854606Z"
},
"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-43",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1318@example.com",
"full_name": "FirstName2690 LastName2691",
"id": "00000000-0000-0000-0000-0000000025cf",
"role": {
"id": "00000000-0000-0000-0000-0000000024e3",
"name": "Admin 1297"
}
},
"payment_term_name": null,
"shipping_location": null,
"status": "COMPLETED",
"total": "320.00",
"updated_datetime": "2026-03-10T14:17:41.866258Z"
}
],
"next_page": null
}
Get orders sorted by Order Date descendingly date and filtered by various attributes
Note: The page size for this endpoint is 500 orders per page.
Request
GET /public/v1/orders
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| delivery_datetime | Filter orders by the delivery datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| due_datetime | Filter orders by the due datetime | query | string | false | ,2022-07-10T00:00:00Z | |
| inserted_datetime | Filter orders by their creation datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| order_datetime | Filter orders by the order datetime | query | string | false | 2022-07-10T00:00:00Z,2022-07-11T00:00:00Z | |
| page | Pagination information | 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/62136d4e-9ac1-428d-83e0-acac9e06b7d5
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjQsImlhdCI6MTc3MzE1MjI2NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNmI3M2NlNzgtYjcyNS00N2IwLTgzNDktZWQzZDk3OGYwMjQwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjYzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTAxMzIiLCJ0eXAiOiJhY2Nlc3MifQ.n5lpHdyZ6UZaWIansXsjYFHp1CqyDMUYAK4Fpn5lcsc
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 1cc028231740e1000000000000000001-a5d4c0b6406e9fa7-0
{
"data": {
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000000172b",
"name": "Company 1352",
"updated_datetime": "2026-03-10T14:17:44.319534Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1759@example.com",
"full_name": "FirstName3572 LastName3573",
"id": "00000000-0000-0000-0000-000000002796",
"role": {
"id": "00000000-0000-0000-0000-000000002699",
"name": "Admin 1735"
}
},
"custom_data": [
{
"id": 221,
"name": "Custom Field 20",
"value": "Custom Field Value 1"
}
],
"delivery_datetime": null,
"due_datetime": "2026-03-10T14:17:44.342234Z",
"external_notes": null,
"id": "62136d4e-9ac1-428d-83e0-acac9e06b7d5",
"inserted_datetime": "2026-03-10T14:17:44.342595Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000117a",
"name": "B2312"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "4f0e2804-f8cb-4c45-9a68-ee6432d0ceac",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "1340d9d4-4770-44f2-b26e-583026a64188",
"name": "Product 2310",
"sku": "sku 2311",
"updated_datetime": "2026-03-10T14:17:44.350106Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000117b",
"name": "B2315"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "7f3a21fa-f5c7-4431-9213-985640cbe288",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "6b7be01d-cf0c-4184-bd23-11a99a549fea",
"name": "Product 2313",
"sku": "sku 2314",
"updated_datetime": "2026-03-10T14:17:44.357473Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000117c",
"name": "B2318"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "541fe41f-b267-4f66-ba06-dd302a4f4e28",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "d8ab560d-0d98-443a-8821-52e3cd142ed1",
"name": "Product 2316",
"sku": "sku 2317",
"updated_datetime": "2026-03-10T14:17:44.365033Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000117d",
"name": "B2321"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "19c76339-63d6-4db3-b4d7-5d319f77253f",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "888b68b8-1f05-4f0c-95ce-6579553e6eff",
"name": "Product 2319",
"sku": "sku 2320",
"updated_datetime": "2026-03-10T14:17:44.373003Z"
},
"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-03-10T14:17:44.342234Z",
"order_number": "SO-78",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1759@example.com",
"full_name": "FirstName3572 LastName3573",
"id": "00000000-0000-0000-0000-000000002796",
"role": {
"id": "00000000-0000-0000-0000-000000002699",
"name": "Admin 1735"
}
},
"payment_term_name": null,
"shipping_location": null,
"status": "COMPLETED",
"total": "320.00",
"updated_datetime": "2026-03-10T14:17:44.384902Z"
}
}
GET /orders/:id returns cost data for order items
GET /public/v1/orders/64e4cbbf-df4d-444e-a40e-ab6bfe96b9cc
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjgsImlhdCI6MTc3MzE1MjI2OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjBmNjNmZjgtY2FlNy00NjE0LTgxMGMtZWFmYTA3NjIwODUxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjY3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTAzOTIiLCJ0eXAiOiJhY2Nlc3MifQ.9ZyhQFukzaWh5t9pgnQsYMBemplRK8eGd4XesOxwb1Y
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 34a29dad8e0174000000000000000001-db7d1a95b4382d90-0
{
"data": {
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000017e3",
"name": "Company 1570",
"updated_datetime": "2026-03-10T14:17:48.451483Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2015@example.com",
"full_name": "FirstName4084 LastName4085",
"id": "00000000-0000-0000-0000-00000000289d",
"role": {
"id": "00000000-0000-0000-0000-00000000279e",
"name": "Admin 1996"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-03-10T14:17:48.452157Z",
"external_notes": null,
"id": "64e4cbbf-df4d-444e-a40e-ab6bfe96b9cc",
"inserted_datetime": "2026-03-10T14:17:48.461931Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000011f7",
"name": "B2691"
},
"compliance_quantity": null,
"cost_per_unit": "10.026",
"cost_per_unit_default": "5",
"id": "0e7fe113-03ae-463f-85ba-9ab7199b9fcd",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001f70",
"id": "00000000-0000-0000-0000-00000000098d",
"license_id": null,
"name": "Place 482"
},
"package": null,
"price": "119071.000000000",
"price_base": "119071",
"product": {
"id": "f245195f-797e-4abe-8a46-8c9a1c2ace55",
"name": "Product 2689",
"sku": "sku 2690",
"updated_datetime": "2026-03-10T14:17:48.402235Z"
},
"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-03-10T14:17:48.452159Z",
"order_number": "SO-0000001",
"owner": null,
"payment_term_name": null,
"shipping_location": null,
"status": "PROCESSING",
"total": "238142.00",
"updated_datetime": "2026-03-10T14:17:48.461931Z"
}
}
Get a single order given the ID. Note: This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Request
GET /public/v1/orders/{id}
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Order ID | path | string | true |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single order | Order |
Upsert an order
POST /public/v1/orders creates an order (with product-tracked item)
POST /public/v1/orders
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjEsImlhdCI6MTc3MzE1MjI2MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjU2YjYyYjktNDUyYy00MjVmLWIxZmYtNzFmOGJmZTRmN2QxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjYwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTYyNyIsInR5cCI6ImFjY2VzcyJ9.ngdjEnSzVbpE6oeqf15_KSSqASccx0Q09KdufIMpt8s
{
"billing_location_id": "00000000-0000-0000-0000-0000000008af",
"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-0000000015e7",
"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-0000000008af",
"price_base": "10.000000000",
"product_id": "d7d1e0cf-e5b6-44bf-8c8d-0d29ada026b8",
"quantity": "1.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"owner_id": "00000000-0000-0000-0000-00000000259b",
"shipping_location_id": "00000000-0000-0000-0000-0000000008af",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: e6626117caa8d0000000000000000001-d1a6c0d4cd1994ff-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001d15",
"id": "00000000-0000-0000-0000-0000000008af",
"license_id": "00000000-0000-0000-0000-0000000002c9",
"name": "Place 260"
},
"biotrack_id": null,
"charges": [
{
"id": "13046235-f50b-4364-afb8-5e7647c433fb",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "5cafbd66-753c-46dd-921f-a01fe690c22f",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000015e7",
"name": "Company 968",
"updated_datetime": "2026-03-10T14:17:41.514077Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-00000000259b",
"role": {
"id": "00000000-0000-0000-0000-0000000024b0",
"name": "Admin 1246"
}
},
"custom_data": [
{
"id": 218,
"name": "Custom Field 17",
"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": "b411dd41-76ff-41ef-a0b4-8c5820364e47",
"inserted_datetime": "2026-03-10T14:17:41.569402Z",
"internal_notes": "Internal notes for this order",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001070",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "c39462c9-7243-46b2-86ab-93a45161e1dc",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001d15",
"id": "00000000-0000-0000-0000-0000000008af",
"license_id": "00000000-0000-0000-0000-0000000002c9",
"name": "Place 260"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "d7d1e0cf-e5b6-44bf-8c8d-0d29ada026b8",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-03-10T14:17:41.539363Z"
},
"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-00000000259b",
"role": {
"id": "00000000-0000-0000-0000-0000000024b0",
"name": "Admin 1246"
}
},
"payment_term_name": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001d15",
"id": "00000000-0000-0000-0000-0000000008af",
"license_id": "00000000-0000-0000-0000-0000000002c9",
"name": "Place 260"
},
"status": "PROCESSING",
"total": "6.00",
"updated_datetime": "2026-03-10T14:17:41.598711Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjUsImlhdCI6MTc3MzE1MjI2NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYzFmMWQ2YjQtMGE3Ny00Mzg4LThhMDktNTU2MzQwYTMzOGI1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjY0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTAyNDQiLCJ0eXAiOiJhY2Nlc3MifQ.ElzvyNL-LSATL-X5TrORbcr0Q1la1jOo_McZjmhMM7I
{
"billing_location_id": "00000000-0000-0000-0000-000000000964",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000001776",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000000964",
"price_base": "10.000000000",
"product_id": "3f4004c1-ae66-4d3a-8646-c972441217ec",
"quantity": "1.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-000000000964",
"status": "PROCESSING"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: acc2ba1e0683f0000000000000000001-1a31ed43d350343a-0
{
"errors": [
{
"context": {
"id": "31767aa7-dea2-4aeb-80b9-4febe07ee3bf"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjUsImlhdCI6MTc3MzE1MjI2NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYzFmMWQ2YjQtMGE3Ny00Mzg4LThhMDktNTU2MzQwYTMzOGI1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjY0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTAyNDQiLCJ0eXAiOiJhY2Nlc3MifQ.ElzvyNL-LSATL-X5TrORbcr0Q1la1jOo_McZjmhMM7I
{
"billing_location_id": "00000000-0000-0000-0000-000000000964",
"blaze_payment_type": "CASH",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000001776",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000000964",
"price_base": "10.000000000",
"product_id": "3f4004c1-ae66-4d3a-8646-c972441217ec",
"quantity": "1.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-000000000964",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: acc2ba1e0683f0000000000000000001-5f854fc6150f2843-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001eed",
"id": "00000000-0000-0000-0000-000000000964",
"license_id": "00000000-0000-0000-0000-000000000303",
"name": "Place 441"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000001776",
"name": "Company 1439",
"updated_datetime": "2026-03-10T14:17:45.444210Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1866@example.com",
"full_name": "FirstName3786 LastName3787",
"id": "00000000-0000-0000-0000-000000002804",
"role": {
"id": "00000000-0000-0000-0000-000000002707",
"name": "Admin 1845"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "7afda931-fb5d-4a4e-aa41-a0ec96e1c4ce",
"inserted_datetime": "2026-03-10T14:17:45.519363Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000011ae",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "da614368-eae1-4c1a-aa1e-da5e7241bc46",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001eed",
"id": "00000000-0000-0000-0000-000000000964",
"license_id": "00000000-0000-0000-0000-000000000303",
"name": "Place 441"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "3f4004c1-ae66-4d3a-8646-c972441217ec",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-03-10T14:17:45.475358Z"
},
"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-000000001eed",
"id": "00000000-0000-0000-0000-000000000964",
"license_id": "00000000-0000-0000-0000-000000000303",
"name": "Place 441"
},
"status": "PROCESSING",
"total": "10.00",
"updated_datetime": "2026-03-10T14:17:45.519363Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjUsImlhdCI6MTc3MzE1MjI2NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTQ4NjQwZGItN2QwYS00NWIyLWE2YTMtZWMyZWY1MTBjM2ZjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjY0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTAyODQiLCJ0eXAiOiJhY2Nlc3MifQ.b6WBd0kMxpnnayIG60rqKFMheSb4pSrMjJbnwasVmQ4
{
"billing_location_id": "00000000-0000-0000-0000-000000000971",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000001794",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000000971",
"position": 1,
"price_base": "100.000000000",
"product_id": "d22d80fd-39af-4cc2-b16f-6d5812ce1803",
"quantity": "80.000000000"
},
{
"location_id": "00000000-0000-0000-0000-000000000971",
"position": 2,
"price_base": "200.000000000",
"product_id": "d22d80fd-39af-4cc2-b16f-6d5812ce1803",
"quantity": "10.000000000"
},
{
"location_id": "00000000-0000-0000-0000-000000000971",
"position": 3,
"price_base": "300.000000000",
"product_id": "ca6653b3-0b53-4c0e-b0c9-0e3d42fbf274",
"quantity": "20.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-000000000971",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: cb3f6b76277158000000000000000001-ff408c021867088e-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001f14",
"id": "00000000-0000-0000-0000-000000000971",
"license_id": "00000000-0000-0000-0000-00000000030a",
"name": "Place 454"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000001794",
"name": "Company 1477",
"updated_datetime": "2026-03-10T14:17:45.954038Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1905@example.com",
"full_name": "FirstName3864 LastName3865",
"id": "00000000-0000-0000-0000-00000000282c",
"role": {
"id": "00000000-0000-0000-0000-00000000272e",
"name": "Admin 1884"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "57d39868-8bb3-474b-b8b4-7b59953e0f0e",
"inserted_datetime": "2026-03-10T14:17:46.049907Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000011c2",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "58460c0a-cf62-4895-9cdb-a59ab8e6d971",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001f14",
"id": "00000000-0000-0000-0000-000000000971",
"license_id": "00000000-0000-0000-0000-00000000030a",
"name": "Place 454"
},
"package": null,
"price": "80.000000000",
"price_base": "100.000000000",
"product": {
"id": "d22d80fd-39af-4cc2-b16f-6d5812ce1803",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-03-10T14:17:45.975679Z"
},
"quantity": "80.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000011c2",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "6859e810-ce0d-4929-bcb6-727f61e1f0a7",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001f14",
"id": "00000000-0000-0000-0000-000000000971",
"license_id": "00000000-0000-0000-0000-00000000030a",
"name": "Place 454"
},
"package": null,
"price": "180.000000000",
"price_base": "200.000000000",
"product": {
"id": "d22d80fd-39af-4cc2-b16f-6d5812ce1803",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-03-10T14:17:45.975679Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000011c3",
"name": "B2"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "ad32d7b2-af64-4a0b-960e-9b682e1ebcae",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001f14",
"id": "00000000-0000-0000-0000-000000000971",
"license_id": "00000000-0000-0000-0000-00000000030a",
"name": "Place 454"
},
"package": null,
"price": "270.000000000",
"price_base": "300.000000000",
"product": {
"id": "ca6653b3-0b53-4c0e-b0c9-0e3d42fbf274",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-03-10T14:17:45.994131Z"
},
"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-000000001f14",
"id": "00000000-0000-0000-0000-000000000971",
"license_id": "00000000-0000-0000-0000-00000000030a",
"name": "Place 454"
},
"status": "PROCESSING",
"total": "13600.00",
"updated_datetime": "2026-03-10T14:17:46.080575Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjUsImlhdCI6MTc3MzE1MjI2NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMWJkMjc2ZDAtYmNlOS00MzFkLTg0ZWMtM2M4N2ExYTIzN2NiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjY0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTAyMjkiLCJ0eXAiOiJhY2Nlc3MifQ._5KQGcRu9bHlqBm84jS7wA1Gjvbr43ESfJ429x1ZVrw
{
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"batch_id": "00000000-0000-0000-0000-0000000011a5",
"location_id": "00000000-0000-0000-0000-000000000960",
"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: ce8cb97d0fce88000000000000000001-d2a88a9026787605-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-0000000027f5",
"role": {
"id": "00000000-0000-0000-0000-0000000026f8",
"name": "Admin 1830"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "594e4af2-3690-4477-8fec-cf59b769e14a",
"inserted_datetime": "2026-03-10T14:17:45.262684Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000011a5",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "1cc970b8-4bca-4394-a106-dedad3cb1b08",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001ee4",
"id": "00000000-0000-0000-0000-000000000960",
"license_id": "00000000-0000-0000-0000-000000000301",
"name": "Place 437"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "0cc1379b-b267-439a-b7d1-e1cb77d7d8f2",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-03-10T14:17:45.243168Z"
},
"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-03-10T14:17:45.262684Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjUsImlhdCI6MTc3MzE1MjI2NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiY2M0NGY3ZDUtMjVjYy00NDY2LTk2NDYtZjMzMjliNDdjMzg5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjY0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTAyNTMiLCJ0eXAiOiJhY2Nlc3MifQ.wZ5IFhE_6ToeZ9NTTtimE4ZcR4vUeC4pwyps6PAc2fw
{
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000000967",
"price_base": "10.000000000",
"product_id": "6242397c-cd9d-4a56-a529-832dd1f6c09e",
"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: fa9c203f8f4118000000000000000001-4480c5e6f5af83fe-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-00000000280d",
"role": {
"id": "00000000-0000-0000-0000-000000002710",
"name": "Admin 1854"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "5715b5ba-dd18-47f2-8421-e7d6357636b2",
"inserted_datetime": "2026-03-10T14:17:45.639616Z",
"internal_notes": null,
"items": [
{
"batch": null,
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "acb8ce34-e309-4634-8185-0fc8b05751a6",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001efa",
"id": "00000000-0000-0000-0000-000000000967",
"license_id": "00000000-0000-0000-0000-000000000305",
"name": "Place 444"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "6242397c-cd9d-4a56-a529-832dd1f6c09e",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-03-10T14:17:45.627418Z"
},
"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-03-10T14:17:45.639616Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjksImlhdCI6MTc3MzE1MjI2OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZGI0NWIxN2MtMDY2ZS00ODgzLWE1NzYtOTQzNTYwOTU2ZjQwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjY4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTA0MjIiLCJ0eXAiOiJhY2Nlc3MifQ.VzHYKPH8XoHxSj2VbFC4K4aRWd9gbu34hZ0TT4LFMG4
{
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"compliance_quantity": "1.0000",
"is_sample": true,
"location_id": "00000000-0000-0000-0000-000000000993",
"package_id": "00000000-0000-0000-0000-0000000001bd",
"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: d4f2b8c8adeda0000000000000000001-8145b126ade66ba7-0
{
"data": {
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": null,
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2040@example.com",
"full_name": "FirstName4134 LastName4135",
"id": "00000000-0000-0000-0000-0000000028b6",
"role": {
"id": "00000000-0000-0000-0000-0000000027b7",
"name": "Admin 2021"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "7277262d-3d09-483d-8efc-b151eaa426bf",
"inserted_datetime": "2026-03-10T14:17:49.235639Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001211",
"name": "B1"
},
"compliance_quantity": "1.0000",
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "13ab2272-4dbf-4890-b4f3-c38da69e3a72",
"is_sample": true,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001f94",
"id": "00000000-0000-0000-0000-000000000993",
"license_id": "00000000-0000-0000-0000-000000000312",
"name": "Place 488"
},
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000000170",
"id": "00000000-0000-0000-0000-0000000001bd",
"metrc_label": "ABCDEF012345670000000170",
"status": "selling"
},
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "1899528c-e72e-4a4d-a22e-c45eea1e8805",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-03-10T14:17:49.160651Z"
},
"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-03-10T14:17:49.235639Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMGIzZDFhZmMtMWRhNC00OWIxLWExM2UtZGRjYmE0M2YzNTc1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODc5OSIsInR5cCI6ImFjY2VzcyJ9.-11ZP0G3KG6MIuHB-v4iy1fpL8sC4Oiu1zriqNLx5oA
{
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-0000000007f7",
"price_base": "10.000000000",
"product_id": "c5bf204c-fa6f-4e33-b120-a44210ef415c",
"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: 2f59970b60232c000000000000000001-8d19a3650de4b5f9-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-00000000225f",
"role": {
"id": "00000000-0000-0000-0000-00000000218e",
"name": "Admin 444"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "fadc0fe9-40e3-4315-8e0a-4079f139e83f",
"inserted_datetime": "2026-03-10T14:17:38.526716Z",
"internal_notes": null,
"items": [
{
"batch": null,
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "9076aa74-0ce9-4b95-a40a-801cbcbfcb0e",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001aa0",
"id": "00000000-0000-0000-0000-0000000007f7",
"license_id": "00000000-0000-0000-0000-000000000289",
"name": "Place 77"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "c5bf204c-fa6f-4e33-b120-a44210ef415c",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-03-10T14:17:38.500412Z"
},
"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-03-10T14:17:38.526716Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjQsImlhdCI6MTc3MzE1MjI2NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZmRkYzhkYTMtMzM5NS00MGVjLTk0ZTUtN2I5M2Q3NWZmYzdlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjYzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTAxOTQiLCJ0eXAiOiJhY2Nlc3MifQ.y3M4Ejh9llAZBezZafXRDo0hGo-gbAjZu1p5A1mrlAE
{
"billing_location_id": "00000000-0000-0000-0000-000000000955",
"charges": [],
"company_id": "00000000-0000-0000-0000-00000000174c",
"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": "efde0214-738c-4d79-b972-2930429f18a2",
"location_id": "00000000-0000-0000-0000-000000000955",
"package_id": "00000000-0000-0000-0000-0000000001ba",
"price_base": "10.000000000",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000000955",
"metrc_transfer_template_directions": "Go to the store around the corner",
"metrc_transfer_template_recipient_license_number": "C12-0123458-LIC",
"metrc_transfer_template_status": "PENDING",
"metrc_transfer_template_transporter_info": [
{
"driver_license_number": "1234567890",
"driver_name": "John Doe",
"driver_occupational_license_number": "1234567890",
"driver_phone_number": "1234567890",
"estimated_arrival_datetime": "2020-01-01T10:30:00.000000Z",
"estimated_departure_datetime": "2020-01-01T08:00:00.000000Z",
"transporter_license_number": "C12-0123456-LIC",
"vehicle_license_plate_number": "1234567890",
"vehicle_make": "Toyota",
"vehicle_model": "Prius"
},
{
"driver_license_number": "1234567891",
"driver_name": "Jane Doe",
"driver_occupational_license_number": "1234567891",
"driver_phone_number": "1234567891",
"estimated_arrival_datetime": "2020-01-01T16:45:00.000000Z",
"estimated_departure_datetime": "2020-01-01T14:00:00.000000Z",
"transporter_license_number": "C12-0123457-LIC",
"vehicle_license_plate_number": "1234567891",
"vehicle_make": "Toyota",
"vehicle_model": "Corolla"
}
],
"metrc_transfer_template_type": "Transfer",
"order_datetime": "2020-01-01T00:00:02.000000Z",
"owner_id": "00000000-0000-0000-0000-0000000027d2",
"shipping_location_id": "00000000-0000-0000-0000-000000000955",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: b21a974aaac218000000000000000001-2a7d8d6ac1984cdc-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001ebe",
"id": "00000000-0000-0000-0000-000000000955",
"license_id": "00000000-0000-0000-0000-0000000002fa",
"name": "Place 426"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000000174c",
"name": "Company 1392",
"updated_datetime": "2026-03-10T14:17:44.750105Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-0000000027d2",
"role": {
"id": "00000000-0000-0000-0000-0000000026d5",
"name": "Admin 1795"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "5f833837-64db-4531-974e-f90d58439885",
"inserted_datetime": "2026-03-10T14:17:44.845682Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000118b",
"name": "B2"
},
"compliance_quantity": "1.0000",
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "efde0214-738c-4d79-b972-2930429f18a2",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001ebe",
"id": "00000000-0000-0000-0000-000000000955",
"license_id": "00000000-0000-0000-0000-0000000002fa",
"name": "Place 426"
},
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000000162",
"id": "00000000-0000-0000-0000-0000000001ba",
"metrc_label": "ABCDEF012345670000000162",
"status": "selling"
},
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "61f61d56-eb0a-43ec-9d44-9a3ee0ac4ff4",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-03-10T14:17:44.768115Z"
},
"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-0000000027d2",
"role": {
"id": "00000000-0000-0000-0000-0000000026d5",
"name": "Admin 1795"
}
},
"payment_term_name": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001ebe",
"id": "00000000-0000-0000-0000-000000000955",
"license_id": "00000000-0000-0000-0000-0000000002fa",
"name": "Place 426"
},
"status": "PROCESSING",
"total": "10.00",
"updated_datetime": "2026-03-10T14:17:44.900992Z"
}
}
POST /public/v1/orders updates an order
POST /public/v1/orders
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjMsImlhdCI6MTc3MzE1MjI2MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiYmY0OTI0YTEtZTk5Ni00NWQ5LTliY2MtZDA5MGJjN2Q4NzFjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjYyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTAxMDciLCJ0eXAiOiJhY2Nlc3MifQ.KcCKtUDvyq7WKZSY0I_c5WpYfNnfmoJPNC28q4moc0k
{
"billing_location_id": "00000000-0000-0000-0000-000000000932",
"charges": [
{
"id": "f759cab8-659c-428e-906c-4724b8fb9107",
"name": "C1",
"percent": "10.0000",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "c19d8946-5dfa-4871-87a5-b9ed3dd3e285",
"name": "C2",
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company_id": "00000000-0000-0000-0000-000000001719",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": "gonna make you sweat",
"id": "e141aaa4-0a89-4780-976c-3871a48c1064",
"items": [
{
"id": "2ba32edb-4895-4534-8c23-085f1d15ea0d",
"is_sample": true,
"location_id": "00000000-0000-0000-0000-000000000932",
"price_base": "10.000000000",
"product_id": "5abbbdb0-254c-4465-80e9-7aa7ecd792f3",
"quantity": "2.000000000"
},
{
"id": "bce2a34a-2811-455d-b5de-22f8a19f204f",
"location_id": "00000000-0000-0000-0000-000000000932",
"price_base": "100.000000000",
"product_id": "5abbbdb0-254c-4465-80e9-7aa7ecd792f3",
"quantity": "3.000000000"
},
{
"compliance_quantity": "1.0000",
"id": "bf9b91a7-a3d7-430f-8e6d-bca3481d8911",
"location_id": "00000000-0000-0000-0000-000000000932",
"package_id": "00000000-0000-0000-0000-0000000001b8",
"price_base": "10.000000000",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000000932",
"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-000000002790",
"shipping_location_id": "00000000-0000-0000-0000-000000000932",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 20cc7f9fb3b98a000000000000000001-457d47a233584e54-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001e82",
"id": "00000000-0000-0000-0000-000000000932",
"license_id": "00000000-0000-0000-0000-0000000002ea",
"name": "Place 391"
},
"biotrack_id": null,
"charges": [
{
"id": "f759cab8-659c-428e-906c-4724b8fb9107",
"name": "C1",
"percent": "10.0000",
"price": "33.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "c19d8946-5dfa-4871-87a5-b9ed3dd3e285",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000001719",
"name": "Company 1331",
"updated_datetime": "2026-03-10T14:17:43.945504Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000002779",
"role": {
"id": "00000000-0000-0000-0000-00000000267c",
"name": "Admin 1706"
}
},
"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": "e141aaa4-0a89-4780-976c-3871a48c1064",
"inserted_datetime": "2026-03-10T14:17:43.978149Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000116b",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "2ba32edb-4895-4534-8c23-085f1d15ea0d",
"is_sample": true,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001e82",
"id": "00000000-0000-0000-0000-000000000932",
"license_id": "00000000-0000-0000-0000-0000000002ea",
"name": "Place 391"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "5abbbdb0-254c-4465-80e9-7aa7ecd792f3",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-03-10T14:17:43.962045Z"
},
"quantity": "2.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000116b",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "bce2a34a-2811-455d-b5de-22f8a19f204f",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001e82",
"id": "00000000-0000-0000-0000-000000000932",
"license_id": "00000000-0000-0000-0000-0000000002ea",
"name": "Place 391"
},
"package": null,
"price": "100.000000000",
"price_base": "100.000000000",
"product": {
"id": "5abbbdb0-254c-4465-80e9-7aa7ecd792f3",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-03-10T14:17:43.962045Z"
},
"quantity": "3.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000116f",
"name": "B2"
},
"compliance_quantity": "1.0000",
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "bf9b91a7-a3d7-430f-8e6d-bca3481d8911",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001e82",
"id": "00000000-0000-0000-0000-000000000932",
"license_id": "00000000-0000-0000-0000-0000000002ea",
"name": "Place 391"
},
"package": {
"batch_number": "B2",
"compliance_label": "ABCDEF012345670000000158",
"id": "00000000-0000-0000-0000-0000000001b8",
"metrc_label": "ABCDEF012345670000000158",
"status": "selling"
},
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "63cccef6-8ed9-4ad8-8d1a-eaabf56f1659",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-03-10T14:17:43.991930Z"
},
"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-76",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1753@example.com",
"full_name": "FirstName3562 LastName3563",
"id": "00000000-0000-0000-0000-000000002790",
"role": {
"id": "00000000-0000-0000-0000-000000002693",
"name": "Admin 1728"
}
},
"payment_term_name": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001e82",
"id": "00000000-0000-0000-0000-000000000932",
"license_id": "00000000-0000-0000-0000-0000000002ea",
"name": "Place 391"
},
"status": "PROCESSING",
"total": "358.00",
"updated_datetime": "2026-03-10T14:17:44.151251Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjgsImlhdCI6MTc3MzE1MjI2OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjc0Y2IzOTItNmI3Mi00NmE4LWJmMTItNzc5ZGZmMjRmYWQxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjY3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTAzODEiLCJ0eXAiOiJhY2Nlc3MifQ.1AoYzzAeaCrYGawX8usdoil_jBun7FOHzN5Q8ln12go
{
"billing_location_id": "00000000-0000-0000-0000-00000000098c",
"charges": [],
"company_id": "00000000-0000-0000-0000-0000000017de",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000000098c",
"position": 1,
"price_base": "100.000000000",
"product_id": "b28ac7a4-d358-44e9-ad1a-3f1494ac7496",
"quantity": "10.000000000"
},
{
"location_id": "00000000-0000-0000-0000-00000000098c",
"position": 2,
"price_base": "200.000000000",
"product_id": "3655eee1-5b64-47c5-9ff1-459d6de3fc3a",
"quantity": "10.000000000"
},
{
"location_id": "00000000-0000-0000-0000-00000000098c",
"position": 3,
"price_base": "300.000000000",
"product_id": "653b9928-463b-42ca-b684-d8db0afa4546",
"quantity": "10.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-00000000098c",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 136e7f16c76a04000000000000000001-9b2229a344de6146-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001f6a",
"id": "00000000-0000-0000-0000-00000000098c",
"license_id": "00000000-0000-0000-0000-000000000311",
"name": "Place 481"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000017de",
"name": "Company 1563",
"updated_datetime": "2026-03-10T14:17:48.169243Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1999@example.com",
"full_name": "FirstName4052 LastName4053",
"id": "00000000-0000-0000-0000-00000000288d",
"role": {
"id": "00000000-0000-0000-0000-00000000278e",
"name": "Admin 1980"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "5557dbca-358d-4479-85b7-64bc7c91ca59",
"inserted_datetime": "2026-03-10T14:17:48.245309Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000011f4",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "d8245f6b-020e-41cc-ad59-f3c16451fd66",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001f6a",
"id": "00000000-0000-0000-0000-00000000098c",
"license_id": "00000000-0000-0000-0000-000000000311",
"name": "Place 481"
},
"package": null,
"price": "90.000000000",
"price_base": "100.000000000",
"product": {
"id": "b28ac7a4-d358-44e9-ad1a-3f1494ac7496",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-03-10T14:17:48.186636Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000011f5",
"name": "B2"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "7a078d6c-8997-4a0f-85d4-983dfd0c89c3",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001f6a",
"id": "00000000-0000-0000-0000-00000000098c",
"license_id": "00000000-0000-0000-0000-000000000311",
"name": "Place 481"
},
"package": null,
"price": "200.000000000",
"price_base": "200.000000000",
"product": {
"id": "3655eee1-5b64-47c5-9ff1-459d6de3fc3a",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-03-10T14:17:48.199908Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000011f6",
"name": "B3"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "b699a1a9-657c-47cf-b4c9-40557a3999cb",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001f6a",
"id": "00000000-0000-0000-0000-00000000098c",
"license_id": "00000000-0000-0000-0000-000000000311",
"name": "Place 481"
},
"package": null,
"price": "290.000000000",
"price_base": "300.000000000",
"product": {
"id": "653b9928-463b-42ca-b684-d8db0afa4546",
"name": "P3",
"sku": "SKU3",
"updated_datetime": "2026-03-10T14:17:48.212886Z"
},
"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-000000001f6a",
"id": "00000000-0000-0000-0000-00000000098c",
"license_id": "00000000-0000-0000-0000-000000000311",
"name": "Place 481"
},
"status": "PROCESSING",
"total": "5800.00",
"updated_datetime": "2026-03-10T14:17:48.266653Z"
}
}
POST /public/v1/orders deleting order items & charges
POST /public/v1/orders
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjQsImlhdCI6MTc3MzE1MjI2NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTUyYjNmMTQtYjhlYy00M2E0LWI3OTItMzEwOGQ2ODc2MTQ2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjYzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTAxNzAiLCJ0eXAiOiJhY2Nlc3MifQ.zSaJk-2Rc8IrQRcjxdzAIdtQVcfJCflvP9c91tY3FVg
{
"billing_location_id": "00000000-0000-0000-0000-00000000094c",
"charges": [],
"company_id": "00000000-0000-0000-0000-00000000173c",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"id": "ae3e4465-78bc-497d-8b13-b791f8327ece",
"items": [
{
"id": "51d6cded-425f-4577-a940-6b6e2c0c6a06",
"location_id": "00000000-0000-0000-0000-00000000094c",
"price_base": "10.000000000",
"product_id": "e7a7c71b-294f-4dc6-b8df-fc21e46bf9c2",
"quantity": "1.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-00000000094c",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 7a5ada9a65c804000000000000000001-77f17d864b97266e-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001eaa",
"id": "00000000-0000-0000-0000-00000000094c",
"license_id": "00000000-0000-0000-0000-0000000002f7",
"name": "Place 417"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000000173c",
"name": "Company 1372",
"updated_datetime": "2026-03-10T14:17:44.489878Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-0000000027ba",
"role": {
"id": "00000000-0000-0000-0000-0000000026bd",
"name": "Admin 1771"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "ae3e4465-78bc-497d-8b13-b791f8327ece",
"inserted_datetime": "2026-03-10T14:17:44.531531Z",
"internal_notes": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000117f",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "51d6cded-425f-4577-a940-6b6e2c0c6a06",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001eaa",
"id": "00000000-0000-0000-0000-00000000094c",
"license_id": "00000000-0000-0000-0000-0000000002f7",
"name": "Place 417"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "e7a7c71b-294f-4dc6-b8df-fc21e46bf9c2",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-03-10T14:17:44.513170Z"
},
"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-87",
"owner": null,
"payment_term_name": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001eaa",
"id": "00000000-0000-0000-0000-00000000094c",
"license_id": "00000000-0000-0000-0000-0000000002f7",
"name": "Place 417"
},
"status": "PROCESSING",
"total": "10.00",
"updated_datetime": "2026-03-10T14:17:44.587951Z"
}
}
Upsert a single order. To update an existing order, pass in an existing order ID in the id field. When updating an order, you must pass in all fields (no sparse update currently supported). Any existing order item or charge you do not pass in to items and charges respectively will be deleted
Request
POST /public/v1/orders
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| biotrack_id | The Biotrack ID for this order | query | string | false | ||
| blaze_payment_type | The payment type for an order shipping to a Blaze-associated company. Required when the company being used is mapped to a Blaze retailer via the Distru integration. | query | string | false | CASH | |
| company_id | Company ID | query | string | false | ||
| delivery_datetime | The datetime on which the order was / will be delivered | query | string | false | ||
| due_datetime | The datetime by which the order should be completed for the customer | query | string | false | ||
| external_notes | This is a message that will be shown to the customer on order slips. This is the "Message to Customer" field in the Distru order form. | query | string | false | ||
| id | Unique ID for this order. If it exists, an update will be performed; otherwise, it will be used as the ID of a new order record | query | string | false | ||
| order_datetime | The datetime on which the order was placed | query | string | false | ||
| charges | The additional lines of Charge, Discount, or Tax added to this order | body | OrderChargesRequest | false | ||
| items | The order items present on this order | body | OrderItemsRequest | false | ||
| internal_notes | Internal notes for this order | query | string | false | ||
| metrc_transfer_template_transporter_info | The Metrc transfer template transporter(s) information about this order | body | OrderTransferTemplateTransporterInfosRequest | false | ||
| metrc_transfer_template_directions | The Metrc transfer template directions | query | string | false | ||
| metrc_transfer_id | The Metrc transfer ID for this order | query | integer | false | ||
| metrc_transfer_template_recipient_license_number | The Metrc transfer template recipient license number | query | string | false | ||
| metrc_transfer_template_status | The Metrc transfer template status | query | string | false | ||
| metrc_transfer_template_type | The Metrc transfer template type | query | string | false | ||
| billing_location_id | The billing location's ID | query | string | false | ||
| shipping_location_id | The shipping location's ID | query | string | false | ||
| owner_id | The ID of the Distru user that owns this order | query | string | false | ||
| status | Filter orders by their status. Accepted values are "PENDING", "PROCESSING", "READY_TO_SHIP", "DELIVERING", "DELIVERED", "COMPLETED" and "CANCELED". | query | string | false | PENDING |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single order | Order |
Package
Get packages
GET /public/v1/packages returns packages related to the company
GET /public/v1/packages
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTksImlhdCI6MTc3MzE1MjI1OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTk0ZTI3ZmYtYTBhNy00YTgyLTliOTYtNGU3OTNkZTkzYzM4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTA4NyIsInR5cCI6ImFjY2VzcyJ9.KogScAFnGfobwTcrE-lADrnPG1y266_Kx6eR6pHZkdY
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 2ccdfe86726322000000000000000001-d3c669b3b55c684b-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000062",
"custom_data": [
{
"id": 212,
"name": "Custom Field 11",
"value": "Custom Field Value 1"
}
],
"expiration_date": "2024-01-01T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-000000000185",
"is_trade_sample": true,
"license": {
"id": "00000000-0000-0000-0000-000000000294",
"license_number": "CDPH-00000030"
},
"location": {
"id": "00000000-0000-0000-0000-000000000827",
"name": "Place 125"
},
"metrc_label": "ABCDEF012345670000000062",
"primary_test_result": null,
"product_id": "f1b56375-81f9-44ca-9996-0cc5aad756bf",
"product_unit_quantity": "7.500000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-00000001636c",
"name": "3"
},
"quantity": "5.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "5.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-000000016373",
"name": "2"
}
},
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000064",
"custom_data": [
{
"id": 212,
"name": "Custom Field 11",
"value": null
}
],
"expiration_date": null,
"id": "00000000-0000-0000-0000-000000000186",
"is_trade_sample": false,
"license": {
"id": "00000000-0000-0000-0000-000000000294",
"license_number": "CDPH-00000030"
},
"location": {
"id": "00000000-0000-0000-0000-00000000082a",
"name": "Place 128"
},
"metrc_label": "ABCDEF012345670000000064",
"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": "f1b56375-81f9-44ca-9996-0cc5aad756bf",
"product_unit_quantity": "15.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-00000001636c",
"name": "3"
},
"quantity": "20.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "20.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-000000016374",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTksImlhdCI6MTc3MzE1MjI1OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZmVjNWRmZmItZTk0ZC00MWYyLWI1NTYtOWZkODg0N2YwMDdiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTIyMiIsInR5cCI6ImFjY2VzcyJ9.O54AYTuyVjhctOH69bY6Joz-bplP_ZPDk3h0ijA0vEI
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: afb042227acdf8000000000000000001-1d5775fcb5fefbae-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000072",
"cost_per_unit_actual": "0.4",
"cost_per_unit_default": "0.2",
"custom_data": [],
"expiration_date": null,
"id": "00000000-0000-0000-0000-00000000018b",
"is_trade_sample": false,
"license": {
"id": "00000000-0000-0000-0000-00000000029d",
"license_number": "CDPH-00000039"
},
"location": {
"id": "00000000-0000-0000-0000-00000000083e",
"name": "Place 148"
},
"metrc_label": "ABCDEF012345670000000072",
"primary_test_result": null,
"product_id": "2f683ea8-533b-4df7-a494-2d4ad369f537",
"product_unit_quantity": "141.747462720",
"product_unit_type": {
"id": "00000000-0000-0000-0000-000000016713",
"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-000000016715",
"name": "Ounce"
}
}
],
"next_page": null
}
GET /public/v1/packages allows filtering by product_ids
GET /public/v1/packages?product_ids[]=a7ba5d47-1cc7-402b-8b29-f678dd490b9e&product_ids[]=010cb9fd-a92b-405f-8a0a-907d5d914b8f
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTcsImlhdCI6MTc3MzE1MjI1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiM2NiN2UxNTYtMWY4OS00NTQ2LThmOTEtODU3ODczNThkNGM2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU5MCIsInR5cCI6ImFjY2VzcyJ9.mx0c6t8ACRDSdrnbbzD-67pRvAUCyLTgNiLRkszYjBA
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: cb1e70cb7548b8000000000000000001-fcce9cf0f7f09208-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000023",
"custom_data": [],
"expiration_date": null,
"id": "00000000-0000-0000-0000-000000000170",
"is_trade_sample": false,
"license": {
"id": "00000000-0000-0000-0000-000000000283",
"license_number": "CDPH-00000013"
},
"location": {
"id": "00000000-0000-0000-0000-0000000007e0",
"name": "Place 54"
},
"metrc_label": "ABCDEF012345670000000023",
"primary_test_result": null,
"product_id": "a7ba5d47-1cc7-402b-8b29-f678dd490b9e",
"product_unit_quantity": "10.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-000000014f87",
"name": "Gram"
},
"quantity": "10.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "10.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-000000014f87",
"name": "Gram"
}
},
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000025",
"custom_data": [],
"expiration_date": null,
"id": "00000000-0000-0000-0000-000000000171",
"is_trade_sample": false,
"license": {
"id": "00000000-0000-0000-0000-000000000283",
"license_number": "CDPH-00000013"
},
"location": {
"id": "00000000-0000-0000-0000-0000000007e1",
"name": "Place 55"
},
"metrc_label": "ABCDEF012345670000000025",
"primary_test_result": null,
"product_id": "010cb9fd-a92b-405f-8a0a-907d5d914b8f",
"product_unit_quantity": "10.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-000000014f87",
"name": "Gram"
},
"quantity": "10.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "10.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-000000014f87",
"name": "Gram"
}
}
],
"next_page": null
}
GET /public/v1/packages allows filtering by location_ids
GET /public/v1/packages?location_ids[]=00000000-0000-0000-0000-0000000007bc&location_ids[]=00000000-0000-0000-0000-0000000007be
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTcsImlhdCI6MTc3MzE1MjI1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiN2VkYTJhMjktM2NiNi00ZDg3LWI4MGUtYWRjNGEzMGRkODRiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODQ3MCIsInR5cCI6ImFjY2VzcyJ9.rx6fZ6X-ZqMlgU1-g1JPqSBJbf9vkA_Zpzusg_n0b58
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: ca4ad02a2174c0000000000000000001-6f73edddf7dc348f-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000009",
"custom_data": [],
"expiration_date": null,
"id": "00000000-0000-0000-0000-000000000169",
"is_trade_sample": false,
"license": {
"id": "00000000-0000-0000-0000-00000000027b",
"license_number": "CDPH-00000005"
},
"location": {
"id": "00000000-0000-0000-0000-0000000007bc",
"name": "Place 17"
},
"metrc_label": "ABCDEF012345670000000009",
"primary_test_result": null,
"product_id": "0ae68b2c-92ec-4b46-88cf-6bb8446e4825",
"product_unit_quantity": "10.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-000000014a77",
"name": "Gram"
},
"quantity": "10.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "10.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-000000014a77",
"name": "Gram"
}
},
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000011",
"custom_data": [],
"expiration_date": null,
"id": "00000000-0000-0000-0000-00000000016a",
"is_trade_sample": false,
"license": {
"id": "00000000-0000-0000-0000-00000000027b",
"license_number": "CDPH-00000005"
},
"location": {
"id": "00000000-0000-0000-0000-0000000007be",
"name": "Place 20"
},
"metrc_label": "ABCDEF012345670000000011",
"primary_test_result": null,
"product_id": "e0484b07-47ea-4163-9bf7-c4258c76205e",
"product_unit_quantity": "10.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-000000014a77",
"name": "Gram"
},
"quantity": "10.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "10.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-000000014a77",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMGZiNzkxMjEtNDFlZi00NmIxLWE4YjAtYjYyOTBkMzAyZDU0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODY0OSIsInR5cCI6ImFjY2VzcyJ9.xP1CZAnTrEIl-t0E0TEwxKBnzhUN9J4_tvC35M9UOzg
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 5860d2b4bdda98000000000000000001-8538e1c3a413f7c1-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000032",
"custom_data": [],
"expiration_date": null,
"id": "00000000-0000-0000-0000-000000000176",
"is_trade_sample": false,
"license": {
"id": "00000000-0000-0000-0000-000000000285",
"license_number": "CDPH-00000015"
},
"location": {
"id": "00000000-0000-0000-0000-0000000007e5",
"name": "Place 59"
},
"metrc_label": "ABCDEF012345670000000032",
"primary_test_result": null,
"product_id": "0d276811-0bb7-4d19-b419-12d72e212770",
"product_unit_quantity": "1.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-000000015151",
"name": "Ounce"
},
"quantity": "1.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "1.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-000000015151",
"name": "Ounce"
}
},
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000036",
"custom_data": [],
"expiration_date": null,
"id": "00000000-0000-0000-0000-000000000178",
"is_trade_sample": false,
"license": {
"id": "00000000-0000-0000-0000-000000000285",
"license_number": "CDPH-00000015"
},
"location": {
"id": "00000000-0000-0000-0000-0000000007ee",
"name": "Place 68"
},
"metrc_label": "ABCDEF012345670000000036",
"primary_test_result": null,
"product_id": "dc321340-b104-428e-acd2-33eca7883c62",
"product_unit_quantity": "0.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-000000015151",
"name": "Ounce"
},
"quantity": "0.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "0.000000000",
"status": "finished",
"unit_type": {
"id": "00000000-0000-0000-0000-000000015151",
"name": "Ounce"
}
}
],
"next_page": null
}
Get packages sorted by their creation date and filtered by various attributes
Note: The page size for this endpoint is 5000 packages per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Request
GET /public/v1/packages
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| inserted_datetime | Filter packages by their creation datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| page | Pagination information | 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 | |
| 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTYsImlhdCI6MTc3MzE1MjI1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiM2IzYWUzNGItY2VjYi00MjIyLWFjOGUtNTBhYWY1MGE5ZmM3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODM1MCIsInR5cCI6ImFjY2VzcyJ9.PibTAWmoWB6SeqgEa5ZF4771sv4RSW5oVsMbbHFLWE4
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 60f0a9421f7a44000000000000000001-4846bee111c1f627-0
{
"data": [
{
"deleted_at": null,
"id": "00000000-0000-0000-0000-00000000002d",
"name": "Payment Method 0"
}
],
"next_page": null
}
Get payment methods. Note: This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Request
GET /public/v1/payment-methods
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| deleted | Filter deleted payment methods. no returns non-deleted, only returns deleted, include returns both. |
query | string | false | no |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A list of payment methods | PaymentMethods |
Product
Get products
GET /public/products returns products related to the company
GET /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTE3ZDJhZGMtYzNkNS00M2ZmLThiOWItOTNkYjE4N2FhYzI3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODg3MSIsInR5cCI6ImFjY2VzcyJ9.avl1g6_hHpoh6I9UReR5wtrAKsvHpPGhp89vpIkAlsA
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: af008433dc1760000000000000000001-f7764039d46e2cd6-0
{
"data": [
{
"brand": {
"id": "00000000-0000-0000-0000-00000000142e",
"name": "Company 413",
"updated_datetime": "2030-11-01T00:00:00.000000Z"
},
"category": {
"id": "00000000-0000-0000-0000-000000000f37",
"name": "Some category 162",
"type": "OTHER"
},
"custom_data": [
{
"id": 209,
"name": "Custom Field 8",
"value": "Custom Field Value 1"
}
],
"deleted_at": null,
"description": "test",
"description_markdown": "# test",
"external_name": "External Name",
"id": "054861d6-2d8f-4d82-b111-7d0056d718b2",
"images": [
{
"id": "00000000-0000-0000-0000-000000000035",
"name": "Image Name 5",
"rank": 0,
"url": "https://google.com/original-5.jpg"
},
{
"id": "00000000-0000-0000-0000-000000000036",
"name": "Image Name 6",
"rank": 1,
"url": "https://google.com/original-6.jpg"
}
],
"is_active": true,
"msrp": null,
"name": "Product 427",
"product_group": {
"id": "00000000-0000-0000-0000-000000000f21",
"name": "Product Group 160"
},
"sku": "sku 428",
"strain": {
"id": "00000000-0000-0000-0000-00000000007a",
"name": "Strain 21"
},
"subcategory": {
"id": "00000000-0000-0000-0000-000000000f21",
"name": "Some subcategory 160"
},
"unit_cost": null,
"unit_net_weight": "20",
"unit_net_weight_serving_size_unit_type": {
"id": "00000000-0000-0000-0000-000000015a46",
"name": "Ounce"
},
"unit_price": "1",
"unit_serving_size": "10",
"unit_type": {
"id": "00000000-0000-0000-0000-000000015a44",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2023-11-01T00:00:00.000000Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000001430",
"name": "Company 420",
"updated_datetime": "2030-11-03T00:00:00.000000Z"
}
},
{
"brand": {
"id": "00000000-0000-0000-0000-00000000142f",
"name": "Company 419",
"updated_datetime": "2030-11-02T00:00:00.000000Z"
},
"category": {
"id": "00000000-0000-0000-0000-000000000f39",
"name": "Some category 164",
"type": "OTHER"
},
"custom_data": [
{
"id": 209,
"name": "Custom Field 8",
"value": null
}
],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "f679e896-1d7b-49a4-b35f-c616d01bef44",
"images": [],
"is_active": false,
"msrp": "100",
"name": "Product 430",
"product_group": {
"id": "00000000-0000-0000-0000-000000000f22",
"name": "Product Group 161"
},
"sku": "sku 431",
"strain": null,
"subcategory": {
"id": "00000000-0000-0000-0000-000000000f22",
"name": "Some subcategory 161"
},
"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-000000015a42",
"name": "Pound"
},
"units_per_case": null,
"updated_datetime": "2023-11-02T00:00:00.000000Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000001435",
"name": "Company 424",
"updated_datetime": "2030-11-04T00:00:00.000000Z"
}
}
],
"next_page": null
}
Get products sorted by their creation date and filtered by various attributes.
Note: The page size for this endpoint is 5000 products per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Request
GET /public/v1/products
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| product_name | Filter products by name substring | query | string | false | ||
| inserted_datetime | Filter products by their creation datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| deleted | Filter deleted products. no returns non-deleted, only returns deleted, include returns both. |
query | string | false | no | |
| page | Pagination information | 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTksImlhdCI6MTc3MzE1MjI1OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzZkOWJmYWUtNjQwYi00NDI4LTg0OTItMWQ1MDBmNmM0MjNmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTI5OCIsInR5cCI6ImFjY2VzcyJ9.4R75FIjbWTLU5om-eyNui_rt6FCEA0u9MFjpqtM2V_o
{
"unit_net_weight_and_serving_size_unit_type_id": "00000000-0000-0000-0000-000000016a0a",
"id": "44fe1e46-abf6-4aeb-82d1-c57c5a0cd664",
"is_featured": true,
"description_markdown": "# My Product Description Markdown",
"wholesale_unit_price": "90.50",
"msrp": "100.5",
"unit_type_id": "00000000-0000-0000-0000-000000016a11",
"quantity_available_threshold_min": "5.5",
"total_thc": "10.4",
"brand_id": "00000000-0000-0000-0000-000000001516",
"sku": "12345",
"unit_price": "100",
"category_id": "00000000-0000-0000-0000-000000000fee",
"unit_serving_size": "2.2",
"tags": [
"00000000-0000-0000-0000-000000000019"
],
"total_cbd": "5.2",
"unit_cost": "50.4",
"group_id": "00000000-0000-0000-0000-000000000fd9",
"is_inactive": true,
"units_per_case": "0.2",
"menus": [
"00000000-0000-0000-0000-000000000028"
],
"vendor_id": "00000000-0000-0000-0000-000000001512",
"total_cannabinoid_unit": "PERCENT",
"menu_visibility": "INCLUDE_IN_ALL",
"inventory_tracking_method": "PACKAGE",
"description": "My Product Description",
"owner_id": "00000000-0000-0000-0000-000000002450",
"subcategory_id": "00000000-0000-0000-0000-000000000fd6",
"quantity_available_threshold_max": "10.5",
"upc": "036000291452",
"unit_net_weight": "3.1",
"strain_id": "00000000-0000-0000-0000-00000000007c",
"name": "My Product"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 9e6a3efede3c68000000000000000001-32278bfd4be8815b-0
{
"data": {
"brand": {
"id": "00000000-0000-0000-0000-000000001516",
"name": "Company 726",
"updated_datetime": "2026-03-10T14:17:39.905076Z"
},
"category": {
"id": "00000000-0000-0000-0000-000000000fee",
"name": "Some category 345",
"type": "OTHER"
},
"custom_data": [
{
"id": 213,
"name": "Custom Field 12",
"value": null
}
],
"deleted_at": null,
"description": "My Product Description",
"description_markdown": "# My Product Description Markdown",
"external_name": null,
"id": "44fe1e46-abf6-4aeb-82d1-c57c5a0cd664",
"images": [],
"is_active": false,
"msrp": "100.5",
"name": "My Product",
"product_group": {
"id": "00000000-0000-0000-0000-000000000fd9",
"name": "Product Group 344"
},
"sku": "12345",
"strain": {
"id": "00000000-0000-0000-0000-00000000007c",
"name": "Strain 23"
},
"subcategory": {
"id": "00000000-0000-0000-0000-000000000fd6",
"name": "Some subcategory 341"
},
"unit_cost": "50.4",
"unit_net_weight": "3.1",
"unit_net_weight_serving_size_unit_type": {
"id": "00000000-0000-0000-0000-000000016a0a",
"name": "Ounce"
},
"unit_price": "100",
"unit_serving_size": "2.2",
"unit_type": {
"id": "00000000-0000-0000-0000-000000016a11",
"name": "Unit"
},
"units_per_case": "0.2",
"updated_datetime": "2026-03-10T14:17:39.955856Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000001512",
"name": "Company 720",
"updated_datetime": "2026-03-10T14:17:39.892071Z"
}
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjZkOGI3ODUtNzJiNS00MzY3LTg1NGQtYzY1ZDg4OGI5ZTY1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODY3NyIsInR5cCI6ImFjY2VzcyJ9.O1vC4KJXRhVVsa6ZW4YjggfIGX1FFXAXdOD61QE8rTg
{
"category_id": "00000000-0000-0000-0000-000000000ef1",
"id": "2f89a0e9-7865-4857-9ffa-e47476f4a8cf",
"inventory_tracking_method": "PACKAGE",
"name": "My Product",
"sku": "12345",
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-000000015257",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-0000000013ba"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 4d0a589449d2e4000000000000000001-16593df0cb859eef-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-000000000ef1",
"name": "Some category 92",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "2f89a0e9-7865-4857-9ffa-e47476f4a8cf",
"images": [],
"is_active": true,
"msrp": null,
"name": "My Product",
"product_group": null,
"sku": "12345",
"strain": null,
"subcategory": null,
"unit_cost": null,
"unit_net_weight": null,
"unit_net_weight_serving_size_unit_type": null,
"unit_price": "100",
"unit_serving_size": null,
"unit_type": {
"id": "00000000-0000-0000-0000-000000015257",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-03-10T14:17:38.303941Z",
"vendor": {
"id": "00000000-0000-0000-0000-0000000013ba",
"name": "Company 249",
"updated_datetime": "2026-03-10T14:17:38.182890Z"
}
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjZkOGI3ODUtNzJiNS00MzY3LTg1NGQtYzY1ZDg4OGI5ZTY1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODY3NyIsInR5cCI6ImFjY2VzcyJ9.O1vC4KJXRhVVsa6ZW4YjggfIGX1FFXAXdOD61QE8rTg
{
"unit_net_weight_and_serving_size_unit_type_id": "00000000-0000-0000-0000-000000015259",
"id": "2f89a0e9-7865-4857-9ffa-e47476f4a8cf",
"is_featured": true,
"wholesale_unit_price": "90.50",
"msrp": "100.5",
"unit_type_id": "00000000-0000-0000-0000-000000015260",
"quantity_available_threshold_min": "5.5",
"total_thc": "10.4",
"brand_id": "00000000-0000-0000-0000-0000000013f9",
"sku": "45678",
"unit_price": "200",
"category_id": "00000000-0000-0000-0000-000000000f10",
"unit_serving_size": "2.2",
"tags": [
"00000000-0000-0000-0000-000000000015"
],
"total_cbd": "5.2",
"unit_cost": "50.4",
"group_id": "00000000-0000-0000-0000-000000000efe",
"is_inactive": true,
"units_per_case": "0.2",
"menus": [
"00000000-0000-0000-0000-000000000021"
],
"vendor_id": "00000000-0000-0000-0000-0000000013eb",
"total_cannabinoid_unit": "PERCENT",
"menu_visibility": "INCLUDE_IN_ALL",
"inventory_tracking_method": "PACKAGE",
"description": "My Product Description",
"owner_id": "00000000-0000-0000-0000-000000002272",
"subcategory_id": "00000000-0000-0000-0000-000000000efb",
"external_name": "External Name",
"quantity_available_threshold_max": "10.5",
"upc": "036000291453",
"unit_net_weight": "3.1",
"strain_id": "00000000-0000-0000-0000-000000000079",
"name": "Updated Name"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 4d0a589449d2e4000000000000000001-bb05f6ebc2f15199-0
{
"data": {
"brand": {
"id": "00000000-0000-0000-0000-0000000013f9",
"name": "Company 339",
"updated_datetime": "2026-03-10T14:17:38.464999Z"
},
"category": {
"id": "00000000-0000-0000-0000-000000000f10",
"name": "Some category 123",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": "My Product Description",
"description_markdown": "My Product Description",
"external_name": "External Name",
"id": "2f89a0e9-7865-4857-9ffa-e47476f4a8cf",
"images": [],
"is_active": false,
"msrp": "100.5",
"name": "Updated Name",
"product_group": {
"id": "00000000-0000-0000-0000-000000000efe",
"name": "Product Group 125"
},
"sku": "45678",
"strain": {
"id": "00000000-0000-0000-0000-000000000079",
"name": "Strain 20"
},
"subcategory": {
"id": "00000000-0000-0000-0000-000000000efb",
"name": "Some subcategory 122"
},
"unit_cost": "50.4",
"unit_net_weight": "3.1",
"unit_net_weight_serving_size_unit_type": {
"id": "00000000-0000-0000-0000-000000015259",
"name": "Ounce"
},
"unit_price": "200",
"unit_serving_size": "2.2",
"unit_type": {
"id": "00000000-0000-0000-0000-000000015260",
"name": "Unit"
},
"units_per_case": "0.2",
"updated_datetime": "2026-03-10T14:17:38.545598Z",
"vendor": {
"id": "00000000-0000-0000-0000-0000000013eb",
"name": "Company 325",
"updated_datetime": "2026-03-10T14:17:38.429215Z"
}
}
}
POST /public/v1/products Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTksImlhdCI6MTc3MzE1MjI1OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTg3MmJlN2QtNWQ0NC00YzU2LWFhODQtNmFjMzkxMTRkYzIzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTE2OCIsInR5cCI6ImFjY2VzcyJ9.QQIdQGz7jOyiS1U3GEzg_BOFvZDY7n8eN4Xtt2IgIlg
{
"category_id": "00000000-0000-0000-0000-000000000fb6",
"id": "6b0001d9-6105-4500-9652-533275d42cbb",
"inventory_tracking_method": "PACKAGE",
"menu_visibility": "INCLUDE_IN_ALL",
"menus": [
"00000000-0000-0000-0000-000000000025"
],
"name": "My Product",
"sku": "12345",
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-00000001656f",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-0000000014cc"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 400d4ff9ec6824000000000000000001-bc1722ae79f8bedb-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-000000000fb6",
"name": "Some category 289",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "6b0001d9-6105-4500-9652-533275d42cbb",
"images": [],
"is_active": true,
"msrp": null,
"name": "My Product",
"product_group": null,
"sku": "12345",
"strain": null,
"subcategory": null,
"unit_cost": null,
"unit_net_weight": null,
"unit_net_weight_serving_size_unit_type": null,
"unit_price": "100",
"unit_serving_size": null,
"unit_type": {
"id": "00000000-0000-0000-0000-00000001656f",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-03-10T14:17:39.520795Z",
"vendor": {
"id": "00000000-0000-0000-0000-0000000014cc",
"name": "Company 632",
"updated_datetime": "2026-03-10T14:17:39.460414Z"
}
}
}
POST /public/v1/products Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTksImlhdCI6MTc3MzE1MjI1OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTg3MmJlN2QtNWQ0NC00YzU2LWFhODQtNmFjMzkxMTRkYzIzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTE2OCIsInR5cCI6ImFjY2VzcyJ9.QQIdQGz7jOyiS1U3GEzg_BOFvZDY7n8eN4Xtt2IgIlg
{
"category_id": "00000000-0000-0000-0000-000000000fb6",
"id": "6b0001d9-6105-4500-9652-533275d42cbb",
"inventory_tracking_method": "PACKAGE",
"menu_visibility": "DO_NOT_INCLUDE",
"menus": [
"00000000-0000-0000-0000-000000000025",
"00000000-0000-0000-0000-000000000026"
],
"name": "My Product",
"sku": "12345",
"tags": [],
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-00000001656f",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-0000000014cc"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 400d4ff9ec6824000000000000000001-16c42be7a2c85ebf-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-000000000fb6",
"name": "Some category 289",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "6b0001d9-6105-4500-9652-533275d42cbb",
"images": [],
"is_active": true,
"msrp": null,
"name": "My Product",
"product_group": null,
"sku": "12345",
"strain": null,
"subcategory": null,
"unit_cost": null,
"unit_net_weight": null,
"unit_net_weight_serving_size_unit_type": null,
"unit_price": "100",
"unit_serving_size": null,
"unit_type": {
"id": "00000000-0000-0000-0000-00000001656f",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-03-10T14:17:39.579830Z",
"vendor": {
"id": "00000000-0000-0000-0000-0000000014cc",
"name": "Company 632",
"updated_datetime": "2026-03-10T14:17:39.460414Z"
}
}
}
POST /public/v1/products Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTksImlhdCI6MTc3MzE1MjI1OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTg3MmJlN2QtNWQ0NC00YzU2LWFhODQtNmFjMzkxMTRkYzIzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTE2OCIsInR5cCI6ImFjY2VzcyJ9.QQIdQGz7jOyiS1U3GEzg_BOFvZDY7n8eN4Xtt2IgIlg
{
"category_id": "00000000-0000-0000-0000-000000000fb6",
"id": "6b0001d9-6105-4500-9652-533275d42cbb",
"inventory_tracking_method": "PACKAGE",
"menu_visibility": "INCLUDE_IN_SELECT",
"menus": [
"00000000-0000-0000-0000-000000000025",
"00000000-0000-0000-0000-000000000026"
],
"name": "My Product",
"sku": "12345",
"tags": [],
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-00000001656f",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-0000000014cc"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 400d4ff9ec6824000000000000000001-bb8fd79edee9214d-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-000000000fb6",
"name": "Some category 289",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "6b0001d9-6105-4500-9652-533275d42cbb",
"images": [],
"is_active": true,
"msrp": null,
"name": "My Product",
"product_group": null,
"sku": "12345",
"strain": null,
"subcategory": null,
"unit_cost": null,
"unit_net_weight": null,
"unit_net_weight_serving_size_unit_type": null,
"unit_price": "100",
"unit_serving_size": null,
"unit_type": {
"id": "00000000-0000-0000-0000-00000001656f",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-03-10T14:17:39.621534Z",
"vendor": {
"id": "00000000-0000-0000-0000-0000000014cc",
"name": "Company 632",
"updated_datetime": "2026-03-10T14:17:39.460414Z"
}
}
}
POST /public/v1/products Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTksImlhdCI6MTc3MzE1MjI1OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTg3MmJlN2QtNWQ0NC00YzU2LWFhODQtNmFjMzkxMTRkYzIzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTE2OCIsInR5cCI6ImFjY2VzcyJ9.QQIdQGz7jOyiS1U3GEzg_BOFvZDY7n8eN4Xtt2IgIlg
{
"category_id": "00000000-0000-0000-0000-000000000fb6",
"id": "6b0001d9-6105-4500-9652-533275d42cbb",
"inventory_tracking_method": "PACKAGE",
"menu_visibility": "INCLUDE_IN_SELECT",
"menus": [
"00000000-0000-0000-0000-000000000026"
],
"name": "My Product",
"sku": "12345",
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-00000001656f",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-0000000014cc"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 400d4ff9ec6824000000000000000001-d5cd749929c722e8-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-000000000fb6",
"name": "Some category 289",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "6b0001d9-6105-4500-9652-533275d42cbb",
"images": [],
"is_active": true,
"msrp": null,
"name": "My Product",
"product_group": null,
"sku": "12345",
"strain": null,
"subcategory": null,
"unit_cost": null,
"unit_net_weight": null,
"unit_net_weight_serving_size_unit_type": null,
"unit_price": "100",
"unit_serving_size": null,
"unit_type": {
"id": "00000000-0000-0000-0000-00000001656f",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-03-10T14:17:39.693772Z",
"vendor": {
"id": "00000000-0000-0000-0000-0000000014cc",
"name": "Company 632",
"updated_datetime": "2026-03-10T14:17:39.460414Z"
}
}
}
POST /public/v1/products Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTksImlhdCI6MTc3MzE1MjI1OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTg3MmJlN2QtNWQ0NC00YzU2LWFhODQtNmFjMzkxMTRkYzIzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTE2OCIsInR5cCI6ImFjY2VzcyJ9.QQIdQGz7jOyiS1U3GEzg_BOFvZDY7n8eN4Xtt2IgIlg
{
"category_id": "00000000-0000-0000-0000-000000000fb6",
"id": "6b0001d9-6105-4500-9652-533275d42cbb",
"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-00000001656f",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-0000000014cc"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 400d4ff9ec6824000000000000000001-591dd29e32d15079-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-000000000fb6",
"name": "Some category 289",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "6b0001d9-6105-4500-9652-533275d42cbb",
"images": [],
"is_active": true,
"msrp": null,
"name": "My Product",
"product_group": null,
"sku": "12345",
"strain": null,
"subcategory": null,
"unit_cost": null,
"unit_net_weight": null,
"unit_net_weight_serving_size_unit_type": null,
"unit_price": "100",
"unit_serving_size": null,
"unit_type": {
"id": "00000000-0000-0000-0000-00000001656f",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-03-10T14:17:39.750385Z",
"vendor": {
"id": "00000000-0000-0000-0000-0000000014cc",
"name": "Company 632",
"updated_datetime": "2026-03-10T14:17:39.460414Z"
}
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYTZhZWUxMjgtOTMzZi00MWQyLWJiNTEtNTEwODUwYjZjNjM0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODY0NSIsInR5cCI6ImFjY2VzcyJ9.ARLl8GdNYJw6wnZuBCuZEaqBWGF82xZBaxRUsS7UfM8
{
"id": "32d737ca-3ae5-46ed-9855-651d92cb7361",
"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: 3cb70203cd85ec000000000000000001-6a2c58f097d93b63-0
{
"errors": [
{
"context": {
"id": "32d737ca-3ae5-46ed-9855-651d92cb7361"
},
"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": "32d737ca-3ae5-46ed-9855-651d92cb7361"
},
"message": "Unit Serving Size can't be greater than Unit Net Weight/Volume",
"pointer": [
"unit_serving_size"
],
"section": "body"
},
{
"context": {
"id": "32d737ca-3ae5-46ed-9855-651d92cb7361"
},
"message": "Cannot be negative",
"pointer": [
"quantity_available_threshold_max"
],
"section": "body"
},
{
"context": {
"id": "32d737ca-3ae5-46ed-9855-651d92cb7361"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTcsImlhdCI6MTc3MzE1MjI1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTE1YmQxMzMtODcyYi00ZmRiLThhZjgtNTgzZTUzYWYzNDg1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODUzMSIsInR5cCI6ImFjY2VzcyJ9.Vi_bCZGIjh0OK6G5M5Fqgeb1z8j4vklwA-0Vd7ydQl8
{
"id": "092cdf02-dca6-4c85-9927-620d055b26d9",
"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: c2355da593c9a0000000000000000001-a50880665463f067-0
{
"errors": [
{
"context": {
"id": "092cdf02-dca6-4c85-9927-620d055b26d9"
},
"message": "Must be greater than threshold min",
"pointer": [
"quantity_available_threshold_max"
],
"section": "body"
},
{
"context": {
"id": "092cdf02-dca6-4c85-9927-620d055b26d9"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYWE1MTY1MzItYmI1NC00NTY5LWFkOTktM2I1MTUyNTg2YjQ2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODk0MSIsInR5cCI6ImFjY2VzcyJ9.QYacmnQKJLOrdpzmEj5EsnlZHfHjYCaquO4Q-3tQce0
{
"brand_id": "00000000-0000-0000-0000-00000000145b",
"category_id": "00000000-0000-0000-0000-000000000f4a",
"cbd": "5.2",
"description": "My Product Description",
"description_markdown": "# My Product Description Markdown",
"group_id": "00000000-0000-0000-0000-000000000f39",
"id": "d4058a0e-3493-46c2-ab69-fc7514eddd0d",
"inventory_tracking_method": "PACKAGE",
"is_featured": true,
"is_inactive": true,
"menu_visibility": "INCLUDE_IN_ALL",
"menus": [
"00000000-0000-0000-0000-000000000022",
"00000000-0000-0000-0000-000000000023",
"00000000-0000-0000-0000-000000000024"
],
"msrp": "100.5",
"name": "My Product",
"owner_id": "00000000-0000-0000-0000-0000000022f5",
"quantity_available_threshold_max": "10.5",
"quantity_available_threshold_min": "5.5555",
"sku": "12345",
"strain_id": "00000000-0000-0000-0000-00000000007b",
"subcategory_id": "00000000-0000-0000-0000-000000000f37",
"tags": [
"00000000-0000-0000-0000-000000000016",
"00000000-0000-0000-0000-000000000017",
"00000000-0000-0000-0000-000000000018"
],
"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-000000015d76",
"unit_price": "100",
"unit_serving_size": "2.2",
"unit_type_id": "00000000-0000-0000-0000-000000015d7d",
"units_per_case": "0.2",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-000000001456",
"wholesale_unit_price": "90.50"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 35c488f147da48000000000000000001-ca5752105585e39c-0
{
"errors": [
{
"context": {
"id": "d4058a0e-3493-46c2-ab69-fc7514eddd0d"
},
"message": "Brand does not exist",
"pointer": [
"brand_id"
],
"section": "body"
},
{
"context": {
"id": "d4058a0e-3493-46c2-ab69-fc7514eddd0d"
},
"message": "Category does not exist",
"pointer": [
"category_id"
],
"section": "body"
},
{
"context": {
"id": "d4058a0e-3493-46c2-ab69-fc7514eddd0d"
},
"message": "Vendor does not exist",
"pointer": [
"vendor_id"
],
"section": "body"
},
{
"context": {
"id": "d4058a0e-3493-46c2-ab69-fc7514eddd0d"
},
"message": "Group does not exist",
"pointer": [
"group_id"
],
"section": "body"
},
{
"context": {
"id": "d4058a0e-3493-46c2-ab69-fc7514eddd0d"
},
"message": "Serving unit type does not exist",
"pointer": [
"unit_net_weight_and_serving_size_unit_type_id"
],
"section": "body"
},
{
"context": {
"id": "d4058a0e-3493-46c2-ab69-fc7514eddd0d"
},
"message": "Owner does not exist",
"pointer": [
"owner_id"
],
"section": "body"
},
{
"context": {
"id": "d4058a0e-3493-46c2-ab69-fc7514eddd0d"
},
"message": "Strain does not exist",
"pointer": [
"strain_id"
],
"section": "body"
},
{
"context": {
"id": "d4058a0e-3493-46c2-ab69-fc7514eddd0d"
},
"message": "Subcategory does not belong to the product category",
"pointer": [
"subcategory_id"
],
"section": "body"
},
{
"context": {
"id": "d4058a0e-3493-46c2-ab69-fc7514eddd0d"
},
"message": "One or more of the provided tags do not exist",
"pointer": [
"tags"
],
"section": "body"
},
{
"context": {
"id": "d4058a0e-3493-46c2-ab69-fc7514eddd0d"
},
"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-000000000022"
],
"section": "body"
},
{
"context": {},
"message": "Menu does not exist",
"pointer": [
"menus",
1,
"00000000-0000-0000-0000-000000000023"
],
"section": "body"
}
]
}
Upsert a single product. To update an existing product, pass in an existing product ID in the id field. When updating a product, you must pass in all fields (no sparse update currently supported).Any existing tag you do not pass in to tags will be deleted. If the menu_visibility field isset to INCLUDE_IN_SELECT, any existing menu that you do not pass into menus will be deleted.
Request
POST /public/v1/products
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Unique ID for this product. If it exists, an update will be performed; otherwise, it will be used as the ID of a new product record | query | string | false | ||
| inventory_tracking_method | Once the tracking method is set for a product, it cannot be changed. The tracking method can be one of the following: PACKAGE: The inventory will be defined by packages. PRODUCT: Not grouped in any manner. The inventory simply exists on your product that you can add or remove as you transact. BATCH: Grouped by batches. Batches share common traits such as expiration dates and test results. | query | string | false | PACKAGE | |
| sku | Stock Keeping Unit (SKU) for this product | query | string | false | SKU123 | |
| name | Name of the product | query | string | false | King Size Pre-rolls | |
| vendor_id | The ID of the company_relationship association with the vendor (company) that supplies this product. | query | string | false | ||
| category_id | The ID of the product category of the product. | query | string | false | ||
| external_name | Customer-facing name for DistruCommerce menus and Order Tracker. Defaults to Product Name if left blank | query | string | false | ||
| unit_type_id | The ID of the unit type the product. | query | string | false | ||
| unit_price | The sale price of the product per unit. | query | number | false | ||
| description | Description of the product. If this field is provided and description_markdown is not, the description field will overwrite any existing description_markdown field. | query | string | false | A pack of 5 pre-rolls | |
| description_markdown | The description of the product in markdown format. If this field is provided, description must also be provided. The markdown display only supports italic, bold, strikethrough and links. Use any other markdown formatting at your own risk. | query | string | false | A pack of 5 pre-rolls | |
| upc | Universal Product Code (UPC) for this product | query | string | false | 123456789012 | |
| subcategory_id | The ID of the product subcategory of the product. The provided subcategory must be a child of the provided category. | query | string | false | ||
| group_id | The ID of the product's group. | query | string | false | ||
| brand_id | The ID of the company_relationship association with the brand (company) that is associated with this product. | query | query | false | ||
| quantity_available_threshold_min | The minimum quantity of the product you'd like to maintain. When the product inventory count dips below this number, it will automatically be included in scheduled Low Inventory Reports. | query | number | false | ||
| quantity_available_threshold_max | The maximum quantity of the product you'd like to maintain. When the product inventory count exceeds this number, it will automatically be included in scheduled Inventory Reports. | query | number | false | ||
| units_per_case | The number of units in a case of the product. | query | number | false | ||
| unit_cost | The cost of the product per unit. | query | number | false | ||
| msrp | The Manufacturer's Suggested Retail Price (MSRP) of the product per unit. If you have POS integrations enabled in Distru, this may be synced to your POS | query | number | false | ||
| wholesale_unit_price | The wholesale price of the product per unit. | query | number | false | ||
| is_featured | Whether the product is featured. Featured products will be displayed at the top of menus. | query | boolean | false | ||
| strain_id | The ID of the strain associated with the product. | query | string | false | ||
| owner_id | The ID of the user that is deemed to be the owner of the product. | query | string | false | ||
| is_inactive | Whether the product is inactive from use. Inactive products can be set to active at any time. | query | boolean | false | ||
| total_cannabinoid_unit | The unit of the THC/CBD content of the product (MG or PERCENT). | query | string | false | ||
| total_thc | The THC content of the product in the unit specified by total_cannabinoid_unit. Must also include total_cannabinoid_unit. | query | string | false | ||
| total_cbd | The CBD content of the product in the unit specified by total_cannabinoid_unit. Must also include total_cannabinoid_unit. | query | string | false | ||
| menu_visibility | This key is responsible for which menus (if any) the product will be displayed in. DO_NOT_INCLUDE: The product will not be displayed in any menus. INCLUDE_IN_ALL: The product will be displayed in all menus. INCLUDE_IN_SELECT: The product will be displayed in menus that have been explicitly selected (passed into the menus list). | query | string | false | ||
| unit_net_weight | The net weight of the product per unit. | query | number | false | ||
| unit_serving_size | The serving size of the product per unit. | query | number | false | ||
| unit_net_weight_and_serving_size_unit_type_id | The ID of the unit type that the net quantity per unit and serving size are measured in. This field should be null unless the product's unit type is count-based. If this field is set, the act of changing the category from 'Unit' will throw an error. | query | string | false | ||
| tags | A list of tags associated with the product. | query | array | false | ["0ef8347c-b714-4cd9-ba0e-872488bc9244", "daa0294c-833c-42bd-a133-b4c9e7f64017"] | |
| menus | A list of menus you would like this product to be included in. This field will only be used if the menu_visibility key is set to INCLUDE_IN_SELECT. | query | array | false | ["0ef8347c-b714-4cd9-ba0e-872488bc9244", "daa0294c-833c-42bd-a133-b4c9e7f64017"] |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single product | Product |
Associate images with a product
POST /public/v1/products/:id/images downloads images, stores them, and inserts Image records
POST /public/v1/products/b0a82425-691d-4c2f-9095-ee4f7ae54089/images
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTcsImlhdCI6MTc3MzE1MjI1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDc2YjA5OTktNTE3OS00MWNkLTg4MDgtYzE3Y2IwNDFlNjM5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODYxNCIsInR5cCI6ImFjY2VzcyJ9.5eNN0R8_McGTnhdMufGBfywxBYWB5nY59QsIrQwDhQY
{
"image_urls": [
"https://example.com/a.png",
"https://example.com/b.jpg"
]
}
Response
204
cache-control: max-age=0, private, must-revalidate
b3: cfbace036d4fd8000000000000000001-17a71c57ad334909-0
Downloads images from the provided URLs and associates them with the product. Any existing images on the product will be deleted and replaced. Accepts an empty array to remove all images from the product. Each URL must point to a JPEG, PNG, or GIF image.
Request
POST /public/v1/products/{id}/images
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Product ID | path | string | true | 550e8400-e29b-41d4-a716-446655440000 | |
| image_urls | URLs of images to associate with the product. Maximum 4 URLs. | body | array | false | ["https://example.com/image.jpg"] |
Responses
| Status | Description | Schema |
|---|---|---|
| 204 | Images updated successfully | |
| 400 | Invalid parameters | |
| 422 | Image download or processing failed |
ProductPosMapping
Delete a product POS mapping
DELETE /public/v1/product-pos-mappings/:id deletes a POS mapping
DELETE /public/v1/product-pos-mappings/39
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTcsImlhdCI6MTc3MzE1MjI1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTNlMWFiYzctZmY5MC00ODJjLTg2MzktZjA1OTEyZWJkZTI0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU0MSIsInR5cCI6ImFjY2VzcyJ9.lFRsMZJZSlEBCmMZeOhoNW8VUPqrjtN8UbHcD3h28Ds
Response
204
cache-control: max-age=0, private, must-revalidate
b3: cd6c7992390360000000000000000001-012ee793b43cb6e6-0
Request
DELETE /public/v1/product-pos-mappings/{id}
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Mapping ID | path | string | true |
Responses
| Status | Description | Schema |
|---|---|---|
| 204 | No Content | |
| 401 | Unauthorized | |
| 404 | Not Found |
List product POS mappings
GET /public/v1/product-pos-mappings returns all POS mappings for company products and supports filtering
GET /public/v1/product-pos-mappings
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTcsImlhdCI6MTc3MzE1MjI1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNGIxNjZlOTUtMjkyMC00MzJmLWJkNjMtOTczZjY1ZTg1MTZiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODYxNyIsInR5cCI6ImFjY2VzcyJ9.fCXbZaTt55UA71kxnMXS1bZ6KkRP3p-DAoKENYDfbcY
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: c3a82319877078000000000000000001-08b0033783910a83-0
{
"data": [
{
"blaze_asset_id": null,
"blaze_product_id": "blaze_123",
"blaze_retailer_id": "7e1fac1d-a17d-4eeb-8dfa-f0f9835dc309",
"id": 40,
"inserted_at": "2026-03-10T14:17:37.996859Z",
"pos_type": "BLAZE",
"product_id": "c8bc204a-9f5a-44af-8ed8-7f9d5b257ed1",
"updated_at": "2026-03-10T14:17:37.996859Z"
},
{
"dutchie_product_id": 456,
"dutchie_retailer_id": "b5c27220-958f-40f3-ad18-a5ff059fe494",
"id": 41,
"inserted_at": "2026-03-10T14:17:38.008017Z",
"pos_type": "DUTCHIE",
"product_id": "872ceac3-2504-4bda-b224-4abfe232450f",
"updated_at": "2026-03-10T14:17:38.008017Z"
}
],
"next_page": "https://www.example.com/public/v1/product-pos-mappings?page[number]=2"
}
Get POS mappings with optional filtering by product_id or retailer_id
Request
GET /public/v1/product-pos-mappings
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| product_id | Filter by product ID | query | string | false | ||
| blaze_retailer_id | Filter by Blaze retailer ID | query | string | false | ||
| dutchie_retailer_id | Filter by Dutchie retailer ID | query | string | false | ||
| treez_retailer_id | Filter by Treez retailer ID | query | string | false |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | Success | ProductPosMappingsResponse |
| 400 | Bad Request | |
| 401 | Unauthorized |
Create or update a product POS mapping
POST /public/v1/product-pos-mappings (upsert) creates a new Blaze mapping
POST /public/v1/product-pos-mappings
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNmI3N2VjMzctZjcyNy00MzAzLTkyNTAtMzFhNThjZDIxOGJiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODc4OCIsInR5cCI6ImFjY2VzcyJ9.XFkWjmhs82KVCrRr8nJdI1e_wabTfG6xMLIHB6CD8GU
{
"blaze_product_id": "blaze_123",
"blaze_retailer_id": "020a3bd6-234f-49be-a3dc-ba2fc5f982c8",
"product_id": "05b79a53-f946-4aec-8177-f4341f20192f"
}
Response
201
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 02e59f6b03fa9cc00000000000000001-437a3db550aad26d-0
{
"data": {
"blaze_asset_id": null,
"blaze_product_id": "blaze_123",
"blaze_retailer_id": "020a3bd6-234f-49be-a3dc-ba2fc5f982c8",
"id": 45,
"inserted_at": "2026-03-10T14:17:38.500865Z",
"pos_type": "BLAZE",
"product_id": "05b79a53-f946-4aec-8177-f4341f20192f",
"updated_at": "2026-03-10T14:17:38.500865Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjkzN2QyZDQtYThjYS00YTczLWEwOTctY2E1MGYxM2U0YjU4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODY5OCIsInR5cCI6ImFjY2VzcyJ9.QnFAfSOlqhB6ASqFfOWh-YmeHq0VbHg9dRMvADmmBa4
{
"blaze_product_id": "blaze_456",
"blaze_retailer_id": "78831a0e-a004-4bb1-b480-320f36121d10",
"product_id": "cc57cb9e-750e-4a4a-b444-99a3d6bc44a9"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 016b89bdb5feda000000000000000001-3a953fcbdeafbd05-0
{
"data": {
"blaze_asset_id": null,
"blaze_product_id": "blaze_456",
"blaze_retailer_id": "78831a0e-a004-4bb1-b480-320f36121d10",
"id": 44,
"inserted_at": "2026-03-10T14:17:38.281410Z",
"pos_type": "BLAZE",
"product_id": "cc57cb9e-750e-4a4a-b444-99a3d6bc44a9",
"updated_at": "2026-03-10T14:17:38.290378Z"
}
}
Upserts a POS mapping - creates if new, updates if exists.
The system determines if a mapping already exists by checking for an existing mapping with the same product_id and retailer_id combination. If found, it updates the existing mapping. If not found, it creates a new mapping.
Returns 201 for new mappings, 200 for updates.
Request
POST /public/v1/product-pos-mappings
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| mapping | POS mapping data | body | UpsertProductPosMapping | true |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | Updated existing mapping | ProductPosMappingResponse |
| 201 | Created new mapping | ProductPosMappingResponse |
| 400 | Bad Request | |
| 401 | Unauthorized |
Purchase
Get purchases
GET /public/v1/purchases returns purchases related to the company
GET /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjAsImlhdCI6MTc3MzE1MjI2MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMWUxZjc5MDItOGYzMC00ZjA4LWI2NWQtNTJmOTFkMzRmMDIzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTUwMCIsInR5cCI6ImFjY2VzcyJ9.e5aeEDBl9qCfJNJYfs9rSPF_t9N7ZD9b6KacSD4H91E
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 24fbbb08bea3a4000000000000000001-19ef0bf6081f3df6-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000001596",
"name": "Company 876",
"updated_datetime": "2026-03-10T14:17:40.841157Z"
},
"custom_data": [
{
"id": 217,
"name": "Custom Field 16",
"value": null
}
],
"due_datetime": "2026-03-10T14:17:40.857180Z",
"id": "00000000-0000-0000-0000-0000000000f4",
"inserted_datetime": "2026-03-10T14:17:40.857569Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000102d",
"name": "B1345"
},
"compliance_quantity": null,
"id": "2bac18a0-9bf8-41f3-bd41-964f3adcfaa8",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001cb4",
"id": "00000000-0000-0000-0000-00000000088f",
"license_id": null,
"name": "Place 228"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "0695815d-e63a-4463-995a-6a5850eb195d",
"name": "Product 1332",
"sku": "sku 1333",
"updated_datetime": "2026-03-10T14:17:40.862234Z"
},
"quantity": "15.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000102f",
"name": "B1347"
},
"compliance_quantity": null,
"id": "dfd9eda7-6b70-4654-bad5-6486959207fa",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001cb4",
"id": "00000000-0000-0000-0000-00000000088f",
"license_id": null,
"name": "Place 228"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "2036a935-13e0-4a59-bec0-cc1228d92199",
"name": "Product 1334",
"sku": "sku 1335",
"updated_datetime": "2026-03-10T14:17:40.869002Z"
},
"quantity": "10.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001030",
"name": "B1348"
},
"compliance_quantity": null,
"id": "dff050fb-42ee-44e4-a1fa-f061f2502a3e",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001cb4",
"id": "00000000-0000-0000-0000-00000000088f",
"license_id": null,
"name": "Place 228"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "8709daa3-bffa-4378-bbd1-638dd1d55b8f",
"name": "Product 1336",
"sku": "sku 1337",
"updated_datetime": "2026-03-10T14:17:40.874857Z"
},
"quantity": "5.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001031",
"name": "B1349"
},
"compliance_quantity": null,
"id": "2c69ed1c-d5ea-4217-a3c5-71b00f98083f",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001cb4",
"id": "00000000-0000-0000-0000-00000000088f",
"license_id": null,
"name": "Place 228"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "22c81e38-007f-4ba0-b304-d46fafb5ae54",
"name": "Product 1341",
"sku": "sku 1342",
"updated_datetime": "2026-03-10T14:17:40.881106Z"
},
"quantity": "2.000000000",
"received_quantity": "0.000000000"
}
],
"order_datetime": "2026-03-10T14:17:40.857179Z",
"purchase_number": "Purchase #25",
"status": "PENDING",
"total": "32.00",
"updated_datetime": "2026-03-10T14:17:40.857569Z"
},
{
"charges": [
{
"id": "8fddbd98-c080-4494-bec2-b48b696b9e08",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000001595",
"name": "Company 874",
"updated_datetime": "2030-11-01T00:00:00.000000Z"
},
"custom_data": [
{
"id": 217,
"name": "Custom Field 16",
"value": "Custom Field Value 1"
}
],
"due_datetime": "2020-01-01T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-0000000000f3",
"inserted_datetime": "2020-01-01T00:00:03.000000Z",
"items": [
{
"batch": {
"batch_number": "UID1",
"id": "00000000-0000-0000-0000-000000001027",
"name": "B1"
},
"compliance_quantity": "1.0000",
"id": "faa95b7d-6c8e-4d19-b63a-44de1a86d028",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001cb4",
"id": "00000000-0000-0000-0000-00000000088a",
"license_id": "00000000-0000-0000-0000-0000000002bd",
"name": "Place 223"
},
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000000113",
"id": "00000000-0000-0000-0000-0000000001a1",
"metrc_label": "ABCDEF012345670000000113",
"status": "active"
},
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "62afe884-d835-489e-99c9-5a68f8588f8e",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiODI1MjAyNjItN2IyNi00MjNhLTk3M2UtMmZhZDRmMGE5YWMzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODcwNiIsInR5cCI6ImFjY2VzcyJ9.1WokTFE-5-Fu23NOarDIkldRDCy3yg9qF-tXB2OpS9o
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 56258d1862d828000000000000000001-ed43220805bc282c-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000000141c",
"name": "Company 389",
"updated_datetime": "2026-03-10T14:17:38.598377Z"
},
"custom_data": [],
"due_datetime": "2026-03-10T14:17:38.635181Z",
"id": "00000000-0000-0000-0000-0000000000de",
"inserted_datetime": "2026-03-10T14:17:38.636280Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000ede",
"name": "B414"
},
"compliance_quantity": null,
"id": "d8ddd1f9-57f1-40bd-8473-9bf3fa5156b7",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001a56",
"id": "00000000-0000-0000-0000-0000000007fe",
"license_id": null,
"name": "Place 84"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "94b0e15c-9149-4778-94d2-0181207c3191",
"name": "Product 400",
"sku": "sku 401",
"updated_datetime": "2026-03-10T14:17:38.645271Z"
},
"quantity": "15.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000edf",
"name": "B415"
},
"compliance_quantity": null,
"id": "08ba145d-dcf7-493a-817b-4e362910a087",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001a56",
"id": "00000000-0000-0000-0000-0000000007fe",
"license_id": null,
"name": "Place 84"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "ec8dd3a8-2e79-4d1e-a84d-849d56434142",
"name": "Product 407",
"sku": "sku 408",
"updated_datetime": "2026-03-10T14:17:38.653658Z"
},
"quantity": "10.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000ee0",
"name": "B416"
},
"compliance_quantity": null,
"id": "46663b23-1b3a-4d58-8762-6396fa29f4b0",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001a56",
"id": "00000000-0000-0000-0000-0000000007fe",
"license_id": null,
"name": "Place 84"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "490ca3e5-017a-4b0f-b3dd-55bf2292f310",
"name": "Product 410",
"sku": "sku 411",
"updated_datetime": "2026-03-10T14:17:38.661698Z"
},
"quantity": "5.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000ee1",
"name": "B417"
},
"compliance_quantity": null,
"id": "a4476ec7-9b7a-4fb6-858f-bfe8b150e05a",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001a56",
"id": "00000000-0000-0000-0000-0000000007fe",
"license_id": null,
"name": "Place 84"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "b1b9b6fd-7871-4467-86a1-f0a7823938f3",
"name": "Product 412",
"sku": "sku 413",
"updated_datetime": "2026-03-10T14:17:38.671355Z"
},
"quantity": "2.000000000",
"received_quantity": "0.000000000"
}
],
"order_datetime": "2020-01-01T12:30:00.000000Z",
"purchase_number": "Purchase #5",
"status": "PENDING",
"total": "32.00",
"updated_datetime": "2026-03-10T14:17:38.636280Z"
},
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000001407",
"name": "Company 360",
"updated_datetime": "2026-03-10T14:17:38.502827Z"
},
"custom_data": [],
"due_datetime": "2026-03-10T14:17:38.527773Z",
"id": "00000000-0000-0000-0000-0000000000dd",
"inserted_datetime": "2026-03-10T14:17:38.528404Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000ed2",
"name": "B381"
},
"compliance_quantity": null,
"id": "f3767bed-f109-41e1-95db-64fb5912c111",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001a56",
"id": "00000000-0000-0000-0000-0000000007f9",
"license_id": null,
"name": "Place 79"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "18590350-2b65-4dd6-ac06-bf2fa2d3da45",
"name": "Product 366",
"sku": "sku 367",
"updated_datetime": "2026-03-10T14:17:38.536886Z"
},
"quantity": "15.000000000",
"received_quantity": "15.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000ed3",
"name": "B382"
},
"compliance_quantity": null,
"id": "1de8296c-f934-4dba-b0c9-7d2838f358b9",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001a56",
"id": "00000000-0000-0000-0000-0000000007f9",
"license_id": null,
"name": "Place 79"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "1530de2f-5164-4161-b3da-4bbc6402dd76",
"name": "Product 368",
"sku": "sku 369",
"updated_datetime": "2026-03-10T14:17:38.542996Z"
},
"quantity": "10.000000000",
"received_quantity": "10.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000ed4",
"name": "B383"
},
"compliance_quantity": null,
"id": "46f8e299-665c-4109-a241-3af758d210c1",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001a56",
"id": "00000000-0000-0000-0000-0000000007f9",
"license_id": null,
"name": "Place 79"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "928909b7-2c66-45a2-8801-4a9829025ae7",
"name": "Product 372",
"sku": "sku 373",
"updated_datetime": "2026-03-10T14:17:38.554392Z"
},
"quantity": "5.000000000",
"received_quantity": "5.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000ed5",
"name": "B384"
},
"compliance_quantity": null,
"id": "2077c68c-4f30-4f98-a0c1-e19101a0fdc2",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001a56",
"id": "00000000-0000-0000-0000-0000000007f9",
"license_id": null,
"name": "Place 79"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "5fed324a-6841-405e-b2ff-2320268cbd91",
"name": "Product 377",
"sku": "sku 378",
"updated_datetime": "2026-03-10T14:17:38.575896Z"
},
"quantity": "2.000000000",
"received_quantity": "2.000000000"
}
],
"order_datetime": "2020-01-01T12:20:00.000000Z",
"purchase_number": "Purchase #4",
"status": "COMPLETED",
"total": "32.00",
"updated_datetime": "2026-03-10T14:17:38.528404Z"
},
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000013c5",
"name": "Company 270",
"updated_datetime": "2026-03-10T14:17:38.273544Z"
},
"custom_data": [],
"due_datetime": "2026-03-10T14:17:38.315513Z",
"id": "00000000-0000-0000-0000-0000000000db",
"inserted_datetime": "2026-03-10T14:17:38.316594Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000eb9",
"name": "B288"
},
"compliance_quantity": null,
"id": "463b7cb8-7b24-4bbb-a3e2-f73169279fc9",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001a56",
"id": "00000000-0000-0000-0000-0000000007ed",
"license_id": null,
"name": "Place 67"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "ceef532f-6f8d-4506-9dad-19e0e48d4284",
"name": "Product 269",
"sku": "sku 270",
"updated_datetime": "2026-03-10T14:17:38.328711Z"
},
"quantity": "15.000000000",
"received_quantity": "15.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000eba",
"name": "B289"
},
"compliance_quantity": null,
"id": "e64fb082-4c66-48be-bc7a-e3ac441f22b8",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001a56",
"id": "00000000-0000-0000-0000-0000000007ed",
"license_id": null,
"name": "Place 67"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "2c4250c1-b899-48d6-8b49-e68a9f91e061",
"name": "Product 275",
"sku": "sku 276",
"updated_datetime": "2026-03-10T14:17:38.336915Z"
},
"quantity": "10.000000000",
"received_quantity": "10.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000ebb",
"name": "B290"
},
"compliance_quantity": null,
"id": "38708a71-29c2-4861-af3a-ee152f07c323",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001a56",
"id": "00000000-0000-0000-0000-0000000007ed",
"license_id": null,
"name": "Place 67"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "f3436868-8249-4661-aa67-2f210cbf1a06",
"name": "Product 280",
"sku": "sku 281",
"updated_datetime": "2026-03-10T14:17:38.353462Z"
},
"quantity": "5.000000000",
"received_quantity": "5.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000ebd",
"name": "B294"
},
"compliance_quantity": null,
"id": "d7b37b35-5700-435e-b28a-cc56ad45f4ba",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001a56",
"id": "00000000-0000-0000-0000-0000000007ed",
"license_id": null,
"name": "Place 67"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "40bce35d-7323-4d24-8981-5b47800029d4",
"name": "Product 286",
"sku": "sku 287",
"updated_datetime": "2026-03-10T14:17:38.361379Z"
},
"quantity": "2.000000000",
"received_quantity": "2.000000000"
}
],
"order_datetime": "2020-01-01T12:00:00.000000Z",
"purchase_number": "Purchase #2",
"status": "COMPLETED",
"total": "32.00",
"updated_datetime": "2026-03-10T14:17:38.316594Z"
}
],
"next_page": null
}
Get purchases sorted by Order Date descendingly date and filtered by various attributes.
Note: The page size for this endpoint is 500 purchase orders per page.
Request
GET /public/v1/purchases
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| due_datetime | Filter purchases by the due datetime | query | string | false | ,2022-07-10T00:00:00Z | |
| inserted_datetime | Filter purchases by their creation datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| order_datetime | Filter purchases by the order datetime | query | string | false | 2022-07-10T00:00:00Z,2022-07-11T00:00:00Z | |
| page | Pagination information | 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-0000000000d9/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTcsImlhdCI6MTc3MzE1MjI1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNzcxM2VhYTYtMDcyNi00YmVlLTkwNTYtMGI4MDRkNWM5YTc3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODQ4MyIsInR5cCI6ImFjY2VzcyJ9.rglz-FuEgZPIWMCc8m6Gwo_36_vu7VjcYuJ2E-w9_rM
{
"amount": 100.01,
"description": "Payment for purchase",
"payment_datetime": "2020-01-01T00:00:00.000000Z",
"payment_method_id": "00000000-0000-0000-0000-000000000032",
"quickbooks_deposit_account_id": "QBD-123"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 98259563aafc60000000000000000001-a932407b96e04b65-0
{
"data": {
"amount": "100.01",
"description": "Payment for purchase",
"id": "00000000-0000-0000-0000-000000000009",
"inserted_datetime": "2026-03-10T14:17:37.656826Z",
"payment_date": "2020-01-01T00:00:00.000000Z",
"payment_method": {
"deleted_at": null,
"id": "00000000-0000-0000-0000-000000000032",
"name": "Payment Method 0"
},
"payment_number": "PYT-0000001",
"purchase_id": "00000000-0000-0000-0000-0000000000d9",
"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-0000000000d9/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTcsImlhdCI6MTc3MzE1MjI1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNzcxM2VhYTYtMDcyNi00YmVlLTkwNTYtMGI4MDRkNWM5YTc3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODQ4MyIsInR5cCI6ImFjY2VzcyJ9.rglz-FuEgZPIWMCc8m6Gwo_36_vu7VjcYuJ2E-w9_rM
{
"amount": 100.01,
"description": "Payment for purchase",
"payment_datetime": "2020-01-01T00:00:00.000000Z",
"payment_method_id": "00000000-0000-0000-0000-000000000032",
"quickbooks_deposit_account_name": "QBD-NAME"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 98259563aafc60000000000000000001-e4cba0357727dcf3-0
{
"data": {
"amount": "100.01",
"description": "Payment for purchase",
"id": "00000000-0000-0000-0000-00000000000a",
"inserted_datetime": "2026-03-10T14:17:38.193587Z",
"payment_date": "2020-01-01T00:00:00.000000Z",
"payment_method": {
"deleted_at": null,
"id": "00000000-0000-0000-0000-000000000032",
"name": "Payment Method 0"
},
"payment_number": "PYT-0000002",
"purchase_id": "00000000-0000-0000-0000-0000000000d9",
"quickbooks_deposit_account_id": "QBD-123"
}
}
Request
POST /public/v1/purchases/{id}/payments
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| payment_method_id | Payment method ID | query | string | true | ||
| amount | Amount of the payment. Will round to 2 decimal places | query | decimal | true | ||
| payment_datetime | Payment date | query | string | true | ||
| description | Description of the payment | query | string | true | ||
| quickbooks_deposit_account_id | Quickbooks deposit account ID. Cannot include both this and quickbooks_deposit_account_name. If user's company is integrated with Quickbooks, either this or quickbooks_deposit_account_name must be provided. Account type must be "Bank" or "Credit Card" | query | string | false | ||
| quickbooks_deposit_account_name | Quickbooks deposit account name. Cannot include both this and quickbooks_deposit_account_id. If user's company is integrated with Quickbooks, either this or quickbooks_deposit_account_id must be provided. Account type must be "Bank" or "Credit Card" | query | string | false |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single payment | PurchasePayment |
Upsert a purchase order
POST /public/v1/purchases creates a purchase (with product-tracked item)
POST /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjAsImlhdCI6MTc3MzE1MjI2MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZmJhNTI5ODQtNmNiZi00N2Q4LTg2MDgtMGQ3ZWM5MjE1YmQ3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTQzMiIsInR5cCI6ImFjY2VzcyJ9.2MwGOzG9fGOKCf0VOI5kuAI9hURq1IoNYz_ElxQ9_pk
{
"billing_location_id": "00000000-0000-0000-0000-000000000875",
"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-00000000155c",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000000874",
"price": "10.000000000",
"product_id": "bc939eb7-c3c1-4352-83e6-b64dd6a773e7",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000000874",
"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: 10055dcb7e6deb000000000000000001-028f6e1bb0b7b046-0
{
"data": {
"charges": [
{
"id": "c15efa6f-ae40-4c87-bdd5-3d93760b713d",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "0b5d9c0e-84ab-4b88-a4f1-69fd9379bb42",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-00000000155c",
"name": "Company 809",
"updated_datetime": "2026-03-10T14:17:40.412356Z"
},
"custom_data": [
{
"id": 216,
"name": "Custom Field 15",
"value": null
}
],
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-0000000000ee",
"inserted_datetime": "2026-03-10T14:17:40.440786Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000ffe",
"name": "B1"
},
"compliance_quantity": null,
"id": "56c400f4-560e-4529-b11d-749d1d33d481",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001c77",
"id": "00000000-0000-0000-0000-000000000874",
"license_id": "00000000-0000-0000-0000-0000000002b5",
"name": "Place 201"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "bc939eb7-c3c1-4352-83e6-b64dd6a773e7",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-03-10T14:17:40.429467Z"
},
"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-03-10T14:17:40.444407Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjAsImlhdCI6MTc3MzE1MjI2MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTliOGFiNGQtZGFkOC00ZDk2LTlhODEtMzhhZmY2YmFlZThkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTMxNSIsInR5cCI6ImFjY2VzcyJ9.gLbRDoLpVwIH53oujrl2cqrHEq2mbnNhSaE80Tr1v30
{
"billing_location_id": "00000000-0000-0000-0000-000000000851",
"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-000000001517",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"batch_id": "00000000-0000-0000-0000-000000000fcc",
"location_id": "00000000-0000-0000-0000-000000000851",
"price": "10.000000000",
"product_id": "ddfc43a8-98fb-4f8a-aee7-c141f14f4c3e",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000000851",
"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: de696a021b28c0000000000000000001-99b063368d6f8cae-0
{
"data": {
"charges": [
{
"id": "51cfbc08-dc29-4c30-995b-0b2636771784",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "9497d2cf-b0d5-40cb-8920-a578bf3bfe0b",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000001517",
"name": "Company 727",
"updated_datetime": "2026-03-10T14:17:39.905547Z"
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-0000000000e9",
"inserted_datetime": "2026-03-10T14:17:40.023669Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000fcc",
"name": "B1"
},
"compliance_quantity": null,
"id": "1eb33a15-9d34-46e7-afaa-8e7b49ccb225",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001c1e",
"id": "00000000-0000-0000-0000-000000000851",
"license_id": "00000000-0000-0000-0000-0000000002a4",
"name": "Place 167"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "ddfc43a8-98fb-4f8a-aee7-c141f14f4c3e",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-03-10T14:17:40.013121Z"
},
"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-03-10T14:17:40.032349Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjAsImlhdCI6MTc3MzE1MjI2MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTg3YmM2MmYtNTQ5ZS00MTA1LTk4ODUtNmE0NzM2Yjc3MjMyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTUzOSIsInR5cCI6ImFjY2VzcyJ9.Zp77N7ItRwGJc5WmXn4Eow52peQ0oi1l-YtLpKyY3L0
{
"billing_location_id": "00000000-0000-0000-0000-000000000895",
"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-0000000015a4",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000000895",
"price": "10.000000000",
"product_id": "69c4eae4-6459-4e56-8e97-f3076aae6add",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000000895",
"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: 7f7eca888cfe28000000000000000001-0e8f7df091d0d6e0-0
{
"data": {
"charges": [
{
"id": "d7758028-53ec-4f99-b901-7fafbb061275",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "fe3122fd-a7b8-4f88-a92a-d9b5316dbf08",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000015a4",
"name": "Company 892",
"updated_datetime": "2026-03-10T14:17:40.934030Z"
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-0000000000f6",
"inserted_datetime": "2026-03-10T14:17:40.987298Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000103a",
"name": "B1"
},
"compliance_quantity": null,
"id": "963bd616-a9e8-4573-8133-4c4c6487ef4a",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001ccb",
"id": "00000000-0000-0000-0000-000000000895",
"license_id": "00000000-0000-0000-0000-0000000002c1",
"name": "Place 234"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "69c4eae4-6459-4e56-8e97-f3076aae6add",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-03-10T14:17:40.966130Z"
},
"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-03-10T14:17:40.995641Z"
}
}
POST /public/v1/purchases updates a purchase
POST /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjIsImlhdCI6MTc3MzE1MjI2MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMmY1YjQ1OTctNzE3ZS00Y2E2LWEwODAtMTk2NGYwNzg1OTNjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjYxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTg1NyIsInR5cCI6ImFjY2VzcyJ9.FF3Is5yXVPsYuh4ArdXELXkMRWQzP4zFLI9PSPJ5EAc
{
"billing_location_id": "00000000-0000-0000-0000-0000000008eb",
"charges": [
{
"name": "C1",
"percent": "10.0000",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company_id": "00000000-0000-0000-0000-000000001686",
"due_datetime": "2020-01-20T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-0000000008eb",
"price": "10.000000000",
"product_id": "1acf1e88-cea8-4f56-93ae-708dacaf3b40",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-0000000008eb",
"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: 693416fa55d9c4000000000000000001-22c27623474c5cbd-0
{
"data": {
"charges": [
{
"id": "c6a3afe5-99ae-47d4-9ec8-09d49dcb051b",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000001686",
"name": "Company 1150",
"updated_datetime": "2026-03-10T14:17:42.425593Z"
},
"custom_data": [],
"due_datetime": "2020-01-20T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-000000000109",
"inserted_datetime": "2026-03-10T14:17:42.480571Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000010f0",
"name": "B1"
},
"compliance_quantity": null,
"id": "247d364b-b73d-4da4-8a1b-6b97c80db53e",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001dcb",
"id": "00000000-0000-0000-0000-0000000008eb",
"license_id": "00000000-0000-0000-0000-0000000002da",
"name": "Place 320"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "1acf1e88-cea8-4f56-93ae-708dacaf3b40",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-03-10T14:17:42.459485Z"
},
"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-03-10T14:17:42.485464Z"
}
}
POST /public/v1/purchases updates a purchase
POST /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjIsImlhdCI6MTc3MzE1MjI2MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMmY1YjQ1OTctNzE3ZS00Y2E2LWEwODAtMTk2NGYwNzg1OTNjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjYxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTg1NyIsInR5cCI6ImFjY2VzcyJ9.FF3Is5yXVPsYuh4ArdXELXkMRWQzP4zFLI9PSPJ5EAc
{
"billing_location_id": "00000000-0000-0000-0000-0000000008eb",
"charges": [
{
"id": "c6a3afe5-99ae-47d4-9ec8-09d49dcb051b",
"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-000000001686",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-000000000109",
"items": [
{
"id": "247d364b-b73d-4da4-8a1b-6b97c80db53e",
"location_id": "00000000-0000-0000-0000-0000000008eb",
"price": "10.000000000",
"product_id": "1acf1e88-cea8-4f56-93ae-708dacaf3b40",
"quantity": "1.000000000"
},
{
"batch_id": "00000000-0000-0000-0000-0000000010f2",
"location_id": "00000000-0000-0000-0000-0000000008eb",
"price": "5.000000000",
"product_id": "62503e2e-88d9-4bcf-96e4-8b26a54c8b8c",
"quantity": "2.000000000"
}
],
"location_id": "00000000-0000-0000-0000-0000000008eb",
"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: 693416fa55d9c4000000000000000001-81a534f2967841c0-0
{
"data": {
"charges": [
{
"id": "c6a3afe5-99ae-47d4-9ec8-09d49dcb051b",
"name": "C1",
"percent": "10.0000",
"price": "2.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "9418c459-790c-4b16-a48d-dcddaaea9d7a",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000001686",
"name": "Company 1150",
"updated_datetime": "2026-03-10T14:17:42.425593Z"
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-000000000109",
"inserted_datetime": "2026-03-10T14:17:42.480571Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000010f0",
"name": "B1"
},
"compliance_quantity": null,
"id": "247d364b-b73d-4da4-8a1b-6b97c80db53e",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001dcb",
"id": "00000000-0000-0000-0000-0000000008eb",
"license_id": "00000000-0000-0000-0000-0000000002da",
"name": "Place 320"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "1acf1e88-cea8-4f56-93ae-708dacaf3b40",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-03-10T14:17:42.459485Z"
},
"quantity": "1.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000010f2",
"name": "B2"
},
"compliance_quantity": null,
"id": "066d7db2-8e65-4da7-8f98-068826444f51",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001dcb",
"id": "00000000-0000-0000-0000-0000000008eb",
"license_id": "00000000-0000-0000-0000-0000000002da",
"name": "Place 320"
},
"package": null,
"price": "5.000000000",
"price_base": "5.000000000",
"product": {
"id": "62503e2e-88d9-4bcf-96e4-8b26a54c8b8c",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-03-10T14:17:42.469700Z"
},
"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-03-10T14:17:42.544541Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjIsImlhdCI6MTc3MzE1MjI2MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDU3OTA2ZDktNmRhOC00ZTFiLTlmZTEtNDliZjJiMTM1YzdmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjYxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTk0MSIsInR5cCI6ImFjY2VzcyJ9.mz0LfLx4DoW3UgsrEWjxmSYmB8T56W3EZgXvPMo0Xxw
{
"billing_location_id": "00000000-0000-0000-0000-000000000901",
"company_id": "00000000-0000-0000-0000-0000000016cc",
"due_datetime": "2020-01-20T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000000901",
"price": "10",
"product_id": "3a420884-f0d9-4549-b6bf-c4992f13aea9",
"quantity": "1"
}
],
"location_id": "00000000-0000-0000-0000-000000000901",
"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: aa86d404799618000000000000000001-54909dca825f3090-0
{
"data": {
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000016cc",
"name": "Company 1232",
"updated_datetime": "2026-03-10T14:17:42.944555Z"
},
"custom_data": [],
"due_datetime": "2020-01-20T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-00000000010e",
"inserted_datetime": "2026-03-10T14:17:42.974129Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000112a",
"name": "B2080"
},
"compliance_quantity": null,
"id": "245835dd-c766-4ebf-90b9-1a2bb7fc9f92",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001e1f",
"id": "00000000-0000-0000-0000-000000000901",
"license_id": "00000000-0000-0000-0000-0000000002db",
"name": "Place 342"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "3a420884-f0d9-4549-b6bf-c4992f13aea9",
"name": "Product 2076",
"sku": "sku 2077",
"updated_datetime": "2026-03-10T14:17:42.958308Z"
},
"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-03-10T14:17:42.974129Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjIsImlhdCI6MTc3MzE1MjI2MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDU3OTA2ZDktNmRhOC00ZTFiLTlmZTEtNDliZjJiMTM1YzdmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjYxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTk0MSIsInR5cCI6ImFjY2VzcyJ9.mz0LfLx4DoW3UgsrEWjxmSYmB8T56W3EZgXvPMo0Xxw
{
"company_id": "00000000-0000-0000-0000-0000000016cc",
"id": "00000000-0000-0000-0000-00000000010e",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000000901",
"price": "2",
"product_id": "3a420884-f0d9-4549-b6bf-c4992f13aea9",
"quantity": "1"
}
]
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: aa86d404799618000000000000000001-bb48cd7f5e5af826-0
{
"data": {
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000016cc",
"name": "Company 1232",
"updated_datetime": "2026-03-10T14:17:42.944555Z"
},
"custom_data": [],
"due_datetime": "2020-01-20T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-00000000010e",
"inserted_datetime": "2026-03-10T14:17:42.974129Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000112a",
"name": "B2080"
},
"compliance_quantity": null,
"id": "b62a0ac5-0d2a-4afb-a8ae-0439ecfcf0dd",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001e1f",
"id": "00000000-0000-0000-0000-000000000901",
"license_id": "00000000-0000-0000-0000-0000000002db",
"name": "Place 342"
},
"package": null,
"price": "2.000000000",
"price_base": "2.000000000",
"product": {
"id": "3a420884-f0d9-4549-b6bf-c4992f13aea9",
"name": "Product 2076",
"sku": "sku 2077",
"updated_datetime": "2026-03-10T14:17:42.958308Z"
},
"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-03-10T14:17:43.014029Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjEsImlhdCI6MTc3MzE1MjI2MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiN2JhNzkxZGYtMjMyYS00MTIxLTg0OTEtNzFmNDlkOTM2MTg2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjYwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTY2MCIsInR5cCI6ImFjY2VzcyJ9.88q_n4M_WJrwT1DVICrjF-GuZOjrGEZTjPAcXCIVNRY
{
"billing_location_id": "00000000-0000-0000-0000-0000000008b9",
"charges": [],
"company_id": "00000000-0000-0000-0000-0000000015f9",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-0000000000fc",
"items": [
{
"batch_id": "00000000-0000-0000-0000-000000001084",
"id": "7502051b-4c09-44c5-882a-50a86be99ff5",
"location_id": "00000000-0000-0000-0000-0000000008b9",
"price": "10.000000000",
"product_id": "793aabba-7c44-474e-9c0d-84402b337872",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-0000000008b9",
"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: aaf96febd76b40000000000000000001-be39187f1afa929f-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTksImlhdCI6MTc3MzE1MjI1OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTAyMDY0ZGMtMjNiOC00MGJkLWFiNWQtZGQ0NGIzY2Y0OGRkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTEyMSIsInR5cCI6ImFjY2VzcyJ9.c-S2-RP-3Hiua9PjowPKhFzXSMENlkrZaQyyV152rIQ
{
"billing_location_id": "00000000-0000-0000-0000-000000000828",
"charges": [],
"company_id": "00000000-0000-0000-0000-0000000014b6",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000000828",
"price": "10.000000000",
"product_id": "4540e841-1680-4971-a57d-86979c584d4f",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000000828",
"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: 5747d1944ad9dc000000000000000001-c10eab1a2f58b2a8-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjEsImlhdCI6MTc3MzE1MjI2MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMGRjZWZjNDQtYmY1Zi00ZTNkLTk4ZmEtMjliMjBiNzg0YzJlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjYwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTYzNyIsInR5cCI6ImFjY2VzcyJ9.3DoLFtktelMLivMg1HaOYNKM446ftM25A5f4oFs96pM
{
"billing_location_id": "00000000-0000-0000-0000-0000000008b2",
"charges": [],
"company_id": "00000000-0000-0000-0000-0000000015ea",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-0000000008b2",
"price": "10.000000000",
"product_id": "d5e8c1c0-5c0c-4656-8d94-9b7163d0cf1d",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-0000000008b2",
"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: 7168f5fa3fa488000000000000000001-1e77ece1d4a28bca-0
{
"errors": [
{
"context": {
"id": "990decfd-4a11-48bb-a997-91a115107577"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjEsImlhdCI6MTc3MzE1MjI2MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZWI0Mjc1YjAtMWY5ZC00ZjZkLThjODctYjhkN2QzOWI4N2QwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjYwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTY5OSIsInR5cCI6ImFjY2VzcyJ9.Xzp7QHOnmkorzaaMS6SNzgAyqo4IOGwlRvz_OoooJ2A
{
"billing_location_id": "00000000-0000-0000-0000-0000000008bf",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000001613",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"batch_id": "00000000-0000-0000-0000-00000000109b",
"location_id": "00000000-0000-0000-0000-0000000008bf",
"price": "10.000000000",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-0000000008bf",
"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: 760d96675c9a74000000000000000001-2afd084bf9d319c6-0
{
"errors": [
{
"context": {
"id": "dccfe113-810c-417b-8be8-b0f6535c4160"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjEsImlhdCI6MTc3MzE1MjI2MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjM2NDM0MTktYzBlYy00MGVjLWI1NDgtNzQzMDFiMjg4OTgxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjYwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTYyMiIsInR5cCI6ImFjY2VzcyJ9.X7Qr3HkAJv8QVq6I_QlO7riRqBOJ5pxBdXCiyXKYqpI
{
"billing_location_id": "00000000-0000-0000-0000-0000000008ad",
"charges": [],
"company_id": "00000000-0000-0000-0000-0000000015e2",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-0000000008ae",
"price": "10.000000000",
"product_id": "39cf4e8d-f010-48b4-aba8-f65a06ad1c2d",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-0000000008ae",
"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: dcae986bbbc1e0000000000000000001-8f09f4b64b197d69-0
{
"errors": [
{
"context": {
"id": "c0532a49-8090-4bcb-bca1-0633e501cddf"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjEsImlhdCI6MTc3MzE1MjI2MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNGJkMzU3Y2QtMjBkMC00NjdkLWE5NDMtZDg2ZTM4ZDdlMWU2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjYwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTY1MSIsInR5cCI6ImFjY2VzcyJ9.Mlzl-ve3kE35xHx-DQcUOKk7eVBVIFs8TMujzckMx2o
{
"billing_location_id": "00000000-0000-0000-0000-0000000008b5",
"charges": [],
"company_id": "00000000-0000-0000-0000-0000000015f1",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-0000000008b5",
"price": "10.000000000",
"product_id": "d296f45b-0a73-4bde-8d46-beade5711382",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-0000000008b6",
"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: 0c6b3f4143298d800000000000000001-ad55271d5330fbe8-0
{
"errors": [
{
"context": {
"id": "4f52821a-87d7-4aba-b902-940b79e537e4"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NjMsImlhdCI6MTc3MzE1MjI2MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNWE0Yjk1NTUtY2YzNC00ZjhmLWJmY2ItZjM5ZDMxODM3Y2QzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjYyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTk3MiIsInR5cCI6ImFjY2VzcyJ9.3IAAme7Apd0BNQgjTq4EOPUu_J-F6Sp2_ejyH7w7_IQ
{
"billing_location_id": "00000000-0000-0000-0000-000000000906",
"charges": [],
"company_id": "00000000-0000-0000-0000-0000000016d8",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000000905",
"price": "10.000000000",
"product_id": "a519f69a-dd00-44c3-90bc-348eefba15a0",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000000905",
"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: 8dc593ed9d5040000000000000000001-b9f3642f94ce82b2-0
{
"errors": [
{
"context": {},
"message": "The provided billing address does not exist",
"pointer": [
"billing_location_id"
],
"section": "body"
}
]
}
Upsert a single purchase order. To update an existing purchase order, pass in an existing purchase order ID in the id field. When updating a purchase order, you must pass in all fields (no sparse update currently supported). Any existing order item or charge you do not pass in to items and charges respectively will be deleted
Request
POST /public/v1/purchases
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Unique ID for this purchase order. If it exists, an update will be performed; otherwise, it will be used as the ID of a new purchase order record | query | string | false | ||
| description | A description of the purchase order | query | string | false | ||
| location_id | The location into which the inventory in this purchase will be received | query | string | 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDRlOTE2NzMtYTlkYi00ZmZkLTkwOWQtM2M4ZDI5OGJiZjcyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODg4OCIsInR5cCI6ImFjY2VzcyJ9.toJ4ZPgvgoeNLYAImHIaquasiJSKgTnMHE0bMxEx7hk
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 42859ff3bab058000000000000000001-cf904829349013c4-0
{
"data": [
{
"batch_id": null,
"completion_datetime": "2026-03-10T14:17:38.752342Z",
"compliance_quantity": null,
"compliance_unit_type": null,
"description": null,
"id": "00000000-0000-0000-0000-000000000335",
"inserted_at": "2026-03-10T14:17:38.754194Z",
"license_id": null,
"location_id": null,
"owner_id": "00000000-0000-0000-0000-0000000022b8",
"package_id": null,
"product_id": "29e696e0-b602-4c33-af32-3adf456baba3",
"quantity": "10",
"reason": "revaluation",
"total_cost": "10000",
"unit_type": {
"id": "00000000-0000-0000-0000-000000015ab0",
"name": "Gram"
}
},
{
"batch_id": null,
"completion_datetime": "2026-03-10T14:17:38.907212Z",
"compliance_quantity": "1",
"compliance_unit_type": {
"id": "00000000-0000-0000-0000-000000015ab2",
"name": "Ounce"
},
"description": "A default note describing this transaction",
"id": "00000000-0000-0000-0000-000000000337",
"inserted_at": "2026-03-10T14:17:38.912603Z",
"license_id": "00000000-0000-0000-0000-00000000028e",
"location_id": "00000000-0000-0000-0000-00000000080b",
"owner_id": null,
"package_id": "00000000-0000-0000-0000-000000000180",
"product_id": "66af57e7-0ac0-491b-8b92-6405d7a18a83",
"quantity": "1",
"reason": "Voluntary Surrender",
"total_cost": "900",
"unit_type": {
"id": "00000000-0000-0000-0000-000000015ab2",
"name": "Ounce"
}
},
{
"batch_id": "00000000-0000-0000-0000-000000000f03",
"completion_datetime": "2026-03-10T14:17:39.000355Z",
"compliance_quantity": null,
"compliance_unit_type": null,
"description": null,
"id": "00000000-0000-0000-0000-000000000338",
"inserted_at": "2026-03-10T14:17:39.001261Z",
"license_id": null,
"location_id": "00000000-0000-0000-0000-000000000806",
"owner_id": null,
"package_id": null,
"product_id": "57e32241-3b4a-408f-93da-df7017046df1",
"quantity": "1",
"reason": "revaluation",
"total_cost": "-800",
"unit_type": {
"id": "00000000-0000-0000-0000-000000015ab0",
"name": "Gram"
}
}
],
"next_page": null
}
Get stock adjustments sorted by their creation date and filtered by various attributes
Note: The page size for this endpoint is 5000 stock adjustments per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Request
GET /public/v1/adjustments
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| inserted_datetime | Filter stock adjustments by their creation datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTYsImlhdCI6MTc3MzE1MjI1NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjcxM2YwZTMtMzFkNC00NThiLWIxNjUtN2QxMDRjOTA0NjNkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODM2NCIsInR5cCI6ImFjY2VzcyJ9.3Il8A6cOT3i733z_crB1twAhdYn8WMSumyphbBYvYUk
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "00000000-0000-0000-0000-0000000007af",
"product_id": "b8146f4e-7b74-473d-8bd0-81c24372dad7",
"quantity": 10,
"reason": "expired"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 84cfbe8b96fb48000000000000000001-df8ccf0846d1245f-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-00000000030d",
"inserted_at": "2026-03-10T14:17:37.237031Z",
"license_id": null,
"location_id": "00000000-0000-0000-0000-0000000007af",
"owner_id": null,
"package_id": null,
"product_id": "b8146f4e-7b74-473d-8bd0-81c24372dad7",
"quantity": "10",
"reason": "expired",
"total_cost": null,
"unit_type": {
"id": "00000000-0000-0000-0000-00000001467a",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYmNmMjc5MzUtOTUzZS00NWFiLWE0YTAtNGNhYzc0NWMzYTFjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODY0MiIsInR5cCI6ImFjY2VzcyJ9.5UwOdYS9_kBMZ4zHwwucSs5wI33Et7bobZb8wgYKhbE
{
"batch_id": "00000000-0000-0000-0000-000000000eab",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "00000000-0000-0000-0000-0000000007e6",
"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: d4e479eeaee080000000000000000001-d47a6a9ee93b972d-0
{
"data": {
"batch_id": "00000000-0000-0000-0000-000000000eab",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": null,
"compliance_unit_type": null,
"description": "test",
"id": "00000000-0000-0000-0000-000000000321",
"inserted_at": "2026-03-10T14:17:38.078019Z",
"license_id": null,
"location_id": "00000000-0000-0000-0000-0000000007e6",
"owner_id": null,
"package_id": null,
"product_id": "ddcd3c65-2a67-4d36-9dde-6369fc6fca81",
"quantity": "10",
"reason": "expired",
"total_cost": "10000",
"unit_type": {
"id": "00000000-0000-0000-0000-000000015172",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjUzMTI1ZWQtZWQ0Ni00M2UxLWJkMjYtYjBjNTc4NjI0MDk0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODcxNSIsInR5cCI6ImFjY2VzcyJ9.EqlvpxKifnAfLr3enNLYBSXEHUUECzo2rjQMMBs-DBU
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": 10,
"description": "test",
"package_id": "00000000-0000-0000-0000-000000000177",
"reason": "Damage (BCC)",
"unit_cost": 1000
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 3a0513f5cfae20000000000000000001-0c74f4420aae5192-0
{
"data": {
"batch_id": null,
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": "10",
"compliance_unit_type": {
"id": "00000000-0000-0000-0000-00000001530d",
"name": "Ounce"
},
"description": "test",
"id": "00000000-0000-0000-0000-00000000032f",
"inserted_at": "2026-03-10T14:17:38.469773Z",
"license_id": "00000000-0000-0000-0000-000000000286",
"location_id": "00000000-0000-0000-0000-0000000007eb",
"owner_id": null,
"package_id": "00000000-0000-0000-0000-000000000177",
"product_id": "b46802af-2766-4489-8138-2c129f8f866d",
"quantity": "0.35274",
"reason": "Damage (BCC)",
"total_cost": "10000.000000005834",
"unit_type": {
"id": "00000000-0000-0000-0000-00000001530b",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTksImlhdCI6MTc3MzE1MjI1OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDJjMWE0NWMtYTdiNC00ZWVjLWI0OGUtYmMwMmIyOWM0YjA4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTI1NSIsInR5cCI6ImFjY2VzcyJ9.k_5UKPgwSNdHznijScA6Tr7FfMWI-XWwMl6wN5mGgzw
{
"description": "test",
"package_id": "00000000-0000-0000-0000-00000000018e",
"quantity": 10,
"reason": "Damage (BCC)"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: cf0e36a7a35ef0000000000000000001-8983015f04b535c5-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTcsImlhdCI6MTc3MzE1MjI1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiYmFmOGVjZGItMmYwYS00YjJhLTgyYTktYTU3N2I0OTJmOTg1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODU4OSIsInR5cCI6ImFjY2VzcyJ9.NcVnaT4xGX_zidk8fNF_GdEUa1f_ikzMHmI3p54Exo0
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "00000000-0000-0000-0000-0000000007df",
"product_id": "0fcd6dcd-4429-4be9-a872-6c8787791c81",
"quantity": 10,
"reason": "expired"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 8bb4199ff5fc90000000000000000001-6fd2d9cd2059fb5a-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTksImlhdCI6MTc3MzE1MjI1OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjdhMTgzMTAtMjBlMC00MDhkLTk4NjAtYzI2MmJlNzhjODIxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTMxOCIsInR5cCI6ImFjY2VzcyJ9.9Zs-0LFK3ZJz6f3P-WQNcyEhgyqY21Rtrc8ZPV8zNmY
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": 10,
"description": "test",
"location_id": "00000000-0000-0000-0000-000000000856",
"product_id": "05e489dc-db5a-4900-b8ac-0b564d4642a3",
"reason": "expired"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: c6d1604c8a9540000000000000000001-bfad82d1cef1da82-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiODgyYjBjMTQtMmVkMi00ZWI4LThiMmEtYTYzNTczNmQxZWI5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODg3MiIsInR5cCI6ImFjY2VzcyJ9.z8ngJPuatn_q4AsM15aLohAxKkJwxD1WunxUECWDP-k
{
"batch_id": "20072851-fc0c-483f-b5ef-c95e61e37f9e",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "a1b1455e-f5f5-4b0a-9ba0-6cebd2e3fb22",
"package_id": "d60274fc-f959-4bd2-a559-9cc345ca997e",
"product_id": "974c2a1f-b887-4088-b438-df7d1c0bf7c2",
"reason": "expired"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 067ad0af6718b7400000000000000001-35373fcf81eb4131-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTksImlhdCI6MTc3MzE1MjI1OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYzU5M2JjYzgtM2QxNC00MjRlLWJhY2YtZjQ2NTdjMDg1ZjcwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTI5NSIsInR5cCI6ImFjY2VzcyJ9.vbUtRGpRlIGX_SBI7CIvxnS9N-3kOL-p90tfbPfk6Y0
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "9d1c86c6-3903-4dcf-bce0-eea82907e05a",
"reason": "expired"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 5430cbcdf1c93c000000000000000001-60824523ebf8e265-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDlhNGEwM2UtZjcxNi00YWUyLTk5NzgtZTIyYzg4N2YxMTFkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODg2NCIsInR5cCI6ImFjY2VzcyJ9.7lyc0MIZWAKNJChrkCv-RqXhxwqsoVOuam_baYGih_Y
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "e7bd1290-5136-4d2e-a62a-7c586052bbec",
"product_id": "4870b605-9675-431f-8157-8099fa06b2d2",
"quantity": 10,
"reason": "waste"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 4efb12b2d3f090000000000000000001-3145f832764a823a-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMWZlOGY0NjYtNjI5Ny00NjBmLTlhZDgtYTA2MDc4MjlkZGU2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODY4NiIsInR5cCI6ImFjY2VzcyJ9.aLcOJ5l8K9MCBNi_ln292adkBT0mByMXSy4iFlH21pg
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": 10,
"description": "test",
"location_id": "68fa6bf0-a7ce-4194-a40e-4705eef00df7",
"package_id": "fb59b006-a9a6-494c-a881-c02d0e4e50be",
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 97a85ad5e6ced0000000000000000001-cd1fbbb23518a7b4-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTksImlhdCI6MTc3MzE1MjI1OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNGRmYjVkZTctNDdiOS00YjIzLTllMzgtN2QxNGQ1NTdhOTJhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTA2MSIsInR5cCI6ImFjY2VzcyJ9.Fny9k7Kikgd2ES6F47yZVU8BzMJjE-RxMqzKC5RXYw8
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"product_id": "64abc689-885a-439a-96ff-ccac55ce9a79",
"quantity": 10,
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 7d840babe6f4ac000000000000000001-687c737c53eff937-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTksImlhdCI6MTc3MzE1MjI1OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDkwNGE4NDYtYjBiYi00Y2VlLWE3MDMtZjZkZWYyNTRkY2UyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTMwMCIsInR5cCI6ImFjY2VzcyJ9.wodWxfosO1ZUHv2P82mYW0i1BgxCBR5Nss2IYAW93Ug
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "1f081d7d-87b9-4a31-8ac2-8284278038f2",
"product_id": "7c63efec-2f79-4357-bf94-e86fe5d3aa37",
"quantity": 10,
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 57dedf88eadb40000000000000000001-841281bc1bc2abb9-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTksImlhdCI6MTc3MzE1MjI1OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjcxZTgzYTctYjUyYy00NDgwLThjZTUtNWU0MTdjNTMxZWQzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTMyOCIsInR5cCI6ImFjY2VzcyJ9.IYtIvEPgFoQWBhAeFKHx2vAgnXJ_TvOaEY631xffivg
{
"batch_id": "00000000-0000-0000-0000-000000000fc9",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "e4f44d08-0739-4608-b329-74144883631a",
"quantity": 10,
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 930c7a91de6d78000000000000000001-7678aefa0db12d67-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTksImlhdCI6MTc3MzE1MjI1OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiM2EwOWZmNTItMTczMC00ZDJlLWJjNGEtMDM0NGFjNjYyYjBlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTE1NyIsInR5cCI6ImFjY2VzcyJ9.fy13W0461l-wEQqYtBNC6lPu5SNNGas3goKIUtOO-bI
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": 10,
"description": "test",
"package_id": "00000000-0000-0000-0000-000000000187",
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: da7a2889971318000000000000000001-2543ea84795279fc-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTcsImlhdCI6MTc3MzE1MjI1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiYTY1MjY3YjUtNTE1My00MGFmLTgxNTUtMmFkOGM5YTE2ZjYyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODYyMiIsInR5cCI6ImFjY2VzcyJ9.sytsGhh3ou1yv9My3xfigb1zlZ8PPPbt0Mtzfzj7MJQ
{
"batch_id": "00000000-0000-0000-0000-000000000ea8",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "00000000-0000-0000-0000-0000000007e3",
"quantity": 10,
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: e33d73f057af38000000000000000001-84806fd90e7bbb72-0
{
"errors": [
{
"context": {},
"message": "Location not found",
"pointer": [
"location_id"
],
"section": "body"
}
]
}
Request
POST /public/v1/adjustments
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| product_id | The ID of the product to adjust. Must only be provided if the product is product-tracked. | query | string | false | ||
| batch_id | The ID of the batch to adjust. Must only be provided if the batch's associated product is batch-tracked. | query | string | false | ||
| package_id | The ID of the package to adjust. Must only be provided if the package's associated product is package-tracked. | query | string | false | ||
| quantity | The quantity to adjust the stock by. Must only be provided for non-compliance adjustments. Must be negative if the adjustment reason is 'waste'. | query | number | false | ||
| compliance_quantity | The quantity to adjust the stock by. Must only be provided for compliance adjustments. | query | number | false | ||
| description | The description of the stock adjustment. Required for compliance adjustmenst. Has a max length of 800 characters for non-compliance adjustments, and 250 characters for compliance adjustments. | query | string | false | ||
| unit_cost | The cost per unit of the stock adjustment. Can only be provided for companies with cost accounting enabled. Must be empty when the quantity is negative. Must be provided if the company setting 'Require Cost on Intake and Quantity Adjustments' is true. | query | number | false | ||
| completion_datetime | The datetime of the stock adjustment. Must only be provided for compliance adjustments. | query | string | false | ||
| reason | The reason for the stock adjustment. For non-compliance adjustments, must be one of the following: 'waste', 'stolen', 'damaged', 'fire', 'write-off', 'expired', 'lab-testing', 'revaluation', 'other.' For compliance adjustments, must be a reason that is accepted by the the compliance API | query | string | false | ||
| location_id | The ID of the source location of the stock adjustment. Must only be provided for non-compliance adjustments. | query | string | false |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | The stock adjustment was inserted successfully | StockAdjustment |
Strain
Get strains
GET /public/v1/strains returns strains related to the company
GET /public/v1/strains
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTcsImlhdCI6MTc3MzE1MjI1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDdlZWNiNDItMjFkYy00NmQ2LThmM2QtNzdiZTE0OGMyYTgwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODQ1OSIsInR5cCI6ImFjY2VzcyJ9._mMwr7J94EKo-Qx_SQYjzyclwmALizTTu45YckQD_CY
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 1a035de42ec9fa000000000000000001-2fc869d764db88b0-0
{
"data": [
{
"id": "00000000-0000-0000-0000-00000000006a",
"name": "Strain 5"
},
{
"id": "00000000-0000-0000-0000-00000000006b",
"name": "Strain 6"
}
],
"next_page": null
}
Get strains filtered by various attributes
Note: The page size for this endpoint is 50k strains per page.
Request
GET /public/v1/strains
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| inserted_datetime | Filter strains by their creation datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| page | Pagination information | 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTA3NmI0NjItNTBiZC00NzdjLWE0MjQtYmYwYTZlNjAyMThlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODg1MiIsInR5cCI6ImFjY2VzcyJ9.i-tYk8UpyzFsAN7HdZn8cxs268MZW618Q2vq2KEEans
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: b6d5f010663440000000000000000001-450cc63776c66dac-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-000000000064",
"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-00000000017a",
"release_date": "2026-03-10",
"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-03-10T14:17:38.721101Z"
},
{
"additional_test_results": {
"thca_percentage": "12"
},
"batch_id": "00000000-0000-0000-0000-000000000ee5",
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-000000000065",
"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-03-10T14:17:38.736687Z"
},
{
"additional_test_results": {},
"batch_id": null,
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-000000000066",
"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-00000000017e",
"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-03-10T14:17:38.807772Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiM2I0MmRlMjItMmQ0Ny00MGQzLWIxZjgtYWY1MTcyNDJiNGMxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODk3MyIsInR5cCI6ImFjY2VzcyJ9.-Azw8H4KWfyOAN4iVWDMnFgrkgHKWkAsNFM2zBuyrw0
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 0f8679fc878ae6800000000000000001-a66b5d287aeedbf4-0
{
"data": [
{
"additional_test_results": {
"spiroxamine_a_ug_per_g": "13",
"thiacloprid_ug_per_g": "14"
},
"batch_id": "00000000-0000-0000-0000-000000000f05",
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-000000000068",
"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-03-10T14:17:39.007154Z"
}
],
"next_page": null
}
Get test results filtered by various attributes.
Note: The page size for this endpoint is 5000 test results per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Request
GET /public/v1/test-results
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| updated_datetime | Filter test results by the datetime they were most recently modified | query | string | false | ,2022-07-10T00:00:00Z | |
| page | Pagination information | 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDE1MWVlYTEtMjg0OS00ODIzLTgyNmYtMDlmNzAyMzFlOGM2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODc1MCIsInR5cCI6ImFjY2VzcyJ9.35GiwyG3xfLl3fAyBnKDjRmcR_ReLFyuumyn4ltwQEY
{
"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-000000000ebe",
"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: 2a7e9bd87f3ef6000000000000000001-97c4b5b4a0938d7c-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-000000000ebe",
"cbd_mg_per_unit": "1.1",
"cbd_percentage": "2.2",
"id": "00000000-0000-0000-0000-000000000061",
"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-03-10T14:17:38.417595Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTksImlhdCI6MTc3MzE1MjI1OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjliNTcxYzUtMzUwMy00ZWRiLTliNWEtNjJiMmMzNTZiM2ZjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTAyMSIsInR5cCI6ImFjY2VzcyJ9.pff8fyqxhLMzT39oRQYW8myOvLBTu-To5Mr1l34DKwk
{
"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-000000000183"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 72ca1818575f50000000000000000001-81e1ff7042b8050c-0
{
"data": {
"additional_test_results": {},
"batch_id": null,
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-000000000069",
"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-000000000183",
"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-03-10T14:17:39.179034Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTcsImlhdCI6MTc3MzE1MjI1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjliNzc4YTMtNmJhZi00ZjlkLWEwOWUtOTgzODYwNTE2OTYwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODQzOCIsInR5cCI6ImFjY2VzcyJ9.7Um4X_P0vzh5-1n_TWBOfR0cq_ZaFidgXpeFNM56WMY
{
"batch_id": "00000000-0000-0000-0000-000000000e90",
"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: bef1916d930320000000000000000001-109f4218ca6b1d0c-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTksImlhdCI6MTc3MzE1MjI1OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDQxZjI3ZDYtNzg1YS00ZGFiLWJlZTYtZjc2OTU1NmJjMTQ0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6OTE1MiIsInR5cCI6ImFjY2VzcyJ9.pTMEE_F7KJR8HdEmMs3Hm7ANlv3kRDImqhko04ozdY4
{
"additional_test_results": {},
"batch_id": "00000000-0000-0000-0000-000000000f68",
"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: 698fef32d504b4000000000000000001-9ffb47dfd7cb3005-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTgsImlhdCI6MTc3MzE1MjI1OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDVkNDYyOTQtZDlkOS00ODIwLTk0ZDMtMzI3NjYwMzU0MGYwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODgxMiIsInR5cCI6ImFjY2VzcyJ9.cbV66Km4oNTpOX502DNUotL5R875DmjUfnr6FYx6iis
{
"additional_test_results": {
"thca_percentage": "15"
},
"id": "00000000-0000-0000-0000-000000000063",
"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: 2409ca7a793dd4000000000000000001-c417f04149aae75e-0
{
"data": {
"additional_test_results": {
"thca_percentage": "15"
},
"batch_id": "00000000-0000-0000-0000-000000000ed0",
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-000000000063",
"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-03-10T14:17:38.534937Z"
}
}
Upsert a single test result. To update an existing test result, pass in an existing test result ID in the id field. When updating a test result, you must pass in all fields including all additional test results (no sparse update currently supported). Result percentage values can have no more than 4 decimal places.
Request
POST /public/v1/test-results
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Unique ID for this test result. If it exists, an update will be performed, and will otherwise throw an error. Only non-compliance tracked test results can be updated. | query | string | false | ||
| package_id | The ID of the package this test result belongs to. Cannot be provided if either id or batch_id is provided. | query | string | false | 123e4567-e89b-12d3-a456-426614174000 | |
| batch_id | The ID of the batch this test result belongs to. Cannot be provided if either id or package_id is provided. | query | string | false | 123e4567-e89b-12d3-a456-426614174000 | |
| additional_test_results | The additional tests results for this test result. Check here for the valid options. | query | object | false | ||
| mg_per_unit_type | The unit type for the mg per unit fields | query | string | false | mg/g | |
| is_primary | Setting a test result to is_primary: true will propagate the test result to child packages if applicable. Cannot update a test_result from is_primary: true to is_primary: false. If you want to do this, you must set a different test result on the same package/batch to is_primary: true. Once done, this test_result will be set to is_primary: false automatically. | query | boolean | false | true | |
| release_date | The release date for this test result | query | string | false | 2022-07-10 | |
| lab_license_number | The license number of this test result's lab | query | string | false | 1234567890 | |
| lab_name | The name of this test result's lab | query | string | false | Lab Name | |
| name | The name of this test result | query | string | false | Test Result Name | |
| thc_percentage | The THC percentage for this test result. Max precision is 4 decimal places. | query | decimal | false | 1.5 | |
| total_thc_percentage | The total THC percentage for this test result. Max precision is 4 decimal places. | query | decimal | false | 1.5 | |
| thc_mg_per_unit | The THC mg per unit for this test result. | query | decimal | false | 1.5 | |
| total_thc_mg_per_unit | The total THC mg per unit for this test result. | query | decimal | false | 1.5 | |
| cbd_percentage | The CBD percentage for this test result. Max precision is 4 decimal places. | query | decimal | false | 1.5 | |
| total_cbd_percentage | The total CBD percentage for this test result. Max precision is 4 decimal places. | query | decimal | false | 1.5 | |
| cbd_mg_per_unit | The CBD mg per unit for this test result. | query | decimal | false | 1.5 | |
| total_cbd_mg_per_unit | The total CBD mg per unit for this test result. | query | decimal | false | 1.5 |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single test result | TestResult |
User
Get users
GET /public/v1/users returns users related to the company
GET /public/v1/users
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MDQ2MDE4NTcsImlhdCI6MTc3MzE1MjI1NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZWRkYjcyMTUtZTJjNS00NGNmLThhMmMtNzgyZTRlYmU5ODU1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzczMTUyMjU2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODUwMyIsInR5cCI6ImFjY2VzcyJ9.0iEmFAwHHOltsE04jBZnb_8Et03kzDfNQykVN1YZIMQ
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 88824a1626de60000000000000000001-9123a7f6e6acd8be-0
{
"data": [
{
"banned": false,
"deleted_at": null,
"email": "owner-153@example.com",
"full_name": "FirstName312 LastName313",
"id": "00000000-0000-0000-0000-000000002137",
"role": {
"id": "00000000-0000-0000-0000-00000000206a",
"name": "Admin 152"
}
},
{
"banned": false,
"deleted_at": null,
"email": "owner-155@example.com",
"full_name": "FirstName316 LastName317",
"id": "00000000-0000-0000-0000-000000002139",
"role": {
"id": "00000000-0000-0000-0000-00000000206c",
"name": "Admin 154"
}
}
],
"next_page": null
}
Get users sorted by their creation date and filtered by various attributes
Note: The page size for this endpoint is 1000 users per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Request
GET /public/v1/users
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| inserted_datetime | Filter users by their creation datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| deleted | Filter deleted users. no returns non-deleted, only returns deleted, include returns both. |
query | string | false | no | |
| page | Pagination information | 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