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
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 |
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 |
ReturnItem
A return item as shown in Distru
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"price": 30.1,
"product": {
"id": "p1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Blue Dream Preroll 1G",
"sku": "BDP-1G",
"updated_datetime": "2024-12-12T20:26:19.297537Z"
},
"quantity": 5,
"waste": false
}
| Property | Description | Type | Required |
|---|---|---|---|
| id | Unique ID for this return item | string | false |
| price | Price per unit | number | false |
| product | A product as shown in Distru | Product | false |
| quantity | Quantity returned | number | false |
| waste | Whether this item was marked as waste | boolean | false |
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 |
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 |
ProductMenuRef
A menu association for a product
| Property | Description | Type | Required |
|---|---|---|---|
| menu_id | Public ID of the menu | string | false |
| menu_name | Display name of the menu | string | false |
Packages
A collection of Packages
| Property | Description | Type | Required |
|---|
PurchaseChargesRequest
A collection of Purchase charge params
| 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 |
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 |
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 |
Batches
A collection of Batches
| Property | Description | Type | Required |
|---|
Vehicle
A vehicle
| Property | Description | Type | Required |
|---|---|---|---|
| color | The color of the vehicle | string | false |
| description | A description or name for the vehicle | string | false |
| id | Unique ID for this vehicle | string | false |
| inserted_datetime | When the vehicle was created (UTC ISO-8601) | string | false |
| license_plate_number | The license plate number | string | false |
| license_plate_state | The license plate state | string | false |
| make | The make of the vehicle | string | false |
| model | The model of the vehicle | string | false |
| updated_datetime | When the vehicle was last updated (UTC ISO-8601) | string | false |
| vin | The vehicle identification number (VIN) | string | false |
| year | The year of the vehicle | 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 |
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 |
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 |
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 |
PurchaseItemsRequest
A collection of purchase item params
| Property | Description | Type | Required |
|---|
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 |
PaymentMethods
A collection of Payment Methods
| Property | Description | Type | Required |
|---|
Orders
A collection of Orders
| 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 |
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 |
Users
A collection of Users
| Property | Description | Type | Required |
|---|
AdditionalTestResult
An additional test result object for a test result as shown in Distru
| Property | Description | Type | Required |
|---|---|---|---|
| dimethoxyethane_ug_per_g | Solvent | string | false |
| delta_8_thc_percentage | Cannabinoid | string | false |
| aspergillus_cfu_per_g | Microbial | string | false |
| limonene_mg_per_unit | Terpene | string | false |
| etofenprox_ug_per_g | Pesticide | string | false |
| pyrethrins_pyrethrin_ii_ug_per_g | Pesticide | string | false |
| xylene_ug_per_g_total | Solvent | string | false |
| ethoprophos_ug_per_g | Pesticide | string | false |
| enterobacteriacaea_cfu_per_g | Microbial | string | false |
| chloroform_ug_per_g | Solvent | string | false |
| copper_ug_per_g | Heavy Metal | string | false |
| myclobutanil_ug_per_g | Pesticide | string | false |
| caryophyllene_oxide_mg_per_unit | Terpene | string | false |
| thiamethoxam_ug_per_g | Pesticide | string | false |
| delta_8_thc_mg_per_unit | Cannabinoid | string | false |
| cbda_percentage | Cannabinoid | string | false |
| n_methylpyrrolidone_ug_per_g | Solvent | string | false |
| propiconazole_trans_ug_per_g | Pesticide | string | false |
| pyrethrins_pyrethrin_i_ug_per_g | Pesticide | string | false |
| thcva_percentage | Cannabinoid | string | false |
| pyriproxyfen_ug_per_g | Pesticide | string | false |
| cbc_percentage | Cannabinoid | string | false |
| alpha_bisabolol_mg_per_unit | Terpene | string | false |
| spiroxamine_a_ug_per_g | Pesticide | string | false |
| alpha_bisabolol_percentage | Terpene | string | false |
| methyl_ethyl_ketone_ug_per_g | Solvent | string | false |
| tetralin_ug_per_g | Solvent | string | false |
| beta_cypermethrin_ug_per_g | Pesticide | string | false |
| phytol_mg_per_unit | Terpene | string | false |
| fenpyroximate_ug_per_g | Pesticide | string | false |
| alpha_cypermethrin_ug_per_g | Pesticide | string | false |
| cbg_mg_per_unit | Cannabinoid | string | false |
| fenchol_mg_per_unit | Terpene | string | false |
| zinc_ug_per_g | Heavy Metal | string | false |
| butanol_ug_per_g | Solvent | string | false |
| phytol_percentage | Terpene | string | false |
| fipronil_ug_per_g | Pesticide | string | false |
| cymene_mg_per_unit | Terpene | string | false |
| trifloxystrobin_ug_per_g | Pesticide | string | false |
| dimethylformamide_ug_per_g | Solvent | string | false |
| flonicamid_ug_per_g | Pesticide | string | false |
| alpha_myrcene_mg_per_unit | Terpene | string | false |
| thiabendazole_ug_per_g | Pesticide | string | false |
| aflatoxin_g1_ug_per_kg | Mycotoxin | string | false |
| formic_acid_ug_per_g | Other | string | false |
| cannabinoids_percentage_total | Cannabinoid | string | false |
| pyridine_ug_per_g | Solvent | string | false |
| pyrethrins_jasmolin_ii_ug_per_g | Pesticide | string | false |
| geraniol_percentage | Terpene | string | false |
| ethylene_glycol_percentage | Other | string | false |
| other_terpenes_percentage | Terpene | string | false |
| aspergillus_flavus_cfu_per_g | Microbial | string | false |
| carbaryl_ug_per_g | Pesticide | string | false |
| spinosad_d_ug_per_g | Pesticide | string | false |
| alpha_phellandrene_percentage | Terpene | string | false |
| alpha_terpinene_mg_per_unit | Terpene | string | false |
| dimethomorph_z_ug_per_g | Pesticide | string | false |
| dimethomorph_e_ug_per_g | Pesticide | string | false |
| formamide_ug_per_g | Pesticide | string | false |
| candida_albicans_cfu_per_g | Microbial | string | false |
| tebuconazole_ug_per_g | Pesticide | string | false |
| nerolidol_percentage | Terpene | string | false |
| aflatoxins_ug_per_kg | Mycotoxin | string | false |
| mevinphos_i_ug_per_g | Pesticide | string | false |
| pulegone_mg_per_unit | Terpene | string | false |
| gamma_terpinene_mg_per_unit | Terpene | string | false |
| mercury_ug_per_g | Heavy Metal | string | false |
| alpha_humulene_mg_per_unit | Terpene | string | false |
| farnesene_percentage | Terpene | string | false |
| l_monocytogenes_cfu_per_g | Microbial | string | false |
| propane_ug_per_g | Solvent | string | false |
| heptane_ug_per_g | Solvent | string | false |
| butyl_acetate_ug_per_g | Solvent | string | false |
| chlordane_cis_ug_per_g | Pesticide | string | false |
| camphene_mg_per_unit | Terpene | string | false |
| propanol_ug_per_g | Solvent | string | false |
| geraniol_mg_per_unit | Terpene | string | false |
| beta_myrcene_mg_per_unit | Terpene | string | false |
| aflatoxin_b1_ug_per_kg | Mycotoxin | string | false |
| fenhexamid_ug_per_g | Pesticide | string | false |
| sulfolane_ug_per_g | Solvent | string | false |
| spiroxamine_b_ug_per_g | Pesticide | string | false |
| aldicarb_ug_per_g | Pesticide | string | false |
| spiromesifen_ug_per_g | Pesticide | string | false |
| m_and_p_xylene_ug_per_g | Solvent | string | false |
| captan_ug_per_g | Pesticide | string | false |
| bifenthrin_ug_per_g | Pesticide | string | false |
| terpenes_percentage_total | Terpene | string | false |
| other_heavy_metals_ug_per_g | Heavy Metal | string | false |
| aflatoxin_b2_ug_per_kg | Mycotoxin | string | false |
| pyridaben_ug_per_g | Pesticide | string | false |
| thca_percentage | Cannabinoid | string | false |
| acetone_ug_per_g | Solvent | string | false |
| spinetoram_ug_per_g | Pesticide | string | false |
| ethylene_glycol_ug_per_g | Other | string | false |
| valencene_mg_per_unit | Terpene | string | false |
| diuron_ug_per_g | Pesticide | string | false |
| permethrin_cis_ug_per_g | Pesticide | string | false |
| cymene_percentage | Terpene | string | false |
| cbl_mg_per_unit | Cannabinoid | string | false |
| methanol_ug_per_g | Solvent | string | false |
| thiacloprid_ug_per_g | Pesticide | string | false |
| methyl_butyl_ketone_ug_per_g | Solvent | string | false |
| vitamin_e_acetate_ug_per_g | Other | string | false |
| thca_mg_per_unit | Cannabinoid | string | false |
| spiroxamine_ug_per_g | Pesticide | string | false |
| camphor_percentage | Terpene | string | false |
| clofentezine_ug_per_g | Pesticide | string | false |
| hexythiazox_ug_per_g | Pesticide | string | false |
| ethoxyethanol_ug_per_g | Solvent | string | false |
| imidacloprid_ug_per_g | Pesticide | string | false |
| chlorpyrifos_ug_per_g | Pesticide | string | false |
| prallethrin_ug_per_g | Pesticide | string | false |
| mgk_264_ug_per_g | Pesticide | string | false |
| isopulegol_percentage | Terpene | string | false |
| vitamin_e_acetate_percentage | Other | string | false |
| prallethrin_trans_ug_per_g | Pesticide | string | false |
| phosmet_ug_per_g | Pesticide | string | false |
| alpha_terpinene_percentage | Terpene | string | false |
| acetamiprid_ug_per_g | Pesticide | string | false |
| thcv_mg_per_unit | Cannabinoid | string | false |
| cypermethrin_ug_per_g | Pesticide | string | false |
| aflatoxin_g2_ug_per_kg | Mycotoxin | string | false |
| camphor_mg_per_unit | Terpene | string | false |
| acetic_acid_ug_per_g | Other | string | false |
| aspergillus_terreus_cfu_per_g | Microbial | string | false |
| sabinene_mg_per_unit | Terpene | string | false |
| methoxyethanol_ug_per_g | Solvent | string | false |
| tert_butyl_methyl_ether_ug_per_g | Solvent | string | false |
| cbn_mg_per_unit | Cannabinoid | string | false |
| oxamyl_ug_per_g | Pesticide | string | false |
| chlorobenzene_ug_per_g | Solvent | string | false |
| acetic_acid_percentage | Other | string | false |
| beta_humulene_mg_per_unit | Terpene | string | false |
| alpha_pinene_percentage | Terpene | string | false |
| beta_pinene_percentage | Terpene | string | false |
| chlorantraniliprole_ug_per_g | Pesticide | string | false |
| e_coli_cfu_per_g | Microbial | string | false |
| daminozide_ug_per_g | Pesticide | string | false |
| alpha_humulene_percentage | Terpene | string | false |
| cannabinoids_mg_per_unit_total | Cannabinoid | string | false |
| propoxur_ug_per_g | Pesticide | string | false |
| benzene_ug_per_g | Solvent | string | false |
| methomyl_ug_per_g | Pesticide | string | false |
| etoxazole_ug_per_g | Pesticide | string | false |
| lead_ug_per_g | Heavy Metal | string | false |
| dichlorvos_ug_per_g | Pesticide | string | false |
| filth_and_foreign_material_percentage | Other | string | false |
| beta_humulene_percentage | Terpene | string | false |
| acephate_ug_per_g | Pesticide | string | false |
| fludioxonil_ug_per_g | Pesticide | string | false |
| pentanol_ug_per_g | Solvent | string | false |
| dimethyl_sulfoxide_ug_per_g | Solvent | string | false |
| acetonitrile_ug_per_g | Solvent | string | false |
| pyrethrins_cinerin_ii_ug_per_g | Pesticide | string | false |
| isopropyl_acetate_ug_per_g | Solvent | string | false |
| methiocarb_ug_per_g | Pesticide | string | false |
| boscalid_ug_per_g | Pesticide | string | false |
| dichloroethane_ug_per_g | Solvent | string | false |
| bifenazate_ug_per_g | Pesticide | string | false |
| azoxystrobin_ug_per_g | Pesticide | string | false |
| camphene_percentage | Terpene | string | false |
| spirotetramat_ug_per_g | Pesticide | string | false |
| borneol_percentage | Terpene | string | false |
| propyl_acetate_ug_per_g | Solvent | string | false |
| other_solvents_ug_per_g | Solvent | string | false |
| beta_caryophyllene_percentage | Terpene | string | false |
| cbda_mg_per_unit | Cannabinoid | string | false |
| isopulegol_mg_per_unit | Terpene | string | false |
| fenchol_percentage | Terpene | string | false |
| pentachloronitrobenzene_ug_per_g | Pesticide | string | false |
| valencene_percentage | Terpene | string | false |
| water_activity_aw | Water Activity | string | false |
| dimethoate_ug_per_g | Pesticide | string | false |
| ethyl_formate_percentage | Other | string | false |
| cbg_percentage | Cannabinoid | string | false |
| mevinphos_ug_per_g | Pesticide | string | false |
| flurprimidol_ug_per_g | Pesticide | string | false |
| cbga_percentage | Cannabinoid | string | false |
| metalaxyl_ug_per_g | Pesticide | string | false |
| terpenes_mg_per_unit_total | Terpene | string | false |
| lambda_cyhalothrin_ug_per_g | Pesticide | string | false |
| tetrahydrofuran_ug_per_g | Solvent | string | false |
| eucalyptol_mg_per_unit | Terpene | string | false |
| sand_and_soil_and_cinders_and_dirt_percentage | Other | string | false |
| mevinphos_ii_ug_per_g | Pesticide | string | false |
| eucalyptol_percentage | Terpene | string | false |
| spinosad_ug_per_g | Pesticide | string | false |
| dioxane_ug_per_g | Solvent | string | false |
| carbofuran_ug_per_g | Pesticide | string | false |
| delta_3_carene_percentage | Terpene | string | false |
| pulegone_percentage | Terpene | string | false |
| dimethomorph_ug_per_g | Pesticide | string | false |
| malathion_ug_per_g | Pesticide | string | false |
| cbt_percentage | Cannabinoid | string | false |
| clothianidin_ug_per_g | Pesticide | string | false |
| permethrin_ug_per_g | Pesticide | string | false |
| cadmium_ug_per_g | Heavy Metal | string | false |
| aspergillus_fumigatus_cfu_per_g | Microbial | string | false |
| nickel_ug_per_g | Heavy Metal | string | false |
| beta_myrcene_percentage | Terpene | string | false |
| other_pesticides_ug_per_g | Pesticide | string | false |
| terpinolene_percentage | Terpene | string | false |
| pentane_ug_per_g | Solvent | string | false |
| nitromethane_ug_per_g | Solvent | string | false |
| methyl_parathion_ug_per_g | Pesticide | string | false |
| ocimene_mg_per_unit | Terpene | string | false |
| isopropanol_ug_per_g | Solvent | string | false |
| cbga_mg_per_unit | Cannabinoid | string | false |
| other_mycotoxins_ug_per_kg | Mycotoxin | string | false |
| diazinon_ug_per_g | Pesticide | string | false |
| terpinolene_mg_per_unit | Terpene | string | false |
| methylcyclohexane_ug_per_g | Solvent | string | false |
| cyclohexane_ug_per_g | Solvent | string | false |
| dinotefuran_ug_per_g | Pesticide | string | false |
| sabinene_percentage | Terpene | string | false |
| methyl_butanol_ug_per_g | Solvent | string | false |
| delta_3_carene_mg_per_unit | Terpene | string | false |
| ethyl_formate_ug_per_g | Other | string | false |
| ethanol_ug_per_g | Solvent | string | false |
| propiconazole_cis_ug_per_g | Pesticide | string | false |
| beta_caryophyllene_mg_per_unit | Terpene | string | false |
| alpha_myrcene_percentage | Terpene | string | false |
| ancymidol_ug_per_g | Pesticide | string | false |
| cbdv_mg_per_unit | Cannabinoid | string | false |
| spinetoram_j_ug_per_g | Pesticide | string | false |
| beta_cyfluthrin_ug_per_g | Pesticide | string | false |
| hexane_ug_per_g | Solvent | string | false |
| fenoxycarb_ug_per_g | Pesticide | string | false |
| gamma_terpinene_percentage | Terpene | string | false |
| methyl_acetate_ug_per_g | Solvent | string | false |
| cbc_mg_per_unit | Cannabinoid | string | false |
| thcv_percentage | Cannabinoid | string | false |
| nerolidol_mg_per_unit | Terpene | string | false |
| naled_ug_per_g | Pesticide | string | false |
| pyrethrins_cinerin_i_ug_per_g | Pesticide | string | false |
| pyrethrins_ug_per_g | Pesticide | string | false |
| methylisobutyl_ketone_ug_per_g | Solvent | string | false |
| caryophyllene_oxide_percentage | Terpene | string | false |
| methoxybenzene_ug_per_g | Solvent | string | false |
| arsenic_ug_per_g | Heavy Metal | string | false |
| cbt_mg_per_unit | Cannabinoid | string | false |
| mold_cfu_per_g | Microbial | string | false |
| prallethrin_cis_ug_per_g | Pesticide | string | false |
| linalool_percentage | Terpene | string | false |
| antimony_ug_per_g | Heavy Metal | string | false |
| formic_acid_percentage | Other | string | false |
| ocimene_percentage | Terpene | string | false |
| spinetoram_l_ug_per_g | Pesticide | string | false |
| terpineol_percentage | Terpene | string | false |
| spinosad_a_ug_per_g | Pesticide | string | false |
| yeast_cfu_per_g | Microbial | string | false |
| chlordane_ug_per_g | Pesticide | string | false |
| ochratoxin_a_ug_per_kg | Mycotoxin | string | false |
| cbl_percentage | Cannabinoid | string | false |
| alpha_pinene_mg_per_unit | Terpene | string | false |
| ethylene_oxide_ug_per_g | Solvent | string | false |
| guaiol_mg_per_unit | Terpene | string | false |
| paclobutrazol_ug_per_g | Pesticide | string | false |
| methyl_propanol_ug_per_g | Solvent | string | false |
| other_microbials_cfu_per_g | Microbial | string | false |
| chlordane_trans_ug_per_g | Pesticide | string | false |
| chromium_ug_per_g | Heavy Metal | string | false |
| pyrethrins_jasmolin_i_ug_per_g | Pesticide | string | false |
| cyfluthrin_ug_per_g | Pesticide | string | false |
| terpineol_mg_per_unit | Terpene | string | false |
| isobutyl_acetate_ug_per_g | Solvent | string | false |
| other_terpenes_mg_per_unit | Terpene | string | false |
| salmonella_cfu_per_g | Microbial | string | false |
| moisture_percentage | Moisture | string | false |
| ethephon_ug_per_g | Pesticide | string | false |
| toluene_ug_per_g | Solvent | string | false |
| linalool_mg_per_unit | Terpene | string | false |
| coumaphos_ug_per_g | Pesticide | string | false |
| dichloromethane_ug_per_g | Solvent | string | false |
| aspergillus_niger_cfu_per_g | Microbial | string | false |
| thcva_mg_per_unit | Cannabinoid | string | false |
| cumene_ug_per_g | Solvent | string | false |
| cbdv_percentage | Cannabinoid | string | false |
| guaiol_percentage | Terpene | string | false |
| trichloroethylene_ug_per_g | Solvent | string | false |
| kresoxim_methyl_ug_per_g | Pesticide | string | false |
| beta_pinene_mg_per_unit | Terpene | string | false |
| chlormequat_chloride_ug_per_g | Other | string | false |
| farnesene_mg_per_unit | Terpene | string | false |
| cbn_percentage | Cannabinoid | string | false |
| alpha_phellandrene_mg_per_unit | Terpene | string | false |
| permethrin_trans_ug_per_g | Pesticide | string | false |
| ethyl_acetate_ug_per_g | Solvent | string | false |
| propiconazole_ug_per_g | Pesticide | string | false |
| alpha_cyfluthrin_ug_per_g | Pesticide | string | false |
| limonene_percentage | Terpene | string | false |
| butane_ug_per_g | Solvent | string | false |
| dimethylacetamide_ug_per_g | Solvent | string | false |
| chlormequat_chloride_percentage | Other | string | false |
| piperonylbutoxide_ug_per_g | Pesticide | string | false |
| borneol_mg_per_unit | Terpene | string | false |
| acequinocyl_ug_per_g | Pesticide | string | false |
| ethyl_ether_ug_per_g | Solvent | string | false |
| chlorfenapyr_ug_per_g | Pesticide | string | false |
| imazalil_ug_per_g | Pesticide | string | false |
Menu
| Property | Description | Type | Required |
|---|---|---|---|
| active | Whether the menu is active | boolean | false |
| external_name | External menu name | string | false |
| id | Unique ID for this menu | string | false |
| inserted_datetime | Created at (UTC ISO-8601) | string | false |
| internal_name | Internal menu name | string | false |
| product_count | Count of active products on the menu | integer | false |
| updated_datetime | Updated at (UTC ISO-8601) | string | false |
| visibility | One of: PUBLIC, PRIVATE, PASSCODE_PROTECTED | string | false |
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 |
Companies
A collection of companies
| Property | Description | Type | Required |
|---|
Invoices
A collection of Invoices
| Property | Description | Type | Required |
|---|
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 |
ProductPosMappingResponse
| Property | Description | Type | Required |
|---|---|---|---|
| data | A mapping between a Distru product and a POS product | ProductPosMapping | false |
StockAdjustments
A collection of Stock Adjustments
| 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|
Inventories
A list of active and available quantity for each group
| 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 |
Vehicles
A collection of vehicles
| Property | Description | Type | Required |
|---|---|---|---|
| data | Vehicles | array(Vehicle) | false |
| next_page | URL for the next page of results; null when there is no next page | string | false |
Returns
A collection of Returns
| Property | Description | Type | Required |
|---|
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 |
|---|
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 |
InvoiceItemsRequest
A collection of invoice item params
| Property | Description | Type | Required |
|---|
Assemblies
A collection of Assemblies
| 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 |
Page
Pagination information for a request
{
"number": 1
}
| Property | Description | Type | Required |
|---|---|---|---|
| number | Page number | integer | true |
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 |
Locations
A collection of Locations
| Property | Description | Type | Required |
|---|
PackageFull
A package with extended details as shown in Distru
| Property | Description | Type | Required |
|---|---|---|---|
| batch_number | The non-compliance batch number for this package | string | false |
| compliance_label | The compliance (e.g. Metrc) label for this package | string | false |
| cost_per_unit_actual | The cost per unit of this package | number | false |
| cost_per_unit_default | The default cost per unit (from the configured product unit cost) of this package | number | false |
| custom_data | The custom data for this package | array(CustomField) | false |
| expiration_date | The date and time this package expires (ISO 8601) | string | false |
| harvest_date | The harvest date for this package (ISO 8601) | string | false |
| id | Unique ID for this package in Distru | string | false |
| is_trade_sample | True if this package is a Metrc trade sample | boolean | false |
| lab_testing_state | Compliance lab testing state (e.g. Metrc); BioTrack uses analogous values | string | false |
| license | A license as shown in Distru | License | false |
| packaged_date | The compliance packaged date for this package (ISO 8601) | string | false |
| product_unit_quantity | The quantity of this package expressed in it's product's unit type | string | false |
| product_unit_type | A unit type as shown in Distru | UnitType | false |
| quantity | The last known accurate quantity of this package | string | false |
| quantity_assembling | This quantity of this package currently allocated towards a pending assembly | string | false |
| quantity_available | The quantity available for use of this package (i.e. inventory that is not held up on a sales order or assembly.) | string | false |
| status | The status of this package | array(any) | false |
| total_cost_actual | The total actual cost of this package | number | false |
| total_cost_default | The total default cost (from the configured product unit cost) of this package | number | false |
| unit_type | A unit type as shown in Distru | UnitType | false |
| location.id | Unique ID for this Location | string | false |
| location.name | The name of this Location | string | false |
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 |
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 |
Product
A product as shown in Distru
{
"brand": {
"name": "Brand 123"
},
"category": {
"id": "89c8323f-aaaa-45v3-88f9-64009d68h3n8",
"name": "Super Dank Buds"
},
"external_name": "Blue Dream Preroll",
"id": "02c88a3f-d759-4973-88f9-60049d682524",
"images": [
{
"id": "12345",
"name": "image.jpg",
"url": "https://example.com/image.jpg"
}
],
"is_active": true,
"msrp": 100.1,
"name": "Blue Dream Preroll 1G",
"sku": "BDP-1G",
"unit_price": 1.5,
"unit_type": {
"name": "Gram"
},
"units_per_case": 6
}
| Property | Description | Type | Required |
|---|---|---|---|
| brand | A brand as shown in Distru | Brand | false |
| category | A product category as shown in Distru | ProductCategory | false |
| company | A company as shown in Distru | Company | false |
| custom_data | The custom data for this product | array(CustomField) | false |
| deleted_at | The datetime of deletion if the product was deleted | string | false |
| description | The description of this product | string | false |
| description_markdown | The description of this product in markdown format | string | false |
| external_name | Customer-facing name for DistruCommerce menus and Order Tracker | string | false |
| id | Unique ID for this product | string | false |
| images | The images associated with the product | array(Image) | false |
| is_active | Is this product active? | boolean | false |
| menus | Menus this product is associated with, ordered by menu creation time then id (includes inactive menus) | array(ProductMenuRef) | false |
| msrp | The MSRP of the product | number | false |
| name | Human readable name for this product | string | false |
| sku | The SKU configured for the product | string | false |
| strain | A strain as shown in Distru | Strain | false |
| subcategory | A product subcategory as shown in Distru | ProductSubcategory | false |
| unit_cost | The cost (or purchase price) of the product per unit. | number | false |
| unit_net_weight | The net weight of the product per unit | number | false |
| unit_net_weight_and_serving_size_unit_type_id | A unit type as shown in Distru | UnitType | false |
| unit_price | The price of one unit of this product | number | false |
| unit_serving_size | The serving size of the product per unit | number | false |
| unit_type | A unit type as shown in Distru | UnitType | false |
| units_per_case | The number of units of this product that come in one case, if any | number | false |
| updated_datetime | The datetime this product was last updated at | string | false |
Products
A collection of Products
| Property | Description | Type | Required |
|---|
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 |
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 |
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 |
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 |
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 |
FileAttachment
A file attachment
| Property | Description | Type | Required |
|---|
ProductPosMappingsResponse
| Property | Description | Type | Required |
|---|---|---|---|
| data | List of POS mappings | array(ProductPosMapping) | 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 |
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 |
TestResults
A collection of Test Results
| Property | Description | Type | Required |
|---|
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 |
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 |
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 |
Brand
A brand as shown in Distru
{
"name": "Brand 123"
}
| Property | Description | Type | Required |
|---|---|---|---|
| name | Name of the brand | 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 |
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 |
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 |
OrderChargesRequest
A collection of Order charge 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 |
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 |
Menus
A collection of menus
| Property | Description | Type | Required |
|---|---|---|---|
| data | Menus | array(Menu) | false |
| next_page | URL for the next page of results; null when there is no next page | string | false |
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 |
Contacts
A collection of Contacts
| Property | Description | Type | Required |
|---|
OrderTransferTemplateTransporterInfosRequest
A collection of Metrc-specific Order transfer template transporter info params
| Property | Description | Type | Required |
|---|
OrderItemsRequest
A collection of Order item params
| Property | Description | Type | Required |
|---|
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 |
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 |
InvoiceChargesRequest
A collection of Invoice charge params
| Property | Description | Type | Required |
|---|
UpsertProductPosMapping
Parameters for creating or updating a POS mapping
{
"blaze_product_id": "blaze_123",
"blaze_retailer_id": "456e7890-e89b-12d3-a456-426614174000",
"product_id": "123e4567-e89b-12d3-a456-426614174000"
}
| Property | Description | Type | Required |
|---|---|---|---|
| blaze_product_id | Blaze product ID | string | false |
| blaze_retailer_id | Blaze retailer ID | string | false |
| dutchie_product_id | Dutchie product ID | integer | false |
| dutchie_retailer_id | Dutchie retailer ID | string | false |
| product_id | Distru product ID | string | true |
| treez_product_id | Treez product ID | string | false |
| treez_retailer_id | Treez retailer ID | string | false |
Strain
A strain as shown in Distru
{
"id": "12345",
"name": "Strain 123",
"strain_type": "INDICA"
}
| Property | Description | Type | Required |
|---|---|---|---|
| id | Unique ID for this strain | string | false |
| name | Name of the strain | string | false |
| strain_type | The type of strain | string | false |
Return
A return as shown in Distru
{
"company": {
"id": "00000000-0000-0000-0000-00000000000a",
"name": "RAW"
},
"custom_data": {},
"description": "Customer return for damaged goods",
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"inserted_at": "2024-12-12T20:26:19.297537Z",
"invoice_numbers": [
"INV-001",
"INV-002"
],
"items": [
{
"id": "e5f6a7b8-c9d0-1234-ef01-23456789abcd",
"price": 30.1,
"product": {
"id": "p1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Blue Dream Preroll 1G",
"sku": "BDP-1G",
"updated_datetime": "2024-12-12T20:26:19.297537Z"
},
"quantity": 5,
"waste": false
}
],
"location": {
"address": "420 smoke lane, Oakland, CA 94636, USA",
"company_id": "00000000-0000-0000-0000-000000000001",
"id": "00000000-0000-0000-0000-000000000001",
"name": "Warehouse 1"
},
"order_id": "67ae9080-8dc2-4ab7-9704-19673f4d9f21",
"order_number": "SO-12345",
"order_quantity": "100",
"owner": {
"banned": false,
"email": "admin@thcdistributioninc.com",
"full_name": "Greg Owner",
"id": "00000000-0000-0000-0000-000000000001",
"role": {
"id": "00000000-0000-0000-0000-000000000001",
"name": "Admin"
}
},
"return_datetime": "2024-12-12T20:26:19.297537Z",
"return_number": "RET-001",
"return_quantity": "50",
"return_type": "Partial Return",
"status": "Shipped",
"total": 150.5,
"updated_at": "2024-12-12T20:26:19.297537Z"
}
| Property | Description | Type | Required |
|---|---|---|---|
| company | A company as shown in Distru | Company | false |
| custom_data | Custom data associated with this return | map | false |
| description | Description of the return | string | false |
| id | Unique ID for this return | string | false |
| inserted_at | The datetime at which the return was created in Distru | string | false |
| invoice_numbers | Invoice numbers associated with the order | array(any) | false |
| items | The items on this return | array(ReturnItem) | false |
| location | A location as shown in Distru | Location | false |
| order_id | The associated order ID (UUID) | string | false |
| order_number | The order number from the associated order | string | false |
| order_quantity | Total quantity of all items on the associated order | string | false |
| owner | Information about a user in Distru | User | false |
| return_datetime | The datetime of the return | string | false |
| return_number | The return number as shown in the Distru UI | string | false |
| return_quantity | Total quantity of all items on this return | string | false |
| return_type | Indicates if this is a Full Return or Partial Return. Full Return means ALL order items have been FULLY returned. Null if not associated with an order. | string | false |
| status | The status of this return | string | false |
| total | The total amount of this return | number | false |
| updated_at | The datetime at which the return was last updated in Distru | string | false |
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 |
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 |
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDcsImlhdCI6MTc4MTgwMzcwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiOWIyNWI1MzAtODFkZC00NTBmLThhMzItMzRkNjExNjJlMmI3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc2MDIiLCJ0eXAiOiJhY2Nlc3MifQ.ZyABK_SX68F3HGj3ZT8er8ZXbbi8yFPYUBqNZNK2-1E
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 15b2641dbb2a4949572c8e200be68cc0-dcf44434837cd886-0
{
"data": [
{
"assembly_number": "AS-0000001",
"completion_datetime": "2026-06-18T17:28:27.097625Z",
"compliance_type": "NONE",
"creation_source": "MANUALLY_CREATED",
"custom_data": [
{
"id": 437,
"name": "Custom Field 32",
"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": "6027b9fa-ca22-4f0f-81a8-d42135f360fd",
"is_metrc_processing_job": false,
"license": null,
"outputs": [
{
"additional_costs": [
{
"cost_per_unit": "-1",
"description": null,
"name": "CostType 0",
"quantity": "1",
"total_cost_actual": "-1",
"total_cost_default": "0",
"unit_type": {
"id": "00000000-0000-0000-0000-00000002aca0",
"name": "Unit Type 0"
}
}
],
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001a80",
"name": "B1261"
},
"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-000000001a80",
"name": "B1261"
},
"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-00000000360d",
"id": "00000000-0000-0000-0000-000000001242",
"license_id": null,
"name": "Place 279"
},
"package": null,
"product": {
"id": "557eaa25-a6c1-4358-b42b-a8ba4f84a0cf",
"name": "Product 1254",
"sku": "sku 1255",
"updated_datetime": "2026-06-18T17:28:27.058383Z"
},
"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-00000000360d",
"id": "00000000-0000-0000-0000-000000001242",
"license_id": null,
"name": "Place 279"
},
"package": null,
"package_datetime": null,
"package_unit_type": null,
"product": {
"id": "557eaa25-a6c1-4358-b42b-a8ba4f84a0cf",
"name": "Product 1254",
"sku": "sku 1255",
"updated_datetime": "2026-06-18T17:28:27.058383Z"
},
"quantity": "2",
"total_cost_actual": "-0.6",
"total_cost_default": "1"
}
],
"owner_id": "00000000-0000-0000-0000-0000000044c2",
"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-00000043&page[number]=1
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMmMwNTdhOGYtN2MxMi00ZWM4LThmMDMtYTI0OTRlOWU1Njg2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc0OTMiLCJ0eXAiOiJhY2Nlc3MifQ.DMSkGsY6iWnwNFhNQ0TzW9k2W7TV2mToIoeeaMFrCwc
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 53a53fe7ee56cdd1a493fc2da1db3201-ed7b6a7ef0907d7f-0
{
"data": [
{
"assembly_number": "AS-0000001",
"completion_datetime": null,
"compliance_type": "METRC",
"creation_source": "MANUALLY_CREATED",
"custom_data": [
{
"id": 436,
"name": "Custom Field 31",
"value": null
}
],
"description": null,
"estimated_start_date": null,
"estimated_work_hours": null,
"estimated_work_minutes": null,
"fulfilled": true,
"id": "5989192f-b389-4528-adbb-e6890568db30",
"is_metrc_processing_job": false,
"license": {
"id": "00000000-0000-0000-0000-000000000427",
"license_number": "CDPH-00000043"
},
"outputs": [
{
"additional_costs": [],
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001a59",
"name": "B1141"
},
"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-000000001a59",
"name": "B1141"
},
"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-0000000035b7",
"id": "00000000-0000-0000-0000-000000001229",
"license_id": "00000000-0000-0000-0000-000000000427",
"name": "Place 254"
},
"package": {
"batch_number": "1234567890",
"compliance_label": "ABCDEF012345670000000072",
"id": "00000000-0000-0000-0000-00000000024d",
"metrc_label": "ABCDEF012345670000000072",
"status": "active"
},
"product": {
"id": "5d1b529e-bae0-46ec-b2e5-effda36bb4b3",
"name": "Product 1132",
"sku": "sku 1133",
"updated_datetime": "2026-06-18T17:28:26.789937Z"
},
"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-0000000035b7",
"id": "00000000-0000-0000-0000-000000001229",
"license_id": "00000000-0000-0000-0000-000000000427",
"name": "Place 254"
},
"package": null,
"package_datetime": "2026-06-18",
"package_unit_type": {
"id": "00000000-0000-0000-0000-00000002a792",
"name": "Gram"
},
"product": {
"id": "5d1b529e-bae0-46ec-b2e5-effda36bb4b3",
"name": "Product 1132",
"sku": "sku 1133",
"updated_datetime": "2026-06-18T17:28:26.789937Z"
},
"quantity": "2",
"total_cost_actual": null,
"total_cost_default": null
}
],
"owner_id": "00000000-0000-0000-0000-000000004455",
"status": "PENDING"
}
],
"next_page": null
}
GET /public/v1/assemblies returns proper data for completed metrc assembly
GET /public/v1/assemblies?completion_datetime=2026-06-18+16%3A28%3A26.494620Z%2C2026-06-18+18%3A28%3A26.494620Z&creation_source=MANUALLY_CREATED&license_number=CDPH-00000031&page[number]=1
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDE3ZDY0ZmItMDFmOC00Njc1LWE0YjctNGYxNTU3OGVkMmNhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTczMzQiLCJ0eXAiOiJhY2Nlc3MifQ.xwWvdNVyWazFntgEnZaHzXpsAa_LH8f2nIuZ4H_kAug
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 45bfe691674cc14cfc25031f934b1839-fbe02f04964704a0-0
{
"data": [
{
"assembly_number": "AS-0000001",
"completion_datetime": "2026-06-18T17:28:26.494620Z",
"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": "dbac144c-fb77-4a40-b217-57fe95b911b1",
"is_metrc_processing_job": false,
"license": {
"id": "00000000-0000-0000-0000-00000000041b",
"license_number": "CDPH-00000031"
},
"outputs": [
{
"additional_costs": [],
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001a1c",
"name": "B956"
},
"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-000000001a1c",
"name": "B956"
},
"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-00000000352e",
"id": "00000000-0000-0000-0000-00000000120e",
"license_id": "00000000-0000-0000-0000-00000000041b",
"name": "Place 227"
},
"package": {
"batch_number": "1234567890",
"compliance_label": "ABCDEF012345670000000050",
"id": "00000000-0000-0000-0000-000000000242",
"metrc_label": "ABCDEF012345670000000050",
"status": "active"
},
"product": {
"id": "63141892-c3aa-4b50-a3e3-903e7925a22e",
"name": "Product 937",
"sku": "sku 938",
"updated_datetime": "2026-06-18T17:28:26.315654Z"
},
"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-00000000352e",
"id": "00000000-0000-0000-0000-00000000120e",
"license_id": "00000000-0000-0000-0000-00000000041b",
"name": "Place 227"
},
"package": {
"batch_number": null,
"compliance_label": "1A4010200001234000000001",
"id": "00000000-0000-0000-0000-000000000244",
"metrc_label": "1A4010200001234000000001",
"status": "active"
},
"package_datetime": "2026-06-18",
"package_unit_type": {
"id": "00000000-0000-0000-0000-00000002a0eb",
"name": "Gram"
},
"product": {
"id": "63141892-c3aa-4b50-a3e3-903e7925a22e",
"name": "Product 937",
"sku": "sku 938",
"updated_datetime": "2026-06-18T17:28:26.315654Z"
},
"quantity": "2",
"total_cost_actual": null,
"total_cost_default": null
}
],
"owner_id": "00000000-0000-0000-0000-0000000043b6",
"status": "COMPLETED"
}
],
"next_page": null
}
GET /public/v1/assemblies returns proper data for biotrack assembly
GET /public/v1/assemblies?completion_datetime=2026-06-18+16%3A28%3A25.902376Z%2C2026-06-18+18%3A28%3A25.902376Z&creation_source=MANUALLY_CREATED&license_number=CDPH-00000019&page[number]=1
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDUsImlhdCI6MTc4MTgwMzcwNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNjUwNjc5YzYtOWI2Zi00OWQ2LTgwMmEtZDA5ZmE3ODgzNjU2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTcwNzMiLCJ0eXAiOiJhY2Nlc3MifQ.jsRyuRljAQfhsMNMoPd-sWaGbJoFiU6TVU8eUooK44E
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 579fc78e2486b0c926b9af99a22f97a5-fb05fd3f8acba806-0
{
"data": [
{
"assembly_number": "AS-0000001",
"completion_datetime": "2026-06-18T17:28:25.902376Z",
"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": "b7c42469-d777-45b7-83ae-6ce7f5f66496",
"is_metrc_processing_job": false,
"license": {
"id": "00000000-0000-0000-0000-00000000040f",
"license_number": "CDPH-00000019"
},
"outputs": [
{
"additional_costs": [],
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000019be",
"name": "B694"
},
"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-0000000019be",
"name": "B694"
},
"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-000000003462",
"id": "00000000-0000-0000-0000-0000000011e7",
"license_id": "00000000-0000-0000-0000-00000000040f",
"name": "Place 188"
},
"package": {
"batch_number": null,
"compliance_label": "0000000000000001",
"id": "00000000-0000-0000-0000-000000000235",
"metrc_label": "0000000000000001",
"status": "active"
},
"product": {
"id": "0887ca48-995b-40a4-9676-026ed8c889c2",
"name": "Product 688",
"sku": "sku 689",
"updated_datetime": "2026-06-18T17:28:25.552427Z"
},
"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-000000003462",
"id": "00000000-0000-0000-0000-0000000011e7",
"license_id": "00000000-0000-0000-0000-00000000040f",
"name": "Place 188"
},
"package": {
"batch_number": null,
"compliance_label": null,
"id": "00000000-0000-0000-0000-000000000237",
"metrc_label": null,
"status": "active"
},
"package_datetime": null,
"package_unit_type": {
"id": "00000000-0000-0000-0000-0000000296fa",
"name": "Gram"
},
"product": {
"id": "0887ca48-995b-40a4-9676-026ed8c889c2",
"name": "Product 688",
"sku": "sku 689",
"updated_datetime": "2026-06-18T17:28:25.552427Z"
},
"quantity": "1",
"total_cost_actual": null,
"total_cost_default": null
}
],
"owner_id": "00000000-0000-0000-0000-0000000042b1",
"status": "COMPLETED"
}
],
"next_page": null
}
Get assemblies ordered from oldest to newest by their last modified date.
Note: The page size for this endpoint is 500 assemblies per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Required permission: assemblies_permissions_view. Results are filtered to
only include assemblies the authenticated user can access under their team
restrictions.
Request
GET /public/v1/assemblies
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| completion_datetime | Filter assemblies by their completion datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| page | Pagination information | query | number | false | ?page[number]=1 | |
| creation_source | Filter assemblies by their creation source. Options include MANUALLY_CREATED, SPLIT_PACKAGE, SALES_ORDER and LAB_TESTING | query | string | false | ||
| license_number | Filter assemblies by their license number | query | string | false |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A list of assemblies | Assemblies |
Get an assembly
GET /public/v1/assemblies/:id returns a single assembly
GET /public/v1/assemblies/a5584e5e-5820-4846-b851-fb4cabc0034a
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDIsImlhdCI6MTc4MTgwMzcwMiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDNkMzkwMzEtOTYyOS00MzlkLWJkYzItYjEzN2UyZmE2YTc2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzAxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTYzMDUiLCJ0eXAiOiJhY2Nlc3MifQ.mRvmtoGx8tW-cql_QnmMgy_t6m1SCwUbTqgn-QWJObg
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 54fd832adc92ca3fa64d36dba5da7593-332943a51f2909af-0
{
"data": {
"assembly_number": "ASM001",
"completion_datetime": null,
"compliance_type": "NONE",
"creation_source": "MANUALLY_CREATED",
"custom_data": [],
"description": "There is nothing either good or bad, but thinking makes it so.",
"estimated_start_date": null,
"estimated_work_hours": null,
"estimated_work_minutes": null,
"fulfilled": true,
"id": "a5584e5e-5820-4846-b851-fb4cabc0034a",
"is_metrc_processing_job": false,
"license": null,
"outputs": [],
"owner_id": "00000000-0000-0000-0000-000000003fb3",
"status": "PENDING"
}
}
Get a single assembly given the ID.
Required permission: assemblies_permissions_view.
Request
GET /public/v1/assemblies/{id}
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Assembly ID | path | string | true |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single assembly | Assembly |
| 404 | Not Found |
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNmQ5NDAwZTMtNjI0NC00NWM0LWE0NzgtMzJlN2NlNzk0ZjVhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc0OTkiLCJ0eXAiOiJhY2Nlc3MifQ.oyonxeixlC5CfFElnzFaBgn3T9FM0-1x4Vl1thNw6Z8
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: f9e58d98b7c19aeace4e36589eddab20-cc63fc075258c203-0
{
"data": [
{
"batch_number": null,
"custom_data": [
{
"id": 434,
"name": "Custom Field 29",
"value": "Custom Data 1"
}
],
"deleted_at": null,
"description": null,
"expiration_date": "2024-01-01T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-000000001a50",
"manufactured_datetime": "2024-01-02T03:04:05.000000Z",
"name": "B1114",
"owner_id": "00000000-0000-0000-0000-00000000445d",
"primary_test_result": null,
"product_id": "1b751898-b931-4939-b2ad-d27880e5d047"
},
{
"batch_number": null,
"custom_data": [
{
"id": 434,
"name": "Custom Field 29",
"value": null
}
],
"deleted_at": null,
"description": null,
"expiration_date": null,
"id": "00000000-0000-0000-0000-000000001a54",
"manufactured_datetime": "2024-01-02T03:04:05.000000Z",
"name": "B1124",
"owner_id": "00000000-0000-0000-0000-000000004462",
"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": "d806d1ac-96db-4027-b689-fb12e7be8221"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDUsImlhdCI6MTc4MTgwMzcwNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNmVlOGY0ODUtNjU0YS00YjY2LWJmNTYtMWVhZTM0NWY3YzA0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTY5NDEiLCJ0eXAiOiJhY2Nlc3MifQ.N8UkPjQ_vjn4ZWh5RykOHWVWxT5bvUao7AQfGSuS9d8
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 0aebbb01f1440d3731a7e45f97fd717a-3ae3df52a53bb4ef-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-00000000197f",
"manufactured_datetime": "2026-06-18T17:28:25.107902Z",
"name": "B574",
"owner_id": "00000000-0000-0000-0000-000000004244",
"primary_test_result": null,
"product_id": "e7e4d82e-6c5f-4640-97e0-6652266eaeb4",
"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-0000000019b7&batch_ids[]=00000000-0000-0000-0000-0000000019ba
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDUsImlhdCI6MTc4MTgwMzcwNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzM5NTYzOTAtYTk5Yi00YTBhLTk4ZWMtM2ZmOGVjNzQ1YWQ2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTcwODUiLCJ0eXAiOiJhY2Nlc3MifQ.QsQbczviZwvLe5dx5cdIxA61hW0fKl-PFGxDBAKQRY0
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 20a1fe9f7d8b75a3cd76748ce9244e7c-8b7c185851fbdeb9-0
{
"data": [
{
"batch_number": null,
"custom_data": [],
"deleted_at": null,
"description": null,
"expiration_date": null,
"id": "00000000-0000-0000-0000-0000000019b7",
"manufactured_datetime": "2026-06-18T17:28:25.435413Z",
"name": "B679",
"owner_id": "00000000-0000-0000-0000-0000000042c1",
"primary_test_result": null,
"product_id": "d8d1030e-ecc4-43e2-8494-e94195ce07c6"
},
{
"batch_number": null,
"custom_data": [],
"deleted_at": null,
"description": null,
"expiration_date": null,
"id": "00000000-0000-0000-0000-0000000019ba",
"manufactured_datetime": "2026-06-18T17:28:25.435413Z",
"name": "B686",
"owner_id": "00000000-0000-0000-0000-0000000042c8",
"primary_test_result": null,
"product_id": "d6d38483-3a96-492c-b967-040f82314296"
}
],
"next_page": null
}
Get batches sorted by their creation date and filtered by various attributes.
Note: The page size for this endpoint is 5000 batches per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Required permission: products_permissions_view. Results are filtered to
only include batches the authenticated user can access under their team
restrictions.
Request
GET /public/v1/batches
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| batch_ids | Filter batches by batch IDs | query | array | false | ?batch_ids[]=00000000-0000-0000-0000-000000000001&batch_ids[]=00000000-0000-0000-0000-000000000002 | |
| product_id | Filter batches by product ID | query | string | false | ||
| batch_number | Filter batches by batch number | query | string | false | ||
| inserted_datetime | Filter batches by their creation datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| deleted | Filter deleted batches. no returns non-deleted, only returns deleted, include returns both. |
query | string | false | no | |
| page | Pagination information | query | number | false | ?page[number]=1 | |
| updated_datetime | Filter batches by the datetime they were most recently modified | query | string | false | ,2022-07-10T00:00:00Z |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A list of batches | Batches |
Create a batch
POST /public/v1/batches Errors from service messages are properly reflected in the response
POST /public/v1/batches
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiN2JmYmEwZGEtYTJkOS00OTg0LThmNWMtZmQwYjRmMTczZTNkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc0MjMiLCJ0eXAiOiJhY2Nlc3MifQ.vcM-kXIZNdO9iMmZ1XKHWMgLkaKzvi_z5_xfWBNs0Hc
{
"owner_id": "396e58d9-d1f3-4fa0-b05a-40a69ff6c973",
"product_id": "13eccbad-6403-4fbf-9a83-a0377bc76ac3"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: ceeb13bc3b2f5fbd3667be1f3b60bcff-fac9e9a47bf4fd8a-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYmQwM2E0NWQtMjBjOC00ZTJjLThlMjAtZmJiZDBkY2Y5NmRiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTcyNzYiLCJ0eXAiOiJhY2Nlc3MifQ.7Cch6Vj0d1iJZNkZPIgPOHwD9m818aINh3ChvMz6vC4
{
"product_id": "d8c998ee-490f-4ca6-b6bc-985a9ce84cda"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 638d7c916f3a031520bf78a4bc110ad6-183795dc4a4ccb2c-0
{
"data": {
"batch_number": null,
"custom_data": [],
"deleted_at": null,
"description": null,
"expiration_date": null,
"id": "00000000-0000-0000-0000-000000001a08",
"manufactured_datetime": "2026-06-18T17:28:26.082948Z",
"name": "B1",
"owner_id": null,
"product_id": "d8c998ee-490f-4ca6-b6bc-985a9ce84cda"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMGE4YTU5MTMtYTE4Ni00MTAyLTkzZmItZTBiZTEzNjkxMmUwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc0MzciLCJ0eXAiOiJhY2Nlc3MifQ.ZItsyTPvQwthl2B5NPW3rbqKcBx2R-semXrcMqmAIuM
{
"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-000000004423",
"product_id": "54ab527a-1dfe-4d4e-90b5-8c30a585dde8"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 9b7f9bb026c22d0eed004666f7ad9dd7-8319080e67e43433-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-000000001a3b",
"manufactured_datetime": "2025-01-02T03:04:05.000000Z",
"name": "B1",
"owner_id": "00000000-0000-0000-0000-000000004423",
"product_id": "54ab527a-1dfe-4d4e-90b5-8c30a585dde8"
}
}
Create a single batch. Required permission: products_permissions_create.
Request
POST /public/v1/batches
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| product_id | The ID of the product that this batch belongs to. | query | string | false | ||
| batch_number | The batch number of the batch. | query | string | false | ||
| expiration_date | The expiration date of the batch. | query | string | false | ||
| manufactured_datetime | The manufactured datetime of the batch (ISO 8601 format). | query | string | false | ||
| owner_id | The ID of the user that is the designated owner of this batch. | query | string | false | ||
| description | The description of the batch. | query | string | false |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single batch | Batch |
Get a batch
GET /public/v1/batches/:id returns a single batch
GET /public/v1/batches/00000000-0000-0000-0000-000000001a30
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYTM4YzU1MzUtNWUzMS00NGZiLTg5MDktZmM1NTQwZTNmYTkzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTczOTciLCJ0eXAiOiJhY2Nlc3MifQ.gYcDgP3dI1EZj6rhIh46iQ-F5qUAIaZCw49qpH7G7Rk
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: aeded7b3bf10814e9d3cef2dc13b158e-8721c1579cfd1c53-0
{
"data": {
"batch_number": "B001",
"custom_data": [],
"deleted_at": null,
"description": "Test batch",
"expiration_date": null,
"id": "00000000-0000-0000-0000-000000001a30",
"manufactured_datetime": "2026-06-18T17:28:26.382369Z",
"name": "B1022",
"owner_id": "00000000-0000-0000-0000-0000000043ff",
"primary_test_result": null,
"product_id": "9d372112-5358-4c03-9a22-4bb8af21be81"
}
}
Get a single batch given the ID.
Required permission: products_permissions_view.
Request
GET /public/v1/batches/{id}
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Batch ID | path | string | true |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single batch | BatchFull |
| 404 | Not Found |
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjQ3NzVmZTgtMjkwNi00N2NiLWE3YjUtNTM0YmVmN2Q0OTcwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTczOTUiLCJ0eXAiOiJhY2Nlc3MifQ.RQcw0lOdlIDTvLpRhLxgLWuh50isNDEFk-lJHtV9z78
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: b7d7261c39c3b1727f35ef3d35e7dbd2-aa613790d626444b-0
{
"data": [
{
"category": "Retailer",
"custom_data": [
{
"id": 425,
"name": "Custom Field 22",
"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-000000000012",
"name": "Comp Rel Group 2"
},
"id": "00000000-0000-0000-0000-000000002433",
"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-000000003572",
"id": "00000000-0000-0000-0000-000000001218",
"license_id": null,
"name": "Place 237"
}
],
"name": "Company 869",
"order_shipment_email": "order shipment email",
"outstanding_balance_threshold": 1000,
"owner_id": "00000000-0000-0000-0000-0000000043fe",
"phone_number": "1234567890",
"purchase_order_email": "purchase email",
"relationship_type": {
"id": "00000000-0000-0000-0000-000000000012",
"name": "Supplier"
},
"sales_order_email": "order email",
"updated_datetime": "2023-11-03T00:00:00.000000Z",
"website": "https://www.example.com"
},
{
"category": "Delivery",
"custom_data": [
{
"id": 425,
"name": "Custom Field 22",
"value": null
}
],
"default_email": "company-2016@example.com",
"default_purchase_order_notes": null,
"default_sales_order_notes": null,
"deleted_at": null,
"group": null,
"id": "00000000-0000-0000-0000-000000002436",
"invoice_email": null,
"legal_business_name": "Company Legal Name 871",
"licenses": [
{
"id": "00000000-0000-0000-0000-00000000041f",
"license_number": "CDPH-00000035"
}
],
"locations": [],
"name": "Company 871",
"order_shipment_email": null,
"outstanding_balance_threshold": null,
"owner_id": null,
"phone_number": null,
"purchase_order_email": null,
"relationship_type": null,
"sales_order_email": null,
"updated_datetime": "2023-12-02T00:00:00.000000Z",
"website": null
}
],
"next_page": null
}
Get companies sorted by their creation date and filtered by various attributes
Note: The page size for this endpoint is 5000 companies per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Required permission: companies_permissions_view. Results are filtered to
only include companies the authenticated user can access under their team
restrictions.
Request
GET /public/v1/companies
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| inserted_datetime | Filter companies by their creation datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| deleted | Filter deleted companies. no returns non-deleted, only returns deleted, include returns both. |
query | string | false | no | |
| page | Pagination information | query | number | false | ?page[number]=1 | |
| updated_datetime | Filter companies by the datetime they were most recently modified | query | string | false | ,2022-07-10T00:00:00Z |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A list of companies | Companies |
Get a company
GET /public/v1/companies/:id returns a single company
GET /public/v1/companies/00000000-0000-0000-0000-00000000230e
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDQsImlhdCI6MTc4MTgwMzcwNCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTUxM2ZlYzItOTZiYy00ZjI2LWE1NjQtYWM5ZGJkMzRiMGQ4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzAzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTY3ODAiLCJ0eXAiOiJhY2Nlc3MifQ.pXEsWUm_F3j_MykRw-vLj6GEs4xzILq6gfLmV90for0
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: d3d61385518f710a6bb8f3ad4a0dd1a0-22b9df18cceaa8ea-0
{
"data": {
"category": "Retailer",
"custom_data": [
{
"id": 394,
"name": "Custom Field 8",
"value": "Custom Value"
}
],
"default_email": "co@example.com",
"default_purchase_order_notes": null,
"default_sales_order_notes": null,
"deleted_at": null,
"group": {
"id": "00000000-0000-0000-0000-000000000011",
"name": "Comp Rel Group 1"
},
"id": "00000000-0000-0000-0000-00000000230e",
"invoice_email": "inv@example.com",
"legal_business_name": "Legal Co",
"licenses": [
{
"id": "00000000-0000-0000-0000-000000000407",
"license_number": "CDPH-00000011"
}
],
"locations": [
{
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003394",
"id": "00000000-0000-0000-0000-0000000011ae",
"license_id": null,
"name": "Place 131"
}
],
"name": "Company 392",
"order_shipment_email": null,
"outstanding_balance_threshold": null,
"owner_id": "00000000-0000-0000-0000-000000004199",
"phone_number": null,
"purchase_order_email": null,
"relationship_type": {
"id": "00000000-0000-0000-0000-000000000011",
"name": "Supplier"
},
"sales_order_email": "order@example.com",
"updated_datetime": "2026-06-18T17:28:24.737848Z",
"website": null
}
}
Get a single company given the ID.
Required permission: companies_permissions_view.
Request
GET /public/v1/companies/{id}
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Company ID | path | string | true |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single company | Company |
| 404 | Not Found |
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDIsImlhdCI6MTc4MTgwMzcwMiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYmFmZTQ2YWYtNWRlMy00MDQ5LWFiMDAtMWFkZDBhZmEyZjYyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzAxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTYyNjYiLCJ0eXAiOiJhY2Nlc3MifQ.xUQOHjX1--Sk2cFTF_JK43Gjr52MNkCmI_wBwJbzLBk
{
"name": "New Retailer"
}
Response
201
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 73199986b2a606409f69ef9b89e57518-a2334d5ffd81d062-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-00000000224d",
"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-06-18T17:28:23.111934Z",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDMsImlhdCI6MTc4MTgwMzcwMywiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTcyMmIzZGYtZjI3MS00ZmIzLWFhZjgtN2IyOGNiYjRiMjMwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzAyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTY0MzUiLCJ0eXAiOiJhY2Nlc3MifQ.7uuQzJDJ-QkvJtpd1CLDEkN349xznLwWfLlbldH7_T0
{
"category": "Retail",
"custom_data": {
"386": "VIP"
},
"default_email": "info@fullretailer.com",
"default_purchase_order_notes": "Purchase notes",
"default_sales_order_notes": "Sales notes",
"group_id": "00000000-0000-0000-0000-000000000010",
"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-00000000403b",
"phone_number": "555-1234",
"purchase_order_email": "purchasing@fullretailer.com",
"relationship_type_id": "00000000-0000-0000-0000-000000000010",
"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: 1ef64222782cbe5d8fae63113dee7492-cde086155d8c4b9e-0
{
"data": {
"category": "Retail",
"custom_data": [
{
"id": 386,
"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-000000000010",
"name": "Comp Rel Group 0"
},
"id": "00000000-0000-0000-0000-000000002278",
"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-00000000403b",
"phone_number": "555-1234",
"purchase_order_email": "purchasing@fullretailer.com",
"relationship_type": {
"id": "00000000-0000-0000-0000-000000000010",
"name": "Supplier"
},
"sales_order_email": "orders@fullretailer.com",
"updated_datetime": "2026-06-18T17:28:23.503069Z",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTRlMTgzYWEtODQ1MS00NzA3LTgwNmYtOGI0ZmU2OTc2OWY4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTczMDIiLCJ0eXAiOiJhY2Nlc3MifQ.ni5nRYe1NL181VpeYn4wtMBjT1uXn7pZKB_PDYTzg8Q
{
"id": "00000000-0000-0000-0000-0000000023f8",
"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: ad49bcef163cdbde74a4ec3e9985d7fa-40db3fd1efbf799d-0
{
"data": {
"category": "Other",
"custom_data": [],
"default_email": "company-1838@example.com",
"default_purchase_order_notes": null,
"default_sales_order_notes": null,
"deleted_at": null,
"group": null,
"id": "00000000-0000-0000-0000-0000000023f8",
"invoice_email": "newinvoice@example.com",
"legal_business_name": "Company Legal Name 791",
"licenses": [],
"locations": [],
"name": "Updated Name",
"order_shipment_email": null,
"outstanding_balance_threshold": null,
"owner_id": "00000000-0000-0000-0000-00000000439d",
"phone_number": null,
"purchase_order_email": null,
"relationship_type": null,
"sales_order_email": null,
"updated_datetime": "2026-06-18T17:28:26.241879Z",
"website": null
}
}
Upsert a single company. To update an existing company, pass in an existing company ID in the id field. If you do not pass in an ID, a new company and its associated company will be created. Required permission: companies_permissions_create to create a new company, companies_permissions_edit (and access to the company under team restrictions) to update an existing company.
Request
POST /public/v1/companies
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Unique ID for this company. If given, the matching record will be updated. If not given, a new company will be created. | query | string | false | ||
| name | Name of the related company | query | string | false | Acme Dispensary | |
| category | Category of the related company | query | string | false | Retailer | |
| legal_business_name | Legal business name of the related company | query | string | false | ||
| default_email | Default email address for the related company | query | string | false | ||
| phone_number | Phone number for the related company | query | string | false | ||
| website | Website URL for the related company | query | string | false | ||
| default_sales_order_notes | Default notes included on sales orders for this company | query | string | false | ||
| default_purchase_order_notes | Default notes included on purchase orders for this company | query | string | false | ||
| invoice_email | Email address for invoices sent to this company | query | string | false | ||
| sales_order_email | Email address for sales orders sent to this company | query | string | false | ||
| purchase_order_email | Email address for purchase orders sent to this company | query | string | false | ||
| order_shipment_email | Email address for order shipment notifications sent to this company | query | string | false | ||
| relationship_type_id | The ID of the relationship type to assign to this company relationship | query | string | false | ||
| group_id | The ID of the group to assign to this company relationship | query | string | false | ||
| owner_id | The ID of the user that owns this company relationship | query | string | false | ||
| outstanding_balance_threshold | Threshold amount (in cents) above which an outstanding balance warning is triggered | query | integer | false | ||
| custom_data | Custom data for this company relationship | body | 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYWYzYmZhMTctYWU4NC00MzY4LWEyY2EtYzg0MDRiYzA0YWFhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc1MjQiLCJ0eXAiOiJhY2Nlc3MifQ.LK0BKY8gp7c08YtpBYmgUHqxeKdYrbIG-78_5ZOMxAE
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 45926b47e1ad23d0c6278f7fcc81a282-9278dc18d38d3e98-0
{
"data": [
{
"company": {
"id": "00000000-0000-0000-0000-00000000246c"
},
"custom_data": [
{
"id": 435,
"name": "Custom Field 30",
"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-000000000136",
"last_name": "name1",
"owner": {
"id": "00000000-0000-0000-0000-00000000447a"
},
"phone_number": "1234567890",
"title": null,
"work_phone_number": "1234567891"
},
{
"company": {
"id": "00000000-0000-0000-0000-00000000246e"
},
"custom_data": [
{
"id": 435,
"name": "Custom Field 30",
"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-000000000137",
"last_name": "name2",
"owner": {
"id": "00000000-0000-0000-0000-00000000447f"
},
"phone_number": "1234567890",
"title": null,
"work_phone_number": "1234567892"
}
],
"next_page": null
}
Get contacts sorted by their creation date and filtered by various attributes
Note: The page size for this endpoint is 1000 contacts per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Required permission: contacts_permissions_view. Results are filtered to
only include contacts the authenticated user can access under their team
restrictions.
Request
GET /public/v1/contacts
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| inserted_datetime | Filter contacts by their creation datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| deleted | Filter deleted contacts. no returns non-deleted, only returns deleted, include returns both. |
query | string | false | no | |
| page | Pagination information | query | number | false | ?page[number]=1 | |
| updated_datetime | Filter contacts by the datetime they were most recently modified | query | string | false | ,2022-07-10T00:00:00Z |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A list of contacts | Contacts |
Get a contact
GET /public/v1/contacts/:id returns a single contact
GET /public/v1/contacts/00000000-0000-0000-0000-00000000012c
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDUsImlhdCI6MTc4MTgwMzcwNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZWIzY2VjMTctMmQwZS00MWI0LTg3NGYtZDkzNDFjMTJmYzgzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTcyMDMiLCJ0eXAiOiJhY2Nlc3MifQ.cJ2pd73J4FcB6V8oSdRyc-i6U0z66ClvgAjxsaaVvH0
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: de4a4eac66fa1bb49e66020fb12ade9a-8d92d66c7bfba601-0
{
"data": {
"company": {
"id": "00000000-0000-0000-0000-0000000023c1"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"driver_license_issuing_state": null,
"driver_license_number": null,
"email": null,
"first_name": "John",
"full_name": "John Doe",
"id": "00000000-0000-0000-0000-00000000012c",
"last_name": "Doe",
"owner": {
"id": "00000000-0000-0000-0000-000000004339"
},
"phone_number": null,
"title": null,
"work_phone_number": null
}
}
Get a single contact given the ID.
Required permission: contacts_permissions_view.
Request
GET /public/v1/contacts/{id}
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Contact ID | path | string | true |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single contact | Contact |
| 404 | Not Found |
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDMsImlhdCI6MTc4MTgwMzcwMywiaXNzIjoiRGlzdHJ1IiwianRpIjoiYWVmY2QwNmYtZjIxOS00YTNlLWFkYjctNjhmOTVjMTQ1Yzg1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzAyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTY0MjgiLCJ0eXAiOiJhY2Nlc3MifQ.HFf4rWo4PYDeDguJLDtT19ugQmxVWxdn0SIepPLmgSI
{
"company_id": "00000000-0000-0000-0000-000000002277",
"custom_data": {
"385": "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-000000004031",
"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: 605595f05a97814b6809b5d011315552-fb6400a14d77eff2-0
{
"data": {
"company": {
"id": "00000000-0000-0000-0000-000000002277"
},
"custom_data": [
{
"id": 385,
"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-000000000111",
"last_name": "Doe",
"owner": {
"id": "00000000-0000-0000-0000-000000004031"
},
"phone_number": "555-1111",
"title": "Buyer",
"work_phone_number": "555-2222"
}
}
Upsert a single contact. To update an existing contact, pass in an existing contact ID in the id field as well as the other fields you want to update. If you do not pass in an ID, a new contact will be created. Required permission: contacts_permissions_create to create a new contact, contacts_permissions_edit (and access to the contact under team restrictions) to update an existing contact.
Request
POST /public/v1/contacts
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Unique ID for this contact. If given, the contact matching the ID will be updated. If not given, a new contact will be created. | query | string | false | ||
| first_name | First name for the contact | query | string | true | ||
| last_name | Last name for the contact | query | string | false | ||
| title | Job title for the contact | query | string | false | ||
| Email address for the contact | query | string | false | |||
| phone_number | Phone number for the contact | query | string | false | ||
| work_phone_number | Work phone number for the contact | query | string | false | ||
| description | Description for the contact | query | string | false | ||
| company_id | The ID of the company relationship (company) this contact belongs to | query | string | false | ||
| driver_license_number | Driver license number for shipping manifests | query | string | false | ||
| driver_license_issuing_state | Driver license issuing state for shipping manifests | query | string | false | ||
| owner_id | The ID of the user that owns this contact | query | string | false | ||
| custom_data | The custom data for this contact | body | object | false |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | An updated contact | Contact |
| 201 | A new contact | Contact |
| 400 | Bad request | |
| 404 | Not found |
CustomField
List custom field definitions
GET /public/v1/custom-fields returns custom fields for the company
GET /public/v1/custom-fields
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTA5YjJjNzktZjhmOS00N2ExLWIwODYtNmMyOWFhMTFhNzU3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc0NTgiLCJ0eXAiOiJhY2Nlc3MifQ.VwFaj0RhPebBxj7qeWEaC_E1NCQh05qcatDXIoPso-k
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 3db6b737b80a0c6bb45040f6d4e7998d-17f2b9ba6426b234-0
{
"data": [
{
"description": null,
"field_options": [],
"field_type": "text",
"filterable": false,
"id": 431,
"name": "Field 1",
"parent_object": "product"
},
{
"description": null,
"field_options": [
"A",
"B"
],
"field_type": "dropdown",
"filterable": true,
"id": 432,
"name": "Field 2",
"parent_object": "product"
}
]
}
List all custom field definitions for the authenticated company. Optionally filter by parent_object to get fields for a specific entity type.
Required permission: settings_permissions_custom_fields.
Request
GET /public/v1/custom-fields
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| parent_object | Filter by parent object type (e.g., order, invoice, product) | query | string | false |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | List of custom field definitions | CustomFieldDefinitions |
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDMsImlhdCI6MTc4MTgwMzcwMywiaXNzIjoiRGlzdHJ1IiwianRpIjoiYmQ5MGJhMzktZGJjMi00MjY5LWFhYmYtYjYxYWM4MzVlMzc1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzAyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTY1NjIiLCJ0eXAiOiJhY2Nlc3MifQ.1ArJBSr4wmHFthK5EGzvVfFMT5cjDKa7i-a8rM4BStg
{
"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: 754939991e5893957666f9fe50751432-f0007dfeb69c5aea-0
{
"data": {
"description": "Notes",
"field_options": [],
"field_type": "text",
"filterable": false,
"id": 389,
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZWZiZTFlYzAtZjNlMS00YjJlLTllYzYtNjJiMDY2MGI3ZWU1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTczNzAiLCJ0eXAiOiJhY2Nlc3MifQ.-SyY7c18FtrJGpduFK_Ai2sIL2Hdu0wayuIyR-4u5UQ
{
"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: 09a2f79d0a149547ee636c95b22c99e5-45f0b7fc227b6e14-0
{
"data": {
"description": null,
"field_options": [],
"field_type": "date",
"filterable": false,
"id": 423,
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMWI1ZDY2ZTYtM2UwMi00YzhmLWJlMDQtODNiOTQyYzI3MjJjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc0MjgiLCJ0eXAiOiJhY2Nlc3MifQ.IlrIfxFXUsp9ssiYsQJR3xXAlS4TMxv5KXtNoptPHJc
{
"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: c40859bd1df77db4731608fa475c1fd2-8ff198328525e36c-0
{
"data": {
"description": null,
"field_options": [
"A",
"B"
],
"field_type": "dropdown",
"filterable": true,
"id": 429,
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNzM3Y2NhMWMtNDQ0YS00YzU1LWFkYWYtMWIyNzJjYWI3MzQ2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTczOTgiLCJ0eXAiOiJhY2Nlc3MifQ.FCjvmfH9YWwWMHRcnBuD91U8AossrfGVKBzDp3V5HM0
{
"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: d2b8b8279d579f8362daf9f264c6a2cc-912806f168057b12-0
{
"data": {
"description": null,
"field_options": [
"Option 1"
],
"field_type": "checkbox",
"filterable": true,
"id": 426,
"name": "Checkbox Field",
"parent_object": "product"
}
}
Create a custom field for the specified parent object. Updates are not supported for this endpoint.
Required permission: settings_permissions_custom_fields.
Request
POST /public/v1/custom-fields
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| name | Name of the custom field | query | string | true | ||
| description | Description of the custom field | query | string | false | ||
| parent_object | Parent object attached to the field | query | string | true | ||
| field_type | Field type | query | string | true | ||
| filterable | Whether the field is filterable | query | boolean | false | ||
| field_options | Field options | query | array | false |
Responses
| Status | Description | Schema |
|---|---|---|
| 201 | Custom field created | CustomFieldDefinition |
| 400 | Invalid parameters |
Get a custom field definition
GET /public/v1/custom-fields/:id returns a single custom field
GET /public/v1/custom-fields/387
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDMsImlhdCI6MTc4MTgwMzcwMywiaXNzIjoiRGlzdHJ1IiwianRpIjoiY2Q2MmI3Y2EtNTA3NS00NDZjLWE3ZTgtN2YyODZkYWUzNGZmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzAyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTY1MTAiLCJ0eXAiOiJhY2Nlc3MifQ.d6Xox1in_NN5Z-k9Q0g-9498fM4iSgEvd0UOBzb-2Nc
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 2cdc099b011f3757daa4fdb11d3aeba4-ff09c1dc39286dbd-0
{
"data": {
"description": "A test field",
"field_options": [
"A",
"B",
"C"
],
"field_type": "dropdown",
"filterable": true,
"id": 387,
"name": "Test Field",
"parent_object": "product"
}
}
Get a single custom field definition given the ID.
Required permission: settings_permissions_custom_fields.
Request
GET /public/v1/custom-fields/{id}
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Custom field ID | path | integer | true |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single custom field definition | CustomFieldDefinition |
| 404 | Not Found |
Update a custom field
POST /public/v1/custom-fields/:id can update a custom field name
POST /public/v1/custom-fields/405
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDUsImlhdCI6MTc4MTgwMzcwNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjQ1MGRmZDQtYWI2ZC00ZDFiLTg5NjUtMGQwYmNkN2U5ODIwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTcxOTEiLCJ0eXAiOiJhY2Nlc3MifQ.lO_IHcnGq7NqvHBwNcvslY0-hbte_lk8h0NWw-SNeM4
{
"name": "Updated Name"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 02b78315de8d3d3257cead530aa417d0-e057f578e178c3ca-0
{
"data": {
"description": null,
"field_options": [],
"field_type": "text",
"filterable": false,
"id": 405,
"name": "Updated Name",
"parent_object": "product"
}
}
Update an existing custom field. Only name, description, and field_options can be updated. Field type and parent object cannot be changed after creation.
Required permission: settings_permissions_custom_fields.
Request
POST /public/v1/custom-fields/{id}
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Custom field ID | path | integer | true | ||
| name | Name of the custom field | body | string | false | ||
| description | Description of the custom field | body | string | false | ||
| field_options | Field options (replaces existing options) | body | array | false |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | Custom field updated | CustomFieldDefinition |
| 400 | Invalid parameters | |
| 404 | Not Found |
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjViOGJmYjAtZDljMi00ZWJhLTg3MjMtODQyOGNmYzJlMjk1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTczNTEiLCJ0eXAiOiJhY2Nlc3MifQ.iPW7q2fZZg_10UFIuNrHaTq_2ktscr3rqVk4VEqRUlI
{
"file": {
"filename": "test-image.png",
"content_type": "image/png"
},
"name": "My Test Image",
"product_id": "31bca1e9-d7f7-49a7-8840-9f8ebbd64f01"
}
Response
201
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: a59345efd2ae9fd17df030b41d2ae65e-3eeab7dceb586a97-0
{
"data": {
"agent_chat_thread_id": null,
"ai_order_intake_id": null,
"ai_purchase_intake_id": null,
"assembly_id": null,
"batch_id": null,
"company_relationship_id": null,
"contact_id": null,
"id": "00000000-0000-0000-0000-0000000000a2",
"invoice_id": null,
"license_id": null,
"mime_type": "image/png",
"name": "My Test Image",
"order_id": null,
"order_shipment_id": null,
"product_id": "31bca1e9-d7f7-49a7-8840-9f8ebbd64f01",
"purchase_id": null,
"request_id": null,
"return_id": null,
"size_in_bytes": 355974,
"stock_transfer_id": null,
"task_id": null,
"upload_datetime": "2026-06-18T17:28:26.330254Z",
"uploader": {
"id": "00000000-0000-0000-0000-0000000043c7",
"name": "FirstName2240 LastName2241"
},
"url": "/var/folders/17/2j2rmghn0dq4yf9g2k3md5f00000gn/T/68f8ac1c-fe09-4923-a46a-daddb6020a1f/test-image.png"
}
}
Insert a new file attachment. The file will be uploaded to S3 and associated with the specified entity. Exactly one reference ID must be provided (product_id, order_id, purchase_id, etc.).
Required permission: products_permissions_edit.
Request
POST /public/v1/file-attachments
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| file | The file to upload | formData | file | true | ||
| name | Display name for the attachment (defaults to filename if not provided) | formData | string | false | ||
| product_id | Product ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
| order_id | Order ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
| purchase_id | Purchase ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
| invoice_id | Invoice ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
| batch_id | Batch ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
| contact_id | Contact ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
| company_relationship_id | Company relationship ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
| request_id | Request ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
| task_id | Task ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
| stock_transfer_id | Stock transfer ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
| assembly_id | Assembly ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
| return_id | Return ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
| order_shipment_id | Order shipment ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 | |
| license_id | License ID to attach file to | formData | string | false | 550e8400-e29b-41d4-a716-446655440000 |
Responses
| Status | Description | Schema |
|---|---|---|
| 201 | File attachment inserted successfully | FileAttachment |
| 400 | Invalid parameters | |
| 422 | Storage quota exceeded or other validation error |
Inventory
Get inventory levels
GET /public/v1/inventory returns stock quantities filtered by product IDs
GET /public/v1/inventory?grouping[]=PRODUCT&product_ids[]=92fc43df-dc46-46e2-a3e4-71d834dadbaf
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMTEsImlhdCI6MTc4MTgwMzcxMSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTIxMTgwZjAtMzc4Yi00MTQzLWE3OGMtZmMwZDYwYzc3OTUxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzEwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg2MzkiLCJ0eXAiOiJhY2Nlc3MifQ.mUd08yIfvccTOfFINvQPz8xelVfDo2-RbHub9b2BwdM
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 495871b4e8bece95f1f97442947c6f9c-f3ea78c36131e141-0
{
"data": [
{
"active": "10.000000000",
"available": "10.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "92fc43df-dc46-46e2-a3e4-71d834dadbaf",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-18T17:28:31.051287Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDksImlhdCI6MTc4MTgwMzcwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTQzZWQwZGYtMzNhZS00MDM3LTkzODItZDFiMjk1ODNhNjk1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTgzNzEiLCJ0eXAiOiJhY2Nlc3MifQ.Jk0ZQ-UKWCpY68SdHpD0W7nT4M34PJEQ3WqeSWrhH-A
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 6cbd69ee21bb6361ecba164def61efdc-d679f9e3e5b7be33-0
{
"data": [
{
"active": "95.000000000",
"available": "80.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "42847cd3-9f1d-45fb-8a32-a311e9aa7b3c",
"reserved": "15.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-18T17:28:30.065807Z"
},
{
"active": "100.000000000",
"available": "90.000000000",
"cost_default_per_unit": "2.06",
"cost_per_unit_actual": "0.03",
"product_id": "ba0f916a-d0d2-4888-b884-ca5fb4fe536f",
"reserved": "10.000000000",
"total_cost_actual": "3",
"total_cost_default": "206",
"updated_datetime": "2026-06-18T17:28:30.065019Z"
},
{
"active": "50.000000000",
"available": "50.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "efeb56be-0be3-481d-95da-b9761fa1340e",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-18T17:28:29.996692Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDksImlhdCI6MTc4MTgwMzcwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjhmNWQ2YzMtY2I1Ny00YzJiLTk0NWUtZDA2N2NiYjAzZTRlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTgzMDUiLCJ0eXAiOiJhY2Nlc3MifQ.LMVkML1T3In-WGivSNpdXtyALBVM_ncTPxYOcLQARlI
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 96a44c015281fb99be1330053d690f0d-7de759ffdf500bc2-0
{
"data": [
{
"active": "0.000000000",
"available": "-15.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-00000000130b",
"product_id": "0d39b4cc-3e8f-441a-a777-08f24db221c7",
"reserved": "15.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-18T17:28:29.734621Z"
},
{
"active": "0.000000000",
"available": "-8.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-00000000130c",
"product_id": "0d39b4cc-3e8f-441a-a777-08f24db221c7",
"reserved": "8.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-18T17:28:29.735263Z"
},
{
"active": "190.000000000",
"available": "169.000000000",
"cost_default_per_unit": "1",
"cost_per_unit_actual": "0.5",
"location_id": "00000000-0000-0000-0000-000000001315",
"product_id": "0d39b4cc-3e8f-441a-a777-08f24db221c7",
"reserved": "21.000000000",
"total_cost_actual": "95",
"total_cost_default": "190",
"updated_datetime": "2026-06-18T17:28:29.735775Z"
},
{
"active": "80.000000000",
"available": "80.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-000000001316",
"product_id": "0d39b4cc-3e8f-441a-a777-08f24db221c7",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-18T17:28:29.695269Z"
},
{
"active": "0.000000000",
"available": "-1.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": null,
"product_id": "0d39b4cc-3e8f-441a-a777-08f24db221c7",
"reserved": "1.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-18T17:28:29.737414Z"
},
{
"active": "100.000000000",
"available": "100.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-00000000130c",
"product_id": "41356f93-332f-4e02-b53e-253508f3ddc8",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-18T17:28:29.523450Z"
},
{
"active": "30.000000000",
"available": "26.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": null,
"product_id": "41356f93-332f-4e02-b53e-253508f3ddc8",
"reserved": "4.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-18T17:28:29.736907Z"
},
{
"active": "100.000000000",
"available": "90.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-00000000130b",
"product_id": "64fcd27c-98f2-4f38-9d34-28c039ad85af",
"reserved": "10.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-18T17:28:29.733337Z"
},
{
"active": "0.000000000",
"available": "-1.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-00000000130c",
"product_id": "64fcd27c-98f2-4f38-9d34-28c039ad85af",
"reserved": "1.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-18T17:28:29.734146Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDgsImlhdCI6MTc4MTgwMzcwOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYTY0NjFmYTUtZjI3ZS00ZDNiLTlmYmMtMTc4ZjRkNWNhOWQ2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc5MjYiLCJ0eXAiOiJhY2Nlc3MifQ.HnDjzmU8OGY2CAIj1_PROVhinxPTfjdBjG5stO6l9zQ
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: bbbe94b58ffc899b106f28ca85c2a50e-6b6811d65e650a42-0
{
"data": [
{
"active": "43.000000000",
"available": "43.000000000",
"batch_number": null,
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "38ef747f-a2e2-4562-92fb-2e2b8a4954b8",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-18T17:28:28.305582Z"
},
{
"active": "47.000000000",
"available": "47.000000000",
"batch_number": "1",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "38ef747f-a2e2-4562-92fb-2e2b8a4954b8",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-18T17:28:28.372514Z"
},
{
"active": "25.000000000",
"available": "25.000000000",
"batch_number": "2",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "38ef747f-a2e2-4562-92fb-2e2b8a4954b8",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-18T17:28:28.404535Z"
},
{
"active": "26.000000000",
"available": "26.000000000",
"batch_number": null,
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "c5a36373-c6c5-4312-8f3a-d756850fedb6",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-18T17:28:28.451146Z"
},
{
"active": "27.000000000",
"available": "27.000000000",
"batch_number": "1",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "c5a36373-c6c5-4312-8f3a-d756850fedb6",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-18T17:28:28.493127Z"
},
{
"active": "8.000000000",
"available": "8.000000000",
"batch_number": "TEST-1",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "eb696003-35e6-470b-ab28-bc49a41a6f4f",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-18T17:28:28.215812Z"
},
{
"active": "19.000000000",
"available": "19.000000000",
"batch_number": null,
"cost_default_per_unit": "2",
"cost_per_unit_actual": "1",
"product_id": "fc41ff9d-7c56-45ee-b386-fa0681d1a1ce",
"reserved": "0.000000000",
"total_cost_actual": "19",
"total_cost_default": "38",
"updated_datetime": "2026-06-18T17:28:28.149703Z"
},
{
"active": "13.000000000",
"available": "13.000000000",
"batch_number": "TEST-1",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "fc41ff9d-7c56-45ee-b386-fa0681d1a1ce",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-18T17:28:28.189147Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMTAsImlhdCI6MTc4MTgwMzcxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYzZjNjM3ZDMtZTM1OC00ZDE0LWFlMjgtN2M5OWZjNDNhNDY1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg0NzIiLCJ0eXAiOiJhY2Nlc3MifQ.aRfm1yzNRFyLv54UkjUjS7LKxlJYm0qruEcuuf42c7Y
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 5d0e8c17240174f2f23bd67007103ed0-207cfa68e6ed7a87-0
{
"data": [
{
"active": "21.000000000",
"available": "21.000000000",
"batch_number": null,
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-000000001340",
"product_id": "08702492-b4ed-4ae6-a048-3627f39544d8",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-18T17:28:30.320857Z"
},
{
"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-000000001340",
"product_id": "08702492-b4ed-4ae6-a048-3627f39544d8",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-18T17:28:30.394188Z"
},
{
"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-000000001341",
"product_id": "08702492-b4ed-4ae6-a048-3627f39544d8",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-18T17:28:30.363260Z"
},
{
"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-000000001341",
"product_id": "08702492-b4ed-4ae6-a048-3627f39544d8",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-18T17:28:30.425509Z"
},
{
"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-000000001340",
"product_id": "786dd215-5163-470a-8f73-f3dcc3d5a798",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-18T17:28:30.507493Z"
},
{
"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-000000001340",
"product_id": "786dd215-5163-470a-8f73-f3dcc3d5a798",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-18T17:28:30.625313Z"
},
{
"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-000000001341",
"product_id": "786dd215-5163-470a-8f73-f3dcc3d5a798",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-18T17:28:30.565504Z"
},
{
"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-000000001341",
"product_id": "786dd215-5163-470a-8f73-f3dcc3d5a798",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-18T17:28:30.681423Z"
}
],
"next_page": null
}
Get active and available quantities grouped by a specified list of attributes. Groups with 0 active and 0 available quantity won't be returned. Groups are sorted by the IDs of the attributes they are grouped by. Note: The page size for this endpoint is 5000 groups per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Required permission: products_permissions_view.
Request
GET /public/v1/inventory
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| grouping | Attributes to group inventory by. PRODUCT is required to be in the list. Accepted values are "BATCH_NUMBER", "LOCATION" and "PRODUCT". | query | array | false | ["PRODUCT","LOCATION"] | |
| page | Pagination information | query | number | false | ?page[number]=1 | |
| product_ids | Filter inventory levels by product IDs | query | array | false | ["67ae9080-8dc2-4ab7-9704-19673f4d9f21","213c7080-8dc2-4ab7-9704-19673f4d9f22"] | |
| location_ids | Filter inventory levels by location IDs | query | array | false | ["00000000-0000-0000-0000-000000000001","00000000-0000-0000-0000-000000000002"] | |
| batch_ids | Filter inventory levels by batch IDs | query | array | false | ["00000000-0000-0000-0000-000000000101","00000000-0000-0000-0000-000000000102"] |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A list of active and available quantity for each group | Inventories |
Invoice
Get invoices
GET /invoices/ returns invoices related to the access token's company
GET /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMTIsImlhdCI6MTc4MTgwMzcxMiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiODBiYTE3MDItYzkxMi00YWUxLWI4MDktYTIwZjJjZjI5N2M2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzExLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg4MTkiLCJ0eXAiOiJhY2Nlc3MifQ.12SY9IMMjOSWAcMSgoopzbzpwThJAtx5_sKalSTD5oM
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 68a18c5c5d2ece229212ebc9d7d81dd7-e09d4e996d8e34f9-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000027a9",
"name": "Company 1997",
"updated_datetime": "2026-06-18T17:28:32.684100Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2555@example.com",
"full_name": "FirstName5180 LastName5181",
"id": "00000000-0000-0000-0000-000000004994",
"role": {
"id": "00000000-0000-0000-0000-000000004b04",
"name": "Admin 2617"
}
},
"custom_data": [
{
"id": 445,
"name": "Custom Field 40",
"value": null
}
],
"due_datetime": "2026-06-18T17:28:32.743763Z",
"id": "00000000-0000-0000-0000-0000000001d5",
"inserted_datetime": "2026-06-18T17:28:32.744237Z",
"invoice_datetime": "2026-06-18T17:28:32.743763Z",
"invoice_number": "Invoice #67",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001cd0",
"name": "B3067"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000002ad",
"order_item_id": "93fbf103-8415-4ebe-9147-981866ba0c8d",
"package": null,
"price": "10.000000000",
"product": {
"id": "d69af4bc-f5b1-400e-89a7-55abc567c78f",
"name": "Product 3065",
"sku": "sku 3066",
"updated_datetime": "2026-06-18T17:28:32.692980Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001cd2",
"name": "B3071"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000002ae",
"order_item_id": "0d623dd0-179c-4eb0-90cc-9899f7133667",
"package": null,
"price": "10.000000000",
"product": {
"id": "3b92be68-f641-474e-8855-645efba23db5",
"name": "Product 3069",
"sku": "sku 3070",
"updated_datetime": "2026-06-18T17:28:32.703170Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "76b21fd1-bd6e-4608-8157-d35b37dbff41",
"order_number": "SO-125",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-2555@example.com",
"full_name": "FirstName5180 LastName5181",
"id": "00000000-0000-0000-0000-000000004994",
"role": {
"id": "00000000-0000-0000-0000-000000004b04",
"name": "Admin 2617"
}
},
"paid_amount": "0.0",
"remaining_amount": "200.00",
"status": "NOT_PAID",
"total": "200.00",
"updated_datetime": "2026-06-18T17:28:32.744237Z"
},
{
"charges": [
{
"id": "e2d603d1-3830-4667-957d-5a44059df4ca",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company": {
"id": "00000000-0000-0000-0000-00000000279d",
"name": "Company 1984",
"updated_datetime": "2026-06-18T17:28:32.581852Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000004981",
"role": {
"id": "00000000-0000-0000-0000-000000004af1",
"name": "Admin 2598"
}
},
"custom_data": [
{
"id": 445,
"name": "Custom Field 40",
"value": "Custom Field Value 1"
}
],
"due_datetime": "2020-01-01T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-0000000001d4",
"inserted_datetime": "2026-06-18T17:28:32.599901Z",
"invoice_datetime": "2020-01-01T00:00:02.000000Z",
"invoice_number": "INV-123",
"items": [
{
"batch": {
"batch_number": "UID1",
"id": "00000000-0000-0000-0000-000000001cc3",
"name": "B1"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000002ac",
"order_item_id": "31f96c43-9adc-4f2a-98ec-949881199bff",
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000000179",
"id": "00000000-0000-0000-0000-000000000281",
"metrc_label": "ABCDEF012345670000000179",
"status": "active"
},
"price": "10.000000000",
"product": {
"id": "e5da7654-9fdd-450c-9f6c-7e1d0409dc1d",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-18T17:28:32.533657Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "481d0c45-96a2-4615-add2-c2b143b7fae0",
"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-000000004982",
"role": {
"id": "00000000-0000-0000-0000-000000004af2",
"name": "Admin 2599"
}
},
"paid_amount": "5.00",
"remaining_amount": "3.00",
"status": "PARTIALLY_PAID",
"total": "8.00",
"updated_datetime": "2026-06-18T17:28:32.624270Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDksImlhdCI6MTc4MTgwMzcwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMWIwYzQ3YTgtMjgwOS00ZGYwLWI2ZjQtNGNhMDBiYzFjYjNmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTgyNDQiLCJ0eXAiOiJhY2Nlc3MifQ.0kZa4fUSACTxxGoSNQ6xn40K8odO8MqWDxNL4yZnihY
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 9b834a671589708f30e53b4bcb8eb646-be48aded418252e4-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000002625",
"name": "Company 1522",
"updated_datetime": "2026-06-18T17:28:29.285091Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2011@example.com",
"full_name": "FirstName4092 LastName4093",
"id": "00000000-0000-0000-0000-000000004767",
"role": {
"id": "00000000-0000-0000-0000-0000000048d3",
"name": "Admin 2056"
}
},
"custom_data": [],
"due_datetime": "2026-06-18T17:28:29.381716Z",
"id": "00000000-0000-0000-0000-0000000001b1",
"inserted_datetime": "2026-06-18T17:28:29.382133Z",
"invoice_datetime": "2026-06-18T17:28:29.381715Z",
"invoice_number": "Invoice #35",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001b97",
"name": "B2138"
},
"cost_per_unit": "10.026",
"cost_per_unit_default": "5",
"id": "00000000-0000-0000-0000-00000000026f",
"order_item_id": "bba305dd-6490-4225-802d-14d349793734",
"package": null,
"price": "872189.000000000",
"product": {
"id": "59c39575-b43f-4c1d-ba6f-18b87f707dbd",
"name": "Product 2136",
"sku": "sku 2137",
"updated_datetime": "2026-06-18T17:28:29.234672Z"
},
"quantity": "2.000000000",
"returned_quantity": "2",
"total_cost_actual": "20.052",
"total_cost_default": "10"
}
],
"order": {
"id": "09c66443-3304-4c1f-ab5f-09d4a238c32d",
"order_number": "SO-0000001",
"status": "Processing",
"total": "1744378.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-2011@example.com",
"full_name": "FirstName4092 LastName4093",
"id": "00000000-0000-0000-0000-000000004767",
"role": {
"id": "00000000-0000-0000-0000-0000000048d3",
"name": "Admin 2056"
}
},
"paid_amount": "0.0",
"remaining_amount": "32.00",
"status": "NOT_PAID",
"total": "32.00",
"updated_datetime": "2026-06-18T17:28:29.382133Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMTAsImlhdCI6MTc4MTgwMzcxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTY3M2RhZjYtYmQxYi00MWFhLWEwMzAtZDczNmEzZjljMTlkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg0MzQiLCJ0eXAiOiJhY2Nlc3MifQ.fxnjIJJGUP-EnVnTwXL97wmM095NdEqUQiZT80aVGkU
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 24f3baab59373574901840f47bbbe284-93b06230be257f78-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000026bc",
"name": "Company 1713",
"updated_datetime": "2026-06-18T17:28:30.286333Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2228@example.com",
"full_name": "FirstName4526 LastName4527",
"id": "00000000-0000-0000-0000-000000004844",
"role": {
"id": "00000000-0000-0000-0000-0000000049b0",
"name": "Admin 2277"
}
},
"custom_data": [],
"due_datetime": "2026-06-18T17:28:30.378017Z",
"id": "00000000-0000-0000-0000-0000000001ba",
"inserted_datetime": "2026-06-18T17:28:30.378456Z",
"invoice_datetime": "2020-01-01T12:30:00.000000Z",
"invoice_number": "Invoice #44",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c13",
"name": "B2508"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000280",
"order_item_id": "5659834b-3611-44bf-b1b1-e792342c3007",
"package": null,
"price": "10.000000000",
"product": {
"id": "e710cbee-982c-4eea-89b9-0918dc6470b7",
"name": "Product 2506",
"sku": "sku 2507",
"updated_datetime": "2026-06-18T17:28:30.320416Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c15",
"name": "B2512"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000281",
"order_item_id": "6ac912d2-31ee-4440-be8f-619074497208",
"package": null,
"price": "10.000000000",
"product": {
"id": "0b274e84-30a8-4b91-b15a-c2e5d9cd67e3",
"name": "Product 2510",
"sku": "sku 2511",
"updated_datetime": "2026-06-18T17:28:30.340009Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "29790e89-2611-4faf-a14b-8d6c9cadcb45",
"order_number": "SO-84",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-2228@example.com",
"full_name": "FirstName4526 LastName4527",
"id": "00000000-0000-0000-0000-000000004844",
"role": {
"id": "00000000-0000-0000-0000-0000000049b0",
"name": "Admin 2277"
}
},
"paid_amount": "0.0",
"remaining_amount": "200.00",
"status": "NOT_PAID",
"total": "200.00",
"updated_datetime": "2026-06-18T17:28:30.378456Z"
},
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000026a8",
"name": "Company 1692",
"updated_datetime": "2026-06-18T17:28:30.216025Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2203@example.com",
"full_name": "FirstName4476 LastName4477",
"id": "00000000-0000-0000-0000-00000000482b",
"role": {
"id": "00000000-0000-0000-0000-000000004999",
"name": "Admin 2254"
}
},
"custom_data": [],
"due_datetime": "2026-06-18T17:28:30.266285Z",
"id": "00000000-0000-0000-0000-0000000001b9",
"inserted_datetime": "2026-06-18T17:28:30.266699Z",
"invoice_datetime": "2020-01-01T12:20:00.000000Z",
"invoice_number": "Invoice #43",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c02",
"name": "B2459"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-00000000027e",
"order_item_id": "db628caf-9233-43e1-88d5-f17989130505",
"package": null,
"price": "10.000000000",
"product": {
"id": "553a2f88-8eca-44a0-8a3a-cba934a5d2e3",
"name": "Product 2457",
"sku": "sku 2458",
"updated_datetime": "2026-06-18T17:28:30.224169Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c04",
"name": "B2465"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-00000000027f",
"order_item_id": "a2fda167-a8b8-4d0d-82fc-0f2d61288e4a",
"package": null,
"price": "10.000000000",
"product": {
"id": "8da315d3-5d74-459a-8f2a-4c7e329650bc",
"name": "Product 2463",
"sku": "sku 2464",
"updated_datetime": "2026-06-18T17:28:30.232286Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "250230d6-2134-4b95-b770-9178aa6d365b",
"order_number": "SO-82",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-2203@example.com",
"full_name": "FirstName4476 LastName4477",
"id": "00000000-0000-0000-0000-00000000482b",
"role": {
"id": "00000000-0000-0000-0000-000000004999",
"name": "Admin 2254"
}
},
"paid_amount": "0.0",
"remaining_amount": "200.00",
"status": "FULLY_PAID",
"total": "200.00",
"updated_datetime": "2026-06-18T17:28:30.266699Z"
},
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000002691",
"name": "Company 1659",
"updated_datetime": "2026-06-18T17:28:30.063199Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2164@example.com",
"full_name": "FirstName4398 LastName4399",
"id": "00000000-0000-0000-0000-000000004803",
"role": {
"id": "00000000-0000-0000-0000-000000004970",
"name": "Admin 2213"
}
},
"custom_data": [],
"due_datetime": "2026-06-18T17:28:30.121179Z",
"id": "00000000-0000-0000-0000-0000000001b7",
"inserted_datetime": "2026-06-18T17:28:30.121685Z",
"invoice_datetime": "2020-01-01T12:00:00.000000Z",
"invoice_number": "Invoice #41",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001bf2",
"name": "B2407"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-00000000027a",
"order_item_id": "ade15cdb-9f9f-40e8-bb73-09e463fbfa50",
"package": null,
"price": "10.000000000",
"product": {
"id": "a3f81a75-6283-4bdc-8493-0f3eb0c8745b",
"name": "Product 2405",
"sku": "sku 2406",
"updated_datetime": "2026-06-18T17:28:30.071664Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001bf3",
"name": "B2410"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-00000000027b",
"order_item_id": "b0ac61cb-b098-49e8-adb9-3a1363cb0f14",
"package": null,
"price": "10.000000000",
"product": {
"id": "ee789ce9-432b-46ac-9f56-5b2e26132ada",
"name": "Product 2408",
"sku": "sku 2409",
"updated_datetime": "2026-06-18T17:28:30.082421Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "541e8f89-e4a5-4b5b-93aa-d0fe5b1c158d",
"order_number": "SO-80",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-2164@example.com",
"full_name": "FirstName4398 LastName4399",
"id": "00000000-0000-0000-0000-000000004803",
"role": {
"id": "00000000-0000-0000-0000-000000004970",
"name": "Admin 2213"
}
},
"paid_amount": "0.0",
"remaining_amount": "200.00",
"status": "FULLY_PAID",
"total": "200.00",
"updated_datetime": "2026-06-18T17:28:30.121685Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMTAsImlhdCI6MTc4MTgwMzcxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDYxNmI2MGMtNWYzNS00MmQwLWIwMGYtZjI2ZWM5YzA2M2RjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg1NzYiLCJ0eXAiOiJhY2Nlc3MifQ.stha9ZcHHimIf_uahN123ebUJvmiY8XwUMvAEhdIc68
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 42fff2a04301c11a020014f0983408b2-8d96f7ea8a8301b2-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000026d6",
"name": "Company 1753",
"updated_datetime": "2026-06-18T17:28:30.731133Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2323@example.com",
"full_name": "FirstName4716 LastName4717",
"id": "00000000-0000-0000-0000-0000000048a6",
"role": {
"id": "00000000-0000-0000-0000-000000004a0f",
"name": "Admin 2372"
}
},
"custom_data": [],
"due_datetime": "2026-06-18T17:28:30.822776Z",
"id": "00000000-0000-0000-0000-0000000001be",
"inserted_datetime": "2026-06-18T17:28:30.823115Z",
"invoice_datetime": "2026-06-18T17:28:30.822776Z",
"invoice_number": "Invoice #45",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c2a",
"name": "B2567"
},
"cost_per_unit": "10.026",
"cost_per_unit_default": "5",
"id": "00000000-0000-0000-0000-000000000286",
"order_item_id": "cc1e2d44-66bb-4860-b1ee-b85f24c666d6",
"package": null,
"price": "512393.000000000",
"product": {
"id": "be321f7e-37e1-4cb6-bde0-54d5fd525b06",
"name": "Product 2565",
"sku": "sku 2566",
"updated_datetime": "2026-06-18T17:28:30.694127Z"
},
"quantity": "1.000000000",
"returned_quantity": "1",
"total_cost_actual": "10.026",
"total_cost_default": "5"
}
],
"order": {
"id": "963ff4d4-f5c7-4946-ad4c-b6052dd75eac",
"order_number": "SO-0000001",
"status": "Processing",
"total": "1024786.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-2323@example.com",
"full_name": "FirstName4716 LastName4717",
"id": "00000000-0000-0000-0000-0000000048a6",
"role": {
"id": "00000000-0000-0000-0000-000000004a0f",
"name": "Admin 2372"
}
},
"paid_amount": "0.0",
"remaining_amount": "32.00",
"status": "NOT_PAID",
"total": "32.00",
"updated_datetime": "2026-06-18T17:28:30.823115Z"
}
],
"next_page": null
}
Get invoices sorted by Invoice Date descendingly date and filtered by various attributes
Note: The page size for this endpoint is 500 invoices per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Required permission: invoices_permissions_view. Results are filtered to
only include invoices the authenticated user can access under their team
restrictions.
Request
GET /public/v1/invoices
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| due_datetime | Filter invoices by the due datetime | query | string | false | ,2022-07-10T00:00:00Z | |
| inserted_datetime | Filter invoices by their creation datetime | query | string | false | 2022-07-10T00:00:00Z,2022-07-11T00:00:00Z | |
| invoice_datetime | Filter invoices by the invoice datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| invoice_number | Filter invoices by whether their invoice number contains the given string | query | string | false | 001 | |
| order_id | Filter invoices by order IDs | query | array | false | ["67ae9080-8dc2-4ab7-9704-19673f4d9f21","213c7080-8dc2-4ab7-9704-19673f4d9f22"] | |
| page | Pagination information | query | number | false | ?page[number]=1 | |
| status | Filter invoices by their status. Accepted values are "Not Paid", "Over Paid", "Fully Paid" and "Partially Paid". | query | array | false | ["Not Paid","Over Paid"] | |
| updated_datetime | Filter invoices by the datetime they were most recently modified | query | string | false | ,2022-07-10T00:00:00Z |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A list of invoices | Invoices |
Insert a payment for an invoice
POST /invoices/:id/payments can create a payment for an invoice with both quickbooks id and name
POST /public/v1/invoices/00000000-0000-0000-0000-0000000001da/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMTMsImlhdCI6MTc4MTgwMzcxMywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZmRiNzU5OTgtMGIxYy00M2VlLWE5ZTEtYzJjNTY5ZDMwNzFiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzEyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg4OTIiLCJ0eXAiOiJhY2Nlc3MifQ.e47QkWRPCdrKGXqeqGAHK__VRzCbdz8KFn-2AHE7w9M
{
"amount": 100.01,
"description": "Payment for invoice",
"payment_datetime": "2020-01-01T00:00:00.000000Z",
"payment_method_id": "00000000-0000-0000-0000-000000000072",
"quickbooks_deposit_account_id": "QBD-123"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 1466633a9d8f4a13bdb801a1c361f310-d2cf3def4adab684-0
{
"data": {
"amount": "100",
"description": "Payment for invoice",
"id": "00000000-0000-0000-0000-00000000001d",
"inserted_datetime": "2026-06-18T17:28:33.154644Z",
"invoice_id": "00000000-0000-0000-0000-0000000001da",
"payment_date": "2020-01-01T00:00:00.000000Z",
"payment_method": {
"deleted_at": null,
"id": "00000000-0000-0000-0000-000000000072",
"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-0000000001da/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMTMsImlhdCI6MTc4MTgwMzcxMywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZmRiNzU5OTgtMGIxYy00M2VlLWE5ZTEtYzJjNTY5ZDMwNzFiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzEyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg4OTIiLCJ0eXAiOiJhY2Nlc3MifQ.e47QkWRPCdrKGXqeqGAHK__VRzCbdz8KFn-2AHE7w9M
{
"amount": 100.01,
"description": "Payment for invoice",
"payment_datetime": "2020-01-01T00:00:00.000000Z",
"payment_method_id": "00000000-0000-0000-0000-000000000072",
"quickbooks_deposit_account_name": "QBD-NAME"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 1466633a9d8f4a13bdb801a1c361f310-6707e5e66e1a6fce-0
{
"data": {
"amount": "100",
"description": "Payment for invoice",
"id": "00000000-0000-0000-0000-00000000001e",
"inserted_datetime": "2026-06-18T17:28:33.217211Z",
"invoice_id": "00000000-0000-0000-0000-0000000001da",
"payment_date": "2020-01-01T00:00:00.000000Z",
"payment_method": {
"deleted_at": null,
"id": "00000000-0000-0000-0000-000000000072",
"name": "Payment Method 0"
},
"payment_number": "PYT-0000002",
"quickbooks_deposit_account_id": "QBD-123"
}
}
Required permission: invoices_permissions_receive_payment. The authenticated user must also be allowed to view invoices under their team restrictions.
Request
POST /public/v1/invoices/{id}/payments
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| payment_method_id | Payment method ID | query | string | true | ||
| amount | Amount of the payment. Will round to 2 decimal places | query | decimal | true | ||
| payment_datetime | Payment date | query | string | true | ||
| description | Description of the payment | query | string | true | ||
| quickbooks_deposit_account_id | Quickbooks deposit account ID. Cannot include both this and quickbooks_deposit_account_name. If user's company is integrated with Quickbooks, either this or quickbooks_deposit_account_name must be provided. Account type must be "Bank" or "Other Current Asset" | query | string | false | ||
| quickbooks_deposit_account_name | Quickbooks deposit account name. Cannot include both this and quickbooks_deposit_account_id. If user's company is integrated with Quickbooks, either this or quickbooks_deposit_account_id must be provided. Account type must be "Bank" or "Other Current Asset" | query | string | false |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single payment | InvoicePayment |
Get an invoice
GET /invoices/:id returns the expected invoice
GET /public/v1/invoices/00000000-0000-0000-0000-0000000001ac
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDgsImlhdCI6MTc4MTgwMzcwOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTM2MzQwZDgtMjkzZS00NjMzLThiMjQtYWZmNmZhYmRkNmFjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTgxMTMiLCJ0eXAiOiJhY2Nlc3MifQ.fDTGCJWVlvnOOgchfLf1V05RXlUvltHX3z8jLNU3IkU
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: f28a7e023bebf6dfd02994c6d775d140-5dd43d3260fd7520-0
{
"data": {
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000025cd",
"name": "Company 1423",
"updated_datetime": "2026-06-18T17:28:28.774825Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1851@example.com",
"full_name": "FirstName3772 LastName3773",
"id": "00000000-0000-0000-0000-0000000046c4",
"role": {
"id": "00000000-0000-0000-0000-000000004832",
"name": "Admin 1895"
}
},
"custom_data": [
{
"id": 440,
"name": "Custom Field 35",
"value": "Custom Field Value 1"
}
],
"due_datetime": "2026-06-18T17:28:28.824810Z",
"id": "00000000-0000-0000-0000-0000000001ac",
"inserted_datetime": "2026-06-18T17:28:28.825321Z",
"invoice_datetime": "2026-06-18T17:28:28.824810Z",
"invoice_number": "Invoice #31",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001b5b",
"name": "B1956"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000268",
"order_item_id": "817f530a-5f09-406b-bf28-06c50e2482bd",
"package": null,
"price": "10.000000000",
"product": {
"id": "ebdb461a-a08a-45b5-b2bf-a6f4d4829912",
"name": "Product 1954",
"sku": "sku 1955",
"updated_datetime": "2026-06-18T17:28:28.782201Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001b5d",
"name": "B1962"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000269",
"order_item_id": "94501330-4ae3-43b5-8071-1613e00b4c6d",
"package": null,
"price": "10.000000000",
"product": {
"id": "0a63716e-65d3-4969-8307-70dbdb0e29fe",
"name": "Product 1960",
"sku": "sku 1961",
"updated_datetime": "2026-06-18T17:28:28.789706Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "074aee83-2ca8-4c80-bf52-a0127efbfcaa",
"order_number": "SO-56",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1851@example.com",
"full_name": "FirstName3772 LastName3773",
"id": "00000000-0000-0000-0000-0000000046c4",
"role": {
"id": "00000000-0000-0000-0000-000000004832",
"name": "Admin 1895"
}
},
"paid_amount": "0.0",
"remaining_amount": null,
"status": "NOT_PAID",
"total": "200.00",
"updated_datetime": "2026-06-18T17:28:28.825321Z"
}
}
Get a single invoice given the ID. Required permission: invoices_permissions_view. The authenticated user must also have access to the requested invoice under their team restrictions.
Request
GET /public/v1/invoices/{id}
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Unique ID for an invoice | path | string | true |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | An invoice | Invoice |
Upsert an invoice
POST /invoices creates an invoice
POST /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMTIsImlhdCI6MTc4MTgwMzcxMiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzdkZmVmMDUtMDYzYy00YmU2LWExMzItYmEyOTExNWQ0Nzc0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzExLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg4NzAiLCJ0eXAiOiJhY2Nlc3MifQ.WwnuGAndD1MVgXA9e7CzhGh4DSlqa3dwEhHGL05fDYM
{
"billing_location_id": "00000000-0000-0000-0000-0000000013b1",
"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": "b2bd18b4-780f-4110-aa59-9437519b8aa2",
"quantity": "1.000000000"
},
{
"order_item_id": "6d2e5ac0-2dda-4a60-b2ef-b08600cc1e11",
"quantity": "10.000000000"
}
],
"order_id": "b1387750-c72e-455e-a585-d8d855bf9278"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 317e72e2acc31550e1c1c5e13006f4cb-b8388b9f42d64e3d-0
{
"data": {
"charges": [
{
"id": "d94179a8-d087-4c2e-baf0-781c3ce88129",
"name": "C1",
"percent": "10.0000",
"price": "5.30",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "7c3b4777-b51d-4162-9fa8-4948cb7d3456",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000027c8",
"name": "Company 2033",
"updated_datetime": "2026-06-18T17:28:32.955186Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-0000000049b6",
"role": {
"id": "00000000-0000-0000-0000-000000004b28",
"name": "Admin 2653"
}
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-0000000001d9",
"inserted_datetime": "2026-06-18T17:28:33.000263Z",
"invoice_datetime": "2020-01-01T00:00:00.000000Z",
"invoice_number": "INV-0000001",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001ce8",
"name": "B1"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000002b1",
"order_item_id": "b2bd18b4-780f-4110-aa59-9437519b8aa2",
"package": null,
"price": "3.000000000",
"product": {
"id": "8702b32b-0f6a-48ee-ab2d-f60d971700f7",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-18T17:28:32.966687Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001ce9",
"name": "B2"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000002b2",
"order_item_id": "6d2e5ac0-2dda-4a60-b2ef-b08600cc1e11",
"package": null,
"price": "5.000000000",
"product": {
"id": "08aff1a3-bd9c-42b2-a127-3521834955ea",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-06-18T17:28:32.974188Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "b1387750-c72e-455e-a585-d8d855bf9278",
"order_number": "SO-132",
"status": "Processing",
"total": "0.00"
},
"owner": null,
"paid_amount": "0.0",
"remaining_amount": "53.30",
"status": "NOT_PAID",
"total": "53.30",
"updated_datetime": "2026-06-18T17:28:33.005028Z"
}
}
POST /invoices updates an invoice
POST /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMTIsImlhdCI6MTc4MTgwMzcxMiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYzE0ZTZlODMtZDFjOS00ZDVhLWEzNzMtZmYyZjhhMzIwNTUzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzExLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg4MDQiLCJ0eXAiOiJhY2Nlc3MifQ.pQqjotSVQSjEv5kI3CuIlRxV1w5qXDD_VVX5s6Hdnic
{
"billing_location_id": "00000000-0000-0000-0000-00000000139c",
"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": "008ff6f5-2932-41f0-ab43-8a97c09d639f",
"quantity": "1.000000000"
},
{
"order_item_id": "33eda459-26ca-404f-be98-a936365cf7bc",
"quantity": "10.000000000"
}
],
"order_id": "ed383ece-6f80-4430-af34-910fee94abcf"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: b2134d2176af0ff544b5cd656b2fd2f5-df8187a23ee9eec1-0
{
"data": {
"charges": [
{
"id": "a7b00aa3-2e8b-4ef4-b934-e389788ada39",
"name": "C1",
"percent": "10.0000",
"price": "5.30",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "63f0841e-0173-4c5e-ade1-2c2eb3154d91",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-00000000278a",
"name": "Company 1963",
"updated_datetime": "2026-06-18T17:28:32.398434Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000004974",
"role": {
"id": "00000000-0000-0000-0000-000000004ae4",
"name": "Admin 2585"
}
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-0000000001d3",
"inserted_datetime": "2026-06-18T17:28:32.443299Z",
"invoice_datetime": "2020-01-01T00:00:00.000000Z",
"invoice_number": "INV-0000001",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001cb7",
"name": "B1"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000002a9",
"order_item_id": "008ff6f5-2932-41f0-ab43-8a97c09d639f",
"package": null,
"price": "3.000000000",
"product": {
"id": "dd3bc68b-c13b-44cb-988a-b5918396c31a",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-18T17:28:32.410507Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001cb9",
"name": "B2"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000002aa",
"order_item_id": "33eda459-26ca-404f-be98-a936365cf7bc",
"package": null,
"price": "5.000000000",
"product": {
"id": "4bf02350-c316-4da2-81b5-6bd8c735a472",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-06-18T17:28:32.418140Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "ed383ece-6f80-4430-af34-910fee94abcf",
"order_number": "SO-120",
"status": "Processing",
"total": "0.00"
},
"owner": null,
"paid_amount": "0.0",
"remaining_amount": "53.30",
"status": "NOT_PAID",
"total": "53.30",
"updated_datetime": "2026-06-18T17:28:32.447788Z"
}
}
POST /invoices updates an invoice
POST /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMTIsImlhdCI6MTc4MTgwMzcxMiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYzE0ZTZlODMtZDFjOS00ZDVhLWEzNzMtZmYyZjhhMzIwNTUzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzExLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg4MDQiLCJ0eXAiOiJhY2Nlc3MifQ.pQqjotSVQSjEv5kI3CuIlRxV1w5qXDD_VVX5s6Hdnic
{
"billing_location_id": "00000000-0000-0000-0000-00000000139d",
"charges": [
{
"id": "a7b00aa3-2e8b-4ef4-b934-e389788ada39",
"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-0000000001d3",
"invoice_datetime": "2020-01-02T00:00:00.000000Z",
"items": [
{
"id": "00000000-0000-0000-0000-0000000002a9",
"order_item_id": "008ff6f5-2932-41f0-ab43-8a97c09d639f",
"quantity": "1.000000000"
},
{
"order_item_id": "33eda459-26ca-404f-be98-a936365cf7bc",
"quantity": "8.000000000"
}
],
"order_id": "ed383ece-6f80-4430-af34-910fee94abcf"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: b2134d2176af0ff544b5cd656b2fd2f5-20bf8717bbd9a16d-0
{
"data": {
"charges": [
{
"id": "a7b00aa3-2e8b-4ef4-b934-e389788ada39",
"name": "C1",
"percent": "10.0000",
"price": "4.30",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "bda3e9b5-162a-4eb9-9b31-12ba7d2fc2e7",
"name": "C3",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-00000000278a",
"name": "Company 1963",
"updated_datetime": "2026-06-18T17:28:32.398434Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000004974",
"role": {
"id": "00000000-0000-0000-0000-000000004ae4",
"name": "Admin 2585"
}
},
"custom_data": [],
"due_datetime": "2020-01-28T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-0000000001d3",
"inserted_datetime": "2026-06-18T17:28:32.443299Z",
"invoice_datetime": "2020-01-02T00:00:00.000000Z",
"invoice_number": "INV-0000001",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001cb7",
"name": "B1"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000002a9",
"order_item_id": "008ff6f5-2932-41f0-ab43-8a97c09d639f",
"package": null,
"price": "3.000000000",
"product": {
"id": "dd3bc68b-c13b-44cb-988a-b5918396c31a",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-18T17:28:32.410507Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001cb9",
"name": "B2"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000002ab",
"order_item_id": "33eda459-26ca-404f-be98-a936365cf7bc",
"package": null,
"price": "5.000000000",
"product": {
"id": "4bf02350-c316-4da2-81b5-6bd8c735a472",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-06-18T17:28:32.418140Z"
},
"quantity": "8.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "ed383ece-6f80-4430-af34-910fee94abcf",
"order_number": "SO-120",
"status": "Processing",
"total": "0.00"
},
"owner": null,
"paid_amount": "0.0",
"remaining_amount": "42.30",
"status": "NOT_PAID",
"total": "42.30",
"updated_datetime": "2026-06-18T17:28:32.477767Z"
}
}
POST /invoices reports various errors correctly on update
POST /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMTAsImlhdCI6MTc4MTgwMzcxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYzY2YWUwMjktZDA2Mi00M2NkLTk3MmYtNmY5ZjFkYzAxNjA4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg1MjkiLCJ0eXAiOiJhY2Nlc3MifQ.LHOc4IhzCQDBG9LqlmLyYP7_1yf3d1ssWaoNKznWMno
{
"billing_location_id": "00000000-0000-0000-0000-000000001351",
"charges": [
{
"name": "C1",
"percent": "-1000.0000",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"due_datetime": "2020-01-30T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-0000000001bb",
"invoice_datetime": "2020-01-01T00:00:00.000000Z",
"items": [
{
"order_item_id": "00000000-0000-0000-0000-000000000000",
"quantity": "15.000"
},
{
"order_item_id": "7421a8e1-7297-4434-a6ee-479501fabc97",
"quantity": "19.000"
}
],
"order_id": "44f99a29-f227-4253-98d9-fd6bb24cc8a8"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 8031d5989cf2d1be34a00aadc081dd34-8ec0d46d877d9521-0
{
"errors": [
{
"context": {
"id": "335c46d6-c625-49f6-93db-109c007bbd5a"
},
"message": "Must be less than or equal to 100",
"pointer": [
"charges",
0,
"percent"
],
"section": "body"
},
{
"context": {},
"message": "Order item not found",
"pointer": [
"items",
2,
"order_item_id"
],
"section": "body"
},
{
"context": {},
"message": "Only 10 left uninvoiced",
"pointer": [
"items",
3,
"quantity"
],
"section": "body"
}
]
}
Upsert a single invoice. To update an existing invoice, pass in an existing invoice ID in the id field. When updating an invoice, you must pass in all fields (no sparse update currently supported). Any existing invoice item or charge you do not pass in to items and charges respectively will be deleted. Required permission: invoices_permissions_create to create a new invoice, invoices_permissions_edit (and access to the invoice under team restrictions) to update an existing invoice.
Request
POST /public/v1/invoices
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| due_datetime | The datetime at which the invoice is due | query | string | false | ||
| id | Unique ID for this invoice. If it exists, an update will be performed; otherwise, it will be used as the ID of a new invoice record | query | string | false | ||
| invoice_datetime | The datetime on which the invoice was placed | query | string | false | ||
| charges | The additional lines of Charge, Discount, or Tax added to this invoice | body | InvoiceChargesRequest | false | ||
| items | The invoice items present on this order | body | InvoiceItemsRequest | false | ||
| billing_location_id | The billing location's ID | query | string | false |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single invoice | Invoice |
Location
Get locations
GET /public/v1/locations returns locations related to the company
GET /public/v1/locations
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDUsImlhdCI6MTc4MTgwMzcwNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjI3ZDExYTctNzQyNi00YjM0LWE3ZGUtOThkNjUwYzI1N2IzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTY5NTkiLCJ0eXAiOiJhY2Nlc3MifQ.5uClxNMAxO-mewOcp4lDcFyZFhoT26dLLFWJ63pIIVc
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: f09bb4f27ceb7a79252c316fa81b563b-d6b27ece311c9b67-0
{
"data": [
{
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003421",
"deleted_at": null,
"id": "00000000-0000-0000-0000-0000000011d3",
"license": null,
"license_id": null,
"name": "Place 168"
},
{
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003421",
"deleted_at": null,
"id": "00000000-0000-0000-0000-0000000011d5",
"license": {
"id": "00000000-0000-0000-0000-00000000040b",
"license_number": "CDPH-00000015"
},
"license_id": "00000000-0000-0000-0000-00000000040b",
"name": "Place 170"
}
],
"next_page": null
}
Get locations sorted by their creation date and filtered by various attributes
Note: The page size for this endpoint is 1000 locations per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Required permission: companies_permissions_view.
Request
GET /public/v1/locations
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| inserted_datetime | Filter locations by their creation datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| deleted | Filter deleted locations. no returns non-deleted, only returns deleted, include returns both. |
query | string | false | no | |
| page | Pagination information | query | number | false | ?page[number]=1 | |
| updated_datetime | Filter locations by the datetime they were most recently modified | query | string | false | ,2022-07-10T00:00:00Z |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A list of locations | Locations |
Get a location
GET /public/v1/locations/:id returns the expected location
GET /public/v1/locations/00000000-0000-0000-0000-0000000011b3
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDQsImlhdCI6MTc4MTgwMzcwNCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDA1MzcxNTAtMWFlYy00NjA0LTk3ZDktN2EzNTNiODJmMzNhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzAzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTY4MDYiLCJ0eXAiOiJhY2Nlc3MifQ.V55V4_KbQjthde_q3qnB4rgDABhXGfI2D3X71HZ8w2U
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 950511f722bf7abbeaf245eddc5f5119-b79a797e7624d84c-0
{
"data": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000339f",
"deleted_at": null,
"id": "00000000-0000-0000-0000-0000000011b3",
"license": {
"id": "00000000-0000-0000-0000-000000000408",
"license_number": "CDPH-00000012"
},
"license_id": "00000000-0000-0000-0000-000000000408",
"name": "Place 136"
}
}
Get a single location given the ID.
Required permission: companies_permissions_view.
Request
GET /public/v1/locations/{id}
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Location ID | path | string | true |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single location | Location |
| 404 | Not Found |
Menu
Get menus
GET /public/v1/menus returns menus for the company with default pagination
GET /public/v1/menus
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTYwNTUyM2MtMGQwYy00YzNmLWIxYzEtYmYzNzJlY2NlNDU3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTczMjUiLCJ0eXAiOiJhY2Nlc3MifQ.5lF7TofdjfQgS7Q48ZRkW0Mo8AYoBXrRJYP61E8Jkag
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 85d99ff4df7274c11b9622d5026f1215-8dc92be384ed903f-0
{
"data": [
{
"active": true,
"external_name": "Ext A",
"id": "00000000-0000-0000-0000-0000000001e0",
"inserted_datetime": "2026-06-18T17:28:26.269485Z",
"internal_name": "Alpha",
"product_count": 0,
"updated_datetime": "2026-06-18T17:28:26.269485Z",
"visibility": "PUBLIC"
},
{
"active": true,
"external_name": "Ext B",
"id": "00000000-0000-0000-0000-0000000001e1",
"inserted_datetime": "2026-06-18T17:28:26.280563Z",
"internal_name": "Beta",
"product_count": 0,
"updated_datetime": "2026-06-18T17:28:26.280563Z",
"visibility": "PUBLIC"
}
],
"next_page": null
}
List menus for the authenticated company with visibility, active state, and active product counts.
Note: The page size for this endpoint is 500 menus per page.
Required permission: products_permissions_view.
Request
GET /public/v1/menus
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| active | Filter by menu active flag: true, false, or true,false (both). |
query | string | false | ||
| visibility | Comma-separated visibility: PUBLIC, PRIVATE, PASSCODE_PROTECTED. |
query | string | false | ||
| page | Pagination information | query | number | false | ?page[number]=1 |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | Menus index | Menus |
Get a menu
GET /public/v1/menus/:id returns the expected menu
GET /public/v1/menus/00000000-0000-0000-0000-0000000001de
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDUsImlhdCI6MTc4MTgwMzcwNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOWMyZjFiYmYtNGQ2NS00YjZjLWIzZDktOWJiM2Q2YTVjOTU5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTcyNDEiLCJ0eXAiOiJhY2Nlc3MifQ.NMJ0dE7FmidbYVlakMiZ4NAF2a36Bj8cmAyFLBuuxkQ
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 2f80c69a78ae27a700852da62e8b7147-880e396c8beeecea-0
{
"data": {
"active": true,
"external_name": "External Test Menu",
"id": "00000000-0000-0000-0000-0000000001de",
"inserted_datetime": "2026-06-18T17:28:26.051260Z",
"internal_name": "Test Menu",
"product_count": 1,
"updated_datetime": "2026-06-18T17:28:26.051260Z",
"visibility": "PUBLIC"
}
}
Get a single menu given the ID.
Required permission: products_permissions_view.
Request
GET /public/v1/menus/{id}
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Menu ID | path | string | true |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single menu | Menu |
| 404 | Not Found |
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMTQsImlhdCI6MTc4MTgwMzcxNCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzM1MmU2YjUtZTU2Ny00Nzg1LThkZGItMzAzYWU1NzM5OWQ4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzEzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg5NjIiLCJ0eXAiOiJhY2Nlc3MifQ.lLM1_repF1fbB2JFI_OyvI1EHTEilLzYcF-mVgH8-R8
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: d84302eb848d6a3d54d3dee438c1b644-fac1089fdc026a54-0
{
"data": [
{
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003a54",
"id": "00000000-0000-0000-0000-0000000013c9",
"license_id": null,
"license_number": null,
"name": "Place 670"
},
"biotrack_id": null,
"charges": [
{
"id": "cfdd188e-fe32-4b3b-a514-cbb36d618d78",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000002812",
"name": "Company 2121",
"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-000000004a10",
"role": {
"id": "00000000-0000-0000-0000-000000004b85",
"name": "Admin 2746"
}
},
"custom_data": [
{
"id": 447,
"name": "Custom Field 42",
"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": "1c122af9-1506-4e94-b440-c80d3f65d184",
"inserted_datetime": "2020-01-01T00:00:03.000000Z",
"internal_notes": "Internal notes for this order",
"inventory_source": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003a54",
"id": "00000000-0000-0000-0000-0000000013c9",
"license_id": null,
"license_number": null,
"name": "Place 670"
},
"items": [
{
"batch": {
"batch_number": "UID1",
"id": "00000000-0000-0000-0000-000000001d1f",
"name": "B1"
},
"compliance_quantity": "10.0000",
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "9e0895ec-7860-4675-b51b-67d14e1cfa63",
"is_sample": true,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003a54",
"id": "00000000-0000-0000-0000-0000000013c9",
"license_id": null,
"name": "Place 670"
},
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000000183",
"id": "00000000-0000-0000-0000-000000000283",
"metrc_label": "ABCDEF012345670000000183",
"status": "active"
},
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "be167527-3b5f-47b8-b40d-d8b7c003adaa",
"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": "0045b84c-7809-41e5-9f93-25f4954fec51",
"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-000000004a11",
"role": {
"id": "00000000-0000-0000-0000-000000004b86",
"name": "Admin 2747"
}
},
"payment_term_name": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003a54",
"id": "00000000-0000-0000-0000-0000000013c9",
"license_id": null,
"license_number": null,
"name": "Place 670"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMTAsImlhdCI6MTc4MTgwMzcxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiY2Y4MTAyZjktYmJiMy00M2Q0LThjODYtZmY1MWQzNTU4ZmQwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg1MjQiLCJ0eXAiOiJhY2Nlc3MifQ.WOMBpVcMU9X1Zzf_BARsB3-mltSUqwo7AnhJyr7R0V4
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 6b803c14ce3b0ff76f39cc22e06c707f-2642a46a0e01c41c-0
{
"data": [
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000026ca",
"name": "Company 1734",
"updated_datetime": "2026-06-18T17:28:30.473818Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2275@example.com",
"full_name": "FirstName4620 LastName4621",
"id": "00000000-0000-0000-0000-000000004874",
"role": {
"id": "00000000-0000-0000-0000-0000000049e0",
"name": "Admin 2325"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-06-18T17:28:30.475160Z",
"external_notes": null,
"id": "9b8ba1e0-4d5e-45b6-aeff-653f5bd8d926",
"inserted_datetime": "2026-06-18T17:28:30.488091Z",
"internal_notes": null,
"inventory_source": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c1e",
"name": "B2529"
},
"compliance_quantity": null,
"cost_per_unit": "10.026",
"cost_per_unit_default": "5",
"id": "9225ec78-806e-4970-9e3e-e1c97590f52c",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000038c8",
"id": "00000000-0000-0000-0000-000000001350",
"license_id": null,
"name": "Place 549"
},
"package": null,
"price": "752877.000000000",
"price_base": "752877",
"product": {
"id": "f41a7b5c-18d6-401d-a70b-96c83cdef8b8",
"name": "Product 2526",
"sku": "sku 2527",
"updated_datetime": "2026-06-18T17:28:30.414675Z"
},
"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-06-18T17:28:30.475162Z",
"order_number": "SO-0000001",
"owner": null,
"payment_term_name": null,
"shipping_location": null,
"status": "PROCESSING",
"total": "1505754.00",
"updated_datetime": "2026-06-18T17:28:30.488091Z"
}
],
"next_page": null
}
GET /public/v1/orders allows filtering by buyer company_id
GET /public/v1/orders?company_id=00000000-0000-0000-0000-0000000024a2
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDcsImlhdCI6MTc4MTgwMzcwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjdkNDNmNTQtOGExZS00YzhjLWIxMWItMTk2ODg4YjRlMzA2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc2MjYiLCJ0eXAiOiJhY2Nlc3MifQ.CIb0Q4vKfk6WESIL8PcPkDYsqhnUNYZ-A8R60L7jj0Q
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 9714c6d2750048bc48e28dc2b37af45c-5dae19473b23ecb5-0
{
"data": [
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000024a2",
"name": "Company 1042",
"updated_datetime": "2026-06-18T17:28:27.110378Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1372@example.com",
"full_name": "FirstName2812 LastName2813",
"id": "00000000-0000-0000-0000-0000000044e0",
"role": {
"id": "00000000-0000-0000-0000-000000004654",
"name": "Admin 1417"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-06-18T17:28:27.147944Z",
"external_notes": null,
"id": "e4da1753-bd39-4289-8c51-be1e3c2d6a9d",
"inserted_datetime": "2026-06-18T17:28:27.148441Z",
"internal_notes": null,
"inventory_source": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000361b",
"id": "00000000-0000-0000-0000-000000001248",
"license_id": null,
"license_number": null,
"name": "Place 285"
},
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001a8c",
"name": "B1296"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "775ac09a-cc64-4a5a-ab9e-034bb19b0763",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "99f9144f-3ebb-4b7c-b127-645d187db47a",
"name": "Product 1294",
"sku": "sku 1295",
"updated_datetime": "2026-06-18T17:28:27.160077Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001a8f",
"name": "B1302"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "ca79307f-8745-48d8-8bb9-a4c8a8cd44de",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "3dfe1666-0bcd-4b6c-9618-0f006c88d066",
"name": "Product 1300",
"sku": "sku 1301",
"updated_datetime": "2026-06-18T17:28:27.175269Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001a91",
"name": "B1308"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "13cc0dc9-a221-45e5-8df6-e7cbe94062c2",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "956174de-3d80-478f-a48c-43e786340d77",
"name": "Product 1306",
"sku": "sku 1307",
"updated_datetime": "2026-06-18T17:28:27.187298Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001a92",
"name": "B1311"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "7cccea68-b823-4cd9-b2e7-a01f81e5b5e8",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "fa0a5674-55fd-465f-8f67-1e750bdbfcb2",
"name": "Product 1309",
"sku": "sku 1310",
"updated_datetime": "2026-06-18T17:28:27.200431Z"
},
"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-26",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1372@example.com",
"full_name": "FirstName2812 LastName2813",
"id": "00000000-0000-0000-0000-0000000044e0",
"role": {
"id": "00000000-0000-0000-0000-000000004654",
"name": "Admin 1417"
}
},
"payment_term_name": null,
"shipping_location": null,
"status": "COMPLETED",
"total": "320.00",
"updated_datetime": "2026-06-18T17:28:27.222678Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMTAsImlhdCI6MTc4MTgwMzcxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZWViNWE3YWUtODAwYS00NDUyLWE5ZTItNjFjMmY1ZGM4ODBiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg1ODgiLCJ0eXAiOiJhY2Nlc3MifQ.UmtvKs8XvRQnOx86TrB7yPhe2GRFYYcHlhXpukpw2_8
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 4b31a225be4b1cf20f5d02ac44a5b464-486848cb24ed9988-0
{
"data": [
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000026f4",
"name": "Company 1791",
"updated_datetime": "2026-06-18T17:28:30.956096Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2355@example.com",
"full_name": "FirstName4780 LastName4781",
"id": "00000000-0000-0000-0000-0000000048c6",
"role": {
"id": "00000000-0000-0000-0000-000000004a30",
"name": "Admin 2405"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-06-18T17:28:30.968411Z",
"external_notes": null,
"id": "27acbd0e-4e85-4997-9ea4-512b35e5b8fc",
"inserted_datetime": "2026-06-18T17:28:30.968732Z",
"internal_notes": null,
"inventory_source": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000038e8",
"id": "00000000-0000-0000-0000-000000001369",
"license_id": null,
"license_number": null,
"name": "Place 574"
},
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c44",
"name": "B2645"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "956a7cf0-d37a-4bdf-a00f-d3f77c0de267",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "1407c17f-999d-435f-86d9-01008c90f582",
"name": "Product 2643",
"sku": "sku 2644",
"updated_datetime": "2026-06-18T17:28:30.975551Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c45",
"name": "B2648"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "829efed1-3007-463a-a02b-5c5ee066304a",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "cbf57e86-52ee-4c7b-aa48-a878557569c7",
"name": "Product 2646",
"sku": "sku 2647",
"updated_datetime": "2026-06-18T17:28:30.982812Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c46",
"name": "B2653"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "1b715683-a7f5-4c20-8907-f2d4934cc183",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "037f0033-fce4-407c-b15f-2fd82f8b0362",
"name": "Product 2651",
"sku": "sku 2652",
"updated_datetime": "2026-06-18T17:28:30.989878Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c48",
"name": "B2657"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "07bb41a3-eae1-4835-888b-ba1a68cd821d",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "5cc779a9-450a-4575-9fed-02e7a13b9296",
"name": "Product 2655",
"sku": "sku 2656",
"updated_datetime": "2026-06-18T17:28:30.997245Z"
},
"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-94",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-2355@example.com",
"full_name": "FirstName4780 LastName4781",
"id": "00000000-0000-0000-0000-0000000048c6",
"role": {
"id": "00000000-0000-0000-0000-000000004a30",
"name": "Admin 2405"
}
},
"payment_term_name": null,
"shipping_location": null,
"status": "CANCELED",
"total": "320.00",
"updated_datetime": "2026-06-18T17:28:31.010935Z"
},
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000026e8",
"name": "Company 1778",
"updated_datetime": "2026-06-18T17:28:30.896101Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2341@example.com",
"full_name": "FirstName4752 LastName4753",
"id": "00000000-0000-0000-0000-0000000048b8",
"role": {
"id": "00000000-0000-0000-0000-000000004a22",
"name": "Admin 2391"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-06-18T17:28:30.908053Z",
"external_notes": null,
"id": "03f5a67c-545b-45ef-a13b-05c6fdcb5b37",
"inserted_datetime": "2026-06-18T17:28:30.908354Z",
"internal_notes": null,
"inventory_source": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000038e8",
"id": "00000000-0000-0000-0000-000000001367",
"license_id": null,
"license_number": null,
"name": "Place 572"
},
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c39",
"name": "B2612"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "73e3cfd6-c8d2-4668-8b2b-9c621527bc2f",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "2fe8eeed-1189-4a36-b8de-ed640e3fe9c1",
"name": "Product 2610",
"sku": "sku 2611",
"updated_datetime": "2026-06-18T17:28:30.915309Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c3a",
"name": "B2617"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "2da6f76c-7a39-4b04-86c4-4ea7a0b782e3",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "1a5cc382-3a25-47ec-bc8e-3d7356c30985",
"name": "Product 2615",
"sku": "sku 2616",
"updated_datetime": "2026-06-18T17:28:30.923287Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c3d",
"name": "B2624"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "fe6ef15b-0698-4393-91e7-107505a580f4",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "f7b6d584-b13c-4ba3-81ca-7283335b70b9",
"name": "Product 2622",
"sku": "sku 2623",
"updated_datetime": "2026-06-18T17:28:30.930270Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c3f",
"name": "B2630"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "c1aba93f-7d8c-4a6e-806b-9073b0eca650",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "18d7e5fe-baf6-419a-a76e-7b82c8cf2350",
"name": "Product 2627",
"sku": "sku 2628",
"updated_datetime": "2026-06-18T17:28:30.936993Z"
},
"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-92",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-2341@example.com",
"full_name": "FirstName4752 LastName4753",
"id": "00000000-0000-0000-0000-0000000048b8",
"role": {
"id": "00000000-0000-0000-0000-000000004a22",
"name": "Admin 2391"
}
},
"payment_term_name": null,
"shipping_location": null,
"status": "COMPLETED",
"total": "320.00",
"updated_datetime": "2026-06-18T17:28:30.950254Z"
},
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000026d8",
"name": "Company 1757",
"updated_datetime": "2026-06-18T17:28:30.764637Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2314@example.com",
"full_name": "FirstName4698 LastName4699",
"id": "00000000-0000-0000-0000-00000000489d",
"role": {
"id": "00000000-0000-0000-0000-000000004a07",
"name": "Admin 2364"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-06-18T17:28:30.778943Z",
"external_notes": null,
"id": "96de6490-2ac7-4097-9aec-6e51fa1f4006",
"inserted_datetime": "2026-06-18T17:28:30.779410Z",
"internal_notes": null,
"inventory_source": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000038e8",
"id": "00000000-0000-0000-0000-00000000135d",
"license_id": null,
"license_number": null,
"name": "Place 562"
},
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c2e",
"name": "B2579"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "590e5d3d-75bb-4ce7-b520-4df2f78ad8c9",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "733cfc65-78ee-4bee-98b8-1b6fa322b5a7",
"name": "Product 2577",
"sku": "sku 2578",
"updated_datetime": "2026-06-18T17:28:30.786820Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c2f",
"name": "B2582"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "536ec98b-0f70-467c-ac1c-8fe60ada0120",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "f742227a-1d8a-418a-a0ff-f90cc13bc7d9",
"name": "Product 2580",
"sku": "sku 2581",
"updated_datetime": "2026-06-18T17:28:30.795255Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c30",
"name": "B2585"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "d81f78d2-8ede-487e-885f-4a434b6b5dba",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "ac162ef7-8a22-439e-8f88-1c8c180d6915",
"name": "Product 2583",
"sku": "sku 2584",
"updated_datetime": "2026-06-18T17:28:30.802984Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c31",
"name": "B2588"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "54f3e6d5-34d1-42ac-ad13-c43c36a57731",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "57d06dd8-135e-445d-812f-76162d363be4",
"name": "Product 2586",
"sku": "sku 2587",
"updated_datetime": "2026-06-18T17:28:30.811406Z"
},
"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-88",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-2314@example.com",
"full_name": "FirstName4698 LastName4699",
"id": "00000000-0000-0000-0000-00000000489d",
"role": {
"id": "00000000-0000-0000-0000-000000004a07",
"name": "Admin 2364"
}
},
"payment_term_name": null,
"shipping_location": null,
"status": "COMPLETED",
"total": "320.00",
"updated_datetime": "2026-06-18T17:28:30.825873Z"
}
],
"next_page": null
}
Get orders sorted by Order Date descendingly date and filtered by various attributes
Note: The page size for this endpoint is 500 orders per page.
Required permission: orders_permissions_view. Results are filtered to only
include orders the authenticated user can access under their team
restrictions.
Request
GET /public/v1/orders
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| delivery_datetime | Filter orders by the delivery datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| due_datetime | Filter orders by the due datetime | query | string | false | ,2022-07-10T00:00:00Z | |
| inserted_datetime | Filter orders by their creation datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| order_datetime | Filter orders by the order datetime | query | string | false | 2022-07-10T00:00:00Z,2022-07-11T00:00:00Z | |
| page | Pagination information | query | number | false | ?page[number]=1 | |
| status | Filter orders by their status. Accepted values are "PENDING", "PROCESSING", "READY_TO_SHIP", "DELIVERING", "DELIVERED", "COMPLETED" and "CANCELED". | query | array | false | ["PENDING","PROCESSING"] | |
| updated_datetime | Filter orders by the datetime they were most recently modified | query | string | false | ,2022-07-10T00:00:00Z | |
| company_id | Filter orders by buyer company (company relationship ID — same UUID as each order's company.id and GET /public/v1/companies). |
|||||
| query | string | false | 550e8400-e29b-41d4-a716-446655440000 |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A list of orders | Orders |
| 404 | Not Found |
Get an order
GET /orders/:id returns the expected order
GET /public/v1/orders/d94b8318-0232-47fe-b445-6f51b75205c8
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMTIsImlhdCI6MTc4MTgwMzcxMiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiM2VlNTczNGQtODQ2Yi00NWIzLTg5YzktZmEzY2U3YTBiNzExIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzExLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg4NTgiLCJ0eXAiOiJhY2Nlc3MifQ.nTTVEPcveRjbeNPJXondU5kcunXKvXmgBqpnyLvCdYw
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: ec419797afb76ccc5ea488664bd5f2c2-5226be6deb9af617-0
{
"data": {
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000027c1",
"name": "Company 2024",
"updated_datetime": "2026-06-18T17:28:32.862482Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2578@example.com",
"full_name": "FirstName5226 LastName5227",
"id": "00000000-0000-0000-0000-0000000049ab",
"role": {
"id": "00000000-0000-0000-0000-000000004b1c",
"name": "Admin 2641"
}
},
"custom_data": [
{
"id": 446,
"name": "Custom Field 41",
"value": "Custom Field Value 1"
}
],
"delivery_datetime": null,
"due_datetime": "2026-06-18T17:28:32.912696Z",
"external_notes": null,
"id": "d94b8318-0232-47fe-b445-6f51b75205c8",
"inserted_datetime": "2026-06-18T17:28:32.913166Z",
"internal_notes": null,
"inventory_source": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000039f3",
"id": "00000000-0000-0000-0000-0000000013ae",
"license_id": null,
"license_number": null,
"name": "Place 643"
},
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001ce4",
"name": "B3125"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "4b6438d4-c1e1-4ca4-87ac-d07651667759",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "bcd32de6-ab99-4ac6-ba05-3551635576b6",
"name": "Product 3123",
"sku": "sku 3124",
"updated_datetime": "2026-06-18T17:28:32.923586Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001ce5",
"name": "B3128"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "7e5f9cc0-3eca-48b0-8b21-1a3dbf085b1c",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "0dc0bdb0-7693-4236-9341-7f22c39f8084",
"name": "Product 3126",
"sku": "sku 3127",
"updated_datetime": "2026-06-18T17:28:32.935363Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001ce6",
"name": "B3131"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "4d8d33f1-3c76-457f-8aab-035833511221",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "dbe1e316-f91e-49cc-bc2f-69443014e2cf",
"name": "Product 3129",
"sku": "sku 3130",
"updated_datetime": "2026-06-18T17:28:32.944682Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001ce7",
"name": "B3134"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "35818a07-4786-4333-a53b-173086ca4832",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "f489bd64-e830-4239-af21-5534e0ea86f0",
"name": "Product 3132",
"sku": "sku 3133",
"updated_datetime": "2026-06-18T17:28:32.952987Z"
},
"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-06-18T17:28:32.912696Z",
"order_number": "SO-131",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-2578@example.com",
"full_name": "FirstName5226 LastName5227",
"id": "00000000-0000-0000-0000-0000000049ab",
"role": {
"id": "00000000-0000-0000-0000-000000004b1c",
"name": "Admin 2641"
}
},
"payment_term_name": null,
"shipping_location": null,
"status": "COMPLETED",
"total": "320.00",
"updated_datetime": "2026-06-18T17:28:32.967329Z"
}
}
GET /orders/:id returns cost data for order items
GET /public/v1/orders/e2da43ba-5706-4463-9f27-7addd71e2ceb
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDksImlhdCI6MTc4MTgwMzcwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYTMzZTRjMDAtMmIwZi00MzIxLTk0MWItOTBkZGJkOThkNzc1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTgyNDkiLCJ0eXAiOiJhY2Nlc3MifQ.eDMVOwgwnleXd4M_fKkrowDTQ09sgBBSVPqWaoUxlXk
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 4a56dc4540934bd01122c48856401bd0-911aee054a0f6ca1-0
{
"data": {
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000002626",
"name": "Company 1524",
"updated_datetime": "2026-06-18T17:28:29.300837Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2000@example.com",
"full_name": "FirstName4070 LastName4071",
"id": "00000000-0000-0000-0000-00000000475b",
"role": {
"id": "00000000-0000-0000-0000-0000000048c7",
"name": "Admin 2044"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-06-18T17:28:29.301576Z",
"external_notes": null,
"id": "e2da43ba-5706-4463-9f27-7addd71e2ceb",
"inserted_datetime": "2026-06-18T17:28:29.312748Z",
"internal_notes": null,
"inventory_source": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001b99",
"name": "B2144"
},
"compliance_quantity": null,
"cost_per_unit": "10.026",
"cost_per_unit_default": "5",
"id": "ecb6e68e-3bc4-40a1-8cc1-345605bfc641",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000037f6",
"id": "00000000-0000-0000-0000-0000000012fd",
"license_id": null,
"name": "Place 466"
},
"package": null,
"price": "141593.000000000",
"price_base": "141593",
"product": {
"id": "f068bf4a-d337-430f-8ac1-59ceba485481",
"name": "Product 2139",
"sku": "sku 2140",
"updated_datetime": "2026-06-18T17:28:29.251110Z"
},
"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-06-18T17:28:29.301576Z",
"order_number": "SO-0000001",
"owner": null,
"payment_term_name": null,
"shipping_location": null,
"status": "PROCESSING",
"total": "283186.00",
"updated_datetime": "2026-06-18T17:28:29.312748Z"
}
}
Get a single order given the ID. Note: This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Required permission: orders_permissions_view. The authenticated user must
also have access to the requested order under their team restrictions.
Request
GET /public/v1/orders/{id}
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Order ID | path | string | true |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single order | Order |
Upsert an order
POST /public/v1/orders creates an order (with product-tracked item)
POST /public/v1/orders
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMTEsImlhdCI6MTc4MTgwMzcxMSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDdhZWM1YjMtNDJlZi00Y2U0LTlhZmItYTEwMWY1ZDBiYjcyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzEwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg2OTciLCJ0eXAiOiJhY2Nlc3MifQ.qjZyiQhQCiiMLDQDqBOxUACanPVPbvj7gvpqG4qgssY
{
"billing_location_id": "00000000-0000-0000-0000-00000000137c",
"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-000000002728",
"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-00000000137c",
"price_base": "10.000000000",
"product_id": "6ee92004-a775-4d9d-946b-a75deddfc0a2",
"quantity": "1.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"owner_id": "00000000-0000-0000-0000-000000004909",
"shipping_location_id": "00000000-0000-0000-0000-00000000137c",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 5a316f47852b7996ecfe4d633a0d659b-1e1c0b3d0f76875b-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003947",
"id": "00000000-0000-0000-0000-00000000137c",
"license_id": "00000000-0000-0000-0000-00000000048d",
"license_number": "CDPH-00000145",
"name": "Place 593"
},
"biotrack_id": null,
"charges": [
{
"id": "17879c89-a2d5-4495-948a-c3df44bb0ba9",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "b92d83fb-21c7-4dde-95fc-16ddbaec770a",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000002728",
"name": "Company 1852",
"updated_datetime": "2026-06-18T17:28:31.413278Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000004909",
"role": {
"id": "00000000-0000-0000-0000-000000004a75",
"name": "Admin 2474"
}
},
"custom_data": [
{
"id": 444,
"name": "Custom Field 39",
"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": "7d026c2b-0b53-4196-a147-73d4dee2209a",
"inserted_datetime": "2026-06-18T17:28:31.449419Z",
"internal_notes": "Internal notes for this order",
"inventory_source": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c6c",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "80dcb223-8248-48b8-9696-83e9328b0935",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003947",
"id": "00000000-0000-0000-0000-00000000137c",
"license_id": "00000000-0000-0000-0000-00000000048d",
"name": "Place 593"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "6ee92004-a775-4d9d-946b-a75deddfc0a2",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-18T17:28:31.430056Z"
},
"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-000000004909",
"role": {
"id": "00000000-0000-0000-0000-000000004a75",
"name": "Admin 2474"
}
},
"payment_term_name": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003947",
"id": "00000000-0000-0000-0000-00000000137c",
"license_id": "00000000-0000-0000-0000-00000000048d",
"license_number": "CDPH-00000145",
"name": "Place 593"
},
"status": "PROCESSING",
"total": "6.00",
"updated_datetime": "2026-06-18T17:28:31.467717Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMTEsImlhdCI6MTc4MTgwMzcxMSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjMxYmVkMmEtNjAyMy00MzNlLWIxYTUtODZmYTEwZDczYTUxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzEwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg2ODMiLCJ0eXAiOiJhY2Nlc3MifQ.o9flAeIMxXQmv5kTlK3MXA3-vijt6TSFHE9-y5pPDUA
{
"billing_location_id": "00000000-0000-0000-0000-000000001378",
"charges": [],
"company_id": "00000000-0000-0000-0000-00000000271d",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000001378",
"price_base": "10.000000000",
"product_id": "a9a6e86e-4b64-4486-a231-eda5bb5f6779",
"quantity": "1.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-000000001378",
"status": "PROCESSING"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 67906a0dcbbb663f63d6797fb0c9dc3f-ea990b764b32ac18-0
{
"errors": [
{
"context": {
"id": "cdda0af8-6a35-400c-925b-73d1c4ccb1de"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMTEsImlhdCI6MTc4MTgwMzcxMSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjMxYmVkMmEtNjAyMy00MzNlLWIxYTUtODZmYTEwZDczYTUxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzEwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg2ODMiLCJ0eXAiOiJhY2Nlc3MifQ.o9flAeIMxXQmv5kTlK3MXA3-vijt6TSFHE9-y5pPDUA
{
"billing_location_id": "00000000-0000-0000-0000-000000001378",
"blaze_payment_type": "CASH",
"charges": [],
"company_id": "00000000-0000-0000-0000-00000000271d",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000001378",
"price_base": "10.000000000",
"product_id": "a9a6e86e-4b64-4486-a231-eda5bb5f6779",
"quantity": "1.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-000000001378",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 67906a0dcbbb663f63d6797fb0c9dc3f-d2c2dd09c13e41f9-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003939",
"id": "00000000-0000-0000-0000-000000001378",
"license_id": "00000000-0000-0000-0000-00000000048a",
"license_number": "CDPH-00000142",
"name": "Place 589"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000000271d",
"name": "Company 1839",
"updated_datetime": "2026-06-18T17:28:31.286147Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2408@example.com",
"full_name": "FirstName4886 LastName4887",
"id": "00000000-0000-0000-0000-0000000048fb",
"role": {
"id": "00000000-0000-0000-0000-000000004a67",
"name": "Admin 2460"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "95bb1d37-90de-4838-abcb-453d4b36bebd",
"inserted_datetime": "2026-06-18T17:28:31.331643Z",
"internal_notes": null,
"inventory_source": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c65",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "6f3cefec-0bbd-422a-a7da-30b8aeb80ab5",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003939",
"id": "00000000-0000-0000-0000-000000001378",
"license_id": "00000000-0000-0000-0000-00000000048a",
"name": "Place 589"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "a9a6e86e-4b64-4486-a231-eda5bb5f6779",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-18T17:28:31.304515Z"
},
"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-000000003939",
"id": "00000000-0000-0000-0000-000000001378",
"license_id": "00000000-0000-0000-0000-00000000048a",
"license_number": "CDPH-00000142",
"name": "Place 589"
},
"status": "PROCESSING",
"total": "10.00",
"updated_datetime": "2026-06-18T17:28:31.331643Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDQsImlhdCI6MTc4MTgwMzcwNCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMWI1OGZkYjEtZjlmYi00ODYyLWFhMTMtOTJmMDA3YWZhNGIwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzAzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTY1ODkiLCJ0eXAiOiJhY2Nlc3MifQ.VgbqX-SV2mi8C_AqPdqZJAfYd8GVk8ZBUJrNQsu1K_w
{
"billing_location_id": "00000000-0000-0000-0000-000000001174",
"charges": [],
"company_id": "00000000-0000-0000-0000-0000000022ab",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000001174",
"position": 1,
"price_base": "100.000000000",
"product_id": "76229ddf-b54d-490e-b016-a4e5cd623e91",
"quantity": "80.000000000"
},
{
"location_id": "00000000-0000-0000-0000-000000001174",
"position": 2,
"price_base": "200.000000000",
"product_id": "76229ddf-b54d-490e-b016-a4e5cd623e91",
"quantity": "10.000000000"
},
{
"location_id": "00000000-0000-0000-0000-000000001174",
"position": 3,
"price_base": "300.000000000",
"product_id": "2851ebb3-ed7e-4535-92d4-a06b8988054e",
"quantity": "20.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-000000001174",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: c3aeff92dd45fcdc080fa6411fb001d8-37888b94a62b7bf8-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000032ef",
"id": "00000000-0000-0000-0000-000000001174",
"license_id": "00000000-0000-0000-0000-000000000404",
"license_number": "CDPH-00000008",
"name": "Place 73"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000022ab",
"name": "Company 236",
"updated_datetime": "2026-06-18T17:28:23.998379Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-331@example.com",
"full_name": "FirstName666 LastName667",
"id": "00000000-0000-0000-0000-0000000040cd",
"role": {
"id": "00000000-0000-0000-0000-00000000421c",
"name": "Admin 337"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "9e215cb3-fba4-4ba0-857a-ece83cc56cd6",
"inserted_datetime": "2026-06-18T17:28:24.338488Z",
"internal_notes": null,
"inventory_source": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000192a",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "457436fb-9c0f-4170-a69a-f46291536207",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000032ef",
"id": "00000000-0000-0000-0000-000000001174",
"license_id": "00000000-0000-0000-0000-000000000404",
"name": "Place 73"
},
"package": null,
"price": "80.000000000",
"price_base": "100.000000000",
"product": {
"id": "76229ddf-b54d-490e-b016-a4e5cd623e91",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-18T17:28:24.050849Z"
},
"quantity": "80.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000192a",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "a1a80d78-6042-4e49-a86e-088313bbeae7",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000032ef",
"id": "00000000-0000-0000-0000-000000001174",
"license_id": "00000000-0000-0000-0000-000000000404",
"name": "Place 73"
},
"package": null,
"price": "180.000000000",
"price_base": "200.000000000",
"product": {
"id": "76229ddf-b54d-490e-b016-a4e5cd623e91",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-18T17:28:24.050849Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000192b",
"name": "B2"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "304e92d3-f546-4597-bc95-d416a5b96d5a",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000032ef",
"id": "00000000-0000-0000-0000-000000001174",
"license_id": "00000000-0000-0000-0000-000000000404",
"name": "Place 73"
},
"package": null,
"price": "270.000000000",
"price_base": "300.000000000",
"product": {
"id": "2851ebb3-ed7e-4535-92d4-a06b8988054e",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-06-18T17:28:24.089247Z"
},
"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-0000000032ef",
"id": "00000000-0000-0000-0000-000000001174",
"license_id": "00000000-0000-0000-0000-000000000404",
"license_number": "CDPH-00000008",
"name": "Place 73"
},
"status": "PROCESSING",
"total": "13600.00",
"updated_datetime": "2026-06-18T17:28:24.484621Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDcsImlhdCI6MTc4MTgwMzcwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiYThmODIxZmItNzQ5Ny00MDBjLTkwYWYtNjM1NzQ4N2FjMDU4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc4NTgiLCJ0eXAiOiJhY2Nlc3MifQ.9Nfw3XhdbsxQV1cSjkQ9MAYbxwhvu5Sx5dkZ994Y8EI
{
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"batch_id": "00000000-0000-0000-0000-000000001ae1",
"location_id": "00000000-0000-0000-0000-000000001280",
"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: f58df26f2a06d83584ccd9011359bea2-a267d1f0375ed619-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-0000000045c2",
"role": {
"id": "00000000-0000-0000-0000-000000004735",
"name": "Admin 1642"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "4acc4c65-7d78-4ec0-9b95-62a190ccde84",
"inserted_datetime": "2026-06-18T17:28:27.881719Z",
"internal_notes": null,
"inventory_source": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001ae1",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "4164fa3c-e3a0-4305-b361-9fa768d90a01",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000036c6",
"id": "00000000-0000-0000-0000-000000001280",
"license_id": "00000000-0000-0000-0000-000000000444",
"name": "Place 341"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "0eb9f51f-23a4-4543-a1c2-08953e58395b",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-18T17:28:27.845029Z"
},
"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-06-18T17:28:27.881719Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMTAsImlhdCI6MTc4MTgwMzcxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMGI4NTM2ZjctYzM0Ny00YWU0LThhYWUtNzZhNzUzMjBkMWUxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg1NzMiLCJ0eXAiOiJhY2Nlc3MifQ.5X2S0foCbIrWjhA4EMISXJG7wX9yTMyOxvJHycmsWjc
{
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000001359",
"price_base": "10.000000000",
"product_id": "0f8cc424-a3dc-4dea-a64f-7aa589450560",
"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: 52898fad33963b091d07716e8d99fd2b-aeffa0bbe1e89c70-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-00000000488d",
"role": {
"id": "00000000-0000-0000-0000-0000000049f7",
"name": "Admin 2348"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "bde8f87d-bf4c-45e9-880f-e09731c2c18c",
"inserted_datetime": "2026-06-18T17:28:30.695420Z",
"internal_notes": null,
"inventory_source": null,
"items": [
{
"batch": null,
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "44146405-5d4a-4acb-a64c-3ced483e6f52",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000038e0",
"id": "00000000-0000-0000-0000-000000001359",
"license_id": "00000000-0000-0000-0000-00000000047f",
"name": "Place 558"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "0f8cc424-a3dc-4dea-a64f-7aa589450560",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-18T17:28:30.684135Z"
},
"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-06-18T17:28:30.695420Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMTUsImlhdCI6MTc4MTgwMzcxNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjE2ZTM2ODctZDVkNS00YjI4LTk0ZWEtOGQ4ZjY0MTQ4NjBhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzE0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTkwMDQiLCJ0eXAiOiJhY2Nlc3MifQ.83QbqWW8OFCl5D-_0DoVL1j8J4FqrCQHE6zu3dkn1cA
{
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"compliance_quantity": "1.0000",
"is_sample": true,
"location_id": "00000000-0000-0000-0000-0000000013d5",
"package_id": "00000000-0000-0000-0000-000000000287",
"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: efd9b39ddec2d3440d7b6637c93b1a56-11463000ad98ec28-0
{
"data": {
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": null,
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2715@example.com",
"full_name": "FirstName5500 LastName5501",
"id": "00000000-0000-0000-0000-000000004a3c",
"role": {
"id": "00000000-0000-0000-0000-000000004bb4",
"name": "Admin 2793"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "cc5404a6-727e-4610-95f5-55468159d87f",
"inserted_datetime": "2026-06-18T17:28:35.135513Z",
"internal_notes": null,
"inventory_source": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001d32",
"name": "B1"
},
"compliance_quantity": "1.0000",
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "96e0089b-68f1-4046-962b-d89fb489ce21",
"is_sample": true,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003a77",
"id": "00000000-0000-0000-0000-0000000013d5",
"license_id": "00000000-0000-0000-0000-0000000004ad",
"name": "Place 681"
},
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000000186",
"id": "00000000-0000-0000-0000-000000000287",
"metrc_label": "ABCDEF012345670000000186",
"status": "selling"
},
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "c98a3884-bf26-4b36-bfdb-c74d49b4f510",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-18T17:28:35.091894Z"
},
"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-06-18T17:28:35.135513Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMTAsImlhdCI6MTc4MTgwMzcxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjJhNGQwZmEtOGEwZC00MzdjLTk1ZGYtNmRmMzQ5ZDE4YzM3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg0NDIiLCJ0eXAiOiJhY2Nlc3MifQ.lA6Et3VC1Kbo8MOtkvLpIRvSIBSQAZVrvKeGxTs_CSo
{
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000001337",
"price_base": "10.000000000",
"product_id": "05e4b853-47ce-4a4f-af21-0fe1f4f5602b",
"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: 276b91a6b06e146de5f431a34e728cc1-919518587793dfbe-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-00000000480a",
"role": {
"id": "00000000-0000-0000-0000-000000004977",
"name": "Admin 2220"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "4f37459d-9180-4a46-ac45-da9a0924318c",
"inserted_datetime": "2026-06-18T17:28:30.099803Z",
"internal_notes": null,
"inventory_source": null,
"items": [
{
"batch": null,
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "51217dec-d0da-4205-82a8-b63eb49c3d0d",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003889",
"id": "00000000-0000-0000-0000-000000001337",
"license_id": "00000000-0000-0000-0000-000000000471",
"name": "Place 524"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "05e4b853-47ce-4a4f-af21-0fe1f4f5602b",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-18T17:28:30.090077Z"
},
"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-06-18T17:28:30.099803Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDgsImlhdCI6MTc4MTgwMzcwOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTA5YWU5YmQtZDk0Yy00MWVkLWFjOGMtODkzNTcwNzY4NTIxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTgxNTUiLCJ0eXAiOiJhY2Nlc3MifQ.U6TG82X8mpWUvFQ0__DwAzl3p2IL-rSgTTHm0QzjaFE
{
"billing_location_id": "00000000-0000-0000-0000-0000000012e1",
"charges": [],
"company_id": "00000000-0000-0000-0000-0000000025e2",
"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": "f5ce7471-61f4-4c2c-aee9-edebf5603aeb",
"location_id": "00000000-0000-0000-0000-0000000012e1",
"package_id": "00000000-0000-0000-0000-000000000270",
"price_base": "10.000000000",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-0000000012e1",
"metrc_transfer_template_directions": "Go to the store around the corner",
"metrc_transfer_template_recipient_license_number": "C12-0123458-LIC",
"metrc_transfer_template_status": "PENDING",
"metrc_transfer_template_transporter_info": [
{
"driver_license_number": "1234567890",
"driver_name": "John Doe",
"driver_occupational_license_number": "1234567890",
"driver_phone_number": "1234567890",
"estimated_arrival_datetime": "2020-01-01T10:30:00.000000Z",
"estimated_departure_datetime": "2020-01-01T08:00:00.000000Z",
"transporter_license_number": "C12-0123456-LIC",
"vehicle_license_plate_number": "1234567890",
"vehicle_make": "Toyota",
"vehicle_model": "Prius"
},
{
"driver_license_number": "1234567891",
"driver_name": "Jane Doe",
"driver_occupational_license_number": "1234567891",
"estimated_arrival_datetime": "2020-01-01T16:45:00.000000Z",
"estimated_departure_datetime": "2020-01-01T14:00:00.000000Z",
"transporter_license_number": "C12-0123457-LIC",
"vehicle_license_plate_number": "1234567891",
"vehicle_make": "Toyota",
"vehicle_model": "Corolla"
}
],
"metrc_transfer_template_type": "Transfer",
"order_datetime": "2020-01-01T00:00:02.000000Z",
"owner_id": "00000000-0000-0000-0000-0000000046eb",
"shipping_location_id": "00000000-0000-0000-0000-0000000012e1",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: d660195ae053b1de49b691c41174d0af-1696b4ea359d79e0-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000037ad",
"id": "00000000-0000-0000-0000-0000000012e1",
"license_id": "00000000-0000-0000-0000-00000000045f",
"license_number": "CDPH-00000099",
"name": "Place 438"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000025e2",
"name": "Company 1444",
"updated_datetime": "2026-06-18T17:28:28.867858Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-0000000046eb",
"role": {
"id": "00000000-0000-0000-0000-000000004859",
"name": "Admin 1934"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "85463e45-1842-4e1a-b7bb-8310a45da505",
"inserted_datetime": "2026-06-18T17:28:28.994194Z",
"internal_notes": null,
"inventory_source": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000037ad",
"id": "00000000-0000-0000-0000-0000000012e1",
"license_id": "00000000-0000-0000-0000-00000000045f",
"license_number": "CDPH-00000099",
"name": "Place 438"
},
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001b76",
"name": "B2"
},
"compliance_quantity": "1.0000",
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "f5ce7471-61f4-4c2c-aee9-edebf5603aeb",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000037ad",
"id": "00000000-0000-0000-0000-0000000012e1",
"license_id": "00000000-0000-0000-0000-00000000045f",
"name": "Place 438"
},
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000000142",
"id": "00000000-0000-0000-0000-000000000270",
"metrc_label": "ABCDEF012345670000000142",
"status": "selling"
},
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "3faeb9ff-f5c7-4d41-af10-f979109ce20f",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-18T17:28:28.927870Z"
},
"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-0000000046eb",
"role": {
"id": "00000000-0000-0000-0000-000000004859",
"name": "Admin 1934"
}
},
"payment_term_name": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000037ad",
"id": "00000000-0000-0000-0000-0000000012e1",
"license_id": "00000000-0000-0000-0000-00000000045f",
"license_number": "CDPH-00000099",
"name": "Place 438"
},
"status": "PROCESSING",
"total": "10.00",
"updated_datetime": "2026-06-18T17:28:29.050218Z"
}
}
POST /public/v1/orders updates an order
POST /public/v1/orders
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMTIsImlhdCI6MTc4MTgwMzcxMiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNjYyMDU2NDQtZTliOC00Mzg1LWEzM2ItMDBhMzc2NzNjOGQzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzExLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg3NjgiLCJ0eXAiOiJhY2Nlc3MifQ.JSlzrqceOCFqubU6bgSGfcc06YK60MZra1K8SYh1C9M
{
"billing_location_id": "00000000-0000-0000-0000-000000001391",
"charges": [
{
"id": "9fbf0841-8c30-4927-8bef-b3a4776365ed",
"name": "C1",
"percent": "10.0000",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "72c4fd4a-8dd8-442c-8c73-b50c7dbfc74a",
"name": "C2",
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company_id": "00000000-0000-0000-0000-000000002763",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": "gonna make you sweat",
"id": "0edbf4e3-cfe8-4e9b-8e30-fe6905f3b707",
"items": [
{
"id": "123383b1-d337-4630-8d2a-6972d30f1ecb",
"is_sample": true,
"location_id": "00000000-0000-0000-0000-000000001391",
"price_base": "10.000000000",
"product_id": "a52a1586-1d75-4918-8431-5c11fe891106",
"quantity": "2.000000000"
},
{
"id": "3a6f48dd-b91f-4d34-96b6-ea88a7207b1e",
"location_id": "00000000-0000-0000-0000-000000001391",
"price_base": "100.000000000",
"product_id": "a52a1586-1d75-4918-8431-5c11fe891106",
"quantity": "3.000000000"
},
{
"compliance_quantity": "1.0000",
"id": "e3aebdc8-bd34-4525-a4ca-b68586f082a1",
"location_id": "00000000-0000-0000-0000-000000001391",
"package_id": "00000000-0000-0000-0000-000000000280",
"price_base": "10.000000000",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000001391",
"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-00000000495c",
"shipping_location_id": "00000000-0000-0000-0000-000000001391",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 7b082b1bef22ead71a31841221f7833d-50654eec389374bc-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000398d",
"id": "00000000-0000-0000-0000-000000001391",
"license_id": "00000000-0000-0000-0000-000000000497",
"license_number": "CDPH-00000155",
"name": "Place 614"
},
"biotrack_id": null,
"charges": [
{
"id": "9fbf0841-8c30-4927-8bef-b3a4776365ed",
"name": "C1",
"percent": "10.0000",
"price": "33.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "72c4fd4a-8dd8-442c-8c73-b50c7dbfc74a",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000002763",
"name": "Company 1921",
"updated_datetime": "2026-06-18T17:28:32.084267Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-00000000494e",
"role": {
"id": "00000000-0000-0000-0000-000000004abd",
"name": "Admin 2546"
}
},
"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": "0edbf4e3-cfe8-4e9b-8e30-fe6905f3b707",
"inserted_datetime": "2026-06-18T17:28:32.109030Z",
"internal_notes": null,
"inventory_source": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000398d",
"id": "00000000-0000-0000-0000-000000001391",
"license_id": "00000000-0000-0000-0000-000000000497",
"license_number": "CDPH-00000155",
"name": "Place 614"
},
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c98",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "123383b1-d337-4630-8d2a-6972d30f1ecb",
"is_sample": true,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000398d",
"id": "00000000-0000-0000-0000-000000001391",
"license_id": "00000000-0000-0000-0000-000000000497",
"name": "Place 614"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "a52a1586-1d75-4918-8431-5c11fe891106",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-18T17:28:32.097042Z"
},
"quantity": "2.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c98",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "3a6f48dd-b91f-4d34-96b6-ea88a7207b1e",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000398d",
"id": "00000000-0000-0000-0000-000000001391",
"license_id": "00000000-0000-0000-0000-000000000497",
"name": "Place 614"
},
"package": null,
"price": "100.000000000",
"price_base": "100.000000000",
"product": {
"id": "a52a1586-1d75-4918-8431-5c11fe891106",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-18T17:28:32.097042Z"
},
"quantity": "3.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c9b",
"name": "B2"
},
"compliance_quantity": "1.0000",
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "e3aebdc8-bd34-4525-a4ca-b68586f082a1",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000398d",
"id": "00000000-0000-0000-0000-000000001391",
"license_id": "00000000-0000-0000-0000-000000000497",
"name": "Place 614"
},
"package": {
"batch_number": "B2",
"compliance_label": "ABCDEF012345670000000176",
"id": "00000000-0000-0000-0000-000000000280",
"metrc_label": "ABCDEF012345670000000176",
"status": "selling"
},
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "b2f9e511-b99e-42f7-9822-2fbea252a0e2",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-06-18T17:28:32.118354Z"
},
"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-113",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-2502@example.com",
"full_name": "FirstName5074 LastName5075",
"id": "00000000-0000-0000-0000-00000000495c",
"role": {
"id": "00000000-0000-0000-0000-000000004acb",
"name": "Admin 2560"
}
},
"payment_term_name": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000398d",
"id": "00000000-0000-0000-0000-000000001391",
"license_id": "00000000-0000-0000-0000-000000000497",
"license_number": "CDPH-00000155",
"name": "Place 614"
},
"status": "PROCESSING",
"total": "358.00",
"updated_datetime": "2026-06-18T17:28:32.253372Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDksImlhdCI6MTc4MTgwMzcwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMWY3ODUzZmEtYmMxYi00Yzk1LWI5YmMtOWQ2ZTBmNWQ0MTY3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTgzNjUiLCJ0eXAiOiJhY2Nlc3MifQ.sYPJAGLg57MhD1XknMRs7IOYY7NL90I-mBSqSZYpe-I
{
"billing_location_id": "00000000-0000-0000-0000-00000000131e",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000002667",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000000131e",
"position": 1,
"price_base": "100.000000000",
"product_id": "3eaa1018-d56b-47c7-b0d2-2b5726add067",
"quantity": "10.000000000"
},
{
"location_id": "00000000-0000-0000-0000-00000000131e",
"position": 2,
"price_base": "200.000000000",
"product_id": "de709652-ae1c-43a9-9900-68ad25b47f09",
"quantity": "10.000000000"
},
{
"location_id": "00000000-0000-0000-0000-00000000131e",
"position": 3,
"price_base": "300.000000000",
"product_id": "4eba5c67-b308-4fc4-ac57-b437d5631e4e",
"quantity": "10.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-00000000131e",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 59e73eca5f3294e4a8bd636f2cf0bb33-a1ee825930041699-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000384f",
"id": "00000000-0000-0000-0000-00000000131e",
"license_id": "00000000-0000-0000-0000-00000000046a",
"license_number": "CDPH-00000110",
"name": "Place 499"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000002667",
"name": "Company 1605",
"updated_datetime": "2026-06-18T17:28:29.693219Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2096@example.com",
"full_name": "FirstName4262 LastName4263",
"id": "00000000-0000-0000-0000-0000000047bd",
"role": {
"id": "00000000-0000-0000-0000-000000004928",
"name": "Admin 2141"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "4695a861-dba6-468a-a409-c4a855c37b52",
"inserted_datetime": "2026-06-18T17:28:29.831289Z",
"internal_notes": null,
"inventory_source": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001bd9",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "ff8052a1-3bd1-4310-b20c-64f4c69c239a",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000384f",
"id": "00000000-0000-0000-0000-00000000131e",
"license_id": "00000000-0000-0000-0000-00000000046a",
"name": "Place 499"
},
"package": null,
"price": "90.000000000",
"price_base": "100.000000000",
"product": {
"id": "3eaa1018-d56b-47c7-b0d2-2b5726add067",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-18T17:28:29.746982Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001bdb",
"name": "B2"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "13338713-248d-4c96-b2a7-b5529f58174d",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000384f",
"id": "00000000-0000-0000-0000-00000000131e",
"license_id": "00000000-0000-0000-0000-00000000046a",
"name": "Place 499"
},
"package": null,
"price": "200.000000000",
"price_base": "200.000000000",
"product": {
"id": "de709652-ae1c-43a9-9900-68ad25b47f09",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-06-18T17:28:29.768633Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001bde",
"name": "B3"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "6cb13cfa-d8d9-4f04-9fde-745942a1d1d2",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000384f",
"id": "00000000-0000-0000-0000-00000000131e",
"license_id": "00000000-0000-0000-0000-00000000046a",
"name": "Place 499"
},
"package": null,
"price": "290.000000000",
"price_base": "300.000000000",
"product": {
"id": "4eba5c67-b308-4fc4-ac57-b437d5631e4e",
"name": "P3",
"sku": "SKU3",
"updated_datetime": "2026-06-18T17:28:29.782300Z"
},
"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-00000000384f",
"id": "00000000-0000-0000-0000-00000000131e",
"license_id": "00000000-0000-0000-0000-00000000046a",
"license_number": "CDPH-00000110",
"name": "Place 499"
},
"status": "PROCESSING",
"total": "5800.00",
"updated_datetime": "2026-06-18T17:28:29.864026Z"
}
}
POST /public/v1/orders deleting order items & charges
POST /public/v1/orders
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMTEsImlhdCI6MTc4MTgwMzcxMSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMmNjOTg2NGQtYjAwMi00ZTc5LWIxZGYtM2QxOTA5MTFmNGY4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzEwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg3MzkiLCJ0eXAiOiJhY2Nlc3MifQ.mn2Gltc8B-W91F1-sVdcXaWM-BmavO0dFQAamzkOO2E
{
"billing_location_id": "00000000-0000-0000-0000-000000001389",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000002751",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"id": "6c591dcb-19b7-4184-a767-31412df7401a",
"items": [
{
"id": "b7d05dfc-9e8e-417d-80b3-9fabe910b616",
"location_id": "00000000-0000-0000-0000-000000001389",
"price_base": "10.000000000",
"product_id": "c83e3c0b-d843-4113-ad8f-919e37212bbf",
"quantity": "1.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-000000001389",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 4bb74ab450def24ef944a4f03320e16c-6636b839e74f8f47-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003976",
"id": "00000000-0000-0000-0000-000000001389",
"license_id": "00000000-0000-0000-0000-000000000494",
"license_number": "CDPH-00000152",
"name": "Place 606"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000002751",
"name": "Company 1898",
"updated_datetime": "2026-06-18T17:28:31.858682Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000004933",
"role": {
"id": "00000000-0000-0000-0000-000000004aa0",
"name": "Admin 2517"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "6c591dcb-19b7-4184-a767-31412df7401a",
"inserted_datetime": "2026-06-18T17:28:31.883355Z",
"internal_notes": null,
"inventory_source": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003976",
"id": "00000000-0000-0000-0000-00000000138a",
"license_id": null,
"license_number": null,
"name": "Place 607"
},
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c8b",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "b7d05dfc-9e8e-417d-80b3-9fabe910b616",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003976",
"id": "00000000-0000-0000-0000-000000001389",
"license_id": "00000000-0000-0000-0000-000000000494",
"name": "Place 606"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "c83e3c0b-d843-4113-ad8f-919e37212bbf",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-18T17:28:31.872859Z"
},
"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-108",
"owner": null,
"payment_term_name": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003976",
"id": "00000000-0000-0000-0000-000000001389",
"license_id": "00000000-0000-0000-0000-000000000494",
"license_number": "CDPH-00000152",
"name": "Place 606"
},
"status": "PROCESSING",
"total": "10.00",
"updated_datetime": "2026-06-18T17:28:31.923666Z"
}
}
Upsert a single order. To update an existing order, pass in an existing order ID in the id field. When updating an order, you must pass in all fields (no sparse update currently supported). Any existing order item or charge you do not pass in to items and charges respectively will be deleted. Required permission: orders_permissions_create to create a new order, orders_permissions_edit (and access to the order under team restrictions) to update an existing order.
Request
POST /public/v1/orders
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| biotrack_id | The Biotrack ID for this order | query | string | false | ||
| blaze_payment_type | The payment type for an order shipping to a Blaze-associated company. Required when the company being used is mapped to a Blaze retailer via the Distru integration. | query | string | false | CASH | |
| company_id | Company ID | query | string | false | ||
| delivery_datetime | The datetime on which the order was / will be delivered | query | string | false | ||
| due_datetime | The datetime by which the order should be completed for the customer | query | string | false | ||
| external_notes | This is a message that will be shown to the customer on order slips. This is the "Message to Customer" field in the Distru order form. | query | string | false | ||
| id | Unique ID for this order. If it exists, an update will be performed; otherwise, it will be used as the ID of a new order record | query | string | false | ||
| order_datetime | The datetime on which the order was placed | query | string | false | ||
| charges | The additional lines of Charge, Discount, or Tax added to this order | body | OrderChargesRequest | false | ||
| items | The order items present on this order | body | OrderItemsRequest | false | ||
| internal_notes | Internal notes for this order | query | string | false | ||
| metrc_transfer_template_transporter_info | The Metrc transfer template transporter(s) information about this order | body | OrderTransferTemplateTransporterInfosRequest | false | ||
| metrc_transfer_template_directions | The Metrc transfer template directions | query | string | false | ||
| metrc_transfer_id | The Metrc transfer ID for this order | query | integer | false | ||
| metrc_transfer_template_recipient_license_number | The Metrc transfer template recipient license number | query | string | false | ||
| metrc_transfer_template_status | The Metrc transfer template status | query | string | false | ||
| metrc_transfer_template_type | The Metrc transfer template type | query | string | false | ||
| billing_location_id | The billing location's ID | query | string | false | ||
| shipping_location_id | The shipping location's ID | query | string | false | ||
| owner_id | The ID of the Distru user that owns this order | query | string | false | ||
| status | Filter orders by their status. Accepted values are "PENDING", "PROCESSING", "READY_TO_SHIP", "DELIVERING", "DELIVERED", "COMPLETED" and "CANCELED". | query | string | false | PENDING | |
| custom_data | A map of custom field IDs to their values. Use GET /public/v1/custom-fields?model_name=order to retrieve available custom fields and their IDs. | body | object | false | {"123":"Custom Value 1","456":"Custom Value 2"} |
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDcsImlhdCI6MTc4MTgwMzcwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDc0M2Y2Y2QtMTU4OS00ZWExLWE0ZmEtMmNiNjYzODk4ZWU0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc4NzYiLCJ0eXAiOiJhY2Nlc3MifQ.WEJ-B_pvDzs--I_o69OUQ0vNkP-cKPobTov5gP38LNo
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 800d30a63cf9a5f77f9be5f0d6b7a450-a8d112a9dfcc8e0c-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000122",
"custom_data": [
{
"id": 438,
"name": "Custom Field 33",
"value": "Custom Field Value 1"
}
],
"expiration_date": "2024-01-01T00:00:00.000000Z",
"harvest_date": "2024-06-15",
"id": "00000000-0000-0000-0000-000000000266",
"is_trade_sample": true,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-000000000446",
"license_number": "CDPH-00000074"
},
"location": {
"id": "00000000-0000-0000-0000-000000001291",
"name": "Place 358"
},
"metrc_label": "ABCDEF012345670000000122",
"packaged_date": "2024-07-01",
"primary_test_result": null,
"product_id": "44ef4ba6-c140-4888-b271-7f435429d8c4",
"product_unit_quantity": "7.500000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-00000002b6f3",
"name": "3"
},
"quantity": "5.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "5.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-00000002b6f4",
"name": "2"
}
},
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000124",
"custom_data": [
{
"id": 438,
"name": "Custom Field 33",
"value": null
}
],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-000000000267",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-000000000446",
"license_number": "CDPH-00000074"
},
"location": {
"id": "00000000-0000-0000-0000-000000001298",
"name": "Place 365"
},
"metrc_label": "ABCDEF012345670000000124",
"packaged_date": null,
"primary_test_result": {
"cbd_mg_per_unit": "1",
"cbd_mg_per_unit_total": "2",
"cbd_percentage": "3",
"cbd_percentage_total": "4",
"mg_per_unit_type": "mg/mL",
"name": "File.pdf",
"thc_mg_per_unit": "5",
"thc_mg_per_unit_total": "6",
"thc_percentage": "7",
"thc_percentage_total": "8"
},
"product_id": "44ef4ba6-c140-4888-b271-7f435429d8c4",
"product_unit_quantity": "15.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-00000002b6f3",
"name": "3"
},
"quantity": "20.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "20.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-00000002b6f5",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDcsImlhdCI6MTc4MTgwMzcwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDM2NjgyNjktZjY0OC00NGQzLWI0NWEtNTQyNGZhY2YxMTQxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc2MTEiLCJ0eXAiOiJhY2Nlc3MifQ.PpfM7HtRM3n3UX3VbOY6mBbkZD-9GyPGhRfHDjvNu-Q
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: f4f8803e531db930493cb6d2c2ca2012-66ab808beeafe0fa-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000092",
"cost_per_unit_actual": "0.4",
"cost_per_unit_default": "0.2",
"custom_data": [],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-000000000257",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-000000000435",
"license_number": "CDPH-00000057"
},
"location": {
"id": "00000000-0000-0000-0000-000000001245",
"name": "Place 282"
},
"metrc_label": "ABCDEF012345670000000092",
"packaged_date": "2014-11-29",
"primary_test_result": null,
"product_id": "4c63a220-941f-4afa-ae1b-5b6da54f9cb0",
"product_unit_quantity": "141.747462720",
"product_unit_type": {
"id": "00000000-0000-0000-0000-00000002ac42",
"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-00000002ac44",
"name": "Ounce"
}
}
],
"next_page": null
}
GET /public/v1/packages allows filtering by product_ids
GET /public/v1/packages?product_ids[]=bf1e8e99-39ee-4e96-98de-6c1763026b24&product_ids[]=8bd4bd07-bd08-48ca-82f4-f82f1e740717
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDcsImlhdCI6MTc4MTgwMzcwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMmNjMzE2NTMtMDhmNS00YWI3LTg0YzQtMmViOGU1ZGY2ZWE0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc3NzgiLCJ0eXAiOiJhY2Nlc3MifQ.6o1ODEdOcUJtrW_CPCA_aI9dhXS70LQQVCOzADuwlbU
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 2645483c558a76654efb397d57934dfb-ae9cdf9d4159ed21-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000105",
"custom_data": [],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-00000000025d",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-00000000043e",
"license_number": "CDPH-00000066"
},
"location": {
"id": "00000000-0000-0000-0000-00000000126a",
"name": "Place 319"
},
"metrc_label": "ABCDEF012345670000000105",
"packaged_date": null,
"primary_test_result": null,
"product_id": "bf1e8e99-39ee-4e96-98de-6c1763026b24",
"product_unit_quantity": "10.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-00000002b31d",
"name": "Gram"
},
"quantity": "10.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "10.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-00000002b31d",
"name": "Gram"
}
},
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000107",
"custom_data": [],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-00000000025e",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-00000000043e",
"license_number": "CDPH-00000066"
},
"location": {
"id": "00000000-0000-0000-0000-00000000126b",
"name": "Place 320"
},
"metrc_label": "ABCDEF012345670000000107",
"packaged_date": null,
"primary_test_result": null,
"product_id": "8bd4bd07-bd08-48ca-82f4-f82f1e740717",
"product_unit_quantity": "10.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-00000002b31d",
"name": "Gram"
},
"quantity": "10.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "10.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-00000002b31d",
"name": "Gram"
}
}
],
"next_page": null
}
GET /public/v1/packages allows filtering by ids
GET /public/v1/packages?ids[]=00000000-0000-0000-0000-000000000259
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDcsImlhdCI6MTc4MTgwMzcwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjMzMTQ0MmEtZjY0Ni00OWNkLTk1ZGUtMjFjZTk5MDIwZjNkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc2OTYiLCJ0eXAiOiJhY2Nlc3MifQ.Xom7ofKUHHfnRq8aRBN_KBTn9eIxHSAXH2j5mGJ4o-I
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: cff486f0435411ff2a25a082b849b327-83c57e3cd62ede1e-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000097",
"custom_data": [],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-000000000259",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-000000000439",
"license_number": "CDPH-00000061"
},
"location": {
"id": "00000000-0000-0000-0000-000000001258",
"name": "Place 301"
},
"metrc_label": "ABCDEF012345670000000097",
"packaged_date": null,
"primary_test_result": null,
"product_id": "074ca52b-ee4c-4f1b-9ead-de1a8baab580",
"product_unit_quantity": "10.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-00000002afe1",
"name": "Gram"
},
"quantity": "10.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "10.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-00000002afe1",
"name": "Gram"
}
}
],
"next_page": null
}
GET /public/v1/packages allows filtering by location_ids
GET /public/v1/packages?location_ids[]=00000000-0000-0000-0000-000000001272&location_ids[]=00000000-0000-0000-0000-000000001273
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDcsImlhdCI6MTc4MTgwMzcwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjA5MDhjYjEtMWQxZi00ODIxLWJhYjgtNzRhZTU4NDg5M2IxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc4MjAiLCJ0eXAiOiJhY2Nlc3MifQ.Be4wpf-EzVqL3zSgY5W3VHH-OqRJbFiW0uFRHmKiBH8
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: e110d2b490c0d61e1dad4f1abec0625c-582bed4d7ddedd15-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000113",
"custom_data": [],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-000000000261",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-000000000441",
"license_number": "CDPH-00000069"
},
"location": {
"id": "00000000-0000-0000-0000-000000001272",
"name": "Place 327"
},
"metrc_label": "ABCDEF012345670000000113",
"packaged_date": null,
"primary_test_result": null,
"product_id": "fd2308f2-9b0f-4325-b873-954e43ced051",
"product_unit_quantity": "10.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-00000002b479",
"name": "Gram"
},
"quantity": "10.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "10.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-00000002b479",
"name": "Gram"
}
},
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000115",
"custom_data": [],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-000000000262",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-000000000441",
"license_number": "CDPH-00000069"
},
"location": {
"id": "00000000-0000-0000-0000-000000001273",
"name": "Place 328"
},
"metrc_label": "ABCDEF012345670000000115",
"packaged_date": null,
"primary_test_result": null,
"product_id": "af505e4f-3899-413f-b1d0-7f0c61cf90f3",
"product_unit_quantity": "10.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-00000002b479",
"name": "Gram"
},
"quantity": "10.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "10.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-00000002b479",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDMsImlhdCI6MTc4MTgwMzcwMywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzRmNmEwMGYtYjk3Yy00NmY4LTk4MGItYmNjNjEwNjM3ODM1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzAyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTYzNTQiLCJ0eXAiOiJhY2Nlc3MifQ.W58ny_rqB3aTbvAfTU0hdynpauCiQwjAfOmLq_v4ntI
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 0b2ab442624b61af8c3ddc5cd0cf345c-4068fc25ba754c2e-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000007",
"custom_data": [],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-00000000022c",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-000000000400",
"license_number": "CDPH-00000004"
},
"location": {
"id": "00000000-0000-0000-0000-000000001143",
"name": "Place 24"
},
"metrc_label": "ABCDEF012345670000000007",
"packaged_date": "2014-11-29",
"primary_test_result": null,
"product_id": "af6331b8-5525-4e70-a81f-f2c0968c6af4",
"product_unit_quantity": "1.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-000000027d4c",
"name": "Ounce"
},
"quantity": "1.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "1.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-000000027d4c",
"name": "Ounce"
}
},
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000018",
"custom_data": [],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-000000000230",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-000000000400",
"license_number": "CDPH-00000004"
},
"location": {
"id": "00000000-0000-0000-0000-000000001199",
"name": "Place 110"
},
"metrc_label": "ABCDEF012345670000000018",
"packaged_date": "2014-11-29",
"primary_test_result": null,
"product_id": "88993bdf-00c0-420a-8d4f-440490da3710",
"product_unit_quantity": "0.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-000000027d4c",
"name": "Ounce"
},
"quantity": "0.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "0.000000000",
"status": "finished",
"unit_type": {
"id": "00000000-0000-0000-0000-000000027d4c",
"name": "Ounce"
}
}
],
"next_page": null
}
Get packages sorted by their creation date and filtered by various attributes
Note: The page size for this endpoint is 5000 packages per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Required permission: products_permissions_view. Results are filtered to
only include packages the authenticated user can access under their team
restrictions.
Request
GET /public/v1/packages
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| inserted_datetime | Filter packages by their creation datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| page | Pagination information | query | number | false | ?page[number]=1 | |
| location_ids | A list of location UUIDs to filter packages by. | query | array | false | ?location_ids[]=c40e87ce-0647-409b-89fa-620275d77fcc&location_ids[]=65ca530a-1ea2-439b-b4c2-598abb1fc6f3 | |
| license_number | Filter packages by license number | query | string | false | 1234567890 | |
| ids | Filter packages by package ID (same UUID string as each package's id in responses). Values that do not decode to an internal package id match no rows. | query | array | false | ?ids[]=00000000-0000-0000-0000-000000000001&ids[]=00000000-0000-0000-0000-000000000002 | |
| product_ids | Filter packages by product ID | query | array | false | ?product_ids[]=c40e87ce-0647-409b-89fa-620275d77fcc&product_ids[]=65ca530a-1ea2-439b-b4c2-598abb1fc6f3 | |
| statuses | Filter packages by their status | query | array | false | ?statuses[]=active&statuses[]=selling&statuses[]=sold | |
| updated_datetime | Filter packages by the datetime they were most recently modified | query | string | false | ,2022-07-10T00:00:00Z |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A list of packages | Packages |
PaymentMethod
Get payment methods
GET /public/v1/payments/methods returns payment methods related to the user's company only
GET /public/v1/payment-methods
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDMsImlhdCI6MTc4MTgwMzcwMywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMmYxM2JlNDEtZDM5NC00NzBiLWJmZmMtYjJkMzk2OTcxMzQwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzAyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTY1NTciLCJ0eXAiOiJhY2Nlc3MifQ.ITUuPmVP-OtSqXgelkfhtwe7XoZhHcYNh0p5nL-mq3M
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: d2882135b6d289e846621f48e19ce8fc-288435056710969d-0
{
"data": [
{
"deleted_at": null,
"id": "00000000-0000-0000-0000-000000000067",
"name": "Payment Method 7"
}
],
"next_page": null
}
Get payment methods. Note: This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Required permission: settings_permissions_payment_methods.
Request
GET /public/v1/payment-methods
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| deleted | Filter deleted payment methods. no returns non-deleted, only returns deleted, include returns both. |
query | string | false | no |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A list of payment methods | PaymentMethods |
Get a payment method
GET /public/v1/payment-methods/:id returns a single payment method
GET /public/v1/payment-methods/00000000-0000-0000-0000-000000000060
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDMsImlhdCI6MTc4MTgwMzcwMywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDQ5MWU3ODktZTgwNy00NGVmLWIyNWEtMjlkZmExYzcwMjk5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzAyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTYzMjkiLCJ0eXAiOiJhY2Nlc3MifQ.B3lMa9hwJbPZmp8euMbd2tGs8KOkb4lmQ7T_FlB8Zrs
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: cba9cc1fd41d92c6490ec5016ec5e3b8-ee9575256cf81138-0
{
"data": {
"deleted_at": null,
"id": "00000000-0000-0000-0000-000000000060",
"name": "Cash"
}
}
Get a single payment method given the ID.
Required permission: settings_permissions_payment_methods.
Request
GET /public/v1/payment-methods/{id}
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Payment Method ID | path | string | true |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single payment method | PaymentMethod |
| 404 | Not Found |
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDcsImlhdCI6MTc4MTgwMzcwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTZhNjYyNjUtNzcxNy00NzRiLWI3MDQtMGIzMzVkY2Y2MDg0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc4ODMiLCJ0eXAiOiJhY2Nlc3MifQ.zAHLg7Z1kArxfOAtovRxRbyCVE50WA3hwLl9P3LGGd8
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 49a80a99bb4e67615d773005fbe14c49-736b167dd0ff27d0-0
{
"data": [
{
"brand": {
"id": "00000000-0000-0000-0000-000000002534",
"name": "Company 1238",
"updated_datetime": "2030-11-01T00:00:00.000000Z"
},
"category": {
"id": "00000000-0000-0000-0000-000000001c13",
"name": "Some category 559",
"type": "OTHER"
},
"custom_data": [
{
"id": 439,
"name": "Custom Field 34",
"value": "Custom Field Value 1"
}
],
"deleted_at": null,
"description": "test",
"description_markdown": "# test",
"external_name": "External Name",
"id": "5812f089-1e6f-4902-871c-eb16c7dca05e",
"images": [
{
"id": "00000000-0000-0000-0000-000000000042",
"name": "Image Name 110",
"rank": 0,
"url": "https://google.com/original-5.jpg"
},
{
"id": "00000000-0000-0000-0000-000000000043",
"name": "Image Name 111",
"rank": 1,
"url": "https://google.com/original-6.jpg"
}
],
"is_active": true,
"menus": [],
"msrp": null,
"name": "Product 1609",
"product_group": {
"id": "00000000-0000-0000-0000-000000001be4",
"name": "Product Group 554"
},
"sku": "sku 1610",
"strain": {
"id": "00000000-0000-0000-0000-000000000138",
"name": "Strain 33",
"strain_type": "INDICA"
},
"subcategory": {
"id": "00000000-0000-0000-0000-000000001be4",
"name": "Some subcategory 554"
},
"unit_cost": null,
"unit_net_weight": "20",
"unit_net_weight_serving_size_unit_type": {
"id": "00000000-0000-0000-0000-00000002b6fa",
"name": "Ounce"
},
"unit_price": "1",
"unit_serving_size": "10",
"unit_type": {
"id": "00000000-0000-0000-0000-00000002b6f8",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2023-11-01T00:00:00.000000Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000002537",
"name": "Company 1243",
"updated_datetime": "2030-11-03T00:00:00.000000Z"
}
},
{
"brand": {
"id": "00000000-0000-0000-0000-000000002535",
"name": "Company 1241",
"updated_datetime": "2030-11-02T00:00:00.000000Z"
},
"category": {
"id": "00000000-0000-0000-0000-000000001c15",
"name": "Some category 561",
"type": "OTHER"
},
"custom_data": [
{
"id": 439,
"name": "Custom Field 34",
"value": null
}
],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "41c8117c-52e2-44eb-b716-f2106cecdffc",
"images": [],
"is_active": false,
"menus": [],
"msrp": "100",
"name": "Product 1614",
"product_group": {
"id": "00000000-0000-0000-0000-000000001be6",
"name": "Product Group 556"
},
"sku": "sku 1615",
"strain": null,
"subcategory": {
"id": "00000000-0000-0000-0000-000000001be6",
"name": "Some subcategory 556"
},
"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-00000002b6f6",
"name": "Pound"
},
"units_per_case": null,
"updated_datetime": "2023-11-02T00:00:00.000000Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000002539",
"name": "Company 1245",
"updated_datetime": "2030-11-04T00:00:00.000000Z"
}
}
],
"next_page": null
}
Get products sorted by their creation date and filtered by various attributes.
Note: The page size for this endpoint is 5000 products per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Required permission: products_permissions_view. Results are filtered to
only include products the authenticated user can access under their team
restrictions.
Request
GET /public/v1/products
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| product_name | Filter products by name substring | query | string | false | ||
| menu_id | Comma-separated public menu IDs; products in any of these menus are returned. Invalid tokens are ignored; if none remain, data is empty. |
query | string | false | ||
| menu_name | Case-insensitive substring match on menu name. When combined with menu_id, both conditions apply (AND). | query | string | false | ||
| inserted_datetime | Filter products by their creation datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| deleted | Filter deleted products. no returns non-deleted, only returns deleted, include returns both. |
query | string | false | no | |
| ids | Filter products by product ID (same UUID as each product's id in responses). | query | array | false | ?ids[]=550e8400-e29b-41d4-a716-446655440000&ids[]=6ba7b810-9dad-11d1-80b4-00c04fd430c8 | |
| page | Pagination information | query | number | false | ?page[number]=1 | |
| updated_datetime | Filter products by the datetime they were most recently modified | query | string | false | ,2022-07-10T00:00:00Z |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A list of products | Products |
Get a product
GET /public/v1/products/:id returns a single product
GET /public/v1/products/c60bddce-bf9c-4541-8b19-a1dd917fe8d4
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDgsImlhdCI6MTc4MTgwMzcwOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZWNjZDMwNzAtNDczNy00NTViLTkwYmMtN2Q4ZWZmNTgzNTBmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc5NjQiLCJ0eXAiOiJhY2Nlc3MifQ.1UjkmXBM5Rmvs6o2z1t-0ieWvmTz9a93xvrjiuXoqX4
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 9f0108b5e8b66b81a9fd8467dcd97b37-154e97d7284ade11-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-000000001c43",
"name": "Some category 607",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "c60bddce-bf9c-4541-8b19-a1dd917fe8d4",
"images": [],
"is_active": true,
"menus": [],
"msrp": null,
"name": "Test Product",
"product_group": {
"id": "00000000-0000-0000-0000-000000001c14",
"name": "Product Group 602"
},
"sku": "SKU001",
"strain": null,
"subcategory": {
"id": "00000000-0000-0000-0000-000000001c14",
"name": "Some subcategory 602"
},
"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-00000002ba89",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-06-18T17:28:28.190386Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000002571",
"name": "Company 1313",
"updated_datetime": "2026-06-18T17:28:28.187482Z"
}
}
}
Get a single product given the ID.
Required permission: products_permissions_view.
Request
GET /public/v1/products/{id}
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Product ID | path | string | true |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single product | Product |
| 404 | Not Found |
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDUsImlhdCI6MTc4MTgwMzcwNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjNkNWQ2NzYtZDhkNC00YTM2LTg2NDQtMzUxMzhlYjJjZTUzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTY5MzIiLCJ0eXAiOiJhY2Nlc3MifQ.vDnSwLJTpuZZL6fx-UJ2GliALmPkBjkDB6w4HfFfu-0
{
"vendor_id": "00000000-0000-0000-0000-000000002360",
"group_id": "00000000-0000-0000-0000-000000001a89",
"total_cannabinoid_unit": "PERCENT",
"strain_id": "00000000-0000-0000-0000-00000000012d",
"inventory_tracking_method": "PACKAGE",
"unit_serving_size": "2.2",
"msrp": "100.5",
"menu_visibility": "INCLUDE_IN_ALL",
"total_cbd": "5.2",
"description_markdown": "# My Product Description Markdown",
"sku": "12345",
"menus": [
"00000000-0000-0000-0000-0000000001d3"
],
"description": "My Product Description",
"name": "My Product",
"owner_id": "00000000-0000-0000-0000-000000004221",
"total_thc": "10.4",
"brand_id": "00000000-0000-0000-0000-000000002366",
"unit_cost": "50.4",
"category_id": "00000000-0000-0000-0000-000000001ab2",
"tags": [
"00000000-0000-0000-0000-00000000001a"
],
"quantity_available_threshold_min": "5.5",
"is_featured": true,
"custom_data": {
"396": "VIP"
},
"is_inactive": true,
"wholesale_unit_price": "90.50",
"quantity_available_threshold_max": "10.5",
"subcategory_id": "00000000-0000-0000-0000-000000001a88",
"upc": "036000291452",
"unit_net_weight": "3.1",
"unit_type_id": "00000000-0000-0000-0000-00000002928f",
"unit_price": "100",
"units_per_case": "0.2",
"unit_net_weight_and_serving_size_unit_type_id": "00000000-0000-0000-0000-000000029288"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: eb17e3aaca82fb51e4a8030b62c8520c-dc4b8f0e6617bc05-0
{
"data": {
"brand": {
"id": "00000000-0000-0000-0000-000000002366",
"name": "Company 536",
"updated_datetime": "2026-06-18T17:28:25.178391Z"
},
"category": {
"id": "00000000-0000-0000-0000-000000001ab2",
"name": "Some category 206",
"type": "OTHER"
},
"custom_data": [
{
"id": 396,
"name": "Custom Field 10",
"value": "VIP"
}
],
"deleted_at": null,
"description": "My Product Description",
"description_markdown": "# My Product Description Markdown",
"external_name": null,
"id": "14e219eb-9bdf-40f0-8682-498f173c1f91",
"images": [],
"is_active": false,
"menus": [
{
"menu_id": "00000000-0000-0000-0000-0000000001d3",
"menu_name": "Menu 107"
}
],
"msrp": "100.5",
"name": "My Product",
"product_group": {
"id": "00000000-0000-0000-0000-000000001a89",
"name": "Product Group 207"
},
"sku": "12345",
"strain": {
"id": "00000000-0000-0000-0000-00000000012d",
"name": "Strain 23",
"strain_type": null
},
"subcategory": {
"id": "00000000-0000-0000-0000-000000001a88",
"name": "Some subcategory 206"
},
"unit_cost": "50.4",
"unit_net_weight": "3.1",
"unit_net_weight_serving_size_unit_type": {
"id": "00000000-0000-0000-0000-000000029288",
"name": "Ounce"
},
"unit_price": "100",
"unit_serving_size": "2.2",
"unit_type": {
"id": "00000000-0000-0000-0000-00000002928f",
"name": "Unit"
},
"units_per_case": "0.2",
"updated_datetime": "2026-06-18T17:28:25.360508Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000002360",
"name": "Company 526",
"updated_datetime": "2026-06-18T17:28:25.142958Z"
}
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDUsImlhdCI6MTc4MTgwMzcwNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjA1MGVkN2MtNDMzMC00MmY3LTkzYzUtOGEwYjI4OGRiM2FjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTcxNDgiLCJ0eXAiOiJhY2Nlc3MifQ.3XynhVxc8obQeImfZRZUUclwqlkbcfOUNSUlj0B5CKo
{
"category_id": "00000000-0000-0000-0000-000000001ae1",
"inventory_tracking_method": "PACKAGE",
"name": "My Product",
"sku": "12345",
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-0000000299ca",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-0000000023a9"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 2af9c05300446c6f558c86f5bcea784e-279a6e1afa8f36b9-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-000000001ae1",
"name": "Some category 253",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "8a1dd182-0883-41ec-9ac5-1e5e65f3695d",
"images": [],
"is_active": true,
"menus": [],
"msrp": null,
"name": "My Product",
"product_group": null,
"sku": "12345",
"strain": null,
"subcategory": null,
"unit_cost": null,
"unit_net_weight": null,
"unit_net_weight_serving_size_unit_type": null,
"unit_price": "100",
"unit_serving_size": null,
"unit_type": {
"id": "00000000-0000-0000-0000-0000000299ca",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-06-18T17:28:25.828794Z",
"vendor": {
"id": "00000000-0000-0000-0000-0000000023a9",
"name": "Company 663",
"updated_datetime": "2026-06-18T17:28:25.722987Z"
}
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDUsImlhdCI6MTc4MTgwMzcwNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjA1MGVkN2MtNDMzMC00MmY3LTkzYzUtOGEwYjI4OGRiM2FjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTcxNDgiLCJ0eXAiOiJhY2Nlc3MifQ.3XynhVxc8obQeImfZRZUUclwqlkbcfOUNSUlj0B5CKo
{
"vendor_id": "00000000-0000-0000-0000-0000000023c9",
"group_id": "00000000-0000-0000-0000-000000001acc",
"total_cannabinoid_unit": "PERCENT",
"strain_id": "00000000-0000-0000-0000-000000000136",
"inventory_tracking_method": "PACKAGE",
"unit_serving_size": "2.2",
"msrp": "100.5",
"menu_visibility": "INCLUDE_IN_ALL",
"total_cbd": "5.2",
"sku": "45678",
"menus": [
"00000000-0000-0000-0000-0000000001dd"
],
"description": "My Product Description",
"name": "Updated Name",
"id": "8a1dd182-0883-41ec-9ac5-1e5e65f3695d",
"owner_id": "00000000-0000-0000-0000-00000000435a",
"total_thc": "10.4",
"brand_id": "00000000-0000-0000-0000-0000000023d0",
"unit_cost": "50.4",
"category_id": "00000000-0000-0000-0000-000000001af5",
"tags": [
"00000000-0000-0000-0000-00000000001b"
],
"quantity_available_threshold_min": "5.5",
"is_featured": true,
"is_inactive": true,
"wholesale_unit_price": "90.50",
"external_name": "External Name",
"quantity_available_threshold_max": "10.5",
"subcategory_id": "00000000-0000-0000-0000-000000001ac9",
"upc": "036000291453",
"unit_net_weight": "3.1",
"unit_type_id": "00000000-0000-0000-0000-0000000299d3",
"unit_price": "200",
"units_per_case": "0.2",
"unit_net_weight_and_serving_size_unit_type_id": "00000000-0000-0000-0000-0000000299cc"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 2af9c05300446c6f558c86f5bcea784e-3113b4fd645dc9fb-0
{
"data": {
"brand": {
"id": "00000000-0000-0000-0000-0000000023d0",
"name": "Company 725",
"updated_datetime": "2026-06-18T17:28:25.977813Z"
},
"category": {
"id": "00000000-0000-0000-0000-000000001af5",
"name": "Some category 273",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": "My Product Description",
"description_markdown": "My Product Description",
"external_name": "External Name",
"id": "8a1dd182-0883-41ec-9ac5-1e5e65f3695d",
"images": [],
"is_active": false,
"menus": [
{
"menu_id": "00000000-0000-0000-0000-0000000001dd",
"menu_name": "Menu 137"
}
],
"msrp": "100.5",
"name": "Updated Name",
"product_group": {
"id": "00000000-0000-0000-0000-000000001acc",
"name": "Product Group 274"
},
"sku": "45678",
"strain": {
"id": "00000000-0000-0000-0000-000000000136",
"name": "Strain 31",
"strain_type": null
},
"subcategory": {
"id": "00000000-0000-0000-0000-000000001ac9",
"name": "Some subcategory 271"
},
"unit_cost": "50.4",
"unit_net_weight": "3.1",
"unit_net_weight_serving_size_unit_type": {
"id": "00000000-0000-0000-0000-0000000299cc",
"name": "Ounce"
},
"unit_price": "200",
"unit_serving_size": "2.2",
"unit_type": {
"id": "00000000-0000-0000-0000-0000000299d3",
"name": "Unit"
},
"units_per_case": "0.2",
"updated_datetime": "2026-06-18T17:28:26.034278Z",
"vendor": {
"id": "00000000-0000-0000-0000-0000000023c9",
"name": "Company 712",
"updated_datetime": "2026-06-18T17:28:25.925245Z"
}
}
}
POST /public/v1/products Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjA4NzM1MmMtYzU2MC00ZWIxLWExMTAtN2RkMzhkNGExNTUzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc0MTQiLCJ0eXAiOiJhY2Nlc3MifQ.IDd3pbAIhTBvY6zT9cPlz-IVDe-Gwb-xiJnVcLPl1Q0
{
"category_id": "00000000-0000-0000-0000-000000001b4c",
"inventory_tracking_method": "PACKAGE",
"menu_visibility": "INCLUDE_IN_ALL",
"menus": [
"00000000-0000-0000-0000-0000000001e3"
],
"name": "My Product",
"sku": "12345",
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-00000002a48a",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-00000000243b"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 2ba067f7309958c2867fa1d15695cbd7-5fcf9219138e60e6-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-000000001b4c",
"name": "Some category 360",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "4a2197ef-7cbe-4222-bf12-4a76d4637f79",
"images": [],
"is_active": true,
"menus": [
{
"menu_id": "00000000-0000-0000-0000-0000000001e3",
"menu_name": "Menu 155"
},
{
"menu_id": "00000000-0000-0000-0000-0000000001e4",
"menu_name": "Menu 158"
},
{
"menu_id": "00000000-0000-0000-0000-0000000001e5",
"menu_name": "Menu 161"
}
],
"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-00000002a48a",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-06-18T17:28:26.564515Z",
"vendor": {
"id": "00000000-0000-0000-0000-00000000243b",
"name": "Company 887",
"updated_datetime": "2026-06-18T17:28:26.465289Z"
}
}
}
POST /public/v1/products Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjA4NzM1MmMtYzU2MC00ZWIxLWExMTAtN2RkMzhkNGExNTUzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc0MTQiLCJ0eXAiOiJhY2Nlc3MifQ.IDd3pbAIhTBvY6zT9cPlz-IVDe-Gwb-xiJnVcLPl1Q0
{
"category_id": "00000000-0000-0000-0000-000000001b4c",
"id": "4a2197ef-7cbe-4222-bf12-4a76d4637f79",
"inventory_tracking_method": "PACKAGE",
"menu_visibility": "DO_NOT_INCLUDE",
"menus": [
"00000000-0000-0000-0000-0000000001e3",
"00000000-0000-0000-0000-0000000001e4"
],
"name": "My Product",
"sku": "12345",
"tags": [],
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-00000002a48a",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-00000000243b"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 2ba067f7309958c2867fa1d15695cbd7-803f7826ec3c9b71-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-000000001b4c",
"name": "Some category 360",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "4a2197ef-7cbe-4222-bf12-4a76d4637f79",
"images": [],
"is_active": true,
"menus": [],
"msrp": null,
"name": "My Product",
"product_group": null,
"sku": "12345",
"strain": null,
"subcategory": null,
"unit_cost": null,
"unit_net_weight": null,
"unit_net_weight_serving_size_unit_type": null,
"unit_price": "100",
"unit_serving_size": null,
"unit_type": {
"id": "00000000-0000-0000-0000-00000002a48a",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-06-18T17:28:26.676797Z",
"vendor": {
"id": "00000000-0000-0000-0000-00000000243b",
"name": "Company 887",
"updated_datetime": "2026-06-18T17:28:26.465289Z"
}
}
}
POST /public/v1/products Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjA4NzM1MmMtYzU2MC00ZWIxLWExMTAtN2RkMzhkNGExNTUzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc0MTQiLCJ0eXAiOiJhY2Nlc3MifQ.IDd3pbAIhTBvY6zT9cPlz-IVDe-Gwb-xiJnVcLPl1Q0
{
"category_id": "00000000-0000-0000-0000-000000001b4c",
"id": "4a2197ef-7cbe-4222-bf12-4a76d4637f79",
"inventory_tracking_method": "PACKAGE",
"menu_visibility": "INCLUDE_IN_SELECT",
"menus": [
"00000000-0000-0000-0000-0000000001e3",
"00000000-0000-0000-0000-0000000001e4"
],
"name": "My Product",
"sku": "12345",
"tags": [],
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-00000002a48a",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-00000000243b"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 2ba067f7309958c2867fa1d15695cbd7-16045d3b050df2cf-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-000000001b4c",
"name": "Some category 360",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "4a2197ef-7cbe-4222-bf12-4a76d4637f79",
"images": [],
"is_active": true,
"menus": [
{
"menu_id": "00000000-0000-0000-0000-0000000001e3",
"menu_name": "Menu 155"
},
{
"menu_id": "00000000-0000-0000-0000-0000000001e4",
"menu_name": "Menu 158"
}
],
"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-00000002a48a",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-06-18T17:28:26.748521Z",
"vendor": {
"id": "00000000-0000-0000-0000-00000000243b",
"name": "Company 887",
"updated_datetime": "2026-06-18T17:28:26.465289Z"
}
}
}
POST /public/v1/products Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjA4NzM1MmMtYzU2MC00ZWIxLWExMTAtN2RkMzhkNGExNTUzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc0MTQiLCJ0eXAiOiJhY2Nlc3MifQ.IDd3pbAIhTBvY6zT9cPlz-IVDe-Gwb-xiJnVcLPl1Q0
{
"category_id": "00000000-0000-0000-0000-000000001b4c",
"id": "4a2197ef-7cbe-4222-bf12-4a76d4637f79",
"inventory_tracking_method": "PACKAGE",
"menu_visibility": "INCLUDE_IN_SELECT",
"menus": [
"00000000-0000-0000-0000-0000000001e4"
],
"name": "My Product",
"sku": "12345",
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-00000002a48a",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-00000000243b"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 2ba067f7309958c2867fa1d15695cbd7-24a25c8f943aff03-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-000000001b4c",
"name": "Some category 360",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "4a2197ef-7cbe-4222-bf12-4a76d4637f79",
"images": [],
"is_active": true,
"menus": [
{
"menu_id": "00000000-0000-0000-0000-0000000001e4",
"menu_name": "Menu 158"
}
],
"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-00000002a48a",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-06-18T17:28:26.796148Z",
"vendor": {
"id": "00000000-0000-0000-0000-00000000243b",
"name": "Company 887",
"updated_datetime": "2026-06-18T17:28:26.465289Z"
}
}
}
POST /public/v1/products Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjA4NzM1MmMtYzU2MC00ZWIxLWExMTAtN2RkMzhkNGExNTUzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc0MTQiLCJ0eXAiOiJhY2Nlc3MifQ.IDd3pbAIhTBvY6zT9cPlz-IVDe-Gwb-xiJnVcLPl1Q0
{
"category_id": "00000000-0000-0000-0000-000000001b4c",
"id": "4a2197ef-7cbe-4222-bf12-4a76d4637f79",
"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-00000002a48a",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-00000000243b"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 2ba067f7309958c2867fa1d15695cbd7-fd21a48e5731d41f-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-000000001b4c",
"name": "Some category 360",
"type": "OTHER"
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "4a2197ef-7cbe-4222-bf12-4a76d4637f79",
"images": [],
"is_active": true,
"menus": [],
"msrp": null,
"name": "My Product",
"product_group": null,
"sku": "12345",
"strain": null,
"subcategory": null,
"unit_cost": null,
"unit_net_weight": null,
"unit_net_weight_serving_size_unit_type": null,
"unit_price": "100",
"unit_serving_size": null,
"unit_type": {
"id": "00000000-0000-0000-0000-00000002a48a",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-06-18T17:28:26.835128Z",
"vendor": {
"id": "00000000-0000-0000-0000-00000000243b",
"name": "Company 887",
"updated_datetime": "2026-06-18T17:28:26.465289Z"
}
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDgsImlhdCI6MTc4MTgwMzcwOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYWVlODc3MzAtOTk0Ni00NGQ4LWI5OWYtYTZmYmE5NTIyNTM1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc5MjciLCJ0eXAiOiJhY2Nlc3MifQ.ZmpMLodxNVp7A-mSS8asawPJ9onQvjc4WjOPvAzI1uM
{
"id": "bce10b5c-aa0b-446a-b352-59fa888a2b11",
"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: ee6e93ce952fd46d377b3940026ae60a-9902f03e4737bd0d-0
{
"errors": [
{
"context": {
"id": "bce10b5c-aa0b-446a-b352-59fa888a2b11"
},
"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": "bce10b5c-aa0b-446a-b352-59fa888a2b11"
},
"message": "Unit Serving Size can't be greater than Unit Net Weight/Volume",
"pointer": [
"unit_serving_size"
],
"section": "body"
},
{
"context": {
"id": "bce10b5c-aa0b-446a-b352-59fa888a2b11"
},
"message": "Cannot be negative",
"pointer": [
"quantity_available_threshold_max"
],
"section": "body"
},
{
"context": {
"id": "bce10b5c-aa0b-446a-b352-59fa888a2b11"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDgsImlhdCI6MTc4MTgwMzcwOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTBhYzE2YjktYzJiMC00MDEyLWEwNTgtY2ZmMGZjZDhmMDZiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc5NDgiLCJ0eXAiOiJhY2Nlc3MifQ.86Ugkd0WRgGK55IchwfwWtDqKtzSC-2STxr0-MyPdOU
{
"id": "16e88b59-ba52-430a-82a9-4e044b9b85c4",
"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: d05e0abd667c0618e1993dd84648308a-e19f6be7b54ac437-0
{
"errors": [
{
"context": {
"id": "16e88b59-ba52-430a-82a9-4e044b9b85c4"
},
"message": "Must be greater than threshold min",
"pointer": [
"quantity_available_threshold_max"
],
"section": "body"
},
{
"context": {
"id": "16e88b59-ba52-430a-82a9-4e044b9b85c4"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDcsImlhdCI6MTc4MTgwMzcwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGJhZTU1NDMtMzRlNy00ZjcyLWFjODYtNGRlZjliYTBlMjY4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc4NDciLCJ0eXAiOiJhY2Nlc3MifQ.WckmDBWk-psyWkwC8ZpXiM0qsBAVh5k4xRJgeP0DJGY
{
"brand_id": "00000000-0000-0000-0000-00000000252b",
"category_id": "00000000-0000-0000-0000-000000001c07",
"cbd": "5.2",
"description": "My Product Description",
"description_markdown": "# My Product Description Markdown",
"group_id": "00000000-0000-0000-0000-000000001bdb",
"inventory_tracking_method": "PACKAGE",
"is_featured": true,
"is_inactive": true,
"menu_visibility": "INCLUDE_IN_ALL",
"menus": [
"00000000-0000-0000-0000-0000000001ea",
"00000000-0000-0000-0000-0000000001eb",
"00000000-0000-0000-0000-0000000001ec"
],
"msrp": "100.5",
"name": "My Product",
"owner_id": "00000000-0000-0000-0000-0000000045be",
"quantity_available_threshold_max": "10.5",
"quantity_available_threshold_min": "5.5555",
"sku": "12345",
"strain_id": "00000000-0000-0000-0000-000000000137",
"subcategory_id": "00000000-0000-0000-0000-000000001bd9",
"tags": [
"00000000-0000-0000-0000-00000000001c",
"00000000-0000-0000-0000-00000000001d",
"00000000-0000-0000-0000-00000000001e"
],
"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-00000002b5ef",
"unit_price": "100",
"unit_serving_size": "2.2",
"unit_type_id": "00000000-0000-0000-0000-00000002b5f6",
"units_per_case": "0.2",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-000000002527",
"wholesale_unit_price": "90.50"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: c829f7741dadd29d7b63474ce6182d2a-f79bf911af373324-0
{
"errors": [
{
"context": {
"id": "164f773b-1b49-4d26-814c-4fc672d82412"
},
"message": "Brand does not exist",
"pointer": [
"brand_id"
],
"section": "body"
},
{
"context": {
"id": "164f773b-1b49-4d26-814c-4fc672d82412"
},
"message": "Category does not exist",
"pointer": [
"category_id"
],
"section": "body"
},
{
"context": {
"id": "164f773b-1b49-4d26-814c-4fc672d82412"
},
"message": "Vendor does not exist",
"pointer": [
"vendor_id"
],
"section": "body"
},
{
"context": {
"id": "164f773b-1b49-4d26-814c-4fc672d82412"
},
"message": "Group does not exist",
"pointer": [
"group_id"
],
"section": "body"
},
{
"context": {
"id": "164f773b-1b49-4d26-814c-4fc672d82412"
},
"message": "Serving unit type does not exist",
"pointer": [
"unit_net_weight_and_serving_size_unit_type_id"
],
"section": "body"
},
{
"context": {
"id": "164f773b-1b49-4d26-814c-4fc672d82412"
},
"message": "Owner does not exist",
"pointer": [
"owner_id"
],
"section": "body"
},
{
"context": {
"id": "164f773b-1b49-4d26-814c-4fc672d82412"
},
"message": "Strain does not exist",
"pointer": [
"strain_id"
],
"section": "body"
},
{
"context": {
"id": "164f773b-1b49-4d26-814c-4fc672d82412"
},
"message": "Subcategory does not belong to the product category",
"pointer": [
"subcategory_id"
],
"section": "body"
},
{
"context": {
"id": "164f773b-1b49-4d26-814c-4fc672d82412"
},
"message": "One or more of the provided tags do not exist",
"pointer": [
"tags"
],
"section": "body"
},
{
"context": {
"id": "164f773b-1b49-4d26-814c-4fc672d82412"
},
"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-0000000001ea"
],
"section": "body"
},
{
"context": {},
"message": "Menu does not exist",
"pointer": [
"menus",
1,
"00000000-0000-0000-0000-0000000001eb"
],
"section": "body"
}
]
}
Upsert a single product. To update an existing product, pass in an existing product ID in the id field. When updating a product, you must pass in all fields (no sparse update currently supported).Any existing tag you do not pass in to tags will be deleted. If the menu_visibility field isset to INCLUDE_IN_SELECT, any existing menu that you do not pass into menus will be deleted. Required permission: products_permissions_create to create a new product, products_permissions_edit (and access to the product under team restrictions) to update an existing product.
Request
POST /public/v1/products
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Unique ID for this product. If it exists, an update will be performed; otherwise, it will be used as the ID of a new product record | query | string | false | ||
| inventory_tracking_method | Once the tracking method is set for a product, it cannot be changed. The tracking method can be one of the following: PACKAGE: The inventory will be defined by packages. PRODUCT: Not grouped in any manner. The inventory simply exists on your product that you can add or remove as you transact. BATCH: Grouped by batches. Batches share common traits such as expiration dates and test results. | query | string | false | PACKAGE | |
| sku | Stock Keeping Unit (SKU) for this product | query | string | false | SKU123 | |
| name | Name of the product | query | string | false | King Size Pre-rolls | |
| vendor_id | The ID of the company_relationship association with the vendor (company) that supplies this product. | query | string | false | ||
| category_id | The ID of the product category of the product. | query | string | false | ||
| external_name | Customer-facing name for DistruCommerce menus and Order Tracker. Defaults to Product Name if left blank | query | string | false | ||
| unit_type_id | The ID of the unit type the product. | query | string | false | ||
| unit_price | The sale price of the product per unit. | query | number | false | ||
| description | Description of the product. If this field is provided and description_markdown is not, the description field will overwrite any existing description_markdown field. | query | string | false | A pack of 5 pre-rolls | |
| description_markdown | The description of the product in markdown format. If this field is provided, description must also be provided. The markdown display only supports italic, bold, strikethrough and links. Use any other markdown formatting at your own risk. | query | string | false | A pack of 5 pre-rolls | |
| upc | Universal Product Code (UPC) for this product | query | string | false | 123456789012 | |
| subcategory_id | The ID of the product subcategory of the product. The provided subcategory must be a child of the provided category. | query | string | false | ||
| group_id | The ID of the product's group. | query | string | false | ||
| brand_id | The ID of the company_relationship association with the brand (company) that is associated with this product. | query | query | false | ||
| quantity_available_threshold_min | The minimum quantity of the product you'd like to maintain. When the product inventory count dips below this number, it will automatically be included in scheduled Low Inventory Reports. | query | number | false | ||
| quantity_available_threshold_max | The maximum quantity of the product you'd like to maintain. When the product inventory count exceeds this number, it will automatically be included in scheduled Inventory Reports. | query | number | false | ||
| units_per_case | The number of units in a case of the product. | query | number | false | ||
| unit_cost | The cost of the product per unit. | query | number | false | ||
| msrp | The Manufacturer's Suggested Retail Price (MSRP) of the product per unit. If you have POS integrations enabled in Distru, this may be synced to your POS | query | number | false | ||
| wholesale_unit_price | The wholesale price of the product per unit. | query | number | false | ||
| is_featured | Whether the product is featured. Featured products will be displayed at the top of menus. | query | boolean | false | ||
| strain_id | The ID of the strain associated with the product. | query | string | false | ||
| owner_id | The ID of the user that is deemed to be the owner of the product. | query | string | false | ||
| is_inactive | Whether the product is inactive from use. Inactive products can be set to active at any time. | query | boolean | false | ||
| total_cannabinoid_unit | The unit of the THC/CBD content of the product (MG or PERCENT). | query | string | false | ||
| total_thc | The THC content of the product in the unit specified by total_cannabinoid_unit. Must also include total_cannabinoid_unit. | query | string | false | ||
| total_cbd | The CBD content of the product in the unit specified by total_cannabinoid_unit. Must also include total_cannabinoid_unit. | query | string | false | ||
| menu_visibility | This key is responsible for which menus (if any) the product will be displayed in. DO_NOT_INCLUDE: The product will not be displayed in any menus. INCLUDE_IN_ALL: The product will be displayed in all menus. INCLUDE_IN_SELECT: The product will be displayed in menus that have been explicitly selected (passed into the menus list). | query | string | false | ||
| unit_net_weight | The net weight of the product per unit. | query | number | false | ||
| unit_serving_size | The serving size of the product per unit. | query | number | false | ||
| unit_net_weight_and_serving_size_unit_type_id | The ID of the unit type that the net quantity per unit and serving size are measured in. This field should be null unless the product's unit type is count-based. If this field is set, the act of changing the category from 'Unit' will throw an error. | query | string | false | ||
| tags | A list of tags associated with the product. | query | array | false | ["0ef8347c-b714-4cd9-ba0e-872488bc9244", "daa0294c-833c-42bd-a133-b4c9e7f64017"] | |
| menus | A list of menus you would like this product to be included in. This field will only be used if the menu_visibility key is set to INCLUDE_IN_SELECT. | query | array | false | ["0ef8347c-b714-4cd9-ba0e-872488bc9244", "daa0294c-833c-42bd-a133-b4c9e7f64017"] | |
| custom_data | Custom data for this product | body | object | false |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single product | Product |
ProductPosMapping
Delete a product POS mapping
DELETE /public/v1/product-pos-mappings/:id deletes a POS mapping
DELETE /public/v1/product-pos-mappings/74
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDUsImlhdCI6MTc4MTgwMzcwNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjI0NGUwODUtMzUzYS00OGVhLTg4MGItNjQ5OWUxYmY0NjdjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTcxMTQiLCJ0eXAiOiJhY2Nlc3MifQ.JZn9mObdnrD7D2Icj6e3usTJW5nECPF0aAKEnoyKhzM
Response
204
cache-control: max-age=0, private, must-revalidate
b3: 99c8208a3941f7416f2476fb8280af8b-639c0b86f4823b06-0
Required permission: products_permissions_edit.
Request
DELETE /public/v1/product-pos-mappings/{id}
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Mapping ID | path | string | true |
Responses
| Status | Description | Schema |
|---|---|---|
| 204 | No Content | |
| 401 | Unauthorized | |
| 404 | Not Found |
List product POS mappings
GET /public/v1/product-pos-mappings returns all POS mappings for company products and supports filtering
GET /public/v1/product-pos-mappings
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOWFmYjE5MGUtZDgyZS00MzA0LWJkNDctYzMyNjRmMzk3YmU3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTczMDciLCJ0eXAiOiJhY2Nlc3MifQ.ogzu5bVoQXcxa6lbl_xzBY2kt_Qws9halperkcnTnIQ
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: f6924e8473085f555649e357e0b2aada-06418f77c96bbb15-0
{
"data": [
{
"blaze_asset_id": null,
"blaze_product_id": "blaze_123",
"blaze_retailer_id": "c2a1eb23-7fc3-4fde-8538-599356a8f284",
"id": 76,
"inserted_at": "2026-06-18T17:28:26.272940Z",
"pos_type": "BLAZE",
"product_id": "48d32663-2b1b-4b86-a542-76daf6679930",
"updated_at": "2026-06-18T17:28:26.272940Z"
},
{
"dutchie_product_id": 456,
"dutchie_retailer_id": "78bb2214-da1e-42bd-a737-29fc532a71a3",
"id": 77,
"inserted_at": "2026-06-18T17:28:26.287918Z",
"pos_type": "DUTCHIE",
"product_id": "ed19a1a8-1a33-4527-95d7-a7533e1ac3cc",
"updated_at": "2026-06-18T17:28:26.287918Z"
}
],
"next_page": "https://www.example.com/public/v1/product-pos-mappings?page[number]=2"
}
Get POS mappings with optional filtering by product_id or retailer_id. Required permission: products_permissions_view.
Request
GET /public/v1/product-pos-mappings
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| product_id | Filter by product ID | query | string | false | ||
| blaze_retailer_id | Filter by Blaze retailer ID | query | string | false | ||
| dutchie_retailer_id | Filter by Dutchie retailer ID | query | string | false | ||
| treez_retailer_id | Filter by Treez retailer ID | query | string | false |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | Success | ProductPosMappingsResponse |
| 400 | Bad Request | |
| 401 | Unauthorized |
Get a product POS mapping
GET /public/v1/product-pos-mappings/:id returns a single product POS mapping
GET /public/v1/product-pos-mappings/00000000-0000-0000-0000-00000000004b
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDUsImlhdCI6MTc4MTgwMzcwNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNGJhYmJkYTMtY2M3Ny00OTFkLWExYTktZmQ5ODVjODE4YWVhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTcyMTciLCJ0eXAiOiJhY2Nlc3MifQ.A0MHNa5vlnWe7lFJb4ZxbFSQWLL5xbSd0F7H5B7k_JY
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 4c10e04f82b339e5a38d80f2c68fee49-d88ab31d195b5468-0
{
"data": {
"blaze_asset_id": null,
"blaze_product_id": "blaze_123",
"blaze_retailer_id": "9c867c32-015b-4277-8887-28277dd9bbb5",
"id": 75,
"inserted_at": "2026-06-18T17:28:25.947309Z",
"pos_type": "BLAZE",
"product_id": "b1988686-7c2a-4fa7-9499-ae01b2a08d43",
"updated_at": "2026-06-18T17:28:25.947309Z"
}
}
Get a single product POS mapping given the ID.
Required permission: products_permissions_view.
Request
GET /public/v1/product-pos-mappings/{id}
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Product POS Mapping ID | path | string | true |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single product POS mapping | ProductPosMappingResponse |
| 404 | Not Found |
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDMsImlhdCI6MTc4MTgwMzcwMywiaXNzIjoiRGlzdHJ1IiwianRpIjoiN2MyNDU0YjctNTIxYi00NzY0LTgzMTYtYmUwZTFiZWNjZGFmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzAyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTY0NjkiLCJ0eXAiOiJhY2Nlc3MifQ._-ucy3N7lb9aKp1wd4kx_70c4cWcs0NL9iT4iITuXxU
{
"blaze_product_id": "blaze_123",
"blaze_retailer_id": "3059dc03-365e-4431-9d8c-485d205700f4",
"product_id": "c2c8431f-7de7-4a1b-8b7a-0e3a1188f837"
}
Response
201
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 99efbafaafba176e54a13196e4b8602c-85ae455cea30101a-0
{
"data": {
"blaze_asset_id": null,
"blaze_product_id": "blaze_123",
"blaze_retailer_id": "3059dc03-365e-4431-9d8c-485d205700f4",
"id": 67,
"inserted_at": "2026-06-18T17:28:23.663359Z",
"pos_type": "BLAZE",
"product_id": "c2c8431f-7de7-4a1b-8b7a-0e3a1188f837",
"updated_at": "2026-06-18T17:28:23.663359Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDMsImlhdCI6MTc4MTgwMzcwMywiaXNzIjoiRGlzdHJ1IiwianRpIjoiODE2ZmMwMjUtYzE3Mi00ZGNiLWJjMGItMzdlMzI4Y2JmYTY3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzAyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTYzODkiLCJ0eXAiOiJhY2Nlc3MifQ.Yces7DH3wkeww-dF3vVTWwwft2wjzj7DMeAncV78qN8
{
"blaze_product_id": "blaze_456",
"blaze_retailer_id": "c1f63062-0b3a-4f90-a2bd-449b74bcf0f8",
"product_id": "fa863afc-2fda-4498-8999-dd58a0c2ae0a"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 43c676be1c8d3c7d106669c7e2f220ea-59907f78322f0bae-0
{
"data": {
"blaze_asset_id": null,
"blaze_product_id": "blaze_456",
"blaze_retailer_id": "c1f63062-0b3a-4f90-a2bd-449b74bcf0f8",
"id": 66,
"inserted_at": "2026-06-18T17:28:23.398130Z",
"pos_type": "BLAZE",
"product_id": "fa863afc-2fda-4498-8999-dd58a0c2ae0a",
"updated_at": "2026-06-18T17:28:23.410553Z"
}
}
Upserts a POS mapping - creates if new, updates if exists.
The system determines if a mapping already exists by checking for an existing mapping with the same product_id and retailer_id combination. If found, it updates the existing mapping. If not found, it creates a new mapping.
Returns 201 for new mappings, 200 for updates.
Required permission: products_permissions_edit.
Request
POST /public/v1/product-pos-mappings
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| mapping | POS mapping data | body | UpsertProductPosMapping | true |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | Updated existing mapping | ProductPosMappingResponse |
| 201 | Created new mapping | ProductPosMappingResponse |
| 400 | Bad Request | |
| 401 | Unauthorized |
Purchase
Get purchases
GET /public/v1/purchases returns purchases related to the company
GET /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMTAsImlhdCI6MTc4MTgwMzcxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYzQ4OTMxYjctZGU3NS00MzZmLWJiODAtMWJiY2Y2M2MxNDlmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg0NjQiLCJ0eXAiOiJhY2Nlc3MifQ._h-mGF-ub9kkbs4brd4juVWZLWmTkeD-XJRASmh8gRM
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: d761fe4f364c79db3a974052bf2fa314-e31d5f8d2df3f129-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000026ab",
"name": "Company 1695",
"updated_datetime": "2026-06-18T17:28:30.226902Z"
},
"custom_data": [
{
"id": 442,
"name": "Custom Field 37",
"value": null
}
],
"due_datetime": "2026-06-18T17:28:30.243829Z",
"id": "00000000-0000-0000-0000-0000000001a2",
"inserted_datetime": "2026-06-18T17:28:30.244124Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c0b",
"name": "B2492"
},
"compliance_quantity": null,
"id": "28c1a6e0-6ab4-4152-aadf-73c4ac4e1ded",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000389d",
"id": "00000000-0000-0000-0000-000000001347",
"license_id": null,
"name": "Place 540"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "78848f56-8dc9-4958-aeaf-8a94906c5255",
"name": "Product 2481",
"sku": "sku 2482",
"updated_datetime": "2026-06-18T17:28:30.248682Z"
},
"quantity": "15.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c0c",
"name": "B2493"
},
"compliance_quantity": null,
"id": "4d5d1a86-61b4-46d5-a8fd-79fae8b8624c",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000389d",
"id": "00000000-0000-0000-0000-000000001347",
"license_id": null,
"name": "Place 540"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "49e55b28-5fbb-4cd9-b4bc-fcc6aeabce09",
"name": "Product 2486",
"sku": "sku 2487",
"updated_datetime": "2026-06-18T17:28:30.253687Z"
},
"quantity": "10.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c0d",
"name": "B2494"
},
"compliance_quantity": null,
"id": "1901837d-341f-431f-97e1-3029b0055922",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000389d",
"id": "00000000-0000-0000-0000-000000001347",
"license_id": null,
"name": "Place 540"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "59c0ceaa-561d-46b9-b373-d454a4a576d8",
"name": "Product 2488",
"sku": "sku 2489",
"updated_datetime": "2026-06-18T17:28:30.258787Z"
},
"quantity": "5.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001c0e",
"name": "B2495"
},
"compliance_quantity": null,
"id": "4b022fbc-067e-4b68-830b-950f71e1c8a0",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000389d",
"id": "00000000-0000-0000-0000-000000001347",
"license_id": null,
"name": "Place 540"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "b1b5d72a-844d-4149-b53f-2fc5103e4e10",
"name": "Product 2490",
"sku": "sku 2491",
"updated_datetime": "2026-06-18T17:28:30.263339Z"
},
"quantity": "2.000000000",
"received_quantity": "0.000000000"
}
],
"order_datetime": "2026-06-18T17:28:30.243828Z",
"purchase_number": "Purchase #60",
"status": "PENDING",
"total": "32.00",
"updated_datetime": "2026-06-18T17:28:30.244124Z"
},
{
"charges": [
{
"id": "fc17adc1-5cb7-4eb5-95ab-329b6a3d5475",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000026a6",
"name": "Company 1689",
"updated_datetime": "2030-11-01T00:00:00.000000Z"
},
"custom_data": [
{
"id": 442,
"name": "Custom Field 37",
"value": "Custom Field Value 1"
}
],
"due_datetime": "2020-01-01T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-0000000001a1",
"inserted_datetime": "2020-01-01T00:00:03.000000Z",
"items": [
{
"batch": {
"batch_number": "UID1",
"id": "00000000-0000-0000-0000-000000001bfe",
"name": "B1"
},
"compliance_quantity": "1.0000",
"id": "c5f9f23c-c275-4088-b833-88e4c71d1cc9",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000389d",
"id": "00000000-0000-0000-0000-00000000133e",
"license_id": "00000000-0000-0000-0000-000000000476",
"name": "Place 531"
},
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000000155",
"id": "00000000-0000-0000-0000-000000000276",
"metrc_label": "ABCDEF012345670000000155",
"status": "active"
},
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "43ef2918-9fff-4954-8497-aff40e82ac09",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDQsImlhdCI6MTc4MTgwMzcwNCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMGE1MjA0MWEtZDM3MC00NmMwLTg4ODctNWYxZTRlYzFkNzllIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzAzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTY3MzEiLCJ0eXAiOiJhY2Nlc3MifQ.FUWm8O8BNQcp_LAxf_D-dZYJzE1t7kJHe6y9FGWgkgY
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 95a4e21d12adc0f0d575106b602fec79-6a0d914d561aa801-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000002348",
"name": "Company 490",
"updated_datetime": "2026-06-18T17:28:25.042902Z"
},
"custom_data": [],
"due_datetime": "2026-06-18T17:28:25.081880Z",
"id": "00000000-0000-0000-0000-00000000016c",
"inserted_datetime": "2026-06-18T17:28:25.082860Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001976",
"name": "B549"
},
"compliance_quantity": null,
"id": "445a145e-1680-4269-829d-984cbe0356e3",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003368",
"id": "00000000-0000-0000-0000-0000000011c9",
"license_id": null,
"name": "Place 158"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "b2afbffa-9585-473c-a6e9-c910241757dc",
"name": "Product 522",
"sku": "sku 523",
"updated_datetime": "2026-06-18T17:28:25.097133Z"
},
"quantity": "15.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001977",
"name": "B550"
},
"compliance_quantity": null,
"id": "841551a9-e4ae-4e4e-a3ac-127299f4a90f",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003368",
"id": "00000000-0000-0000-0000-0000000011c9",
"license_id": null,
"name": "Place 158"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "4d4f40c6-ff3d-417c-b5d4-5f5ea353388e",
"name": "Product 531",
"sku": "sku 532",
"updated_datetime": "2026-06-18T17:28:25.111166Z"
},
"quantity": "10.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001978",
"name": "B551"
},
"compliance_quantity": null,
"id": "24a8b2b2-f26c-4dbd-9e1f-b03258d8e015",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003368",
"id": "00000000-0000-0000-0000-0000000011c9",
"license_id": null,
"name": "Place 158"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "19f13e98-3c2e-47ef-8352-53e02b51ddff",
"name": "Product 540",
"sku": "sku 541",
"updated_datetime": "2026-06-18T17:28:25.123925Z"
},
"quantity": "5.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001979",
"name": "B552"
},
"compliance_quantity": null,
"id": "c1f86b3c-0397-476c-b505-08ef6fbafa1b",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003368",
"id": "00000000-0000-0000-0000-0000000011c9",
"license_id": null,
"name": "Place 158"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "31c3f042-aa0a-487c-a562-44f60e5fce79",
"name": "Product 545",
"sku": "sku 546",
"updated_datetime": "2026-06-18T17:28:25.138194Z"
},
"quantity": "2.000000000",
"received_quantity": "0.000000000"
}
],
"order_datetime": "2020-01-01T12:30:00.000000Z",
"purchase_number": "Purchase #11",
"status": "PENDING",
"total": "32.00",
"updated_datetime": "2026-06-18T17:28:25.082860Z"
},
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000000232a",
"name": "Company 444",
"updated_datetime": "2026-06-18T17:28:24.872558Z"
},
"custom_data": [],
"due_datetime": "2026-06-18T17:28:24.915802Z",
"id": "00000000-0000-0000-0000-00000000016b",
"inserted_datetime": "2026-06-18T17:28:24.916635Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001967",
"name": "B486"
},
"compliance_quantity": null,
"id": "dd3cf03a-aad8-4d63-85ed-8cbabc7f9b35",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003368",
"id": "00000000-0000-0000-0000-0000000011be",
"license_id": null,
"name": "Place 147"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "4cb796ec-ed5f-472f-a7d4-7299c2cf7659",
"name": "Product 464",
"sku": "sku 465",
"updated_datetime": "2026-06-18T17:28:24.934194Z"
},
"quantity": "15.000000000",
"received_quantity": "15.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001968",
"name": "B487"
},
"compliance_quantity": null,
"id": "43dd1b42-0b48-48a8-8668-152145053621",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003368",
"id": "00000000-0000-0000-0000-0000000011be",
"license_id": null,
"name": "Place 147"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "ba004410-6861-425c-ba55-6f0a204d4961",
"name": "Product 468",
"sku": "sku 469",
"updated_datetime": "2026-06-18T17:28:24.947097Z"
},
"quantity": "10.000000000",
"received_quantity": "10.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001969",
"name": "B488"
},
"compliance_quantity": null,
"id": "6367899c-1235-4706-b9cc-ec5490ca1ab5",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003368",
"id": "00000000-0000-0000-0000-0000000011be",
"license_id": null,
"name": "Place 147"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "1e1cf5ff-cde1-4f79-81e9-f1a93e6217bd",
"name": "Product 473",
"sku": "sku 474",
"updated_datetime": "2026-06-18T17:28:24.957794Z"
},
"quantity": "5.000000000",
"received_quantity": "5.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000196b",
"name": "B490"
},
"compliance_quantity": null,
"id": "ff11d8db-9ddf-4257-a318-c1c84f122b16",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003368",
"id": "00000000-0000-0000-0000-0000000011be",
"license_id": null,
"name": "Place 147"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "1e6ebb0f-84f9-42df-9d6b-0f175cdb8b2d",
"name": "Product 483",
"sku": "sku 484",
"updated_datetime": "2026-06-18T17:28:24.970434Z"
},
"quantity": "2.000000000",
"received_quantity": "2.000000000"
}
],
"order_datetime": "2020-01-01T12:20:00.000000Z",
"purchase_number": "Purchase #10",
"status": "COMPLETED",
"total": "32.00",
"updated_datetime": "2026-06-18T17:28:24.916635Z"
},
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000022f1",
"name": "Company 356",
"updated_datetime": "2026-06-18T17:28:24.556762Z"
},
"custom_data": [],
"due_datetime": "2026-06-18T17:28:24.648718Z",
"id": "00000000-0000-0000-0000-000000000169",
"inserted_datetime": "2026-06-18T17:28:24.652815Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001949",
"name": "B377"
},
"compliance_quantity": null,
"id": "cd685232-101a-4fc7-b02d-4837dcf8d545",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003368",
"id": "00000000-0000-0000-0000-00000000119f",
"license_id": null,
"name": "Place 116"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "196b3a0f-b566-47a3-b2a0-c51eb01e5661",
"name": "Product 362",
"sku": "sku 363",
"updated_datetime": "2026-06-18T17:28:24.665438Z"
},
"quantity": "15.000000000",
"received_quantity": "15.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000194a",
"name": "B378"
},
"compliance_quantity": null,
"id": "5c870cca-cd3f-4691-a178-c0423fd9e5ab",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003368",
"id": "00000000-0000-0000-0000-00000000119f",
"license_id": null,
"name": "Place 116"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "6da10c98-dadb-4a13-a1eb-bd19999f387c",
"name": "Product 368",
"sku": "sku 369",
"updated_datetime": "2026-06-18T17:28:24.679812Z"
},
"quantity": "10.000000000",
"received_quantity": "10.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000194b",
"name": "B381"
},
"compliance_quantity": null,
"id": "622b99a7-97ca-4387-ba8c-b9fe8ce8ca40",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003368",
"id": "00000000-0000-0000-0000-00000000119f",
"license_id": null,
"name": "Place 116"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "7f7f51ab-4a5b-47b4-92f0-7d32d4059fd3",
"name": "Product 370",
"sku": "sku 371",
"updated_datetime": "2026-06-18T17:28:24.696033Z"
},
"quantity": "5.000000000",
"received_quantity": "5.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000194c",
"name": "B382"
},
"compliance_quantity": null,
"id": "1e68a256-ac73-452b-8759-3a1d809c9007",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003368",
"id": "00000000-0000-0000-0000-00000000119f",
"license_id": null,
"name": "Place 116"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "c5f39e74-1a1d-40e0-a104-6d595c325796",
"name": "Product 375",
"sku": "sku 376",
"updated_datetime": "2026-06-18T17:28:24.712985Z"
},
"quantity": "2.000000000",
"received_quantity": "2.000000000"
}
],
"order_datetime": "2020-01-01T12:00:00.000000Z",
"purchase_number": "Purchase #8",
"status": "COMPLETED",
"total": "32.00",
"updated_datetime": "2026-06-18T17:28:24.652815Z"
}
],
"next_page": null
}
Get purchases sorted by Order Date descendingly date and filtered by various attributes.
Note: The page size for this endpoint is 500 purchase orders per page.
Required permission: purchases_permissions_view. Results are filtered to
only include purchases the authenticated user can access under their team
restrictions.
Request
GET /public/v1/purchases
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| due_datetime | Filter purchases by the due datetime | query | string | false | ,2022-07-10T00:00:00Z | |
| inserted_datetime | Filter purchases by their creation datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| order_datetime | Filter purchases by the order datetime | query | string | false | 2022-07-10T00:00:00Z,2022-07-11T00:00:00Z | |
| page | Pagination information | query | number | false | ?page[number]=1 | |
| status | Filter purchases by their status. Accepted values are "Completed", "Delivering", "Partially Received", "Pending", "Processing". | query | array | false | ["Pending","Processing"] | |
| updated_datetime | Filter purchases by the datetime they were most recently modified | query | string | false | ,2022-07-10T00:00:00Z |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A list of purchases | Purchases |
Insert a payment for a purchase
POST /purchases/:id/payments can create a payment for an purchase with both quickbooks id and name
POST /public/v1/purchases/00000000-0000-0000-0000-00000000016d/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDUsImlhdCI6MTc4MTgwMzcwNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOWFhMDM5OGQtZTYzYS00YmQ5LWI5NGUtNWJjYjU3MzI5YTlmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTcwMTciLCJ0eXAiOiJhY2Nlc3MifQ.GtBEU-4nG4rQzsWOafQWO8njw_EUavrn1LsAcfe-HA8
{
"amount": 100.01,
"description": "Payment for purchase",
"payment_datetime": "2020-01-01T00:00:00.000000Z",
"payment_method_id": "00000000-0000-0000-0000-00000000006a",
"quickbooks_deposit_account_id": "QBD-123"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 7a9d9d36426c5398c96873946d116e9c-c43d9c85a5bc1ed7-0
{
"data": {
"amount": "100.01",
"description": "Payment for purchase",
"id": "00000000-0000-0000-0000-000000000010",
"inserted_datetime": "2026-06-18T17:28:25.444932Z",
"payment_date": "2020-01-01T00:00:00.000000Z",
"payment_method": {
"deleted_at": null,
"id": "00000000-0000-0000-0000-00000000006a",
"name": "Payment Method 0"
},
"payment_number": "PYT-0000001",
"purchase_id": "00000000-0000-0000-0000-00000000016d",
"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-00000000016d/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDUsImlhdCI6MTc4MTgwMzcwNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOWFhMDM5OGQtZTYzYS00YmQ5LWI5NGUtNWJjYjU3MzI5YTlmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTcwMTciLCJ0eXAiOiJhY2Nlc3MifQ.GtBEU-4nG4rQzsWOafQWO8njw_EUavrn1LsAcfe-HA8
{
"amount": 100.01,
"description": "Payment for purchase",
"payment_datetime": "2020-01-01T00:00:00.000000Z",
"payment_method_id": "00000000-0000-0000-0000-00000000006a",
"quickbooks_deposit_account_name": "QBD-NAME"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 7a9d9d36426c5398c96873946d116e9c-dd1e1956fb20d3f2-0
{
"data": {
"amount": "100.01",
"description": "Payment for purchase",
"id": "00000000-0000-0000-0000-000000000011",
"inserted_datetime": "2026-06-18T17:28:25.605395Z",
"payment_date": "2020-01-01T00:00:00.000000Z",
"payment_method": {
"deleted_at": null,
"id": "00000000-0000-0000-0000-00000000006a",
"name": "Payment Method 0"
},
"payment_number": "PYT-0000002",
"purchase_id": "00000000-0000-0000-0000-00000000016d",
"quickbooks_deposit_account_id": "QBD-123"
}
}
Required permission: purchases_permissions_make_payments. The authenticated user must also be allowed to view purchases under their team restrictions.
Request
POST /public/v1/purchases/{id}/payments
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| payment_method_id | Payment method ID | query | string | true | ||
| amount | Amount of the payment. Will round to 2 decimal places | query | decimal | true | ||
| payment_datetime | Payment date | query | string | true | ||
| description | Description of the payment | query | string | true | ||
| quickbooks_deposit_account_id | Quickbooks deposit account ID. Cannot include both this and quickbooks_deposit_account_name. If user's company is integrated with Quickbooks, either this or quickbooks_deposit_account_name must be provided. Account type must be "Bank" or "Credit Card" | query | string | false | ||
| quickbooks_deposit_account_name | Quickbooks deposit account name. Cannot include both this and quickbooks_deposit_account_id. If user's company is integrated with Quickbooks, either this or quickbooks_deposit_account_id must be provided. Account type must be "Bank" or "Credit Card" | query | string | false |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single payment | PurchasePayment |
Get a purchase
GET /public/v1/purchases/:id returns a single purchase
GET /public/v1/purchases/00000000-0000-0000-0000-000000000194
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDksImlhdCI6MTc4MTgwMzcwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDlmZGFhZmMtZDFlOC00MThjLTgwNGItNzFlYWVlOWExYjk3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTgyNDciLCJ0eXAiOiJhY2Nlc3MifQ.MskOts8yPc3e-aJ8-lNwefkpTPMWt-AmdGgehyTuahk
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: ffb727dd1a8870052f65a9cadf6c9346-1579948d71bf2623-0
{
"data": {
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000000261d",
"name": "Company 1514",
"updated_datetime": "2026-06-18T17:28:29.243083Z"
},
"custom_data": [],
"due_datetime": "2026-06-18T17:28:29.262776Z",
"id": "00000000-0000-0000-0000-000000000194",
"inserted_datetime": "2026-06-18T17:28:29.263216Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001b9a",
"name": "B2155"
},
"compliance_quantity": null,
"id": "f3d213a8-0625-4f42-953a-1ea320b7a972",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000037f4",
"id": "00000000-0000-0000-0000-0000000012fe",
"license_id": null,
"name": "Place 467"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "fee38eb8-03af-4ba8-8807-055c37ecf76b",
"name": "Product 2145",
"sku": "sku 2146",
"updated_datetime": "2026-06-18T17:28:29.268605Z"
},
"quantity": "15.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001b9b",
"name": "B2156"
},
"compliance_quantity": null,
"id": "3ef9a9cd-96b4-4209-8357-5c37a06228d3",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000037f4",
"id": "00000000-0000-0000-0000-0000000012fe",
"license_id": null,
"name": "Place 467"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "4cf1d614-3513-41fa-9480-0f09d18d5bee",
"name": "Product 2147",
"sku": "sku 2148",
"updated_datetime": "2026-06-18T17:28:29.273769Z"
},
"quantity": "10.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001b9c",
"name": "B2157"
},
"compliance_quantity": null,
"id": "3c3006f7-7159-434f-97d8-46944472c337",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000037f4",
"id": "00000000-0000-0000-0000-0000000012fe",
"license_id": null,
"name": "Place 467"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "98a37d60-e989-45ee-a76a-2582eb57f900",
"name": "Product 2149",
"sku": "sku 2150",
"updated_datetime": "2026-06-18T17:28:29.278855Z"
},
"quantity": "5.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001b9e",
"name": "B2159"
},
"compliance_quantity": null,
"id": "7a7f476e-f241-48ee-a4e4-29a3023f1e2b",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000037f4",
"id": "00000000-0000-0000-0000-0000000012fe",
"license_id": null,
"name": "Place 467"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "32d3317b-de42-44fb-8df7-459be19ddde9",
"name": "Product 2153",
"sku": "sku 2154",
"updated_datetime": "2026-06-18T17:28:29.284252Z"
},
"quantity": "2.000000000",
"received_quantity": "0.000000000"
}
],
"order_datetime": "2026-06-18T17:28:29.262775Z",
"purchase_number": "Purchase #49",
"status": "PENDING",
"total": "32.00",
"updated_datetime": "2026-06-18T17:28:29.263216Z"
}
}
Get a single purchase given the ID.
Required permission: purchases_permissions_view.
Request
GET /public/v1/purchases/{id}
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Purchase ID | path | string | true |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single purchase | Purchase |
| 404 | Not Found |
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDksImlhdCI6MTc4MTgwMzcwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDViYzIxYTgtNTFlMy00MGRlLWI5ZGUtMmVjMjdhYWY0YTUxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTgyNzIiLCJ0eXAiOiJhY2Nlc3MifQ.8SOheKd8zVUIfRQ8ZMaj6brdpY1eLPwwmYkvEHVbbEw
{
"billing_location_id": "00000000-0000-0000-0000-000000001303",
"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-000000002627",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000001302",
"price": "10.000000000",
"product_id": "09a93821-0157-49b3-a809-e693e60ede29",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000001302",
"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: 08f68fa9fee181206a9a588950eaa39a-46accd482497f261-0
{
"data": {
"charges": [
{
"id": "7bc224ae-1dee-45aa-bf1a-bf03e3bd098e",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "5d55ea81-dd59-4300-85b1-28be2e8b76e3",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000002627",
"name": "Company 1526",
"updated_datetime": "2026-06-18T17:28:29.316629Z"
},
"custom_data": [
{
"id": 441,
"name": "Custom Field 36",
"value": null
}
],
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-000000000195",
"inserted_datetime": "2026-06-18T17:28:29.355036Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001b9f",
"name": "B1"
},
"compliance_quantity": null,
"id": "fdc40b98-cd42-48b0-b76f-edd4b8fd9465",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003802",
"id": "00000000-0000-0000-0000-000000001302",
"license_id": "00000000-0000-0000-0000-000000000464",
"name": "Place 471"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "09a93821-0157-49b3-a809-e693e60ede29",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-18T17:28:29.341691Z"
},
"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-06-18T17:28:29.361018Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDksImlhdCI6MTc4MTgwMzcwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYWFmZGZhYTctYTI2OS00MTE0LTk5OTAtOWNjYTA3ZTg3ZjcyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTgzOTYiLCJ0eXAiOiJhY2Nlc3MifQ.tQvcYp5oBAoR4R_iHsceB43RzR9NTSiC9TofhmwNOdY
{
"billing_location_id": "00000000-0000-0000-0000-000000001328",
"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-00000000267a",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"batch_id": "00000000-0000-0000-0000-000000001be3",
"location_id": "00000000-0000-0000-0000-000000001328",
"price": "10.000000000",
"product_id": "2688556a-8487-4731-9bde-169c2c0f9dc4",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000001328",
"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: 31d30d84eda9c89923702fc62c59cf4a-6adf3a911592f080-0
{
"data": {
"charges": [
{
"id": "cd179950-f5bf-4387-9366-1824e929e36e",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "b2bd1649-11a6-4181-8aca-82e4d5ec6b4c",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-00000000267a",
"name": "Company 1629",
"updated_datetime": "2026-06-18T17:28:29.835771Z"
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-00000000019d",
"inserted_datetime": "2026-06-18T17:28:29.867909Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001be3",
"name": "B1"
},
"compliance_quantity": null,
"id": "552774fe-3db3-443c-8efa-6bbc41ad0a22",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003869",
"id": "00000000-0000-0000-0000-000000001328",
"license_id": "00000000-0000-0000-0000-00000000046d",
"name": "Place 509"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "2688556a-8487-4731-9bde-169c2c0f9dc4",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-18T17:28:29.855442Z"
},
"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-06-18T17:28:29.873038Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDcsImlhdCI6MTc4MTgwMzcwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjgxMWVmZDYtM2EyYS00ODA4LWExM2EtNzBlYWZlYjhhOTg1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc3NjUiLCJ0eXAiOiJhY2Nlc3MifQ.NA2v5Xs71sYD8zSIN9gxKaamxR7OZxDmcR-UE0ljMGA
{
"billing_location_id": "00000000-0000-0000-0000-000000001260",
"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-0000000024f5",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000001260",
"price": "10.000000000",
"product_id": "b929c047-e60f-4515-a770-cb4c2fed0881",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000001260",
"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: 403cfc64b252736d8a8a0f2ae4f8c6e7-6a2b052581c031ed-0
{
"data": {
"charges": [
{
"id": "3f16524d-923c-4913-a175-eeb1e0911090",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "a9c237a5-8977-41df-87e7-3a1a8d26629b",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000024f5",
"name": "Company 1154",
"updated_datetime": "2026-06-18T17:28:27.504499Z"
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-00000000017b",
"inserted_datetime": "2026-06-18T17:28:27.562389Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001ac8",
"name": "B1"
},
"compliance_quantity": null,
"id": "3a9fb474-c9ec-45af-8e01-0e5afbe6280e",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000368a",
"id": "00000000-0000-0000-0000-000000001260",
"license_id": "00000000-0000-0000-0000-00000000043d",
"name": "Place 309"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "b929c047-e60f-4515-a770-cb4c2fed0881",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-18T17:28:27.541134Z"
},
"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-06-18T17:28:27.573136Z"
}
}
POST /public/v1/purchases updates a purchase
POST /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDgsImlhdCI6MTc4MTgwMzcwOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNjUxOGJkODEtNDk3ZS00YWU2LWEzZWUtYjRiY2JjOWEyYzFjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTgxMzEiLCJ0eXAiOiJhY2Nlc3MifQ.wxvUIGyB6cOhDhF7U2sv8_xBL9EnzK51viUmsBlXtqU
{
"billing_location_id": "00000000-0000-0000-0000-0000000012dd",
"charges": [
{
"name": "C1",
"percent": "10.0000",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company_id": "00000000-0000-0000-0000-0000000025ca",
"due_datetime": "2020-01-20T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-0000000012dd",
"price": "10.000000000",
"product_id": "0e7b464b-25b7-4c6d-b9c7-7d1d977e084f",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-0000000012dd",
"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: f95da0ccbf6850cf81c317e0178308b4-eca767c9db2b52ae-0
{
"data": {
"charges": [
{
"id": "b7894f5f-3d43-4c4b-9016-bd6e774f8d56",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000025ca",
"name": "Company 1419",
"updated_datetime": "2026-06-18T17:28:28.762897Z"
},
"custom_data": [],
"due_datetime": "2020-01-20T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-00000000018e",
"inserted_datetime": "2026-06-18T17:28:28.838992Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001b65",
"name": "B1"
},
"compliance_quantity": null,
"id": "c8cfba36-8359-4066-8761-46d4d025b555",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003796",
"id": "00000000-0000-0000-0000-0000000012dd",
"license_id": "00000000-0000-0000-0000-00000000045d",
"name": "Place 434"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "0e7b464b-25b7-4c6d-b9c7-7d1d977e084f",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-18T17:28:28.812907Z"
},
"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-06-18T17:28:28.846614Z"
}
}
POST /public/v1/purchases updates a purchase
POST /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDgsImlhdCI6MTc4MTgwMzcwOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNjUxOGJkODEtNDk3ZS00YWU2LWEzZWUtYjRiY2JjOWEyYzFjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTgxMzEiLCJ0eXAiOiJhY2Nlc3MifQ.wxvUIGyB6cOhDhF7U2sv8_xBL9EnzK51viUmsBlXtqU
{
"billing_location_id": "00000000-0000-0000-0000-0000000012dd",
"charges": [
{
"id": "b7894f5f-3d43-4c4b-9016-bd6e774f8d56",
"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-0000000025ca",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-00000000018e",
"items": [
{
"id": "c8cfba36-8359-4066-8761-46d4d025b555",
"location_id": "00000000-0000-0000-0000-0000000012dd",
"price": "10.000000000",
"product_id": "0e7b464b-25b7-4c6d-b9c7-7d1d977e084f",
"quantity": "1.000000000"
},
{
"batch_id": "00000000-0000-0000-0000-000000001b68",
"location_id": "00000000-0000-0000-0000-0000000012dd",
"price": "5.000000000",
"product_id": "667633a9-7a50-49b4-a7cd-f1d776d60fdc",
"quantity": "2.000000000"
}
],
"location_id": "00000000-0000-0000-0000-0000000012dd",
"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: f95da0ccbf6850cf81c317e0178308b4-995dcd3b17e289f1-0
{
"data": {
"charges": [
{
"id": "b7894f5f-3d43-4c4b-9016-bd6e774f8d56",
"name": "C1",
"percent": "10.0000",
"price": "2.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "f192ca01-2168-4ee6-9e9c-332e18558835",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000025ca",
"name": "Company 1419",
"updated_datetime": "2026-06-18T17:28:28.762897Z"
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-00000000018e",
"inserted_datetime": "2026-06-18T17:28:28.838992Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001b65",
"name": "B1"
},
"compliance_quantity": null,
"id": "c8cfba36-8359-4066-8761-46d4d025b555",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003796",
"id": "00000000-0000-0000-0000-0000000012dd",
"license_id": "00000000-0000-0000-0000-00000000045d",
"name": "Place 434"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "0e7b464b-25b7-4c6d-b9c7-7d1d977e084f",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-18T17:28:28.812907Z"
},
"quantity": "1.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001b68",
"name": "B2"
},
"compliance_quantity": null,
"id": "2920e289-de53-4477-8be3-aa9d8498e962",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003796",
"id": "00000000-0000-0000-0000-0000000012dd",
"license_id": "00000000-0000-0000-0000-00000000045d",
"name": "Place 434"
},
"package": null,
"price": "5.000000000",
"price_base": "5.000000000",
"product": {
"id": "667633a9-7a50-49b4-a7cd-f1d776d60fdc",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-06-18T17:28:28.825701Z"
},
"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-06-18T17:28:28.906773Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDksImlhdCI6MTc4MTgwMzcwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjBjZmZlYTUtMzAwNS00OTE4LWE3NzQtYjNjMzg4ZTE2NWVhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTgzNTMiLCJ0eXAiOiJhY2Nlc3MifQ.AczJC5d4T9VHhr3v2BpqHe4aTxPAww-0ywAYHpN2Yhc
{
"billing_location_id": "00000000-0000-0000-0000-00000000131c",
"company_id": "00000000-0000-0000-0000-000000002665",
"due_datetime": "2020-01-20T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000000131c",
"price": "10",
"product_id": "8032ec96-140a-461e-8139-dcd36bcc7c6c",
"quantity": "1"
}
],
"location_id": "00000000-0000-0000-0000-00000000131c",
"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: 3032d74046ce201d162cc067e2985e31-e911105f67b293c3-0
{
"data": {
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000002665",
"name": "Company 1603",
"updated_datetime": "2026-06-18T17:28:29.682676Z"
},
"custom_data": [],
"due_datetime": "2020-01-20T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-00000000019a",
"inserted_datetime": "2026-06-18T17:28:29.710670Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001bd4",
"name": "B2319"
},
"compliance_quantity": null,
"id": "7ea4cdc8-ab04-458e-9958-7a382e63dcb7",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000384e",
"id": "00000000-0000-0000-0000-00000000131c",
"license_id": "00000000-0000-0000-0000-000000000469",
"name": "Place 497"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "8032ec96-140a-461e-8139-dcd36bcc7c6c",
"name": "Product 2317",
"sku": "sku 2318",
"updated_datetime": "2026-06-18T17:28:29.698429Z"
},
"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-06-18T17:28:29.710670Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDksImlhdCI6MTc4MTgwMzcwOSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjBjZmZlYTUtMzAwNS00OTE4LWE3NzQtYjNjMzg4ZTE2NWVhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTgzNTMiLCJ0eXAiOiJhY2Nlc3MifQ.AczJC5d4T9VHhr3v2BpqHe4aTxPAww-0ywAYHpN2Yhc
{
"company_id": "00000000-0000-0000-0000-000000002665",
"id": "00000000-0000-0000-0000-00000000019a",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000000131c",
"price": "2",
"product_id": "8032ec96-140a-461e-8139-dcd36bcc7c6c",
"quantity": "1"
}
]
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 3032d74046ce201d162cc067e2985e31-349938d26fe6db4d-0
{
"data": {
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000002665",
"name": "Company 1603",
"updated_datetime": "2026-06-18T17:28:29.682676Z"
},
"custom_data": [],
"due_datetime": "2020-01-20T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-00000000019a",
"inserted_datetime": "2026-06-18T17:28:29.710670Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000001bd4",
"name": "B2319"
},
"compliance_quantity": null,
"id": "3b40cc4c-3a41-40a6-b89c-b612a360f25c",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000384e",
"id": "00000000-0000-0000-0000-00000000131c",
"license_id": "00000000-0000-0000-0000-000000000469",
"name": "Place 497"
},
"package": null,
"price": "2.000000000",
"price_base": "2.000000000",
"product": {
"id": "8032ec96-140a-461e-8139-dcd36bcc7c6c",
"name": "Product 2317",
"sku": "sku 2318",
"updated_datetime": "2026-06-18T17:28:29.698429Z"
},
"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-06-18T17:28:29.752656Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDcsImlhdCI6MTc4MTgwMzcwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiODU2NGM2MzQtY2VmYi00MzdkLTlhMDMtOThlNmEwMzEwMjU0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc3MTAiLCJ0eXAiOiJhY2Nlc3MifQ.CHqzzlwUXKzLZ2QkyoVPB52dFvuTr2_KrncuxcQGuwk
{
"billing_location_id": "00000000-0000-0000-0000-000000001253",
"charges": [],
"company_id": "00000000-0000-0000-0000-0000000024d7",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-00000000017a",
"items": [
{
"batch_id": "00000000-0000-0000-0000-000000001ab4",
"id": "12b2ac86-150a-4ce1-a3f0-e58aad942060",
"location_id": "00000000-0000-0000-0000-000000001253",
"price": "10.000000000",
"product_id": "72c809a4-fdf0-4267-b1e9-18ea7208aa72",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000001253",
"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: 5d001bc769c35851417b5549fdb6122a-21d3315dc150d6c2-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDcsImlhdCI6MTc4MTgwMzcwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTU1YjEzOTMtM2U0Zi00YWMxLWI2M2EtODY2ZTRkODQzNDUyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc4MDYiLCJ0eXAiOiJhY2Nlc3MifQ.P_iCW9S8j-y7SS20uvVmTggPn3iBvaAG2lJy7UrRMbk
{
"billing_location_id": "00000000-0000-0000-0000-00000000126e",
"charges": [],
"company_id": "00000000-0000-0000-0000-00000000250c",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000000126e",
"price": "10.000000000",
"product_id": "e3492dfc-8963-47e5-8a2f-763b06a7f466",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-00000000126e",
"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: 74a6fdfb2c381e922ce36a77b2c9943b-6aa24c1674cb960f-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDcsImlhdCI6MTc4MTgwMzcwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZmFkZGYyOTItNDQ4MC00ZTExLWE3YTYtNDIxMzA0ZGVkNzcxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc4ODEiLCJ0eXAiOiJhY2Nlc3MifQ.wyhnMfILA5w0fzbUwRBVpIELd5l8MDxM_M3rnquJWOI
{
"billing_location_id": "00000000-0000-0000-0000-00000000128d",
"charges": [],
"company_id": "00000000-0000-0000-0000-00000000252f",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000000128d",
"price": "10.000000000",
"product_id": "89330b52-5cc4-4c32-bc3b-af7414d9c5ce",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-00000000128d",
"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: 52f2f938c2ef3ee658cc8b526001d353-317a4095dc7e2901-0
{
"errors": [
{
"context": {
"id": "4e0f7d5f-5019-4905-9470-ef8d00cfb2c6"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMTAsImlhdCI6MTc4MTgwMzcxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNWNjNzU0NTctYzJhNi00ODA0LTgyMzEtZjNlNWI3ZDczMWM4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg1MTYiLCJ0eXAiOiJhY2Nlc3MifQ.8VwrzBQj0UH7y2Ca340FzpUiQESCohVLlAqNXv8fiAE
{
"billing_location_id": "00000000-0000-0000-0000-00000000134e",
"charges": [],
"company_id": "00000000-0000-0000-0000-0000000026c1",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"batch_id": "00000000-0000-0000-0000-000000001c1a",
"location_id": "00000000-0000-0000-0000-00000000134e",
"price": "10.000000000",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-00000000134e",
"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: c423e1174531d163437dafb0f8e75c54-2c8cd2edc4638b27-0
{
"errors": [
{
"context": {
"id": "b4bc35dd-b2a4-4174-8940-3388e39b0a7d"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMTAsImlhdCI6MTc4MTgwMzcxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDBhNjUyMTQtZjJkNS00MmQ4LTk0NGYtYTgyNjYzNDM4ZDJjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg1NDAiLCJ0eXAiOiJhY2Nlc3MifQ.5UIOlDssRx6AeM49GCSTQQs0zlxzfqvNHrC1MlAjyzA
{
"billing_location_id": "00000000-0000-0000-0000-000000001352",
"charges": [],
"company_id": "00000000-0000-0000-0000-0000000026c5",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000001353",
"price": "10.000000000",
"product_id": "bede7f9e-1862-4b02-a7ba-47f1e10af98a",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000001353",
"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: 266dcd5eea38547c95bb18216de78de9-6b0183401208dde2-0
{
"errors": [
{
"context": {
"id": "e8eaf44e-e7d7-4232-bd4f-2e752e6426c8"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMTAsImlhdCI6MTc4MTgwMzcxMCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYzA0OGM1ZGYtZDc1Zi00ZWYzLWE2MzQtNzE3M2VlNzE2NmIwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTg0NTIiLCJ0eXAiOiJhY2Nlc3MifQ.iPrBTbx22VfI40gY0LHfIgony-WQnXchrS_g0QesNRc
{
"billing_location_id": "00000000-0000-0000-0000-000000001338",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000002694",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000001338",
"price": "10.000000000",
"product_id": "d4d1ac04-7308-495c-8fae-ae9dcb25df9c",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000001339",
"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: bfb1156a88f755335485886b289e76b3-2680eec2739c1f1a-0
{
"errors": [
{
"context": {
"id": "3cd3870e-bae4-4e66-b66d-54c5dbe06352"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDgsImlhdCI6MTc4MTgwMzcwOCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNmI4OGExZGEtODNmMS00OTQwLThlYTMtZTQ2NzQ5YjUwYzU3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTgwOTgiLCJ0eXAiOiJhY2Nlc3MifQ.7hDEBAFuWiscptnRrXBLpovvLau_sxUbsSalsgI8qoE
{
"billing_location_id": "00000000-0000-0000-0000-0000000012da",
"charges": [],
"company_id": "00000000-0000-0000-0000-0000000025b8",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-0000000012d9",
"price": "10.000000000",
"product_id": "cd4e6d65-2f39-4be2-9985-36a054b806fd",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-0000000012d9",
"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: bdf719c16a0fd59e36e55af122523b82-fd050e98840a78b9-0
{
"errors": [
{
"context": {},
"message": "The provided billing address does not exist",
"pointer": [
"billing_location_id"
],
"section": "body"
}
]
}
Upsert a single purchase order. To update an existing purchase order, pass in an existing purchase order ID in the id field. When updating a purchase order, you must pass in all fields (no sparse update currently supported). Any existing order item or charge you do not pass in to items and charges respectively will be deleted. Required permission: purchases_permissions_create to create a new purchase order, purchases_permissions_edit (and access to the purchase under team restrictions) to update an existing purchase order.
Request
POST /public/v1/purchases
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Unique ID for this purchase order. If it exists, an update will be performed; otherwise, it will be used as the ID of a new purchase order record | query | string | false | ||
| description | A description of the purchase order | query | string | false | ||
| location_id | The location into which the inventory in this purchase will be received | query | string | true | ||
| billing_location_id | The billing address for this purchase order | query | string | true | ||
| company_id | The company that is the supplier for this purchase order | query | string | true | ||
| order_datetime | The datetime on which the purchase order was placed | query | string | true | ||
| due_datetime | The datetime by which the purchase order should be paid | query | string | true | ||
| charges | The additional lines of Charge, Discount, or Tax added to this purchase order | body | PurchaseChargesRequest | false | ||
| items | The items present on this purchase order | body | PurchaseItemsRequest | true |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single purchase orders | Purchase |
Returns
Get returns
GET /public/v1/returns returns returns related to the company
GET /public/v1/returns
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDUsImlhdCI6MTc4MTgwMzcwNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiY2NmOGIwMDAtNGY4MC00NDNmLWIwN2ItMzQ1NDFmMDYzYzM2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTcxNDMiLCJ0eXAiOiJhY2Nlc3MifQ.Cw6X35jXuvne2pUMd61Kb9tEsmnHyIidrge9p9xpWKQ
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: b26ca0c1955b959455a4c374e1fd72b9-dc096da74fe399bf-0
{
"data": [
{
"company": {
"id": "00000000-0000-0000-0000-0000000023b3",
"name": "Company 679",
"updated_datetime": "2026-06-18T17:28:25.774932Z"
},
"custom_data": {
"404": "Custom Field Value"
},
"description": null,
"id": "00000000-0000-0000-0000-0000000000af",
"inserted_at": "2026-06-18T17:28:25.786874Z",
"invoice_numbers": [],
"items": [
{
"id": "00000000-0000-0000-0000-0000000000af",
"price": 30.1,
"product": {
"id": "6272ecdf-2ae6-4533-bb25-fd84c1b06c84",
"name": "Product 741",
"sku": "sku 742",
"updated_datetime": "2026-06-18T17:28:25.757500Z"
},
"quantity": 5.0,
"waste": false
}
],
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000003496",
"id": "00000000-0000-0000-0000-0000000011ec",
"license_id": null,
"name": "Place 193"
},
"order_id": null,
"order_number": null,
"order_quantity": null,
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-887@example.com",
"full_name": "FirstName1818 LastName1819",
"id": "00000000-0000-0000-0000-0000000042fa",
"role": {
"id": "00000000-0000-0000-0000-00000000445e",
"name": "Admin 915"
}
},
"return_datetime": "2024-12-12T20:26:19.297537Z",
"return_number": "RN-24",
"return_quantity": null,
"return_type": null,
"status": "Processing",
"total": 150.5,
"updated_at": "2026-06-18T17:28:25.786874Z"
}
],
"next_page": null
}
Get returns sorted by their creation date and filtered by various attributes
Note: The page size for this endpoint is 1000 returns per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Required permission: returns_permissions_view.
Request
GET /public/v1/returns
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| inserted_datetime | Filter returns by their creation datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| page | Pagination information | query | number | false | ?page[number]=1 | |
| return_datetime | Filter returns by their return datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| updated_datetime | Filter returns by the datetime they were most recently modified | query | string | false | ,2022-07-10T00:00:00Z |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A list of returns | Returns |
Get a return
GET /public/v1/returns/:id returns a single return
GET /public/v1/returns/00000000-0000-0000-0000-0000000000ac
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDUsImlhdCI6MTc4MTgwMzcwNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDc5NjYyNTAtNzkyMi00MGIzLTg3NzgtNjZmZmVjMzhkMTliIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTY5MTQiLCJ0eXAiOiJhY2Nlc3MifQ.PnxsXs28s6_cMZoyVHgIJY2nMSs_yGFKXd_KIsXYckk
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: ae0849f97bafd98d511125fed87b1b10-61d5975e25540850-0
{
"data": {
"company": {
"id": "00000000-0000-0000-0000-000000002358",
"name": "Company 519",
"updated_datetime": "2026-06-18T17:28:25.113794Z"
},
"custom_data": {},
"description": null,
"id": "00000000-0000-0000-0000-0000000000ac",
"inserted_at": "2026-06-18T17:28:25.120822Z",
"invoice_numbers": [],
"items": [
{
"id": "00000000-0000-0000-0000-0000000000ab",
"price": 30.1,
"product": {
"id": "bb36cb84-dfa9-49f3-bb81-3471a461f1e4",
"name": "Product 529",
"sku": "sku 530",
"updated_datetime": "2026-06-18T17:28:25.107271Z"
},
"quantity": 5.0,
"waste": false
}
],
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000033ff",
"id": "00000000-0000-0000-0000-0000000011cb",
"license_id": null,
"name": "Place 160"
},
"order_id": null,
"order_number": null,
"order_quantity": null,
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-661@example.com",
"full_name": "FirstName1350 LastName1351",
"id": "00000000-0000-0000-0000-000000004217",
"role": {
"id": "00000000-0000-0000-0000-00000000436f",
"name": "Admin 676"
}
},
"return_datetime": "2026-06-18T17:28:25.120337Z",
"return_number": "RN-21",
"return_quantity": null,
"return_type": null,
"status": "Processing",
"total": 32.0,
"updated_at": "2026-06-18T17:28:25.120822Z"
}
}
Get a single return given the ID.
Required permission: returns_permissions_view.
Request
GET /public/v1/returns/{id}
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Return ID | path | string | true |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single return | Return |
| 404 | Not Found |
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDUsImlhdCI6MTc4MTgwMzcwNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDQ2MTdlNjUtOGYyOS00NDM2LTkwMTMtMjdmMjUxOWJkMTFiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTcxMTciLCJ0eXAiOiJhY2Nlc3MifQ.gK8utTgV0Pi0yvJa7AAM5CRn_hZTAsPBRrWVanoOdGE
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 7d3a9697912c74ab94146972b2c8e9d4-8760878077a3dfa8-0
{
"data": [
{
"batch_id": null,
"completion_datetime": "2026-06-18T17:28:25.655839Z",
"compliance_quantity": null,
"compliance_unit_type": null,
"description": null,
"id": "00000000-0000-0000-0000-000000000467",
"inserted_at": "2026-06-18T17:28:25.660743Z",
"license_id": null,
"location_id": null,
"owner_id": "00000000-0000-0000-0000-0000000042dd",
"package_id": null,
"product_id": "15a6830e-2913-4163-b704-2c4f4ac409bc",
"quantity": "10",
"reason": "revaluation",
"total_cost": "10000",
"unit_type": {
"id": "00000000-0000-0000-0000-0000000298b6",
"name": "Gram"
}
},
{
"batch_id": null,
"completion_datetime": "2026-06-18T17:28:25.910515Z",
"compliance_quantity": "1",
"compliance_unit_type": {
"id": "00000000-0000-0000-0000-0000000298b8",
"name": "Ounce"
},
"description": "A default note describing this transaction",
"id": "00000000-0000-0000-0000-000000000469",
"inserted_at": "2026-06-18T17:28:25.918935Z",
"license_id": "00000000-0000-0000-0000-000000000410",
"location_id": "00000000-0000-0000-0000-0000000011ed",
"owner_id": null,
"package_id": "00000000-0000-0000-0000-000000000236",
"product_id": "393c910c-b0df-4d07-86e2-f00b63d1446c",
"quantity": "1",
"reason": "Voluntary Surrender",
"total_cost": "900",
"unit_type": {
"id": "00000000-0000-0000-0000-0000000298b8",
"name": "Ounce"
}
},
{
"batch_id": "00000000-0000-0000-0000-0000000019f6",
"completion_datetime": "2026-06-18T17:28:26.035348Z",
"compliance_quantity": null,
"compliance_unit_type": null,
"description": null,
"id": "00000000-0000-0000-0000-00000000046e",
"inserted_at": "2026-06-18T17:28:26.036572Z",
"license_id": null,
"location_id": "00000000-0000-0000-0000-0000000011e9",
"owner_id": null,
"package_id": null,
"product_id": "244eadd7-bbdc-4ae4-9239-66ef75064f59",
"quantity": "1",
"reason": "revaluation",
"total_cost": "-800",
"unit_type": {
"id": "00000000-0000-0000-0000-0000000298b6",
"name": "Gram"
}
}
],
"next_page": null
}
Get stock adjustments sorted by their creation date and filtered by various attributes
Note: The page size for this endpoint is 5000 stock adjustments per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Required permission: products_permissions_view.
Request
GET /public/v1/adjustments
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| inserted_datetime | Filter stock adjustments by their creation datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| completion_datetime | Filter stock adjustments by their completion datetime (adjustment date) | query | string | false | 2022-07-10T00:00:00Z, | |
| page | Pagination information | query | number | false | ?page[number]=1 |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A list of stock adjustments | StockAdjustments |
Insert a stock adjustment
POST /public/v1/adjustments creates an adjustment for a product tracked product
POST /public/v1/adjustments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNmQyNGYxOTUtZjAzMS00NDA0LWE4MmItODhkNjdkZmE2YmE2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc0MTMiLCJ0eXAiOiJhY2Nlc3MifQ.XxSID8TEsDcKQbiGlDb9qr9gGY0BGuO2vffyggTZp9A
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "00000000-0000-0000-0000-00000000121e",
"product_id": "927bb56e-1b14-498a-b737-d00f98114200",
"quantity": 10,
"reason": "expired"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: f49c9e7c252870d114af7a72a829e2ac-10a6485eef889aa5-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-000000000483",
"inserted_at": "2026-06-18T17:28:26.527867Z",
"license_id": null,
"location_id": "00000000-0000-0000-0000-00000000121e",
"owner_id": null,
"package_id": null,
"product_id": "927bb56e-1b14-498a-b737-d00f98114200",
"quantity": "10",
"reason": "expired",
"total_cost": null,
"unit_type": {
"id": "00000000-0000-0000-0000-00000002a4aa",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZWQ4MjdjOTMtNmU0Mi00ZjE0LTljYmItOGM2MmE3MGFmZTcxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTczNzMiLCJ0eXAiOiJhY2Nlc3MifQ.iHJfCrXInQ9fCyt7ZMyawcYLdM8PVm74OL5_T7aahRg
{
"batch_id": "00000000-0000-0000-0000-000000001a27",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "00000000-0000-0000-0000-000000001215",
"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: e3384683f0671dcd8da70c5c79be6e06-331f115aeeace20c-0
{
"data": {
"batch_id": "00000000-0000-0000-0000-000000001a27",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": null,
"compliance_unit_type": null,
"description": "test",
"id": "00000000-0000-0000-0000-00000000047b",
"inserted_at": "2026-06-18T17:28:26.377526Z",
"license_id": null,
"location_id": "00000000-0000-0000-0000-000000001215",
"owner_id": null,
"package_id": null,
"product_id": "de320681-15d8-43c8-b16e-5752370ced47",
"quantity": "10",
"reason": "expired",
"total_cost": "10000",
"unit_type": {
"id": "00000000-0000-0000-0000-00000002a2ca",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDMsImlhdCI6MTc4MTgwMzcwMywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNmY1ZDE2YzMtMGJlNS00MjA1LTkwZmUtYjhjYjMwNTZiMzFhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzAyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTY1NTgiLCJ0eXAiOiJhY2Nlc3MifQ.PmHJ6gtfw2mzD7NeC0WAYf66x9KxZZliJlGqdwNB7cw
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": 10,
"description": "test",
"package_id": "00000000-0000-0000-0000-00000000022d",
"reason": "Damage (BCC)",
"unit_cost": 1000
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 7f2ef4c8f93be6b6cfc9a5e85e65ad67-c5d247f9b437fe58-0
{
"data": {
"batch_id": null,
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": "10",
"compliance_unit_type": {
"id": "00000000-0000-0000-0000-00000002840c",
"name": "Ounce"
},
"description": "test",
"id": "00000000-0000-0000-0000-000000000460",
"inserted_at": "2026-06-18T17:28:24.536010Z",
"license_id": "00000000-0000-0000-0000-000000000403",
"location_id": "00000000-0000-0000-0000-000000001172",
"owner_id": null,
"package_id": "00000000-0000-0000-0000-00000000022d",
"product_id": "6e6e42ce-c406-438a-a0de-d2f63527619f",
"quantity": "0.35274",
"reason": "Damage (BCC)",
"total_cost": "10000.000000005834",
"unit_type": {
"id": "00000000-0000-0000-0000-00000002840a",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiODM3NWI0MTYtYThmYi00ODA5LTkwNzktNGZhYTAwYjllYjUyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc0OTgiLCJ0eXAiOiJhY2Nlc3MifQ.UhvVR2SU7HZmeUyJBjHa-ZOKNLsHgjltNyLp_Xw8sWk
{
"description": "test",
"package_id": "00000000-0000-0000-0000-00000000024a",
"quantity": 10,
"reason": "Damage (BCC)"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 59ebc7c3b8b7e7d23f19d8b0e678680a-960119b3f4049a2a-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDIsImlhdCI6MTc4MTgwMzcwMiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjY1NTExMzctMzU2MC00YTJmLThlNGQtMTg5NTA2ZjVhODhlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzAxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTYyNjEiLCJ0eXAiOiJhY2Nlc3MifQ.txk-Hhwt5GXbY6sE6m4lokW2ijOcxcu2V95oOylK_W0
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "00000000-0000-0000-0000-00000000112e",
"product_id": "59b16691-dbd4-4823-a968-c1293f1d9098",
"quantity": 10,
"reason": "expired"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 6e2ec7d424eea5f1fa80e2e094ce06d8-d848b8b3efc5eaf3-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDMsImlhdCI6MTc4MTgwMzcwMywiaXNzIjoiRGlzdHJ1IiwianRpIjoiYWQyMGRjYmQtY2YxNC00ZGQ2LTk0OWItYjBiY2Q4NzM4MDBhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzAyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTYzNDAiLCJ0eXAiOiJhY2Nlc3MifQ.ml7G8ECLOn2_61Jb12m6IAy3a1tR_flH2ZCa4XewrJQ
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": 10,
"description": "test",
"location_id": "00000000-0000-0000-0000-00000000113e",
"product_id": "e24d2849-d8df-4046-b528-00c9fd1ff367",
"reason": "expired"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: be3efc8ce8a6e586a32536bbf8940677-968d2705429d971f-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNzA3MjE1YmUtZjcyYi00NzUyLWIzMTEtOTg2NTgzOGE3NDA1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc0ODMiLCJ0eXAiOiJhY2Nlc3MifQ.4XIAf5XH6fulswaEzjVjQkdD88E7vGfkWFCRtFESyEo
{
"batch_id": "fde07445-4443-48a1-a9d1-bca0c9c03584",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "d8923cb0-93a4-4d70-bce3-dcf83422cc49",
"package_id": "0b4c9726-46e5-48d0-aa62-959ab0164db7",
"product_id": "424da4bf-c6b1-4aa7-a7ed-0244922966a5",
"reason": "expired"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 8f7c08df2e4f4f19a2118d915e9ffb3d-3e6c8d16109568bc-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTBlMzQ4NTUtN2ZjNS00Nzg5LWI5ZjQtZTRlMmMyMmU2ZWY5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc1ODQiLCJ0eXAiOiJhY2Nlc3MifQ.wp_ZR-RAy6cqPxTWrL361sgpPov-U563nOZ5qJhqqVg
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "896895ad-7253-4fdd-bd5b-5c4f98540b16",
"reason": "expired"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: cea47bcceb66c1a3f695fde82f590c63-372b46529b5f08e3-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDUsImlhdCI6MTc4MTgwMzcwNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYTAyYmJlMjktMjA4Yy00YTNhLTkzZmYtMDI2NjdhZTUzZGFiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTcwNDciLCJ0eXAiOiJhY2Nlc3MifQ.N5kLswXNvRZeDdEZhgakESjr1zGnWOHrlfLqVhxd8dA
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "8a64af93-4927-4aef-b226-1bd2c88f4f61",
"product_id": "6337d356-32f3-4af4-a87f-bc425bbdab5e",
"quantity": 10,
"reason": "waste"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: ec0efe3aa9dafc72805564ded3d32977-16b4f695101869b0-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDlhYTcyNmMtNzAyNy00NDZiLThiMzMtY2E4ZDFjNWVmZGM2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc0NjUiLCJ0eXAiOiJhY2Nlc3MifQ.Ft3N1q1cc4p2Yc7H9OkpgAuFkOfvp7EG8WhqN224A9o
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": 10,
"description": "test",
"location_id": "490b6477-19f1-40f2-ad4a-8514f999f595",
"package_id": "c577ab2c-ca52-4abe-9f06-c7f483380482",
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: ea80aded0eefac37ff1f60e8168d6809-3c811a8605db374b-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMmJjYjdkODYtM2QwNy00YmNmLWFhZDEtNjcxMzIxOGI4ZjE5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc1NDgiLCJ0eXAiOiJhY2Nlc3MifQ.xXHRIX6JtTO2eQAPlYEzl3aVFH5BeqXQ9Gp3orMLz30
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"product_id": "d8746fb7-62ab-4425-98c7-1a8c52535926",
"quantity": 10,
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 2270a933cf7d7a09e7f4285b6589a825-f1e9a01a93860459-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDUsImlhdCI6MTc4MTgwMzcwNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZThlZDYyYTgtMjg2ZC00MzllLWIzMTUtNDQ1ZDI4YjUxNDgzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTY5OTAiLCJ0eXAiOiJhY2Nlc3MifQ.cnceN95W75vKz0nTs10iUhXUyNBwG4IOs9jj3TnivrU
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "b75f7146-07e1-4a57-9ee9-e792988d701f",
"product_id": "21a75aa8-7272-426f-8600-17459bb2ab0d",
"quantity": 10,
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 83b5bf33f88613b7895964e554439593-736a95c8f13b65aa-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDUsImlhdCI6MTc4MTgwMzcwNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTI1MTk4ZjQtMmU4YS00YjZlLTkyNjctYTUyM2Q3Yjk5ZWExIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTcwNzUiLCJ0eXAiOiJhY2Nlc3MifQ.ee0t5VRdz25IcR0vBeBHyuCac7e_ECcagvyih_6RxAA
{
"batch_id": "00000000-0000-0000-0000-0000000019b5",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "176aa3e3-ffca-4719-8fcd-e7aa5466642b",
"quantity": 10,
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 6129df1b8b6befcaa8aea89739bd1e4e-40480877534d245f-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzE3M2QzYTktYWQzMy00NmMyLWE0MDUtY2ZlNDkyZTc1NGU0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTczMTkiLCJ0eXAiOiJhY2Nlc3MifQ.HmXrPULNN-i8LLoUe3De_Mwx5pPDeymsFh0OeEBz3G4
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": 10,
"description": "test",
"package_id": "00000000-0000-0000-0000-00000000023d",
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 42578ce6c83a7360f89b9e2c3f8e9974-4554503265f2b905-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDcsImlhdCI6MTc4MTgwMzcwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNWMzZTNhNzEtZjdlMC00YzRmLTk0YWEtOTRmNjhhYzM2YWZlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc2ODkiLCJ0eXAiOiJhY2Nlc3MifQ.eQLwEzQ9gyPvH__a4n9IIu0OJ8r9BXc8gHjYzYRc9dw
{
"batch_id": "00000000-0000-0000-0000-000000001aa6",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "00000000-0000-0000-0000-000000001257",
"quantity": 10,
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 9f727aa9f9a9630ab7048f9d45339bd0-0020a641ef3c900f-0
{
"errors": [
{
"context": {},
"message": "Location not found",
"pointer": [
"location_id"
],
"section": "body"
}
]
}
Required permission: products_permissions_adjust_inventory.
Request
POST /public/v1/adjustments
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| product_id | The ID of the product to adjust. Must only be provided if the product is product-tracked. | query | string | false | ||
| batch_id | The ID of the batch to adjust. Must only be provided if the batch's associated product is batch-tracked. | query | string | false | ||
| package_id | The ID of the package to adjust. Must only be provided if the package's associated product is package-tracked. | query | string | false | ||
| quantity | The quantity to adjust the stock by. Must only be provided for non-compliance adjustments. Must be negative if the adjustment reason is 'waste'. | query | number | false | ||
| compliance_quantity | The quantity to adjust the stock by. Must only be provided for compliance adjustments. | query | number | false | ||
| description | The description of the stock adjustment. Required for compliance adjustmenst. Has a max length of 800 characters for non-compliance adjustments, and 250 characters for compliance adjustments. | query | string | false | ||
| unit_cost | The cost per unit of the stock adjustment. Can only be provided for companies with cost accounting enabled. Must be empty when the quantity is negative. Must be provided if the company setting 'Require Cost on Intake and Quantity Adjustments' is true. | query | number | false | ||
| completion_datetime | The datetime of the stock adjustment. Must only be provided for compliance adjustments. | query | string | false | ||
| reason | The reason for the stock adjustment. For non-compliance adjustments, must be one of the following: 'waste', 'stolen', 'damaged', 'fire', 'write-off', 'expired', 'lab-testing', 'revaluation', 'other.' For compliance adjustments, must be a reason that is accepted by the the compliance API | query | string | false | ||
| location_id | The ID of the source location of the stock adjustment. Must only be provided for non-compliance adjustments. | query | string | false |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | The stock adjustment was inserted successfully | StockAdjustment |
Get a stock adjustment
GET /public/v1/adjustments/:id returns a single stock adjustment
GET /public/v1/adjustments/00000000-0000-0000-0000-0000000004b3
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDcsImlhdCI6MTc4MTgwMzcwNywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDI1MWE2NjQtNWI5OS00OGE4LThlOGItYTE5YzViNTAwODRlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc3MTEiLCJ0eXAiOiJhY2Nlc3MifQ.d6jev4_tFZTXnFAhgTnIbNwwBvVWft6ufl-pUZAcUJg
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: f42e36f28e71770a1f01fcd9ea1a1a0b-553647bf9031a73a-0
{
"data": {
"batch_id": "00000000-0000-0000-0000-000000001aac",
"completion_datetime": "2026-06-18T17:28:27.402451Z",
"compliance_quantity": null,
"compliance_unit_type": null,
"description": null,
"id": "00000000-0000-0000-0000-0000000004b3",
"inserted_at": "2026-06-18T17:28:27.402836Z",
"license_id": null,
"location_id": "00000000-0000-0000-0000-000000001259",
"owner_id": null,
"package_id": null,
"product_id": "ae1bd9cc-f62b-43c4-b001-49c57c2385af",
"quantity": "10",
"reason": "revaluation",
"total_cost": null,
"unit_type": {
"id": "00000000-0000-0000-0000-00000002b07d",
"name": "Gram"
}
}
}
Get a single stock adjustment given the ID.
Required permission: products_permissions_view.
Request
GET /public/v1/adjustments/{id}
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Stock Adjustment ID | path | string | true |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single stock adjustment | StockAdjustment |
| 404 | Not Found |
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDUsImlhdCI6MTc4MTgwMzcwNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYTBiMDViYTUtNjQ2Yi00YzE3LWJiYjItZWZiNTY1ODNmZTkzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTcxNjMiLCJ0eXAiOiJhY2Nlc3MifQ.cgj2Q7Sf4fpyXGlKBLqn7UyGlxIDDot46dHmm5ZskeE
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 7322b093884c46d9dcadf9d10bf85336-629105434eb14248-0
{
"data": [
{
"id": "00000000-0000-0000-0000-000000000132",
"name": "Strain 27",
"strain_type": "INDICA"
},
{
"id": "00000000-0000-0000-0000-000000000133",
"name": "Strain 28",
"strain_type": null
}
],
"next_page": null
}
Get strains filtered by various attributes
Note: The page size for this endpoint is 50k strains per page.
Required permission: settings_permissions_strains.
Request
GET /public/v1/strains
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| inserted_datetime | Filter strains by their creation datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| page | Pagination information | query | number | false | ?page[number]=1 | |
| updated_datetime | Filter strains by the datetime they were most recently modified | query | string | false | ,2022-07-10T00:00:00Z |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A list of strains | Strains |
Create a strain
POST /public/v1/strains creates a strain
POST /public/v1/strains
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDQsImlhdCI6MTc4MTgwMzcwNCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTQyYTNhZjgtZTFmYS00MWM5LWJjMjgtNTVkMWYyNThiOTc3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzAzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTY3OTgiLCJ0eXAiOiJhY2Nlc3MifQ.ycxyqrm2RsMrQBEiliwvN7lHwu1kvuAUv_E_BIah2pg
{
"name": "Blue Dream",
"strain_type": "hybrid"
}
Response
201
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: d4fbf42e3cc5ace717f320698c3f666c-d2974ea093f2b821-0
{
"data": {
"id": "00000000-0000-0000-0000-000000000129",
"name": "Blue Dream",
"strain_type": "HYBRID"
}
}
Create a new strain.
Required permission: settings_permissions_strains.
Request
POST /public/v1/strains
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| name | Name of the strain | query | string | true | ||
| strain_type | Type of strain (indica, indica_dominant, sativa, sativa_dominant, hybrid, high_cbd) | query | string | false |
Responses
| Status | Description | Schema |
|---|---|---|
| 201 | Strain created | Strain |
| 400 | Invalid parameters |
Get a strain
GET /public/v1/strains/:id returns a single strain
GET /public/v1/strains/00000000-0000-0000-0000-00000000012e
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDUsImlhdCI6MTc4MTgwMzcwNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNWM3NmJiYzMtM2JmNy00YzM4LTlmNDAtOGFjYzUzMGQ2NDg1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTY5NzYiLCJ0eXAiOiJhY2Nlc3MifQ.hxqE6UYSDRzwzNasODOpexr4--jTgFredDvFkaYCcug
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: d00559a30c9466e3404fb7a4f4d407f0-0f9f2c8a059b586c-0
{
"data": {
"id": "00000000-0000-0000-0000-00000000012e",
"name": "Blue Dream",
"strain_type": "HYBRID"
}
}
Get a single strain given the ID.
Required permission: settings_permissions_strains.
Request
GET /public/v1/strains/{id}
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Strain ID | path | string | true |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single strain | Strain |
| 404 | Not Found |
Update a strain
POST /public/v1/strains/:id updates a strain
POST /public/v1/strains/00000000-0000-0000-0000-00000000012f
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDUsImlhdCI6MTc4MTgwMzcwNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTQxM2Q0OTItZmQ4MS00MjNhLTljMDQtYzI3ZGVlOGEyNDM3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTcwNDkiLCJ0eXAiOiJhY2Nlc3MifQ.ZDGteLfE88hi8lqZ7ZfpmIFnOxkQcGS7ya_zfvQub60
{
"name": "New Name",
"strain_type": "sativa"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 92ea93aa7866b73d09b5900e8907af16-5425144b6cc2a80a-0
{
"data": {
"id": "00000000-0000-0000-0000-00000000012f",
"name": "New Name",
"strain_type": "SATIVA"
}
}
Update an existing strain.
Required permission: settings_permissions_strains.
Request
POST /public/v1/strains/{id}
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Strain ID | path | string | true | ||
| name | Name of the strain | query | string | false | ||
| strain_type | Type of strain (indica, indica_dominant, sativa, sativa_dominant, hybrid, high_cbd) | query | string | false |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | Strain updated | Strain |
| 400 | Invalid parameters | |
| 404 | Not Found |
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZGNlOWU2ZDAtZTU3Zi00Yjc3LWI2YjMtNDcxNjYwYTVmZGY0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc1MTciLCJ0eXAiOiJhY2Nlc3MifQ.Is0cIwdrUagunqMCnlIp4WEpIChamgvFjsvjiOOqqVU
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 03c793015aab05bc3153eddfd1666527-61bf9a27d2e6630b-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-00000000009a",
"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-00000000024c",
"release_date": "2026-06-18",
"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-06-18T17:28:26.890642Z"
},
{
"additional_test_results": {
"thca_percentage": "12"
},
"batch_id": "00000000-0000-0000-0000-000000001a66",
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-00000000009b",
"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-06-18T17:28:26.903439Z"
},
{
"additional_test_results": {},
"batch_id": null,
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-00000000009c",
"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-000000000250",
"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-06-18T17:28:26.963778Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDUsImlhdCI6MTc4MTgwMzcwNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZGY1MDQ3MjUtMjlkMS00YzRhLWIzZDMtOGFlNmE2NjkzZDU5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTcxMDciLCJ0eXAiOiJhY2Nlc3MifQ.v37w5ELx10VXVMr8h81VIFgXnYbFOyXjjeDYYloRS-Q
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: ed49547b7af16b6b4f4bc506e7ed995a-08234bb1d9cf99d7-0
{
"data": [
{
"additional_test_results": {
"spiroxamine_a_ug_per_g": "13",
"thiacloprid_ug_per_g": "14"
},
"batch_id": "00000000-0000-0000-0000-0000000019c4",
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-000000000092",
"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-06-18T17:28:25.604617Z"
}
],
"next_page": null
}
Get test results filtered by various attributes.
Note: The page size for this endpoint is 5000 test results per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Required permission: products_permissions_view.
Request
GET /public/v1/test-results
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| updated_datetime | Filter test results by the datetime they were most recently modified | query | string | false | ,2022-07-10T00:00:00Z | |
| page | Pagination information | query | number | false | ?page[number]=1 |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A list of test results | TestResults |
Get a test result
GET /public/v1/test-results/:id returns a single test result
GET /public/v1/test-results/00000000-0000-0000-0000-000000000096
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjEzZDE2NWEtODhmNi00MGI3LWIzZDQtYzllN2UxNWE0YTZiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc0MTYiLCJ0eXAiOiJhY2Nlc3MifQ.m91Wp55X7XWCRUxRpye0FMt5YTWH3BAP-2fxeBWzmUM
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: bb04b52723c8c2d46fb6fb51625f1be7-e75aacce66b63472-0
{
"data": {
"additional_test_results": {},
"batch_id": "00000000-0000-0000-0000-000000001a38",
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-000000000096",
"is_primary": false,
"lab_license_number": null,
"lab_name": null,
"mg_per_unit_type": "mg/g",
"name": "TR001",
"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-06-18T17:28:26.490444Z"
}
}
Get a single test result given the ID.
Required permission: products_permissions_view.
Request
GET /public/v1/test-results/{id}
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Test Result ID | path | string | true |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single test result | TestResult |
| 404 | Not Found |
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDUsImlhdCI6MTc4MTgwMzcwNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTI3NWIxZWMtNjVhMS00YWZkLWE3NWQtNWNmMzNiNWMwZTA3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTcyMTAiLCJ0eXAiOiJhY2Nlc3MifQ.W1vBGMYvTGh-D_m9PW2c2yDhshUH7vomWCb2Lzf7PEg
{
"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-0000000019ed",
"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: a24f59f0de4557916f5e19b7b6bc18de-95b320a628bdda3a-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-0000000019ed",
"cbd_mg_per_unit": "1.1",
"cbd_percentage": "2.2",
"id": "00000000-0000-0000-0000-000000000094",
"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-06-18T17:28:25.934861Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDMsImlhdCI6MTc4MTgwMzcwMywiaXNzIjoiRGlzdHJ1IiwianRpIjoiYzcwYzFhNGMtZjZiMy00MjNlLTg2ZDItOTc0YWFlMTRkOTIxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzAyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTY1MjciLCJ0eXAiOiJhY2Nlc3MifQ.iz4nly-s5jAIjGSyAOkE_UpnMfMdZmSXEjEUGU_PLbo
{
"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-00000000022e"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: d4cda11a75a859f8f4987446e1360e1e-e5a3abbe036f49f3-0
{
"data": {
"additional_test_results": {},
"batch_id": null,
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-00000000008b",
"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-00000000022e",
"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-06-18T17:28:24.467901Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjlhNjFlYjgtMDQ2OC00ODk2LTkyNzEtMjgzZjgwMzc5YzBlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTczOTYiLCJ0eXAiOiJhY2Nlc3MifQ.guNkSlwt_dkYPqM_RsRZ-kPretOMlkXuc2fSOOwKWYY
{
"batch_id": "00000000-0000-0000-0000-000000001a2f",
"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: ba22010bb4705e31be8210b6a4cbd075-c5550b7716744685-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDIsImlhdCI6MTc4MTgwMzcwMiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiM2RlNjFmMzYtMjUxYS00NGI1LWI0OWItYTYwNTZhZGNjZGRhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzAxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTYyNjkiLCJ0eXAiOiJhY2Nlc3MifQ.xCaJXzw5pXBie_T96iljZ5w80__bGkXJJHE9vnzSkZg
{
"additional_test_results": {},
"batch_id": "00000000-0000-0000-0000-0000000018e9",
"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: a77a835b219a9bb926ef299516f0f36e-20006b8d2e059774-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDYsImlhdCI6MTc4MTgwMzcwNiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYWFmY2EwZWQtMDM2OC00MzZiLTlkMWYtZDQ2Mzk4ODc2MGExIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTc0NDQiLCJ0eXAiOiJhY2Nlc3MifQ.l9lpj6paPCEu4Pe2q2I9GcQTD8p0XDKuI7fTpcTvsTc
{
"additional_test_results": {
"thca_percentage": "15"
},
"id": "00000000-0000-0000-0000-000000000097",
"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: f7dc17f19a29b711eee355de0ad22cfb-454252920d54238b-0
{
"data": {
"additional_test_results": {
"thca_percentage": "15"
},
"batch_id": "00000000-0000-0000-0000-000000001a3e",
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-000000000097",
"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-06-18T17:28:26.608030Z"
}
}
Upsert a single test result. To update an existing test result, pass in an existing test result ID in the id field. When updating a test result, you must pass in all fields including all additional test results (no sparse update currently supported). Result percentage values can have no more than 4 decimal places. Required permission: products_permissions_edit.
Request
POST /public/v1/test-results
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Unique ID for this test result. If it exists, an update will be performed, and will otherwise throw an error. Only non-compliance tracked test results can be updated. | query | string | false | ||
| package_id | The ID of the package this test result belongs to. Cannot be provided if either id or batch_id is provided. | query | string | false | 123e4567-e89b-12d3-a456-426614174000 | |
| batch_id | The ID of the batch this test result belongs to. Cannot be provided if either id or package_id is provided. | query | string | false | 123e4567-e89b-12d3-a456-426614174000 | |
| additional_test_results | The additional tests results for this test result. Check here for the valid options. | body | 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDQsImlhdCI6MTc4MTgwMzcwNCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjcwNTNiYjgtMjIyMy00YjZjLWIwM2QtOWY3MjAwYmYwZTk0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzAzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTY4NDgiLCJ0eXAiOiJhY2Nlc3MifQ.QoUFP9X9b5kfk3PaIAfvv0bXDfxbFwZmVajTNDf2koU
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: b1f929b9a8cdf7e8043d36f7a8f8aead-5cea999271ed47ed-0
{
"data": [
{
"banned": false,
"deleted_at": null,
"email": "owner-590@example.com",
"full_name": "FirstName1208 LastName1209",
"id": "00000000-0000-0000-0000-0000000041d0",
"role": {
"id": "00000000-0000-0000-0000-000000004328",
"name": "Admin 605"
}
},
{
"banned": false,
"deleted_at": null,
"email": "owner-594@example.com",
"full_name": "FirstName1216 LastName1217",
"id": "00000000-0000-0000-0000-0000000041d4",
"role": {
"id": "00000000-0000-0000-0000-00000000432c",
"name": "Admin 609"
}
}
],
"next_page": null
}
Get users sorted by their creation date and filtered by various attributes
Note: The page size for this endpoint is 1000 users per page. This endpoint returns eventually consistent data, with changes taking up to 1 second to propagate in responses.
Required permission: settings_permissions_manage_team.
Request
GET /public/v1/users
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| inserted_datetime | Filter users by their creation datetime | query | string | false | 2022-07-10T00:00:00Z, | |
| deleted | Filter deleted users. no returns non-deleted, only returns deleted, include returns both. |
query | string | false | no | |
| page | Pagination information | query | number | false | ?page[number]=1 | |
| updated_datetime | Filter users by the datetime they were most recently modified | query | string | false | ,2022-07-10T00:00:00Z |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A list of users | Users |
Get a user
GET /public/v1/users/:id returns a single user
GET /public/v1/users/00000000-0000-0000-0000-000000004188
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDQsImlhdCI6MTc4MTgwMzcwNCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiODM5YTNhYWItOWQxYy00NGQ4LTgwOWMtOTU4ZTkxNzI3OWRlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzAzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTY3NzUiLCJ0eXAiOiJhY2Nlc3MifQ.YdJSs3w66dFAAPzYGI0B0u2GauA9zyKAom0qDPreXpI
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 018f93e3393b7b9054fddec53f40686f-bd807c56318cf80d-0
{
"data": {
"banned": false,
"deleted_at": null,
"email": "owner-518@example.com",
"full_name": "FirstName1062 LastName1063",
"id": "00000000-0000-0000-0000-000000004188",
"role": {
"id": "00000000-0000-0000-0000-0000000042dd",
"name": "Admin 530"
}
}
}
Get a single user given the ID.
Required permission: settings_permissions_manage_team.
Request
GET /public/v1/users/{id}
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | User ID | path | string | true |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single user | User |
| 404 | Not Found |
Vehicle
Get vehicles
GET /public/v1/vehicles returns vehicles related to the company
GET /public/v1/vehicles
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDUsImlhdCI6MTc4MTgwMzcwNSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDc0M2QzZjAtYWJjZC00ODljLThjNmYtOGY2M2QyOGFjYjE4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzA0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTcwMDAiLCJ0eXAiOiJhY2Nlc3MifQ.jbcEweFNvncmtpQUtHMlPq8g4y34s0rGnwURSULDpb4
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 6e9e7f8f0f3d0479fa74ade7710bbb0a-3ae510aa2a899755-0
{
"data": [
{
"color": "Red",
"description": "Test Vehicle",
"id": "00000000-0000-0000-0000-00000000008e",
"inserted_datetime": "2026-06-18T17:28:25.309158Z",
"license_plate_number": "1234567890ABCDEFG",
"license_plate_state": "CA",
"make": "Toyota",
"model": "Camry",
"updated_datetime": "2026-06-18T17:28:25.309158Z",
"vin": "1234567890ABCDEFG",
"year": "2020"
},
{
"color": "Red",
"description": "Test Vehicle",
"id": "00000000-0000-0000-0000-00000000008f",
"inserted_datetime": "2026-06-18T17:28:25.315774Z",
"license_plate_number": "1234567890ABCDEFG",
"license_plate_state": "CA",
"make": "Honda",
"model": "Civic",
"updated_datetime": "2026-06-18T17:28:25.315774Z",
"vin": "1234567890ABCDEFG",
"year": "2020"
}
],
"next_page": null
}
List vehicles for the authenticated company.
Note: The page size for this endpoint is 500 vehicles per page.
Required permission: settings_permissions_vehicles.
Request
GET /public/v1/vehicles
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| page | Pagination information | query | number | false | ?page[number]=1 |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A list of vehicles | Vehicles |
Create a vehicle
POST /public/v1/vehicles creates a vehicle
POST /public/v1/vehicles
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDQsImlhdCI6MTc4MTgwMzcwNCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOWFhN2IwOTAtYzhlMC00YWVlLWFlMTYtZDBlODIzZTA5YzJhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzAzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTY2NjQiLCJ0eXAiOiJhY2Nlc3MifQ.jxFuYPSJZPSI8TNLiXeq5tF7T3t_L3Nidvs0g9Ig9R4
{
"color": "Red",
"description": "Delivery truck",
"license_plate_number": "XYZ789",
"license_plate_state": "TX",
"make": "Ford",
"model": "F-150",
"vin": "ABCDEFGHIJ1234567",
"year": "2024"
}
Response
201
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 48d5dbd4c3bf3f1eedde9f6b8e8452e6-9b78da90ec0f6131-0
{
"data": {
"color": "Red",
"description": "Delivery truck",
"id": "00000000-0000-0000-0000-000000000087",
"inserted_datetime": "2026-06-18T17:28:24.276166Z",
"license_plate_number": "XYZ789",
"license_plate_state": "TX",
"make": "Ford",
"model": "F-150",
"updated_datetime": "2026-06-18T17:28:24.276166Z",
"vin": "ABCDEFGHIJ1234567",
"year": "2024"
}
}
Create a new vehicle.
Required permission: settings_permissions_vehicles.
Request
POST /public/v1/vehicles
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| make | The make of the vehicle | query | string | true | ||
| model | The model of the vehicle | query | string | true | ||
| year | The year of the vehicle | query | string | false | ||
| color | The color of the vehicle | query | string | false | ||
| license_plate_number | The license plate number | query | string | true | ||
| license_plate_state | The license plate state | query | string | false | ||
| vin | The vehicle identification number (VIN) | query | string | false | ||
| description | A description or name for the vehicle | query | string | false |
Responses
| Status | Description | Schema |
|---|---|---|
| 201 | The created vehicle | Vehicle |
| 400 | Invalid parameters |
Get a vehicle
GET /public/v1/vehicles/:id returns a single vehicle
GET /public/v1/vehicles/00000000-0000-0000-0000-000000000082
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDMsImlhdCI6MTc4MTgwMzcwMywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDA5MmNlZjMtYjBkZS00OTZlLWE3MTctNmJjYWJlNGYzNGUwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzAyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTY0MTciLCJ0eXAiOiJhY2Nlc3MifQ.25cDpcRfj9YpM__Ep0_TNI0Nv311EI-PGEM_PiCVSiw
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 30084bafced18c547bbd306a9e4b4475-34e5acff0039987a-0
{
"data": {
"color": "Blue",
"description": "Company car",
"id": "00000000-0000-0000-0000-000000000082",
"inserted_datetime": "2026-06-18T17:28:23.440150Z",
"license_plate_number": "ABC123",
"license_plate_state": "CA",
"make": "Toyota",
"model": "Camry",
"updated_datetime": "2026-06-18T17:28:23.440150Z",
"vin": "1234567890",
"year": "2023"
}
}
Get a single vehicle given the ID.
Required permission: settings_permissions_vehicles.
Request
GET /public/v1/vehicles/{id}
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Vehicle ID | path | string | true |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | A single vehicle | Vehicle |
| 404 | Not Found |
Update a vehicle
POST /public/v1/vehicles/:id updates a vehicle
POST /public/v1/vehicles/00000000-0000-0000-0000-000000000081
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTMyNTMzMDMsImlhdCI6MTc4MTgwMzcwMywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNGY5ZGFlZTMtNGYxMy00YmQyLWEzYjEtMzc3NWM5YWRkM2IwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgxODAzNzAyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6MTYzMTEiLCJ0eXAiOiJhY2Nlc3MifQ.OuS272BReTxjPmqTGIXbEk0G1_akT-yldDCGZp0udS8
{
"color": "Red",
"make": "Honda",
"model": "Accord",
"year": "2023"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: aa61ac3e6995588d97f1529b9cf7f55b-b6ef46e0996733e3-0
{
"data": {
"color": "Red",
"description": "Test Vehicle",
"id": "00000000-0000-0000-0000-000000000081",
"inserted_datetime": "2026-06-18T17:28:23.018062Z",
"license_plate_number": "1234567890ABCDEFG",
"license_plate_state": "CA",
"make": "Honda",
"model": "Accord",
"updated_datetime": "2026-06-18T17:28:23.155380Z",
"vin": "1234567890ABCDEFG",
"year": "2023"
}
}
Update an existing vehicle.
Required permission: settings_permissions_vehicles.
Request
POST /public/v1/vehicles/{id}
Parameters
| Parameter | Description | In | Type | Required | Default | Example |
|---|---|---|---|---|---|---|
| id | Vehicle ID | path | string | true | ||
| make | The make of the vehicle | query | string | false | ||
| model | The model of the vehicle | query | string | false | ||
| year | The year of the vehicle | query | string | false | ||
| color | The color of the vehicle | query | string | false | ||
| license_plate_number | The license plate number | query | string | false | ||
| license_plate_state | The license plate state | query | string | false | ||
| vin | The vehicle identification number (VIN) | query | string | false | ||
| description | A description or name for the vehicle | query | string | false |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | The updated vehicle | Vehicle |
| 400 | Invalid parameters | |
| 404 | Not Found |
Changelog
2024-10-2
- Added GET
/public/v1/strainsendpoint. - In endpoint GET /public/v1/companies, added fields category and relationship to the response.
2024-11-6
- Field thc of type string in the Product object was replaced with total_thc field of type number.
- Field cbd of type string in the Product object was replaced with total_cbd field of type number.
- Added total_cannabinoid_unit field to Product object. Allowed values are either "MG" or "PERCENT".
2024-12-24
- Added billing_location_id to POST
/public/v1/purchasesendpoint.
2024-12-26
- Added msrp, is_active, category.type and images.rank to GET
/public/v1/products.
2025-01-08
- Added GET
/public/v1/payment-methodsendpoint.
2025-01-15
- Added POST
/public/v1/purchases/:id/paymentsendpoint. - Added POST
/public/v1/invoices/:id/paymentsendpoint.
2025-01-17
- Added
product_unit_quantityto GET/public/v1/packagesendpoint. - Added
product_unit_typeto GET/public/v1/packagesendpoint.
2025-01-31
- Added POST
/public/v1/batchesendpoint. - Added batch_number, product_id, owner_id and description to GET
/public/v1/batchesendpoint. - Added title and phone_number to GET
/public/v1/contactsendpoint.
2025-02-26
Page size change from 50,000 to 5000 for the following endpoints:
- GET
/public/v1/batches - GET
/public/v1/companies - GET
/public/v1/contacts - GET
/public/v1/inventory - GET
/public/v1/packages - GET
/public/v1/products - GET
/public/v1/purchases
- GET
2025-08-19
- All GET endpoints now return eventually consistent data, with changes taking up to 1 second to propagate in responses
2025-03-05
- Added GET
/public/v1/assembliesendpoint.
2025-03-11
- Added
total_cost_actual,total_cost_defaultandreturned_quantityto "items" in GET/public/v1/invoicesendpoint. - Added
total_cost_actual,total_cost_defaultandreturned_quantityto "items" in GET/public/v1/invoices/:idendpoint. - Added
total_cost_actual,total_cost_defaultandreturned_quantityto "items" in GET/public/v1/ordersendpoint. - Added
total_cost_actual,total_cost_defaultandreturned_quantityto "items" in GET/public/v1/orders/:idendpoint.
2025-03-18
- Modified
unit_net_weightandunit_serving_sizein GET/public/v1/productsendpoint: These fields can now be populated regardless of the product's unit type.
2025-04-09
- Added the following fields to GET
/public/v1/companiesendpoint:legal_business_namedefault_emailphone_numberinvoice_emailsales_order_emailpurchase_order_emailorder_shipment_emailwebsitedefault_sales_order_notesdefault_purchase_order_notesoutstanding_balance_thresholdowner_id
2025-05-06
- Added
is_trade_sampleto GET/public/v1/packagesendpoint.
2025-05-13
- Added GET
/public/v1/adjustmentsendpoint.
2025-05-14
Added
custom_datato the response of the following endpoints:- GET
/public/v1/assemblies - GET
/public/v1/batches - POST
/public/v1/batches - GET
/public/v1/companies - GET
/public/v1/contacts - GET
/public/v1/invoices - GET
/public/v1/invoices/:id - POST
/public/v1/invoices - GET
/public/v1/orders - GET
/public/v1/orders/:id - POST
/public/v1/orders - GET
/public/v1/packages - GET
/public/v1/products - POST
/public/v1/products - GET
/public/v1/purchases - POST
/public/v1/purchases
- GET
2025-05-15
- Added POST
/public/v1/stock_adjustmentsendpoint.
2025-05-16
- Added GET
/public/v1/test-results - Added POST
/public/v1/test-results
2025-05-18
- Added
leaflink_order_numberto GET/public/v1/orders
2025-05-22
- Added
external_nameto GET/POST/public/v1/products
2025-05-27
- Added
biotrack_idandmetrc_transfer_idto POST/public/v1/orders
2025-06-09
- Added POST
/public/v1/file-attachmentsendpoint for uploading files and attaching them to business entities (products, orders, purchases, etc.).
2025-06-12
- Added
metrc_transfer_idandbiotrack_idto GET/public/v1/orders
2025-06-12
- Changed
coston GET/public/v1/assembliestototal_cost_actualiningredients - Added
total_cost_defaultto GET/public/v1/assembliesiningredients - Added
total_cost_actualto GET/public/v1/assembliesinadditional_costs - Added
total_cost_defaultto GET/public/v1/assembliesinadditional_costs
2025-07-01
- Added
description_markdownto GET/POST/public/v1/products
2025-08-20
- Added GET
/public/v1/product-pos-mappingsendpoint - Added POST
/public/v1/product-pos-mappingsendpoint - Added DELETE
/public/v1/product-pos-mappings/:idendpoint
2025-08-21
- Added
groupto GET/public/v1/companies
2025-09-10
Added
cost_per_unit_actualandcost_per_unit_defaultto the following endpoints:- GET
public/v1/assemblies - GET
public/v1/orders - GET
public/v1/orders/:id - GET
public/v1/invoices - GET
public/v1/invoices/:id - GET
public/v1/batches - GET
public/v1/packages
- GET
Added fields
total_cost_actual,total_cost_defaultand attributeinclude_coststo the following endpoints:- GET
public/v1/batches - GET
public/v1/packages
- GET
2025-15-10
Added the following fields to
public/v1/inventorytotal_cost_actualtotal_cost_defaultcost_per_unit_actualcost_per_unit_default
2025-19-10
- Added
unit_costto the endpoint GETpublic/v1/products
2025-24-10
Added the following fields to
public/v1/productsunit_net_weight_serving_size_unit_typeunit_net_weightunit_serving_size
2026-01-19
Added the following endpoints:
- POST
public/v1/contacts - POST
public/v1/custom-fields
- POST
Added the following fields to
public/v1/adjustmentscompliance_unit_typeunit_type
Added the
batch_idsandlocation_idsfilter parameters to GETpublic/v1/inventory.Added the
product_idandbatch_numberfilter parameters to GETpublic/v1/batches.Added the
product_namefilter parameter to GETpublic/v1/products.Added the
product_idsfilter parameter to GETpublic/v1/packages.
2026-01-21
- Added the
manufactured_datetimefield to GETpublic/v1/batchesand POSTpublic/v1/batches. - Added the
assembly_numberandestimated_start_datefields to GETpublic/v1/assemblies. - Added the
reservedfield to GETpublic/v1/inventory.
2026-01-23
- Added the
deleted_atfield and thedeletedfilter parameter to the following endpoints:- GET
public/v1/batches(breaking change: deleted batches are no longer returned by default) - GET
public/v1/companies - GET
public/v1/contacts - GET
public/v1/locations - GET
public/v1/payment_methods - GET
public/v1/products(breaking change: deleted products are no longer returned by default) - GET
public/v1/users
- GET
- Added
estimated_departure_datetimeandestimate_arrival_datetimetometrc_transfer_template_transporter_infofield in POSTpublic/v1/orders.- Added automatic estimated departure / arrival calculations for transporters such that, if left blank, the fields will be populated with the first departure estimate being the time that the template was sent to Metrc, the drive time for each transporter being 1 hour, and the departure of the next transporter being the arrival time of the previous transporter.
- Modified Destination estimated departure / arrival times to be the first departure and the last arrival of the specified transporters.
2026-02-10
- Added the
payment_terms_namefield to GETpublic/v1/orders
2026-02-12
- Added the
completion_datetimeas a query parameter to GETpublic/v1/adjustments - Added the
inserted_atfield topublic/v1/adjustments
2026-02-13
- Added
batch_ids[]query parameter to GET/public/v1/batchesendpoint to filter batches by batch IDs.
2026-03-10
- Added
POST /public/v1/products/{id}/imagesendpoint - Added
POST /public/v1/companiesendpoint
2026-03-27
- Removed
POST /public/v1/products/{id}/imagesendpoint
2026-05-01
- Added
custom_datafield to POST/public/v1/productsendpoint
2026-05-06
- Added
menu_idandmenu_namefilter parameters to GET/public/v1/productsendpoint
2026-05-11
- Added
lab_testing_statefield to GET/public/v1/packagesendpoint - Added support for non-admin users to use the API.
- Added permission checks to most controllers.
2026-05-17
- Added
company_idfilter parameter to GET/public/v1/ordersendpoint - Added GET
/public/v1/menusendpoint
2026-05-25
- Added GET
/public/v1/returnsendpoint
2026-05-28
- Added ability to fetch by /id on most endpoints
2026-06-08
- Added GET/POST
/public/v1/custom-fieldsendpoint - Added GET/POST
/public/v1/vehiclesendpoint - Added GET/POST
/public/v1/strains/:idendpoint - Added
license_numberandinventory_sourceto order responses - Added
custom_datato POST/public/v1/ordersendpoint