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",
"quickbooks_sync_enqueued": true
}
| 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 |
| quickbooks_sync_enqueued | Whether a sync of this payment to QuickBooks was enqueued. False when the company isn't integrated with QuickBooks, or when the payment's invoice or credits aren't synced yet (those must be synced first). | boolean | 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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzhlYjIyOWMtNWE5My00NDM4LWJlMzAtODc0MTVhNmU0M2MxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjY3MiIsInR5cCI6ImFjY2VzcyJ9.Tb-IQaFbPHrL9v4B2Iw4ee6vGIpkWi-JUOY-cZCCxZ8
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 7fbf9509cc6cdf445376186e96e547c4-ed41fc9255e1828f-0
{
"data": [
{
"assembly_number": "AS-0000001",
"completion_datetime": "2026-06-23T08:54:39.885514Z",
"compliance_type": "NONE",
"creation_source": "MANUALLY_CREATED",
"custom_data": [
{
"id": 188,
"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": "fd04e1d7-388b-4625-a981-553b00790aa4",
"is_metrc_processing_job": false,
"license": null,
"outputs": [
{
"additional_costs": [
{
"cost_per_unit": "-1",
"description": null,
"name": "CostType 3",
"quantity": "1",
"total_cost_actual": "-1",
"total_cost_default": "0",
"unit_type": {
"id": "00000000-0000-0000-0000-00000001029d",
"name": "Unit Type 6"
}
}
],
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000096b",
"name": "B776"
},
"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-00000000096b",
"name": "B776"
},
"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-00000000144f",
"id": "00000000-0000-0000-0000-000000000659",
"license_id": null,
"name": "Place 256"
},
"package": null,
"product": {
"id": "0a0c590c-c317-401f-bf3a-33f03f2c703a",
"name": "Product 771",
"sku": "sku 772",
"updated_datetime": "2026-06-23T08:54:39.833519Z"
},
"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-00000000144f",
"id": "00000000-0000-0000-0000-000000000659",
"license_id": null,
"name": "Place 256"
},
"package": null,
"package_datetime": null,
"package_unit_type": null,
"product": {
"id": "0a0c590c-c317-401f-bf3a-33f03f2c703a",
"name": "Product 771",
"sku": "sku 772",
"updated_datetime": "2026-06-23T08:54:39.833519Z"
},
"quantity": "2",
"total_cost_actual": "-0.6",
"total_cost_default": "1"
}
],
"owner_id": "00000000-0000-0000-0000-000000001a10",
"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-00000023&page[number]=1
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzgsImlhdCI6MTc4MjIwNDg3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiODFmZTg2YmQtNjdjMy00MTY5LTg5YzMtZTBlYTFkNmM4MmNlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjIyNCIsInR5cCI6ImFjY2VzcyJ9.CT5KQxyGOaOcsTDBlWY3MthdT-tXycv_QxeRIi1-M24
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: b01e82db1d67bce630cdb0c3f5a4364e-ae51078323040284-0
{
"data": [
{
"assembly_number": "AS-0000001",
"completion_datetime": null,
"compliance_type": "METRC",
"creation_source": "MANUALLY_CREATED",
"custom_data": [
{
"id": 155,
"name": "Custom Field 19",
"value": null
}
],
"description": null,
"estimated_start_date": null,
"estimated_work_hours": null,
"estimated_work_minutes": null,
"fulfilled": true,
"id": "feca391e-6d9b-43b1-a253-1419e6a7c639",
"is_metrc_processing_job": false,
"license": {
"id": "00000000-0000-0000-0000-00000000017e",
"license_number": "CDPH-00000023"
},
"outputs": [
{
"additional_costs": [],
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000915",
"name": "B467"
},
"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-000000000915",
"name": "B467"
},
"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-0000000012f5",
"id": "00000000-0000-0000-0000-00000000061a",
"license_id": "00000000-0000-0000-0000-00000000017e",
"name": "Place 193"
},
"package": {
"batch_number": "1234567890",
"compliance_label": "ABCDEF012345670000000038",
"id": "00000000-0000-0000-0000-0000000000d3",
"metrc_label": "ABCDEF012345670000000038",
"status": "active"
},
"product": {
"id": "1e278936-d749-4fa9-842e-a5ad841199c6",
"name": "Product 455",
"sku": "sku 456",
"updated_datetime": "2026-06-23T08:54:38.689329Z"
},
"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-0000000012f5",
"id": "00000000-0000-0000-0000-00000000061a",
"license_id": "00000000-0000-0000-0000-00000000017e",
"name": "Place 193"
},
"package": null,
"package_datetime": "2026-06-23",
"package_unit_type": {
"id": "00000000-0000-0000-0000-00000000f05e",
"name": "Gram"
},
"product": {
"id": "1e278936-d749-4fa9-842e-a5ad841199c6",
"name": "Product 455",
"sku": "sku 456",
"updated_datetime": "2026-06-23T08:54:38.689329Z"
},
"quantity": "2",
"total_cost_actual": null,
"total_cost_default": null
}
],
"owner_id": "00000000-0000-0000-0000-000000001850",
"status": "PENDING"
}
],
"next_page": null
}
GET /public/v1/assemblies returns proper data for completed metrc assembly
GET /public/v1/assemblies?completion_datetime=2026-06-23+07%3A54%3A39.226225Z%2C2026-06-23+09%3A54%3A39.226225Z&creation_source=MANUALLY_CREATED&license_number=CDPH-00000031&page[number]=1
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNjA4M2YwNDItMWE4Ni00MjI2LTlhNTgtZWU3OWM5NzJmN2IzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjQwNyIsInR5cCI6ImFjY2VzcyJ9.X7Z4iCCp5YqaeWoEJ8__g7TbpRBnZXsNGYt-EUac47E
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: b4cdb4aa5e25729e4e6863680552a3a8-9aa0ed07ee0d19b9-0
{
"data": [
{
"assembly_number": "AS-0000001",
"completion_datetime": "2026-06-23T08:54:39.226225Z",
"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": "498752df-ff74-4082-83a3-2afffe6fcb95",
"is_metrc_processing_job": false,
"license": {
"id": "00000000-0000-0000-0000-000000000186",
"license_number": "CDPH-00000031"
},
"outputs": [
{
"additional_costs": [],
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000093b",
"name": "B594"
},
"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-00000000093b",
"name": "B594"
},
"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-000000001382",
"id": "00000000-0000-0000-0000-00000000063d",
"license_id": "00000000-0000-0000-0000-000000000186",
"name": "Place 228"
},
"package": {
"batch_number": "1234567890",
"compliance_label": "ABCDEF012345670000000052",
"id": "00000000-0000-0000-0000-0000000000da",
"metrc_label": "ABCDEF012345670000000052",
"status": "active"
},
"product": {
"id": "dc4615a8-442b-40ff-9efb-96eb12c423c4",
"name": "Product 586",
"sku": "sku 587",
"updated_datetime": "2026-06-23T08:54:39.073112Z"
},
"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-000000001382",
"id": "00000000-0000-0000-0000-00000000063d",
"license_id": "00000000-0000-0000-0000-000000000186",
"name": "Place 228"
},
"package": {
"batch_number": null,
"compliance_label": "1A4010200001234000000002",
"id": "00000000-0000-0000-0000-0000000000dc",
"metrc_label": "1A4010200001234000000002",
"status": "active"
},
"package_datetime": "2026-06-23",
"package_unit_type": {
"id": "00000000-0000-0000-0000-00000000f773",
"name": "Gram"
},
"product": {
"id": "dc4615a8-442b-40ff-9efb-96eb12c423c4",
"name": "Product 586",
"sku": "sku 587",
"updated_datetime": "2026-06-23T08:54:39.073112Z"
},
"quantity": "2",
"total_cost_actual": null,
"total_cost_default": null
}
],
"owner_id": "00000000-0000-0000-0000-000000001907",
"status": "COMPLETED"
}
],
"next_page": null
}
GET /public/v1/assemblies returns proper data for biotrack assembly
GET /public/v1/assemblies?completion_datetime=2026-06-23+07%3A54%3A39.635859Z%2C2026-06-23+09%3A54%3A39.635859Z&creation_source=MANUALLY_CREATED&license_number=CDPH-00000036&page[number]=1
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTc3NjMzNTgtZTdiZS00MmFkLTk3Y2EtZDJiMTQ3YTFlNzZiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjU1MyIsInR5cCI6ImFjY2VzcyJ9.TViG5yYoVvqt5lxSsiV_lOlgAxkspIHUzkOW9HRT4PM
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: d9b1f91f8b217a2437fa940e925e9da3-c13d16b379abcf65-0
{
"data": [
{
"assembly_number": "AS-0000001",
"completion_datetime": "2026-06-23T08:54:39.635859Z",
"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": "49e50ebd-50c7-4813-866c-c9f21104e20f",
"is_metrc_processing_job": false,
"license": {
"id": "00000000-0000-0000-0000-00000000018b",
"license_number": "CDPH-00000036"
},
"outputs": [
{
"additional_costs": [],
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000955",
"name": "B691"
},
"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-000000000955",
"name": "B691"
},
"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-0000000013ee",
"id": "00000000-0000-0000-0000-00000000064a",
"license_id": "00000000-0000-0000-0000-00000000018b",
"name": "Place 241"
},
"package": {
"batch_number": null,
"compliance_label": "0000000000000001",
"id": "00000000-0000-0000-0000-0000000000e4",
"metrc_label": "0000000000000001",
"status": "active"
},
"product": {
"id": "3db00ec5-a3f7-4404-a0e8-aea16f15c5dc",
"name": "Product 689",
"sku": "sku 690",
"updated_datetime": "2026-06-23T08:54:39.440838Z"
},
"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-0000000013ee",
"id": "00000000-0000-0000-0000-00000000064a",
"license_id": "00000000-0000-0000-0000-00000000018b",
"name": "Place 241"
},
"package": {
"batch_number": null,
"compliance_label": null,
"id": "00000000-0000-0000-0000-0000000000e9",
"metrc_label": null,
"status": "active"
},
"package_datetime": null,
"package_unit_type": {
"id": "00000000-0000-0000-0000-00000000fcef",
"name": "Gram"
},
"product": {
"id": "3db00ec5-a3f7-4404-a0e8-aea16f15c5dc",
"name": "Product 689",
"sku": "sku 690",
"updated_datetime": "2026-06-23T08:54:39.440838Z"
},
"quantity": "1",
"total_cost_actual": null,
"total_cost_default": null
}
],
"owner_id": "00000000-0000-0000-0000-000000001999",
"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/1de06e37-5aae-4e0e-b747-8c49b652e9c8
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODAsImlhdCI6MTc4MjIwNDg4MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZGRjZjk2ZWYtMzFhOS00YzA4LWIzZjktMzIxMThkNTRhMjMwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjczMCIsInR5cCI6ImFjY2VzcyJ9.qmCC1JgTkWvGF7BgEXRG-boVB53QzaJ9oaOVspZyVLI
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 87bf2c7e49856e7cc6e54649b63b1969-b88bb673386d1671-0
{
"data": {
"assembly_number": "ASM001",
"completion_datetime": null,
"compliance_type": "NONE",
"creation_source": "MANUALLY_CREATED",
"custom_data": [],
"description": "And it must follow, as the night the day, thou canst not then be false to any man.",
"estimated_start_date": null,
"estimated_work_hours": null,
"estimated_work_minutes": null,
"fulfilled": true,
"id": "1de06e37-5aae-4e0e-b747-8c49b652e9c8",
"is_metrc_processing_job": false,
"license": null,
"outputs": [],
"owner_id": "00000000-0000-0000-0000-000000001a4d",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzgsImlhdCI6MTc4MjIwNDg3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNjlhNGM4MjItOGEzMy00Yjg2LWEzZjgtOTc5YmZlMjY1NDFhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTk3NiIsInR5cCI6ImFjY2VzcyJ9.LikR8yJABqx7tOGMNybJ8AUSYHBcIk6VRjCM-yn7y_g
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: f8a315046afb9aa4d3853c45e4d616b2-9a2fc415e38d5fde-0
{
"data": [
{
"batch_number": null,
"custom_data": [
{
"id": 146,
"name": "Custom Field 10",
"value": "Custom Data 1"
}
],
"deleted_at": null,
"description": null,
"expiration_date": "2024-01-01T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-0000000008d6",
"manufactured_datetime": "2024-01-02T03:04:05.000000Z",
"name": "B252",
"owner_id": "00000000-0000-0000-0000-00000000175c",
"primary_test_result": null,
"product_id": "84a482eb-115f-4250-a21c-b4af747d6655"
},
{
"batch_number": null,
"custom_data": [
{
"id": 146,
"name": "Custom Field 10",
"value": null
}
],
"deleted_at": null,
"description": null,
"expiration_date": null,
"id": "00000000-0000-0000-0000-0000000008d8",
"manufactured_datetime": "2024-01-02T03:04:05.000000Z",
"name": "B258",
"owner_id": "00000000-0000-0000-0000-000000001764",
"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": "cc94b0ec-2f56-4756-a489-73a462983b9c"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTI5YTFkOTUtMTU1Yi00YTY2LWJkNGMtOGFjMjJiMTNhODA4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjUwNCIsInR5cCI6ImFjY2VzcyJ9.khFIITTJ7TIgA1UZMUNJpNXikXzTYWv-hLsJZInAhV0
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 725e0b857e294974f3e78289ff3e422d-c43eb4f8a98231bf-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-000000000947",
"manufactured_datetime": "2026-06-23T08:54:39.246155Z",
"name": "B650",
"owner_id": "00000000-0000-0000-0000-000000001973",
"primary_test_result": null,
"product_id": "2c3a2299-3d1d-478e-97c2-670c15a99489",
"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-0000000008b6&batch_ids[]=00000000-0000-0000-0000-0000000008b8
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzcsImlhdCI6MTc4MjIwNDg3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGIxNmYzMWUtNGYwZi00MzQ0LTk5YzYtNDJjOTEzM2M4N2UyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTc4NyIsInR5cCI6ImFjY2VzcyJ9.5ObVYsRIy0fKrLY3TE2A3lZZJg-kxU5X4Omj_AKJV3I
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: b01b07803998fd29f427328cdc500653-a93f1030ff169345-0
{
"data": [
{
"batch_number": null,
"custom_data": [],
"deleted_at": null,
"description": null,
"expiration_date": null,
"id": "00000000-0000-0000-0000-0000000008b6",
"manufactured_datetime": "2026-06-23T08:54:37.523587Z",
"name": "B132",
"owner_id": "00000000-0000-0000-0000-00000000169d",
"primary_test_result": null,
"product_id": "015c9b3b-7d87-4004-9d09-281551a4e3a5"
},
{
"batch_number": null,
"custom_data": [],
"deleted_at": null,
"description": null,
"expiration_date": null,
"id": "00000000-0000-0000-0000-0000000008b8",
"manufactured_datetime": "2026-06-23T08:54:37.523587Z",
"name": "B142",
"owner_id": "00000000-0000-0000-0000-0000000016a2",
"primary_test_result": null,
"product_id": "e85b77bc-d8f5-4c45-a3dd-4c76cdc78728"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTI3NThmMDktYzFiMi00YTdiLWJjOTEtNDAxMjlmODQ0NDYwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjYyOCIsInR5cCI6ImFjY2VzcyJ9.qXAYfPCkawRPac30ad7MUAE_OShI2P_WkCwgmR_ikWU
{
"owner_id": "7c3a8f9e-e50e-40ac-8fa4-5df268b9f7ca",
"product_id": "e149b198-b21a-4f7f-a5df-cdac58988a7c"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 126cd7c2deb8e0ab2c2fcaf1392bb0b1-7e185a1f7683add1-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjNiOWM3YTktNTFkMy00NTM4LWFmMWUtYTE3ZjliNzNlYzRjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjUzOSIsInR5cCI6ImFjY2VzcyJ9.qDDdL5KJz4tYRG_Jz9w6GnDfabJcckEcsJ3Ucc55fjM
{
"product_id": "e54cf38c-99c9-43a4-9ac9-a937229f02a5"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 5e4a855a734345b3a9c383a2e6a255e0-ac48cca686e6710b-0
{
"data": {
"batch_number": null,
"custom_data": [],
"deleted_at": null,
"description": null,
"expiration_date": null,
"id": "00000000-0000-0000-0000-000000000950",
"manufactured_datetime": "2026-06-23T08:54:39.349208Z",
"name": "B1",
"owner_id": null,
"product_id": "e54cf38c-99c9-43a4-9ac9-a937229f02a5"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzcsImlhdCI6MTc4MjIwNDg3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzQzMDI5NzktMjgzOS00NDlkLWE0NWEtYjA4Y2FhZDNlYjQxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTYzNCIsInR5cCI6ImFjY2VzcyJ9.uNGGQ3kQhr_lJJcU-MyvIqZjbo1LptznS5QncT5Ved4
{
"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-00000000160b",
"product_id": "265cefcc-0df9-4e6f-a54c-1009bec6cd61"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 740e8bf35c0eeaa17a36920ea3d5e64d-e98835f67d5ef174-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-0000000008aa",
"manufactured_datetime": "2025-01-02T03:04:05.000000Z",
"name": "B1",
"owner_id": "00000000-0000-0000-0000-00000000160b",
"product_id": "265cefcc-0df9-4e6f-a54c-1009bec6cd61"
}
}
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-000000000962
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTIxYWJkOWEtMzA5YS00MGIwLTgxMGItNTYyOThmNjI2MDhmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjYzNiIsInR5cCI6ImFjY2VzcyJ9.TRH-PyQCXkConUmeLv4hbfmRrCKTmUl9deG1_aEeE5c
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 82aaf21dd6bea77a21ef080cd48fd89b-4d1967fa60ad8c70-0
{
"data": {
"batch_number": "B001",
"custom_data": [],
"deleted_at": null,
"description": "Test batch",
"expiration_date": null,
"id": "00000000-0000-0000-0000-000000000962",
"manufactured_datetime": "2026-06-23T08:54:39.621355Z",
"name": "B743",
"owner_id": "00000000-0000-0000-0000-0000000019f3",
"primary_test_result": null,
"product_id": "8c916df6-281b-4b40-9575-56739f69770d"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzgsImlhdCI6MTc4MjIwNDg3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDgzYTU3YzQtZGI5Zi00MzZjLTkxNjEtM2UxY2ZiNTAwYWM2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjAxNSIsInR5cCI6ImFjY2VzcyJ9.3k0S-2BYtK0rVSQlqWFPakF28GjMGT8oHaRD6RErnMM
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: a24a2b9b45bca68bfaba6ad61dcae2fa-7523611ed0e5066a-0
{
"data": [
{
"category": "Retailer",
"custom_data": [
{
"id": 147,
"name": "Custom Field 11",
"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-000000000009",
"name": "Comp Rel Group 2"
},
"id": "00000000-0000-0000-0000-000000000c8f",
"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-000000001256",
"id": "00000000-0000-0000-0000-0000000005db",
"license_id": null,
"name": "Place 130"
}
],
"name": "Company 365",
"order_shipment_email": "order shipment email",
"outstanding_balance_threshold": 1000,
"owner_id": "00000000-0000-0000-0000-00000000178e",
"phone_number": "1234567890",
"purchase_order_email": "purchase email",
"relationship_type": {
"id": "00000000-0000-0000-0000-000000000009",
"name": "Supplier"
},
"sales_order_email": "order email",
"updated_datetime": "2023-11-03T00:00:00.000000Z",
"website": "https://www.example.com"
},
{
"category": "Other",
"custom_data": [
{
"id": 147,
"name": "Custom Field 11",
"value": null
}
],
"default_email": "company-882@example.com",
"default_purchase_order_notes": null,
"default_sales_order_notes": null,
"deleted_at": null,
"group": null,
"id": "00000000-0000-0000-0000-000000000c90",
"invoice_email": null,
"legal_business_name": "Company Legal Name 368",
"licenses": [
{
"id": "00000000-0000-0000-0000-000000000179",
"license_number": "CDPH-00000018"
}
],
"locations": [],
"name": "Company 368",
"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-000000000c53
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzcsImlhdCI6MTc4MjIwNDg3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjQwZTgwYTctZjcyNi00Yjk3LTgxNmEtMGY3ODY2MTk5M2I5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTgyNCIsInR5cCI6ImFjY2VzcyJ9.RkULDOTkYvIxEbnV8OnFlXNFygXRvrF3cCgrPpl52zw
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 384e4b667faa0139b9e3d07ead47b43b-1c44164b39cefb37-0
{
"data": {
"category": "Retailer",
"custom_data": [
{
"id": 141,
"name": "Custom Field 5",
"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-000000000008",
"name": "Comp Rel Group 1"
},
"id": "00000000-0000-0000-0000-000000000c53",
"invoice_email": "inv@example.com",
"legal_business_name": "Legal Co",
"licenses": [
{
"id": "00000000-0000-0000-0000-000000000173",
"license_number": "CDPH-00000012"
}
],
"locations": [
{
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000011e2",
"id": "00000000-0000-0000-0000-0000000005a2",
"license_id": null,
"name": "Place 73"
}
],
"name": "Company 249",
"order_shipment_email": null,
"outstanding_balance_threshold": null,
"owner_id": "00000000-0000-0000-0000-0000000016d9",
"phone_number": null,
"purchase_order_email": null,
"relationship_type": {
"id": "00000000-0000-0000-0000-000000000008",
"name": "Supplier"
},
"sales_order_email": "order@example.com",
"updated_datetime": "2026-06-23T08:54:37.701851Z",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiM2UyZTY3YzItODUyZi00MjM5LTllOTktZDE5ODlmMGE0ZmIxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjQ5MCIsInR5cCI6ImFjY2VzcyJ9.piTTrQkhP3_13Lhy_gYCiZ3Stdz2rcfSev22bXwwu4g
{
"name": "New Retailer"
}
Response
201
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 4793a7e8e7fca8b6a14090aaccdd24cb-3390cbe98b17b4c1-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-000000000d65",
"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-23T08:54:39.230076Z",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzYsImlhdCI6MTc4MjIwNDg3NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMWI2YTc1ODgtNDUzZC00NjZmLTk4OTMtMTQ5OTA0ZDU0ODZjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTU0NCIsInR5cCI6ImFjY2VzcyJ9.zjjam-WfRPH0DB_h02C1d5nmG6tss6S_mF6cJ52ODog
{
"category": "Retail",
"custom_data": {
"134": "VIP"
},
"default_email": "info@fullretailer.com",
"default_purchase_order_notes": "Purchase notes",
"default_sales_order_notes": "Sales notes",
"group_id": "00000000-0000-0000-0000-000000000007",
"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-0000000015aa",
"phone_number": "555-1234",
"purchase_order_email": "purchasing@fullretailer.com",
"relationship_type_id": "00000000-0000-0000-0000-000000000007",
"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: b05cf01f8d58cd8e94e1cc7578228e14-e052a42bbcb05fce-0
{
"data": {
"category": "Retail",
"custom_data": [
{
"id": 134,
"name": "Custom Field 1",
"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-000000000007",
"name": "Comp Rel Group 0"
},
"id": "00000000-0000-0000-0000-000000000c02",
"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-0000000015aa",
"phone_number": "555-1234",
"purchase_order_email": "purchasing@fullretailer.com",
"relationship_type": {
"id": "00000000-0000-0000-0000-000000000007",
"name": "Supplier"
},
"sales_order_email": "orders@fullretailer.com",
"updated_datetime": "2026-06-23T08:54:36.818556Z",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYzE2MGNhMjktZTRiYi00OGVjLWFlYTUtMzFiYzU2ZGY5ODllIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjUyNiIsInR5cCI6ImFjY2VzcyJ9.HXUFbLs6UZflc6yZ0gE9m8Evro6ePcRph9LpwcotxYU
{
"id": "00000000-0000-0000-0000-000000000d76",
"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: 404b8d1f06c708ca2240a585fd737f04-6e4cdf9f4110950f-0
{
"data": {
"category": "Microbusiness",
"custom_data": [],
"default_email": "company-1783@example.com",
"default_purchase_order_notes": null,
"default_sales_order_notes": null,
"deleted_at": null,
"group": null,
"id": "00000000-0000-0000-0000-000000000d76",
"invoice_email": "newinvoice@example.com",
"legal_business_name": "Company Legal Name 761",
"licenses": [],
"locations": [],
"name": "Updated Name",
"order_shipment_email": null,
"outstanding_balance_threshold": null,
"owner_id": "00000000-0000-0000-0000-000000001983",
"phone_number": null,
"purchase_order_email": null,
"relationship_type": null,
"sales_order_email": null,
"updated_datetime": "2026-06-23T08:54:39.349351Z",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzgsImlhdCI6MTc4MjIwNDg3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYWI3YWM3YTgtODBlNC00Y2UxLWI1NmQtNDc0ZWMwMzkxMDg0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjEyMCIsInR5cCI6ImFjY2VzcyJ9.ZRI66xB6Z8aa75YXLPR-2G4jIxrvJWgD8MQx16ArKgE
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 8dabb3a2234f6f4fdeeab591a1f9af3e-9690ea5234c0f662-0
{
"data": [
{
"company": {
"id": "00000000-0000-0000-0000-000000000cc6"
},
"custom_data": [
{
"id": 149,
"name": "Custom Field 13",
"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-000000000066",
"last_name": "name1",
"owner": {
"id": "00000000-0000-0000-0000-0000000017eb"
},
"phone_number": "1234567890",
"title": null,
"work_phone_number": "1234567891"
},
{
"company": {
"id": "00000000-0000-0000-0000-000000000cc8"
},
"custom_data": [
{
"id": 149,
"name": "Custom Field 13",
"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-000000000067",
"last_name": "name2",
"owner": {
"id": "00000000-0000-0000-0000-0000000017f1"
},
"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-00000000006a
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzgsImlhdCI6MTc4MjIwNDg3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNmQ2OTRmYzItNTA0OC00NjJlLWJiYTgtZmQ4OTQxODM2NDEyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjE3OCIsInR5cCI6ImFjY2VzcyJ9.xojfagJQSa92IoAfEb3NAM3qGScIdilDwW0G28aF4eQ
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 924817f53cf6515058f08f4cfd5f77c7-33e882d4484a532b-0
{
"data": {
"company": {
"id": "00000000-0000-0000-0000-000000000ce4"
},
"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-00000000006a",
"last_name": "Doe",
"owner": {
"id": "00000000-0000-0000-0000-000000001823"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzYsImlhdCI6MTc4MjIwNDg3NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZGVlNGE3OWEtYTE5OS00NTlmLWFiOTktNWQ0NmFhOTc4ZDRmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTUxNiIsInR5cCI6ImFjY2VzcyJ9.YD8GYOmGuPxX76xjpQucdMYFfrjSFIVp7xbnpD2v6og
{
"company_id": "00000000-0000-0000-0000-000000000bf2",
"custom_data": {
"133": "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-00000000159c",
"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: 538b2947ac651e6c37074492d4f80f5b-01af009cb02e9f0d-0
{
"data": {
"company": {
"id": "00000000-0000-0000-0000-000000000bf2"
},
"custom_data": [
{
"id": 133,
"name": "Custom Field 0",
"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-000000000059",
"last_name": "Doe",
"owner": {
"id": "00000000-0000-0000-0000-00000000159c"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzcsImlhdCI6MTc4MjIwNDg3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDViOTkxMmUtODRiOS00YTFlLWI3NGEtOWM4YmNjNWY2NTViIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTkzOCIsInR5cCI6ImFjY2VzcyJ9.WdvUSBcqNaNPdWZMfxOzIsCMs-i08HtbaV7ftLkAFJI
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 940099e7010562e9851964cfd7831d07-7d77955d2d49d54a-0
{
"data": [
{
"description": null,
"field_options": [],
"field_type": "text",
"filterable": false,
"id": 143,
"name": "Field 1",
"parent_object": "product"
},
{
"description": null,
"field_options": [
"A",
"B"
],
"field_type": "dropdown",
"filterable": true,
"id": 144,
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzcsImlhdCI6MTc4MjIwNDg3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTljY2RjZGItYmQyMS00M2M2LWIwNWYtMDgyODNlYTViNzFkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTY2MCIsInR5cCI6ImFjY2VzcyJ9.TJwFh11Otd0Kg2PU4kVRbOfZIhlYKJ7tlLqe15XqqkI
{
"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: 537a1daac3e7f1a25ae231980e8cadc7-b444124ecacd2e14-0
{
"data": {
"description": "Notes",
"field_options": [],
"field_type": "text",
"filterable": false,
"id": 136,
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzgsImlhdCI6MTc4MjIwNDg3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZmYzZDgzZjUtNmEyZC00N2RiLWE5OGUtNjVhZDAzMmY2MzdkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjI5MCIsInR5cCI6ImFjY2VzcyJ9.zKhU9zc5Jv859P1jPvBs680wYt-emnQ9bDzOmtl3Ggg
{
"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: 79133eb204487cf1ee03c96ad1648b3d-d9e26f6eeda93b0a-0
{
"data": {
"description": null,
"field_options": [],
"field_type": "date",
"filterable": false,
"id": 156,
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzcsImlhdCI6MTc4MjIwNDg3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDhhMDU4NDYtYTlkOC00MjlmLTlhYjMtZTcxMDQ1NTQxN2I3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTczOSIsInR5cCI6ImFjY2VzcyJ9.KigTb5ET2c-aErY-PIqbWA3EEJfvIL4-VPvDnfaPmMc
{
"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: 33765e0a24b04b2d5d19e5f884f09ef2-6e4683e7890ed34f-0
{
"data": {
"description": null,
"field_options": [
"A",
"B"
],
"field_type": "dropdown",
"filterable": true,
"id": 138,
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNzQwOTNiOWItNWUzYy00NjBhLThmNmQtYmM5YTJmMmFmZjc2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjU4MiIsInR5cCI6ImFjY2VzcyJ9.WQzMwAcMuAQDsPPI12MUqshbDYa0B-y2x7TaE9ca2lE
{
"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: 81aea373550c87eacfd1e61bd34f8121-cf2eaca71c19730e-0
{
"data": {
"description": null,
"field_options": [
"Option 1"
],
"field_type": "checkbox",
"filterable": true,
"id": 185,
"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/163
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTg4ODZlMzgtMTk3Ny00Y2NlLWIzZjEtNDk3NjM1MjBjODA5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjQxOCIsInR5cCI6ImFjY2VzcyJ9.fzB0oRvFE5106AMuiC55-ly3vyMW3GII1eNJ5v58-DE
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: feb3e1ec37634eb20fe4b131fd0bc259-1ff190496337a6e8-0
{
"data": {
"description": "A test field",
"field_options": [
"A",
"B",
"C"
],
"field_type": "dropdown",
"filterable": true,
"id": 163,
"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/150
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzgsImlhdCI6MTc4MjIwNDg3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiN2VkZWE1NzAtNGY0Zi00ZTljLWFmZmUtM2NiMzMzN2I2MTg0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjE2NCIsInR5cCI6ImFjY2VzcyJ9.7TIHfRZ58SjgEBCFs5LJeoYYedyI4pDeYLU1fS1lomQ
{
"name": "Updated Name"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: d22602d1a9acf8bc283a188c861aa2f7-aa413e596bdbe17e-0
{
"data": {
"description": null,
"field_options": [],
"field_type": "text",
"filterable": false,
"id": 150,
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzcsImlhdCI6MTc4MjIwNDg3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiODMxMzdlZTYtMzFjYi00ZDRmLWEzNmUtZmJiZDlkMjM2ZDBjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTgyMCIsInR5cCI6ImFjY2VzcyJ9.V8-hH604lHh9KYKDmDXedgtb2HDmTMjqwVa_OOrasn8
{
"file": {
"filename": "test-image.png",
"content_type": "image/png"
},
"name": "My Test Image",
"product_id": "90a4c7db-8c45-4570-bbd7-f582bd02089d"
}
Response
201
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: f97bc091a1109c1ad3327523347ee121-b3280d8c17b10a57-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-00000000003b",
"invoice_id": null,
"license_id": null,
"mime_type": "image/png",
"name": "My Test Image",
"order_id": null,
"order_shipment_id": null,
"product_id": "90a4c7db-8c45-4570-bbd7-f582bd02089d",
"purchase_id": null,
"request_id": null,
"return_id": null,
"size_in_bytes": 355974,
"stock_transfer_id": null,
"task_id": null,
"upload_datetime": "2026-06-23T08:54:37.679925Z",
"uploader": {
"id": "00000000-0000-0000-0000-0000000016bc",
"name": "FirstName626 LastName627"
},
"url": "/tmp/888c20bd-5ebf-4c48-8b17-1fccebdb4014/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[]=6bcff8bd-11f3-47f2-be9f-bc1d502cec98
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDliMDQzZDItNTRhMy00ZWJkLTlkMTktYTk0ODI1ZTFjMTU4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjYxMiIsInR5cCI6ImFjY2VzcyJ9.UK7MFZH8WxsytcqlpMFeqtm-_EsLhq4aMtZiLsef21o
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 268c8aba799039142895cd6c047b60b0-e9fc7ded00907e4b-0
{
"data": [
{
"active": "10.000000000",
"available": "10.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "6bcff8bd-11f3-47f2-be9f-bc1d502cec98",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-23T08:54:39.623399Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjU4NmExNGItOGJjYS00ZmZjLTkyZDctZWU1MTlhZTI5NjI0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjY1NyIsInR5cCI6ImFjY2VzcyJ9.rqghvzPDikCIpRLW8s6bG8wD4Xkq_PTnpx1U30qBByk
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 44ee22880877afef93822e9fc9765730-3a3db8ee75ec1e93-0
{
"data": [
{
"active": "100.000000000",
"available": "90.000000000",
"cost_default_per_unit": "2.06",
"cost_per_unit_actual": "0.03",
"product_id": "5ace8a73-0ecb-4d9b-85f0-7c0bdb26f733",
"reserved": "10.000000000",
"total_cost_actual": "3",
"total_cost_default": "206",
"updated_datetime": "2026-06-23T08:54:40.219922Z"
},
{
"active": "95.000000000",
"available": "80.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "a282993f-bb34-4e5a-bbc3-6bf5330cb8a1",
"reserved": "15.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-23T08:54:40.221396Z"
},
{
"active": "50.000000000",
"available": "50.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "db5a76ce-20d5-42be-9e55-e4a8f798ee6c",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-23T08:54:40.117442Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzgsImlhdCI6MTc4MjIwNDg3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDdiNDI0OGItZmFmNC00NzQ5LTg5MjEtYzFmOGIyODUwMDY2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjM2MSIsInR5cCI6ImFjY2VzcyJ9.F0A93IfiRKVcCI10LG8SW7R790ZO_cVPHtzv5JJ7_Qo
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: fec1b81f4ae8eeda87d4ee33d732df09-7553764ad17ee3fb-0
{
"data": [
{
"active": "0.000000000",
"available": "-15.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-000000000631",
"product_id": "01ecba4a-12d8-434b-830c-94a3a876c2fb",
"reserved": "15.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-23T08:54:39.446091Z"
},
{
"active": "0.000000000",
"available": "-8.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-000000000633",
"product_id": "01ecba4a-12d8-434b-830c-94a3a876c2fb",
"reserved": "8.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-23T08:54:39.447078Z"
},
{
"active": "190.000000000",
"available": "169.000000000",
"cost_default_per_unit": "1",
"cost_per_unit_actual": "0.5",
"location_id": "00000000-0000-0000-0000-000000000642",
"product_id": "01ecba4a-12d8-434b-830c-94a3a876c2fb",
"reserved": "21.000000000",
"total_cost_actual": "95",
"total_cost_default": "190",
"updated_datetime": "2026-06-23T08:54:39.447872Z"
},
{
"active": "80.000000000",
"available": "80.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-000000000643",
"product_id": "01ecba4a-12d8-434b-830c-94a3a876c2fb",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-23T08:54:39.394557Z"
},
{
"active": "0.000000000",
"available": "-1.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": null,
"product_id": "01ecba4a-12d8-434b-830c-94a3a876c2fb",
"reserved": "1.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-23T08:54:39.450952Z"
},
{
"active": "100.000000000",
"available": "90.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-000000000631",
"product_id": "997bb735-395a-4398-9d80-9a527827fd35",
"reserved": "10.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-23T08:54:39.444164Z"
},
{
"active": "0.000000000",
"available": "-1.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-000000000633",
"product_id": "997bb735-395a-4398-9d80-9a527827fd35",
"reserved": "1.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-23T08:54:39.445366Z"
},
{
"active": "100.000000000",
"available": "100.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": "00000000-0000-0000-0000-000000000633",
"product_id": "9dda0fb9-85b9-4be6-a7f1-f0712cbf6eca",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-23T08:54:39.068904Z"
},
{
"active": "30.000000000",
"available": "26.000000000",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"location_id": null,
"product_id": "9dda0fb9-85b9-4be6-a7f1-f0712cbf6eca",
"reserved": "4.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-23T08:54:39.449833Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzYsImlhdCI6MTc4MjIwNDg3NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzgxMjUxY2YtNDllNi00NjM4LWFhNjgtMDQ1NmViMDVlM2M2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTYxNyIsInR5cCI6ImFjY2VzcyJ9.tTRu1dH4BoFl908rFV0Qx7NRm6w_wn4nXMxgFHRYQP4
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: a050b7a4d775dbb430919310a820484a-abe5263c3dfde162-0
{
"data": [
{
"active": "19.000000000",
"available": "19.000000000",
"batch_number": null,
"cost_default_per_unit": "2",
"cost_per_unit_actual": "1",
"product_id": "022b408a-a87b-40c4-a829-0b35af8df9c5",
"reserved": "0.000000000",
"total_cost_actual": "19",
"total_cost_default": "38",
"updated_datetime": "2026-06-23T08:54:37.737349Z"
},
{
"active": "13.000000000",
"available": "13.000000000",
"batch_number": "TEST-1",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "022b408a-a87b-40c4-a829-0b35af8df9c5",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-23T08:54:37.832419Z"
},
{
"active": "8.000000000",
"available": "8.000000000",
"batch_number": "TEST-1",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "1273942c-1a31-4edb-9102-96a5e575642f",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-23T08:54:37.886017Z"
},
{
"active": "43.000000000",
"available": "43.000000000",
"batch_number": null,
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "8ec00437-5e9b-47c1-b4b7-cbf3928c5585",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-23T08:54:38.060616Z"
},
{
"active": "47.000000000",
"available": "47.000000000",
"batch_number": "1",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "8ec00437-5e9b-47c1-b4b7-cbf3928c5585",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-23T08:54:38.204204Z"
},
{
"active": "25.000000000",
"available": "25.000000000",
"batch_number": "2",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "8ec00437-5e9b-47c1-b4b7-cbf3928c5585",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-23T08:54:38.272744Z"
},
{
"active": "26.000000000",
"available": "26.000000000",
"batch_number": null,
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "e1d88101-fee8-4cee-b7a4-51cbb9a061a5",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-23T08:54:38.366877Z"
},
{
"active": "27.000000000",
"available": "27.000000000",
"batch_number": "1",
"cost_default_per_unit": null,
"cost_per_unit_actual": null,
"product_id": "e1d88101-fee8-4cee-b7a4-51cbb9a061a5",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-23T08:54:38.437797Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODEsImlhdCI6MTc4MjIwNDg4MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjg4YzE2NmUtNGQ0MC00ZWVjLTkxODUtNzI3MTMxOTkxYjc5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODgwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzIyNiIsInR5cCI6ImFjY2VzcyJ9.KxSdpDULUrhieYNfqsAiCPI-lHjLO_WcaSKNiKo2owY
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 46ba97e53ed500002ddc3bdcdccec8cf-632703370c27e18d-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-0000000006db",
"product_id": "158c0168-a1ff-4da9-94a9-c51d977b091e",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-23T08:54:42.164013Z"
},
{
"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-0000000006db",
"product_id": "158c0168-a1ff-4da9-94a9-c51d977b091e",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-23T08:54:42.278941Z"
},
{
"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-0000000006dc",
"product_id": "158c0168-a1ff-4da9-94a9-c51d977b091e",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-23T08:54:42.220475Z"
},
{
"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-0000000006dc",
"product_id": "158c0168-a1ff-4da9-94a9-c51d977b091e",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-23T08:54:42.329659Z"
},
{
"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-0000000006db",
"product_id": "9cdb8855-4483-49ff-8ea7-7bd60eb9cc1c",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-23T08:54:42.445263Z"
},
{
"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-0000000006db",
"product_id": "9cdb8855-4483-49ff-8ea7-7bd60eb9cc1c",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-23T08:54:42.598879Z"
},
{
"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-0000000006dc",
"product_id": "9cdb8855-4483-49ff-8ea7-7bd60eb9cc1c",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-23T08:54:42.517921Z"
},
{
"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-0000000006dc",
"product_id": "9cdb8855-4483-49ff-8ea7-7bd60eb9cc1c",
"reserved": "0.000000000",
"total_cost_actual": null,
"total_cost_default": null,
"updated_datetime": "2026-06-23T08:54:42.693153Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODIsImlhdCI6MTc4MjIwNDg4MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiN2Y0OTE3MTYtNjQyZC00YjQwLThlNmUtYjk2ZjNiYmYyZmI4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODgxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzMzNyIsInR5cCI6ImFjY2VzcyJ9.mL5UIb_6Z6-ewyFu573dmbYnSrjuA6Ekatwa66CXqcw
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 3506471833fca00c89781382a118a39a-20bccbe4d2d4ef85-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000f6f",
"name": "Company 1411",
"updated_datetime": "2026-06-23T08:54:42.927071Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1858@example.com",
"full_name": "FirstName3786 LastName3787",
"id": "00000000-0000-0000-0000-000000001cd3",
"role": {
"id": "00000000-0000-0000-0000-000000001d66",
"name": "Admin 1923"
}
},
"custom_data": [
{
"id": 192,
"name": "Custom Field 36",
"value": null
}
],
"due_datetime": "2026-06-23T08:54:43.054080Z",
"id": "00000000-0000-0000-0000-0000000000c0",
"inserted_datetime": "2026-06-23T08:54:43.054736Z",
"invoice_datetime": "2026-06-23T08:54:43.054079Z",
"invoice_number": "Invoice #31",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b02",
"name": "B1922"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-00000000011b",
"order_item_id": "3a2eba00-8b14-4ef7-b30a-f0e561c67c8a",
"package": null,
"price": "10.000000000",
"product": {
"id": "e0f22c44-c62b-4ba0-ad86-7e79524c4e27",
"name": "Product 1920",
"sku": "sku 1921",
"updated_datetime": "2026-06-23T08:54:42.938272Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b05",
"name": "B1933"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-00000000011c",
"order_item_id": "123eba25-ed7f-43d7-8b50-5642ded11cf3",
"package": null,
"price": "10.000000000",
"product": {
"id": "4e10909c-4d9b-42fb-b3aa-952c9ad28219",
"name": "Product 1931",
"sku": "sku 1932",
"updated_datetime": "2026-06-23T08:54:42.950044Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "38d6646f-2ef6-41fd-b7ed-1d8be010fbec",
"order_number": "SO-51",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1858@example.com",
"full_name": "FirstName3786 LastName3787",
"id": "00000000-0000-0000-0000-000000001cd3",
"role": {
"id": "00000000-0000-0000-0000-000000001d66",
"name": "Admin 1923"
}
},
"paid_amount": "0.0",
"remaining_amount": "200.00",
"status": "NOT_PAID",
"total": "200.00",
"updated_datetime": "2026-06-23T08:54:43.054736Z"
},
{
"charges": [
{
"id": "08e90ab2-9f1c-4454-9fec-ec745eb85a5d",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000000f53",
"name": "Company 1379",
"updated_datetime": "2026-06-23T08:54:42.772076Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000001ca6",
"role": {
"id": "00000000-0000-0000-0000-000000001d3d",
"name": "Admin 1882"
}
},
"custom_data": [
{
"id": 192,
"name": "Custom Field 36",
"value": "Custom Field Value 1"
}
],
"due_datetime": "2020-01-01T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-0000000000bf",
"inserted_datetime": "2026-06-23T08:54:42.799913Z",
"invoice_datetime": "2020-01-01T00:00:02.000000Z",
"invoice_number": "INV-123",
"items": [
{
"batch": {
"batch_number": "UID1",
"id": "00000000-0000-0000-0000-000000000adf",
"name": "B1"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-00000000011a",
"order_item_id": "439c55a4-6896-4858-bfb5-76acbd3a09b3",
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000000167",
"id": "00000000-0000-0000-0000-000000000115",
"metrc_label": "ABCDEF012345670000000167",
"status": "active"
},
"price": "10.000000000",
"product": {
"id": "bd50d03d-0584-4e19-8e84-3d9c9fac61a9",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-23T08:54:42.722375Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "5cc8a9ca-6f62-4e81-ba57-2f89f8df52f1",
"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-000000001ca8",
"role": {
"id": "00000000-0000-0000-0000-000000001d3f",
"name": "Admin 1884"
}
},
"paid_amount": "5.00",
"remaining_amount": "3.00",
"status": "PARTIALLY_PAID",
"total": "8.00",
"updated_datetime": "2026-06-23T08:54:42.843888Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODcsImlhdCI6MTc4MjIwNDg4NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiYmQ3NzlkNDAtZWNmNy00Yzc5LTkzZmEtYzVmMWQ2NGVlMzM1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODg2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6Nzk2MiIsInR5cCI6ImFjY2VzcyJ9.7qwUP7v_-dGMMK15K36M_NCod9cHFje_-kHkeAPieo4
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: d18659917acdfceb41887870b2307c6c-fbe350e3c26a160a-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000010dd",
"name": "Company 1849",
"updated_datetime": "2026-06-23T08:54:47.240356Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2443@example.com",
"full_name": "FirstName4956 LastName4957",
"id": "00000000-0000-0000-0000-000000001f27",
"role": {
"id": "00000000-0000-0000-0000-000000001fad",
"name": "Admin 2506"
}
},
"custom_data": [],
"due_datetime": "2026-06-23T08:54:47.330132Z",
"id": "00000000-0000-0000-0000-0000000000df",
"inserted_datetime": "2026-06-23T08:54:47.330509Z",
"invoice_datetime": "2026-06-23T08:54:47.330131Z",
"invoice_number": "Invoice #60",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000c0e",
"name": "B2722"
},
"cost_per_unit": "10.026",
"cost_per_unit_default": "5",
"id": "00000000-0000-0000-0000-000000000140",
"order_item_id": "cacb5b4d-1a02-4586-8533-9af6aac4e36c",
"package": null,
"price": "463037.000000000",
"product": {
"id": "fb9274d7-f767-4981-97c6-399c1fe6df59",
"name": "Product 2720",
"sku": "sku 2721",
"updated_datetime": "2026-06-23T08:54:47.155729Z"
},
"quantity": "2.000000000",
"returned_quantity": "2",
"total_cost_actual": "20.052",
"total_cost_default": "10"
}
],
"order": {
"id": "b0f40f46-f11b-48ba-b75c-783ec230b06d",
"order_number": "SO-0000001",
"status": "Processing",
"total": "926074.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-2443@example.com",
"full_name": "FirstName4956 LastName4957",
"id": "00000000-0000-0000-0000-000000001f27",
"role": {
"id": "00000000-0000-0000-0000-000000001fad",
"name": "Admin 2506"
}
},
"paid_amount": "0.0",
"remaining_amount": "32.00",
"status": "NOT_PAID",
"total": "32.00",
"updated_datetime": "2026-06-23T08:54:47.330509Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODMsImlhdCI6MTc4MjIwNDg4MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjUzZDE1ZjgtYjU0MS00MzkwLTgyNWQtMzZmMTdkODQxN2Q1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODgyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzUxMCIsInR5cCI6ImFjY2VzcyJ9.VDdRhqEVTwCM6Euhasts-9sLI6CCmEewUL-RNgOpA6k
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 41e7da03b7a9bd28d88fb4d1dbbff1d8-8fc854cba46f13d8-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000001000",
"name": "Company 1570",
"updated_datetime": "2026-06-23T08:54:43.954870Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2060@example.com",
"full_name": "FirstName4190 LastName4191",
"id": "00000000-0000-0000-0000-000000001d9d",
"role": {
"id": "00000000-0000-0000-0000-000000001e28",
"name": "Admin 2117"
}
},
"custom_data": [],
"due_datetime": "2026-06-23T08:54:44.036180Z",
"id": "00000000-0000-0000-0000-0000000000c6",
"inserted_datetime": "2026-06-23T08:54:44.036846Z",
"invoice_datetime": "2020-01-01T12:30:00.000000Z",
"invoice_number": "Invoice #37",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b7c",
"name": "B2286"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000124",
"order_item_id": "dbc8f526-dd18-46b4-a7f4-1d70de334f01",
"package": null,
"price": "10.000000000",
"product": {
"id": "e1cabb01-0ba7-49b0-97bc-b00d53d59c6d",
"name": "Product 2284",
"sku": "sku 2285",
"updated_datetime": "2026-06-23T08:54:43.970999Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b7d",
"name": "B2291"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000125",
"order_item_id": "e987961c-f285-4dad-97da-550e0d5fc00d",
"package": null,
"price": "10.000000000",
"product": {
"id": "f80d9e39-112e-4dd2-bf8e-51e49e25ab89",
"name": "Product 2289",
"sku": "sku 2290",
"updated_datetime": "2026-06-23T08:54:43.982960Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "474a7006-5515-410a-95f5-77b5ca0c62a3",
"order_number": "SO-63",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-2060@example.com",
"full_name": "FirstName4190 LastName4191",
"id": "00000000-0000-0000-0000-000000001d9d",
"role": {
"id": "00000000-0000-0000-0000-000000001e28",
"name": "Admin 2117"
}
},
"paid_amount": "0.0",
"remaining_amount": "200.00",
"status": "NOT_PAID",
"total": "200.00",
"updated_datetime": "2026-06-23T08:54:44.036846Z"
},
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000feb",
"name": "Company 1546",
"updated_datetime": "2026-06-23T08:54:43.849796Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2036@example.com",
"full_name": "FirstName4142 LastName4143",
"id": "00000000-0000-0000-0000-000000001d85",
"role": {
"id": "00000000-0000-0000-0000-000000001e11",
"name": "Admin 2094"
}
},
"custom_data": [],
"due_datetime": "2026-06-23T08:54:43.928172Z",
"id": "00000000-0000-0000-0000-0000000000c5",
"inserted_datetime": "2026-06-23T08:54:43.928694Z",
"invoice_datetime": "2020-01-01T12:20:00.000000Z",
"invoice_number": "Invoice #36",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b69",
"name": "B2229"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000122",
"order_item_id": "8a75602d-9bed-45ae-9c1e-f701f6db6939",
"package": null,
"price": "10.000000000",
"product": {
"id": "eb82e211-8b3a-49fe-98ae-42c740ed91b0",
"name": "Product 2227",
"sku": "sku 2228",
"updated_datetime": "2026-06-23T08:54:43.861901Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b6a",
"name": "B2232"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000123",
"order_item_id": "1af752ab-67d9-43aa-a2a4-238e91099901",
"package": null,
"price": "10.000000000",
"product": {
"id": "ca2ada71-1f63-4bf1-95df-df0e6d212b85",
"name": "Product 2230",
"sku": "sku 2231",
"updated_datetime": "2026-06-23T08:54:43.874346Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "23c36f5d-deac-438a-a5e8-bc340cfa43dc",
"order_number": "SO-61",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-2036@example.com",
"full_name": "FirstName4142 LastName4143",
"id": "00000000-0000-0000-0000-000000001d85",
"role": {
"id": "00000000-0000-0000-0000-000000001e11",
"name": "Admin 2094"
}
},
"paid_amount": "0.0",
"remaining_amount": "200.00",
"status": "FULLY_PAID",
"total": "200.00",
"updated_datetime": "2026-06-23T08:54:43.928694Z"
},
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000fc6",
"name": "Company 1507",
"updated_datetime": "2026-06-23T08:54:43.580154Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1991@example.com",
"full_name": "FirstName4052 LastName4053",
"id": "00000000-0000-0000-0000-000000001d58",
"role": {
"id": "00000000-0000-0000-0000-000000001de6",
"name": "Admin 2051"
}
},
"custom_data": [],
"due_datetime": "2026-06-23T08:54:43.655818Z",
"id": "00000000-0000-0000-0000-0000000000c3",
"inserted_datetime": "2026-06-23T08:54:43.656443Z",
"invoice_datetime": "2020-01-01T12:00:00.000000Z",
"invoice_number": "Invoice #34",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b4a",
"name": "B2136"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-00000000011e",
"order_item_id": "fff57c07-7f82-4823-a3bc-92f24d57268c",
"package": null,
"price": "10.000000000",
"product": {
"id": "0d1aa9f0-0295-4d5c-8bd9-dfeb07a50b52",
"name": "Product 2134",
"sku": "sku 2135",
"updated_datetime": "2026-06-23T08:54:43.593558Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b4b",
"name": "B2141"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-00000000011f",
"order_item_id": "20b1816d-72b9-4596-a0bf-821a1ad92c90",
"package": null,
"price": "10.000000000",
"product": {
"id": "b6a3d08a-7601-4027-82bc-eb60433f7445",
"name": "Product 2139",
"sku": "sku 2140",
"updated_datetime": "2026-06-23T08:54:43.602944Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "32bd3535-f12b-4c86-85cf-27dbdd80f4fc",
"order_number": "SO-58",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1991@example.com",
"full_name": "FirstName4052 LastName4053",
"id": "00000000-0000-0000-0000-000000001d58",
"role": {
"id": "00000000-0000-0000-0000-000000001de6",
"name": "Admin 2051"
}
},
"paid_amount": "0.0",
"remaining_amount": "200.00",
"status": "FULLY_PAID",
"total": "200.00",
"updated_datetime": "2026-06-23T08:54:43.656443Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODMsImlhdCI6MTc4MjIwNDg4MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjkzZjI5OTctMmUxMS00NTg0LThmZGMtNjg3ZTgyYTZjN2IyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODgyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzQ2NiIsInR5cCI6ImFjY2VzcyJ9.A0c-0h6F4IdIjP6Cf5ggIkijXTWyuxfTwDaDpSlpLaE
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 55a8230ea3f2adc2b288d5ac22d9e226-5b7fbd5f2ce848a3-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000fb5",
"name": "Company 1487",
"updated_datetime": "2026-06-23T08:54:43.357408Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1982@example.com",
"full_name": "FirstName4034 LastName4035",
"id": "00000000-0000-0000-0000-000000001d4f",
"role": {
"id": "00000000-0000-0000-0000-000000001dde",
"name": "Admin 2043"
}
},
"custom_data": [],
"due_datetime": "2026-06-23T08:54:43.495985Z",
"id": "00000000-0000-0000-0000-0000000000c2",
"inserted_datetime": "2026-06-23T08:54:43.496371Z",
"invoice_datetime": "2026-06-23T08:54:43.495984Z",
"invoice_number": "Invoice #33",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b39",
"name": "B2085"
},
"cost_per_unit": "10.026",
"cost_per_unit_default": "5",
"id": "00000000-0000-0000-0000-00000000011d",
"order_item_id": "72a94297-ca65-41ea-a198-f841a651e25c",
"package": null,
"price": "151615.000000000",
"product": {
"id": "5679c275-48df-43d7-ba06-b9f81808a7c8",
"name": "Product 2083",
"sku": "sku 2084",
"updated_datetime": "2026-06-23T08:54:43.287262Z"
},
"quantity": "1.000000000",
"returned_quantity": "1",
"total_cost_actual": "10.026",
"total_cost_default": "5"
}
],
"order": {
"id": "633dc9dd-c8b6-4e0a-8448-4c7db5633293",
"order_number": "SO-0000001",
"status": "Processing",
"total": "303230.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1982@example.com",
"full_name": "FirstName4034 LastName4035",
"id": "00000000-0000-0000-0000-000000001d4f",
"role": {
"id": "00000000-0000-0000-0000-000000001dde",
"name": "Admin 2043"
}
},
"paid_amount": "0.0",
"remaining_amount": "32.00",
"status": "NOT_PAID",
"total": "32.00",
"updated_datetime": "2026-06-23T08:54:43.496371Z"
}
],
"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-0000000000c7/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODQsImlhdCI6MTc4MjIwNDg4NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNzY5ZGMyZjItMGVmMi00ODg4LThjYWYtZGZkNDlmMjI4NTYyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODgzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzYxNSIsInR5cCI6ImFjY2VzcyJ9.CrwqRJnF6bbkt05VtPUvlCGbyMx765LTwQDz90j0CQk
{
"amount": 100.01,
"description": "Payment for invoice",
"payment_datetime": "2020-01-01T00:00:00.000000Z",
"payment_method_id": "00000000-0000-0000-0000-000000000036",
"quickbooks_deposit_account_id": "QBD-123"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: efa5d4f3c8c1b64045cc647eaf292159-5294ac706094be6d-0
{
"data": {
"amount": "100",
"description": "Payment for invoice",
"id": "00000000-0000-0000-0000-00000000000c",
"inserted_datetime": "2026-06-23T08:54:44.173532Z",
"invoice_id": "00000000-0000-0000-0000-0000000000c7",
"payment_date": "2020-01-01T00:00:00.000000Z",
"payment_method": {
"deleted_at": null,
"id": "00000000-0000-0000-0000-000000000036",
"name": "Payment Method 0"
},
"payment_number": "PYT-0000001",
"quickbooks_deposit_account_id": "QBD-123",
"quickbooks_sync_enqueued": true
}
}
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-0000000000c7/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODQsImlhdCI6MTc4MjIwNDg4NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNzY5ZGMyZjItMGVmMi00ODg4LThjYWYtZGZkNDlmMjI4NTYyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODgzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzYxNSIsInR5cCI6ImFjY2VzcyJ9.CrwqRJnF6bbkt05VtPUvlCGbyMx765LTwQDz90j0CQk
{
"amount": 100.01,
"description": "Payment for invoice",
"payment_datetime": "2020-01-01T00:00:00.000000Z",
"payment_method_id": "00000000-0000-0000-0000-000000000036",
"quickbooks_deposit_account_name": "QBD-NAME"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: efa5d4f3c8c1b64045cc647eaf292159-087644636a5f6cce-0
{
"data": {
"amount": "100",
"description": "Payment for invoice",
"id": "00000000-0000-0000-0000-00000000000d",
"inserted_datetime": "2026-06-23T08:54:44.369923Z",
"invoice_id": "00000000-0000-0000-0000-0000000000c7",
"payment_date": "2020-01-01T00:00:00.000000Z",
"payment_method": {
"deleted_at": null,
"id": "00000000-0000-0000-0000-000000000036",
"name": "Payment Method 0"
},
"payment_number": "PYT-0000002",
"quickbooks_deposit_account_id": "QBD-123",
"quickbooks_sync_enqueued": true
}
}
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-0000000000e2
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODcsImlhdCI6MTc4MjIwNDg4NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDk2NmMwMTYtNGU0ZC00OTIyLWI3ZGYtNDE0YWY2NDY0YTFlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODg2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODAwMyIsInR5cCI6ImFjY2VzcyJ9.zFFaL1u-QZnCeFjjJdq5SxunXuovHXO8gGa-F9GKFSU
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 2d7a7757badef788c8c81c89bc133802-101c6ab64f27db20-0
{
"data": {
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000010fd",
"name": "Company 1888",
"updated_datetime": "2026-06-23T08:54:47.645231Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2472@example.com",
"full_name": "FirstName5014 LastName5015",
"id": "00000000-0000-0000-0000-000000001f44",
"role": {
"id": "00000000-0000-0000-0000-000000001fcd",
"name": "Admin 2538"
}
},
"custom_data": [
{
"id": 196,
"name": "Custom Field 40",
"value": "Custom Field Value 1"
}
],
"due_datetime": "2026-06-23T08:54:47.712253Z",
"id": "00000000-0000-0000-0000-0000000000e2",
"inserted_datetime": "2026-06-23T08:54:47.712752Z",
"invoice_datetime": "2026-06-23T08:54:47.712251Z",
"invoice_number": "Invoice #63",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000c28",
"name": "B2800"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000145",
"order_item_id": "c6a0211e-0671-4b3e-a983-d97fdbe5dd16",
"package": null,
"price": "10.000000000",
"product": {
"id": "0ff40bfa-d423-477d-bdee-f020286e6844",
"name": "Product 2798",
"sku": "sku 2799",
"updated_datetime": "2026-06-23T08:54:47.656892Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000c2b",
"name": "B2809"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000146",
"order_item_id": "0e26965f-ef10-47de-8857-b3da71e7ec59",
"package": null,
"price": "10.000000000",
"product": {
"id": "14125dfd-d847-4c80-beac-c687f52dd923",
"name": "Product 2807",
"sku": "sku 2808",
"updated_datetime": "2026-06-23T08:54:47.670751Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "0a494f6c-3d10-470a-bd96-1b89f3f0af6f",
"order_number": "SO-112",
"status": "Pending",
"total": "320.00"
},
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-2472@example.com",
"full_name": "FirstName5014 LastName5015",
"id": "00000000-0000-0000-0000-000000001f44",
"role": {
"id": "00000000-0000-0000-0000-000000001fcd",
"name": "Admin 2538"
}
},
"paid_amount": "0.0",
"remaining_amount": null,
"status": "NOT_PAID",
"total": "200.00",
"updated_datetime": "2026-06-23T08:54:47.712752Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODksImlhdCI6MTc4MjIwNDg4OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjBjN2M5OWUtNGQ5MS00ZDAzLWJhNjYtNmI1Mjk1YWI5ZmYxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODg4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODEwNCIsInR5cCI6ImFjY2VzcyJ9.ZpCIK4hwSOapo6-9hWhQPOrP6RFWZStyyjbGYBIfN_0
{
"billing_location_id": "00000000-0000-0000-0000-0000000007dc",
"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": "6b4978af-4824-429d-a00b-a54ed8b72563",
"quantity": "1.000000000"
},
{
"order_item_id": "5fccf8ae-ee84-4ca6-a1fd-d08662ded546",
"quantity": "10.000000000"
}
],
"order_id": "be299864-dc84-4442-86a6-60963d9f28f9"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 4b25c4b8ac5c49e5ccbec7a57cc01a86-9f58647b839613c0-0
{
"data": {
"charges": [
{
"id": "683781fe-5a54-4dcc-8d90-572cae993b77",
"name": "C1",
"percent": "10.0000",
"price": "5.30",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "184fd992-731d-4c57-99f8-29107df67e2b",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000001156",
"name": "Company 1988",
"updated_datetime": "2026-06-23T08:54:49.271791Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000001fa8",
"role": {
"id": "00000000-0000-0000-0000-000000002033",
"name": "Admin 2640"
}
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-0000000000ec",
"inserted_datetime": "2026-06-23T08:54:49.351774Z",
"invoice_datetime": "2020-01-01T00:00:00.000000Z",
"invoice_number": "INV-0000001",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000c70",
"name": "B1"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000156",
"order_item_id": "6b4978af-4824-429d-a00b-a54ed8b72563",
"package": null,
"price": "3.000000000",
"product": {
"id": "419d10f8-02c4-4099-9e6f-300cf1d88e7e",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-23T08:54:49.295750Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000c71",
"name": "B2"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-000000000157",
"order_item_id": "5fccf8ae-ee84-4ca6-a1fd-d08662ded546",
"package": null,
"price": "5.000000000",
"product": {
"id": "13f7451a-5c99-4e07-b6da-88e50a3845d5",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-06-23T08:54:49.311918Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "be299864-dc84-4442-86a6-60963d9f28f9",
"order_number": "SO-128",
"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-23T08:54:49.357446Z"
}
}
POST /invoices updates an invoice
POST /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiODQyNzM1YmQtNDQzYS00MjM1LWJlMTgtZTFlM2ZhMTdkYjk2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjMzOSIsInR5cCI6ImFjY2VzcyJ9.XRZ5NFe7AuPIOgO-6f7QRjPeiZGIDJWqc0K2ZpFMJzI
{
"billing_location_id": "00000000-0000-0000-0000-00000000062b",
"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": "6f5bdfbb-077d-4c8d-8060-d71cf9ba3682",
"quantity": "1.000000000"
},
{
"order_item_id": "9fcaea09-d5de-4cee-a378-911a42db408d",
"quantity": "10.000000000"
}
],
"order_id": "a6549284-2696-4cb1-bd42-3d1c75b423e3"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 4d32f4298053b7e66007791e89a60af4-53b9e27b1d7f8f03-0
{
"data": {
"charges": [
{
"id": "f835a942-5c6b-4eda-a189-631e8df5a417",
"name": "C1",
"percent": "10.0000",
"price": "5.30",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "b19e910e-31d0-4413-be07-0c8e870f45fe",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000000d22",
"name": "Company 618",
"updated_datetime": "2026-06-23T08:54:38.909016Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-0000000018c3",
"role": {
"id": "00000000-0000-0000-0000-000000001947",
"name": "Admin 868"
}
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-0000000000aa",
"inserted_datetime": "2026-06-23T08:54:39.531160Z",
"invoice_datetime": "2020-01-01T00:00:00.000000Z",
"invoice_number": "INV-0000001",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000958",
"name": "B1"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000000f1",
"order_item_id": "6f5bdfbb-077d-4c8d-8060-d71cf9ba3682",
"package": null,
"price": "3.000000000",
"product": {
"id": "26bb9f99-58f0-4b08-bbe7-1b3e1ff8bd87",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-23T08:54:39.448289Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000959",
"name": "B2"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000000f2",
"order_item_id": "9fcaea09-d5de-4cee-a378-911a42db408d",
"package": null,
"price": "5.000000000",
"product": {
"id": "2ccbf8f2-27e0-489e-a391-f7bae2ac0840",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-06-23T08:54:39.461464Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "a6549284-2696-4cb1-bd42-3d1c75b423e3",
"order_number": "SO-14",
"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-23T08:54:39.541300Z"
}
}
POST /invoices updates an invoice
POST /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiODQyNzM1YmQtNDQzYS00MjM1LWJlMTgtZTFlM2ZhMTdkYjk2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjMzOSIsInR5cCI6ImFjY2VzcyJ9.XRZ5NFe7AuPIOgO-6f7QRjPeiZGIDJWqc0K2ZpFMJzI
{
"billing_location_id": "00000000-0000-0000-0000-00000000062d",
"charges": [
{
"id": "f835a942-5c6b-4eda-a189-631e8df5a417",
"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-0000000000aa",
"invoice_datetime": "2020-01-02T00:00:00.000000Z",
"items": [
{
"id": "00000000-0000-0000-0000-0000000000f1",
"order_item_id": "6f5bdfbb-077d-4c8d-8060-d71cf9ba3682",
"quantity": "1.000000000"
},
{
"order_item_id": "9fcaea09-d5de-4cee-a378-911a42db408d",
"quantity": "8.000000000"
}
],
"order_id": "a6549284-2696-4cb1-bd42-3d1c75b423e3"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 4d32f4298053b7e66007791e89a60af4-9b24614dfcffa0a6-0
{
"data": {
"charges": [
{
"id": "f835a942-5c6b-4eda-a189-631e8df5a417",
"name": "C1",
"percent": "10.0000",
"price": "4.30",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "48a4bea7-298f-4c12-8140-4f2a9e2f4a46",
"name": "C3",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000000d22",
"name": "Company 618",
"updated_datetime": "2026-06-23T08:54:38.909016Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-0000000018c3",
"role": {
"id": "00000000-0000-0000-0000-000000001947",
"name": "Admin 868"
}
},
"custom_data": [],
"due_datetime": "2020-01-28T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-0000000000aa",
"inserted_datetime": "2026-06-23T08:54:39.531160Z",
"invoice_datetime": "2020-01-02T00:00:00.000000Z",
"invoice_number": "INV-0000001",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000958",
"name": "B1"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000000f1",
"order_item_id": "6f5bdfbb-077d-4c8d-8060-d71cf9ba3682",
"package": null,
"price": "3.000000000",
"product": {
"id": "26bb9f99-58f0-4b08-bbe7-1b3e1ff8bd87",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-23T08:54:39.448289Z"
},
"quantity": "1.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000959",
"name": "B2"
},
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "00000000-0000-0000-0000-0000000000f3",
"order_item_id": "9fcaea09-d5de-4cee-a378-911a42db408d",
"package": null,
"price": "5.000000000",
"product": {
"id": "2ccbf8f2-27e0-489e-a391-f7bae2ac0840",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-06-23T08:54:39.461464Z"
},
"quantity": "8.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
}
],
"order": {
"id": "a6549284-2696-4cb1-bd42-3d1c75b423e3",
"order_number": "SO-14",
"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-23T08:54:39.702890Z"
}
}
POST /invoices reports various errors correctly on update
POST /public/v1/invoices
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODQsImlhdCI6MTc4MjIwNDg4NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTUwOTEyNjYtZDQ0Yy00MjBjLWI5YWMtZDUyYjliZWUzNmQxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODgzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzczMyIsInR5cCI6ImFjY2VzcyJ9.cFo5bUYNzn2V8TdwRGxE3d9ygC3Wy9tVfDIHR72qXJA
{
"billing_location_id": "00000000-0000-0000-0000-000000000761",
"charges": [
{
"name": "C1",
"percent": "-1000.0000",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"due_datetime": "2020-01-30T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-0000000000cb",
"invoice_datetime": "2020-01-01T00:00:00.000000Z",
"items": [
{
"order_item_id": "00000000-0000-0000-0000-000000000000",
"quantity": "15.000"
},
{
"order_item_id": "c399967c-8292-4736-b3e9-f014545a26a6",
"quantity": "19.000"
}
],
"order_id": "8305dff7-534b-4eaa-af03-bd3625a91e3b"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 52063da764bcfb49adff3a3c626e5d7b-2d089445ffd041f1-0
{
"errors": [
{
"context": {
"id": "874c8adc-0fe5-47ff-9d81-4cf055c50d60"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzcsImlhdCI6MTc4MjIwNDg3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTE2N2QyNzMtNzI1Mi00MWQ0LWE1MWUtYTQyZjIwNDA2M2UzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTcwNCIsInR5cCI6ImFjY2VzcyJ9.WbZQYgLwy4dh_HbQXbKT5Cg9Q-IWPOYm9ouLHgXsKyY
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: e619e55acc168b79bf96db3279a9eec4-cfe37bf235c6d17b-0
{
"data": [
{
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000117b",
"deleted_at": null,
"id": "00000000-0000-0000-0000-00000000057c",
"license": null,
"license_id": null,
"name": "Place 35"
},
{
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000117b",
"deleted_at": null,
"id": "00000000-0000-0000-0000-00000000057d",
"license": {
"id": "00000000-0000-0000-0000-00000000016d",
"license_number": "CDPH-00000006"
},
"license_id": "00000000-0000-0000-0000-00000000016d",
"name": "Place 36"
}
],
"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-0000000005a4
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzcsImlhdCI6MTc4MjIwNDg3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDMwYWIyZmItNjY5NC00MjFjLWJjZGYtNmYwMTg2ZGQ2NTQxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTg1MCIsInR5cCI6ImFjY2VzcyJ9.1tosOOHSRHWXagUSqifsdFunMbl7zwqq721dlvPxdgI
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 435aa18c435245b605983e1a41fddbd5-b07b59c6edc9424d-0
{
"data": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000011e5",
"deleted_at": null,
"id": "00000000-0000-0000-0000-0000000005a4",
"license": {
"id": "00000000-0000-0000-0000-000000000174",
"license_number": "CDPH-00000013"
},
"license_id": "00000000-0000-0000-0000-000000000174",
"name": "Place 75"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzcsImlhdCI6MTc4MjIwNDg3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNjMxNDhhZjktNGRhZS00NTRhLThlMzMtNmI0MTMwNzNlYzc4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTc4NCIsInR5cCI6ImFjY2VzcyJ9.tCbWCPhgf7OsGnQfnjI2c9oKgcOHrhiK4l24PzMLHBI
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: ed5c9bae26c95335a2253a77248e21e8-ec7cc4a601710a4a-0
{
"data": [
{
"active": true,
"external_name": "Ext A",
"id": "00000000-0000-0000-0000-00000000008b",
"inserted_datetime": "2026-06-23T08:54:37.545135Z",
"internal_name": "Alpha",
"product_count": 0,
"updated_datetime": "2026-06-23T08:54:37.545135Z",
"visibility": "PUBLIC"
},
{
"active": true,
"external_name": "Ext B",
"id": "00000000-0000-0000-0000-00000000008c",
"inserted_datetime": "2026-06-23T08:54:37.555763Z",
"internal_name": "Beta",
"product_count": 0,
"updated_datetime": "2026-06-23T08:54:37.555763Z",
"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-0000000000ae
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzgsImlhdCI6MTc4MjIwNDg3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNGIyNmVkMzEtZGFmMC00N2I2LWIxOTktNTIwNzA0MTI4MmZmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjM0MyIsInR5cCI6ImFjY2VzcyJ9.L4kcFGPAVJ-e6ncifqC0FYFX9kkU9gouqO94_upZ0Mw
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 9e094c84ed2822c2179bc5ba647852c0-5d65a9097f7ff421-0
{
"data": {
"active": true,
"external_name": "External Test Menu",
"id": "00000000-0000-0000-0000-0000000000ae",
"inserted_datetime": "2026-06-23T08:54:38.932666Z",
"internal_name": "Test Menu",
"product_count": 1,
"updated_datetime": "2026-06-23T08:54:38.932666Z",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODQsImlhdCI6MTc4MjIwNDg4NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYmJjMmMxNDEtNGU1NS00ZTM4LWI5OTItZDI2ZmQ2N2I1ZjY0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODgzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzYxMiIsInR5cCI6ImFjY2VzcyJ9.dZTQIQG6j9GqJf8Byo7TrxVZCNva8KuP-uFf_faHjew
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 673370ed0718322c92907023ebcb9cf2-9e2935e5b1abfece-0
{
"data": [
{
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000171f",
"id": "00000000-0000-0000-0000-00000000073f",
"license_id": null,
"license_number": null,
"name": "Place 486"
},
"biotrack_id": null,
"charges": [
{
"id": "c7ffe028-836c-40ec-beb3-f3ab34716ca6",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000001018",
"name": "Company 1597",
"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-000000001db9",
"role": {
"id": "00000000-0000-0000-0000-000000001e3d",
"name": "Admin 2138"
}
},
"custom_data": [
{
"id": 193,
"name": "Custom Field 37",
"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": "85b683fd-c8cc-4adc-8073-b218b6f1b09b",
"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-00000000171f",
"id": "00000000-0000-0000-0000-00000000073f",
"license_id": null,
"license_number": null,
"name": "Place 486"
},
"items": [
{
"batch": {
"batch_number": "UID1",
"id": "00000000-0000-0000-0000-000000000b87",
"name": "B1"
},
"compliance_quantity": "10.0000",
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "c7fe7194-ed41-4792-8c49-c6e8e550464e",
"is_sample": true,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000171f",
"id": "00000000-0000-0000-0000-00000000073f",
"license_id": null,
"name": "Place 486"
},
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000000169",
"id": "00000000-0000-0000-0000-000000000116",
"metrc_label": "ABCDEF012345670000000169",
"status": "active"
},
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "2cda4930-8a38-46d4-8e6b-37bd7f6761d0",
"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": "2ded456d-6130-4b56-a068-9188d23c10c3",
"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-000000001dba",
"role": {
"id": "00000000-0000-0000-0000-000000001e3e",
"name": "Admin 2139"
}
},
"payment_term_name": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000171f",
"id": "00000000-0000-0000-0000-00000000073f",
"license_id": null,
"license_number": null,
"name": "Place 486"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODksImlhdCI6MTc4MjIwNDg4OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTlmOTEyMzItYjU1Mi00ZDZmLWEzOGEtNjEzZGQ1ODllZDBlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODg4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODEzMSIsInR5cCI6ImFjY2VzcyJ9.q1_QwJZw1vSpdnCz03K0h59QkNsXRiWO9J1u82tr_u4
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: b1aea7ec891a7110eef2ef53f1c5b074-423b25aa0bf4dbfe-0
{
"data": [
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000000116b",
"name": "Company 2017",
"updated_datetime": "2026-06-23T08:54:49.699702Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2600@example.com",
"full_name": "FirstName5270 LastName5271",
"id": "00000000-0000-0000-0000-000000001fca",
"role": {
"id": "00000000-0000-0000-0000-000000002055",
"name": "Admin 2674"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-06-23T08:54:49.700770Z",
"external_notes": null,
"id": "ae2e3eec-b13e-480a-ab63-6060aabf3462",
"inserted_datetime": "2026-06-23T08:54:49.715151Z",
"internal_notes": null,
"inventory_source": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000c7c",
"name": "B3054"
},
"compliance_quantity": null,
"cost_per_unit": "10.026",
"cost_per_unit_default": "5",
"id": "1e10c8d5-459c-4360-8775-dd4037d0b36d",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000018c6",
"id": "00000000-0000-0000-0000-0000000007e5",
"license_id": null,
"name": "Place 652"
},
"package": null,
"price": "806442.000000000",
"price_base": "806442",
"product": {
"id": "12d152da-e810-439f-b02e-681800d68364",
"name": "Product 3049",
"sku": "sku 3050",
"updated_datetime": "2026-06-23T08:54:49.639708Z"
},
"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-23T08:54:49.700771Z",
"order_number": "SO-0000001",
"owner": null,
"payment_term_name": null,
"shipping_location": null,
"status": "PROCESSING",
"total": "1612884.00",
"updated_datetime": "2026-06-23T08:54:49.715151Z"
}
],
"next_page": null
}
GET /public/v1/orders allows filtering by buyer company_id
GET /public/v1/orders?company_id=00000000-0000-0000-0000-00000000106d
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODUsImlhdCI6MTc4MjIwNDg4NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNjc0YmI3NmItMDZiNi00NzNkLWE4ZDItYjViNjZiMThmMjZlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODg0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6Nzc4NSIsInR5cCI6ImFjY2VzcyJ9.RRngP_pMvYkItzD8T_CXtp6iTU7mDhagflE0tKT0kjs
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: da6019dd0f44802561e650d4b79bd237-84e45b5cbca68f88-0
{
"data": [
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000000106d",
"name": "Company 1707",
"updated_datetime": "2026-06-23T08:54:45.311453Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2264@example.com",
"full_name": "FirstName4598 LastName4599",
"id": "00000000-0000-0000-0000-000000001e70",
"role": {
"id": "00000000-0000-0000-0000-000000001ef0",
"name": "Admin 2317"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-06-23T08:54:45.366373Z",
"external_notes": null,
"id": "776690c0-d97d-4863-9147-1dcf0a7a2346",
"inserted_datetime": "2026-06-23T08:54:45.366817Z",
"internal_notes": null,
"inventory_source": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001791",
"id": "00000000-0000-0000-0000-000000000773",
"license_id": null,
"license_number": null,
"name": "Place 538"
},
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000bca",
"name": "B2516"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "31c10368-aeff-4e2c-9930-596d59e649f0",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "1fc63c99-66cb-448f-b3fb-5702e33b9a91",
"name": "Product 2514",
"sku": "sku 2515",
"updated_datetime": "2026-06-23T08:54:45.381683Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000bcc",
"name": "B2522"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "630b2018-44d5-443a-b771-a8be6212c56c",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "89ce37c0-ad9f-40e9-86cb-c33739392934",
"name": "Product 2520",
"sku": "sku 2521",
"updated_datetime": "2026-06-23T08:54:45.401545Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000bcd",
"name": "B2525"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "6ed04a6c-513e-41ed-8fe3-3165fd744e9e",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "6b406ab1-44fb-48cc-ad95-d7e44a92d4e1",
"name": "Product 2523",
"sku": "sku 2524",
"updated_datetime": "2026-06-23T08:54:45.420562Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000bce",
"name": "B2528"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "f8f96187-af13-4d55-a088-90202132f637",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "631d227b-a7ad-44a7-8cba-753797a8871e",
"name": "Product 2526",
"sku": "sku 2527",
"updated_datetime": "2026-06-23T08:54:45.431663Z"
},
"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-78",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-2264@example.com",
"full_name": "FirstName4598 LastName4599",
"id": "00000000-0000-0000-0000-000000001e70",
"role": {
"id": "00000000-0000-0000-0000-000000001ef0",
"name": "Admin 2317"
}
},
"payment_term_name": null,
"shipping_location": null,
"status": "COMPLETED",
"total": "320.00",
"updated_datetime": "2026-06-23T08:54:45.468653Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODIsImlhdCI6MTc4MjIwNDg4MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTVmZGI1NzQtM2FkOS00NmU4LTk0ODAtMjM1MDQ1Njg0NGY5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODgxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzM4MyIsInR5cCI6ImFjY2VzcyJ9.Z7SSO-_EKyAYxFnAnIvos7Slc42salzEfKaQ-tYBgek
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: c5e97788062878deccaa6df35e1c5b7a-d307579ce816600b-0
{
"data": [
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000fa4",
"name": "Company 1468",
"updated_datetime": "2026-06-23T08:54:43.220304Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1933@example.com",
"full_name": "FirstName3936 LastName3937",
"id": "00000000-0000-0000-0000-000000001d1e",
"role": {
"id": "00000000-0000-0000-0000-000000001db1",
"name": "Admin 1998"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-06-23T08:54:43.241835Z",
"external_notes": null,
"id": "68f8278f-de22-4592-b4c4-bf26de7c478a",
"inserted_datetime": "2026-06-23T08:54:43.242224Z",
"internal_notes": null,
"inventory_source": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001666",
"id": "00000000-0000-0000-0000-000000000711",
"license_id": null,
"license_number": null,
"name": "Place 440"
},
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b32",
"name": "B2066"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "ed50bf8b-f2e3-4128-9be7-ba227bd7a8e7",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "b5e05369-d5b8-41f9-aad7-ba5ed19b1410",
"name": "Product 2064",
"sku": "sku 2065",
"updated_datetime": "2026-06-23T08:54:43.256362Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b34",
"name": "B2070"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "8d19a741-ad6a-4302-a3df-51759e6a69f1",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "3d961665-ac0c-4ebe-885f-ba5087ff1087",
"name": "Product 2068",
"sku": "sku 2069",
"updated_datetime": "2026-06-23T08:54:43.267569Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b35",
"name": "B2075"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "b62b5539-ff78-4d37-b625-f9b6dcbe1ca4",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "b1e03097-93bb-4dc5-a4f9-177ddc004629",
"name": "Product 2073",
"sku": "sku 2074",
"updated_datetime": "2026-06-23T08:54:43.276611Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b38",
"name": "B2082"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "88a0e7a3-8f94-44fa-a556-8f17c2d87419",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "8e98e70e-ff78-42c9-a7c0-3bb34f8a500e",
"name": "Product 2080",
"sku": "sku 2081",
"updated_datetime": "2026-06-23T08:54:43.285292Z"
},
"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-57",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1933@example.com",
"full_name": "FirstName3936 LastName3937",
"id": "00000000-0000-0000-0000-000000001d1e",
"role": {
"id": "00000000-0000-0000-0000-000000001db1",
"name": "Admin 1998"
}
},
"payment_term_name": null,
"shipping_location": null,
"status": "CANCELED",
"total": "320.00",
"updated_datetime": "2026-06-23T08:54:43.303115Z"
},
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000f91",
"name": "Company 1447",
"updated_datetime": "2026-06-23T08:54:43.118245Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1909@example.com",
"full_name": "FirstName3888 LastName3889",
"id": "00000000-0000-0000-0000-000000001d05",
"role": {
"id": "00000000-0000-0000-0000-000000001d99",
"name": "Admin 1974"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-06-23T08:54:43.135085Z",
"external_notes": null,
"id": "19b09b41-7f72-441c-8432-689a2ced4a29",
"inserted_datetime": "2026-06-23T08:54:43.135520Z",
"internal_notes": null,
"inventory_source": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001666",
"id": "00000000-0000-0000-0000-00000000070c",
"license_id": null,
"license_number": null,
"name": "Place 435"
},
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b20",
"name": "B2012"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "eba89cb0-b03b-49b0-a71d-983de507555e",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "19da4d90-a2b6-468c-a097-c16ca14a8d30",
"name": "Product 2010",
"sku": "sku 2011",
"updated_datetime": "2026-06-23T08:54:43.144571Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b22",
"name": "B2018"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "618fc1af-75ca-4d6c-b932-18181bd9e7ed",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "95e66fa7-d139-4209-bdc4-5425e10e875c",
"name": "Product 2014",
"sku": "sku 2015",
"updated_datetime": "2026-06-23T08:54:43.157020Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b25",
"name": "B2025"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "ce91f392-b9b2-41cf-b6e4-da9bcf127c70",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "c3630c0f-3502-4df8-839c-f79a31545809",
"name": "Product 2023",
"sku": "sku 2024",
"updated_datetime": "2026-06-23T08:54:43.166985Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b27",
"name": "B2033"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "f913bb0e-b1ec-4201-8820-a12dc5f3a0fd",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "47ac1d78-7593-4d1d-949b-78881658a1f8",
"name": "Product 2031",
"sku": "sku 2032",
"updated_datetime": "2026-06-23T08:54:43.184348Z"
},
"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-55",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1909@example.com",
"full_name": "FirstName3888 LastName3889",
"id": "00000000-0000-0000-0000-000000001d05",
"role": {
"id": "00000000-0000-0000-0000-000000001d99",
"name": "Admin 1974"
}
},
"payment_term_name": null,
"shipping_location": null,
"status": "COMPLETED",
"total": "320.00",
"updated_datetime": "2026-06-23T08:54:43.207665Z"
},
{
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000f6d",
"name": "Company 1409",
"updated_datetime": "2026-06-23T08:54:42.925581Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1867@example.com",
"full_name": "FirstName3804 LastName3805",
"id": "00000000-0000-0000-0000-000000001cdb",
"role": {
"id": "00000000-0000-0000-0000-000000001d6f",
"name": "Admin 1932"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-06-23T08:54:42.944405Z",
"external_notes": null,
"id": "4846def4-baee-4b61-b9dc-ecfe14855a7e",
"inserted_datetime": "2026-06-23T08:54:42.944758Z",
"internal_notes": null,
"inventory_source": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001666",
"id": "00000000-0000-0000-0000-000000000705",
"license_id": null,
"license_number": null,
"name": "Place 428"
},
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b06",
"name": "B1936"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "8d181f68-4bbb-4cf0-a8a5-77a0a4a4d6e3",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "459228a0-fa64-4dbe-903d-0436a524e9fb",
"name": "Product 1934",
"sku": "sku 1935",
"updated_datetime": "2026-06-23T08:54:42.953587Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b0c",
"name": "B1952"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "3f26ff4c-9548-49dc-86ce-61adf491afaa",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "92ee64c7-2d2c-4b45-ae9f-462e73424935",
"name": "Product 1950",
"sku": "sku 1951",
"updated_datetime": "2026-06-23T08:54:42.966190Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b0f",
"name": "B1959"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "6b90e48a-56ce-494b-bb1e-14dc03323095",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "86ac0c5d-556a-4232-8f47-91d75a928578",
"name": "Product 1957",
"sku": "sku 1958",
"updated_datetime": "2026-06-23T08:54:42.978484Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b10",
"name": "B1966"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "7ceecc4c-a9d9-4f99-9012-b9b54487b1dc",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "5c7df08b-3e9c-4fe4-b8da-22ff1ac37bc3",
"name": "Product 1962",
"sku": "sku 1963",
"updated_datetime": "2026-06-23T08:54:42.989195Z"
},
"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-52",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-1867@example.com",
"full_name": "FirstName3804 LastName3805",
"id": "00000000-0000-0000-0000-000000001cdb",
"role": {
"id": "00000000-0000-0000-0000-000000001d6f",
"name": "Admin 1932"
}
},
"payment_term_name": null,
"shipping_location": null,
"status": "COMPLETED",
"total": "320.00",
"updated_datetime": "2026-06-23T08:54:43.007793Z"
}
],
"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/6038301e-a999-45e6-9546-388ddaf60230
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0OTMsImlhdCI6MTc4MjIwNDg5MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMmYyNTVkMmQtMDM5Mi00M2U0LTgxOGItZmU1YjM2OGFhZjUxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODkyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODI1OCIsInR5cCI6ImFjY2VzcyJ9.u_XHcciCgpJE4rYAoTyuZn1vpvVK2Q2CwKIlgsI-rhw
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 2c60c76eabb4ea363a483e7cafdd723b-428d9103ba3a5188-0
{
"data": {
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000011e3",
"name": "Company 2154",
"updated_datetime": "2026-06-23T08:54:53.402198Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2718@example.com",
"full_name": "FirstName5506 LastName5507",
"id": "00000000-0000-0000-0000-000000002043",
"role": {
"id": "00000000-0000-0000-0000-0000000020d0",
"name": "Admin 2797"
}
},
"custom_data": [
{
"id": 198,
"name": "Custom Field 42",
"value": "Custom Field Value 1"
}
],
"delivery_datetime": null,
"due_datetime": "2026-06-23T08:54:53.423856Z",
"external_notes": null,
"id": "6038301e-a999-45e6-9546-388ddaf60230",
"inserted_datetime": "2026-06-23T08:54:53.424336Z",
"internal_notes": null,
"inventory_source": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001953",
"id": "00000000-0000-0000-0000-000000000804",
"license_id": null,
"license_number": null,
"name": "Place 683"
},
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000cde",
"name": "B3352"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "92c4e76b-b266-4030-8f82-22ef2856ba66",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "ff9e7883-e98e-4fa8-9bda-86f5d87d83c4",
"name": "Product 3350",
"sku": "sku 3351",
"updated_datetime": "2026-06-23T08:54:53.437021Z"
},
"quantity": "15.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000cdf",
"name": "B3355"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "4fce97a2-3728-4768-b9de-9135dce5db84",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "83039ea5-e8fd-4919-8b22-a31f308cd8db",
"name": "Product 3353",
"sku": "sku 3354",
"updated_datetime": "2026-06-23T08:54:53.449495Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000ce0",
"name": "B3358"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "78756763-c08d-405e-95a2-e92822cf960e",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "a6de9975-3363-4e9d-b819-9ca8f71b87af",
"name": "Product 3356",
"sku": "sku 3357",
"updated_datetime": "2026-06-23T08:54:53.462146Z"
},
"quantity": "5.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000ce1",
"name": "B3361"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "1706d1db-fbbf-4524-8c9e-23fd2257fc33",
"is_sample": false,
"location": null,
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "c788d9e4-4d24-4700-9c31-1eb7626138ff",
"name": "Product 3359",
"sku": "sku 3360",
"updated_datetime": "2026-06-23T08:54:53.475723Z"
},
"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-23T08:54:53.423856Z",
"order_number": "SO-150",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-2718@example.com",
"full_name": "FirstName5506 LastName5507",
"id": "00000000-0000-0000-0000-000000002043",
"role": {
"id": "00000000-0000-0000-0000-0000000020d0",
"name": "Admin 2797"
}
},
"payment_term_name": null,
"shipping_location": null,
"status": "COMPLETED",
"total": "320.00",
"updated_datetime": "2026-06-23T08:54:53.501969Z"
}
}
GET /orders/:id returns cost data for order items
GET /public/v1/orders/7b477612-50c6-4bcf-a75c-39fc874b8a62
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODMsImlhdCI6MTc4MjIwNDg4MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjcyNTExYjYtYWE2NC00OTBkLTlhMGMtNTVkMjgxZjg1ZDdhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODgyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzQ3NyIsInR5cCI6ImFjY2VzcyJ9.NhoOIDBBC-KGBdhTcBkEctY_LVXXXUpNf0oy4J721dk
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 52f9e057b78a228c6d888e020a7b62d8-13f1e5a55fad8604-0
{
"data": {
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000fbf",
"name": "Company 1496",
"updated_datetime": "2026-06-23T08:54:43.433769Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1971@example.com",
"full_name": "FirstName4012 LastName4013",
"id": "00000000-0000-0000-0000-000000001d44",
"role": {
"id": "00000000-0000-0000-0000-000000001dd5",
"name": "Admin 2034"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2026-06-23T08:54:43.435806Z",
"external_notes": null,
"id": "7b477612-50c6-4bcf-a75c-39fc874b8a62",
"inserted_datetime": "2026-06-23T08:54:43.464089Z",
"internal_notes": null,
"inventory_source": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b3e",
"name": "B2102"
},
"compliance_quantity": null,
"cost_per_unit": "10.026",
"cost_per_unit_default": "5",
"id": "df577485-b331-4bc9-8bc9-9c0362fb58e0",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000016b7",
"id": "00000000-0000-0000-0000-000000000715",
"license_id": null,
"name": "Place 444"
},
"package": null,
"price": "357014.000000000",
"price_base": "357014",
"product": {
"id": "1e3a6442-68ae-4fde-8f6d-37e212cb5628",
"name": "Product 2098",
"sku": "sku 2099",
"updated_datetime": "2026-06-23T08:54:43.360797Z"
},
"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-23T08:54:43.435809Z",
"order_number": "SO-0000001",
"owner": null,
"payment_term_name": null,
"shipping_location": null,
"status": "PROCESSING",
"total": "714028.00",
"updated_datetime": "2026-06-23T08:54:43.464089Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0OTEsImlhdCI6MTc4MjIwNDg5MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMmNlNDgyOWItNjc0OC00NTUyLWE4MWYtOTk3MzJhNmQyZGE1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODkwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODIxMSIsInR5cCI6ImFjY2VzcyJ9.dUYEX8hV5XDhddU9uVN4M4u5Te3FCj_kIfZmzM749CY
{
"billing_location_id": "00000000-0000-0000-0000-0000000007f8",
"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-0000000011b7",
"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-0000000007f8",
"price_base": "10.000000000",
"product_id": "e2cb681f-1479-46d9-8b8d-fed8853800d4",
"quantity": "1.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"owner_id": "00000000-0000-0000-0000-000000002013",
"shipping_location_id": "00000000-0000-0000-0000-0000000007f8",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 6699ddefbfcec2d3b43e3d2e87b5355e-8daef72cea45f368-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000191e",
"id": "00000000-0000-0000-0000-0000000007f8",
"license_id": "00000000-0000-0000-0000-000000000216",
"license_number": "CDPH-00000176",
"name": "Place 671"
},
"biotrack_id": null,
"charges": [
{
"id": "01c4c753-7fe8-4f33-9cce-4550a5a51af2",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "71aa47e2-d007-4ba2-8464-3b7213b7f17e",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-0000000011b7",
"name": "Company 2101",
"updated_datetime": "2026-06-23T08:54:51.647303Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000002013",
"role": {
"id": "00000000-0000-0000-0000-00000000209e",
"name": "Admin 2747"
}
},
"custom_data": [
{
"id": 197,
"name": "Custom Field 41",
"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": "8938bc33-a493-4108-a0e5-6a90d77f128c",
"inserted_datetime": "2026-06-23T08:54:51.700955Z",
"internal_notes": "Internal notes for this order",
"inventory_source": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000cbb",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "b5932b82-de8e-4219-bf73-3db51dcaeb1a",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000191e",
"id": "00000000-0000-0000-0000-0000000007f8",
"license_id": "00000000-0000-0000-0000-000000000216",
"name": "Place 671"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "e2cb681f-1479-46d9-8b8d-fed8853800d4",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-23T08:54:51.673808Z"
},
"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-000000002013",
"role": {
"id": "00000000-0000-0000-0000-00000000209e",
"name": "Admin 2747"
}
},
"payment_term_name": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000191e",
"id": "00000000-0000-0000-0000-0000000007f8",
"license_id": "00000000-0000-0000-0000-000000000216",
"license_number": "CDPH-00000176",
"name": "Place 671"
},
"status": "PROCESSING",
"total": "6.00",
"updated_datetime": "2026-06-23T08:54:51.723370Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODUsImlhdCI6MTc4MjIwNDg4NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTc1YWM5MGYtYzkxZi00MTUyLTk5M2MtMmNmNjExNDcyNWY2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODg0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6Nzg0NSIsInR5cCI6ImFjY2VzcyJ9.ju6tnCMl-GuBtUQg4dEKroWx8D3gfZ0wnbdEL-lfV6A
{
"billing_location_id": "00000000-0000-0000-0000-000000000787",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000001089",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000000787",
"price_base": "10.000000000",
"product_id": "dda477a6-92b0-43cd-981f-47b69bd55cfc",
"quantity": "1.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-000000000787",
"status": "PROCESSING"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: e3af752a969afd3894a86f3c112addef-f20a57666267bc12-0
{
"errors": [
{
"context": {
"id": "1909a64d-a91f-4fa3-a5a5-66ec8ed2e580"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODUsImlhdCI6MTc4MjIwNDg4NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTc1YWM5MGYtYzkxZi00MTUyLTk5M2MtMmNmNjExNDcyNWY2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODg0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6Nzg0NSIsInR5cCI6ImFjY2VzcyJ9.ju6tnCMl-GuBtUQg4dEKroWx8D3gfZ0wnbdEL-lfV6A
{
"billing_location_id": "00000000-0000-0000-0000-000000000787",
"blaze_payment_type": "CASH",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000001089",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000000787",
"price_base": "10.000000000",
"product_id": "dda477a6-92b0-43cd-981f-47b69bd55cfc",
"quantity": "1.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-000000000787",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: e3af752a969afd3894a86f3c112addef-8b93087a978231ea-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000017ba",
"id": "00000000-0000-0000-0000-000000000787",
"license_id": "00000000-0000-0000-0000-0000000001ef",
"license_number": "CDPH-00000137",
"name": "Place 558"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000001089",
"name": "Company 1745",
"updated_datetime": "2026-06-23T08:54:45.581992Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2317@example.com",
"full_name": "FirstName4704 LastName4705",
"id": "00000000-0000-0000-0000-000000001ea5",
"role": {
"id": "00000000-0000-0000-0000-000000001f25",
"name": "Admin 2370"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "d4bf4847-1835-468d-8d84-9d3632b84f0d",
"inserted_datetime": "2026-06-23T08:54:45.651264Z",
"internal_notes": null,
"inventory_source": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000bd6",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "09c37f94-efc0-4b48-bd24-6869abb24e03",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000017ba",
"id": "00000000-0000-0000-0000-000000000787",
"license_id": "00000000-0000-0000-0000-0000000001ef",
"name": "Place 558"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "dda477a6-92b0-43cd-981f-47b69bd55cfc",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-23T08:54:45.603375Z"
},
"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-0000000017ba",
"id": "00000000-0000-0000-0000-000000000787",
"license_id": "00000000-0000-0000-0000-0000000001ef",
"license_number": "CDPH-00000137",
"name": "Place 558"
},
"status": "PROCESSING",
"total": "10.00",
"updated_datetime": "2026-06-23T08:54:45.651264Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODAsImlhdCI6MTc4MjIwNDg4MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDFmZjc4OGUtMDVmMS00ZTM4LWJkMjgtZWQ5ZGE3NDlhZmYxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6Njk3MyIsInR5cCI6ImFjY2VzcyJ9.lNbZ3MlMzXMRcQtE7R7FpVhMgv9Im7HE5rWUBJbbfPs
{
"billing_location_id": "00000000-0000-0000-0000-00000000069a",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000000e56",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000000069a",
"position": 1,
"price_base": "100.000000000",
"product_id": "70d297bd-5107-4d5e-acfc-1c5370bc099c",
"quantity": "80.000000000"
},
{
"location_id": "00000000-0000-0000-0000-00000000069a",
"position": 2,
"price_base": "200.000000000",
"product_id": "70d297bd-5107-4d5e-acfc-1c5370bc099c",
"quantity": "10.000000000"
},
{
"location_id": "00000000-0000-0000-0000-00000000069a",
"position": 3,
"price_base": "300.000000000",
"product_id": "166c44df-a80a-440b-b4b7-5333294debc1",
"quantity": "20.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-00000000069a",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 81b57424a08e9ddf5af108353705a705-765aed12ef027a67-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001522",
"id": "00000000-0000-0000-0000-00000000069a",
"license_id": "00000000-0000-0000-0000-0000000001b0",
"license_number": "CDPH-00000073",
"name": "Place 321"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000e56",
"name": "Company 1084",
"updated_datetime": "2026-06-23T08:54:40.771608Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-1456@example.com",
"full_name": "FirstName2982 LastName2983",
"id": "00000000-0000-0000-0000-000000001b3d",
"role": {
"id": "00000000-0000-0000-0000-000000001bd8",
"name": "Admin 1525"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "b7d53be8-f490-4e9d-af0e-576973afb9ca",
"inserted_datetime": "2026-06-23T08:54:40.971786Z",
"internal_notes": null,
"inventory_source": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000a1e",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "50eb62c0-d89f-4aa2-9b48-db68cc0193b6",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001522",
"id": "00000000-0000-0000-0000-00000000069a",
"license_id": "00000000-0000-0000-0000-0000000001b0",
"name": "Place 321"
},
"package": null,
"price": "80.000000000",
"price_base": "100.000000000",
"product": {
"id": "70d297bd-5107-4d5e-acfc-1c5370bc099c",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-23T08:54:40.825016Z"
},
"quantity": "80.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000a1e",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "50fb0eb5-68b8-4859-8ec9-9532ce06a551",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001522",
"id": "00000000-0000-0000-0000-00000000069a",
"license_id": "00000000-0000-0000-0000-0000000001b0",
"name": "Place 321"
},
"package": null,
"price": "180.000000000",
"price_base": "200.000000000",
"product": {
"id": "70d297bd-5107-4d5e-acfc-1c5370bc099c",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-23T08:54:40.825016Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000a1f",
"name": "B2"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "9a671e3a-37ca-40ec-9f94-4c0cac13c405",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001522",
"id": "00000000-0000-0000-0000-00000000069a",
"license_id": "00000000-0000-0000-0000-0000000001b0",
"name": "Place 321"
},
"package": null,
"price": "270.000000000",
"price_base": "300.000000000",
"product": {
"id": "166c44df-a80a-440b-b4b7-5333294debc1",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-06-23T08:54:40.864120Z"
},
"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-000000001522",
"id": "00000000-0000-0000-0000-00000000069a",
"license_id": "00000000-0000-0000-0000-0000000001b0",
"license_number": "CDPH-00000073",
"name": "Place 321"
},
"status": "PROCESSING",
"total": "13600.00",
"updated_datetime": "2026-06-23T08:54:41.018387Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODYsImlhdCI6MTc4MjIwNDg4NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiY2M3YzM4M2ItYTYwMy00NWI5LThiMDktNzAxNTZkOGZhMGE3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODg1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6Nzg4OSIsInR5cCI6ImFjY2VzcyJ9.zWmk2VEeZwTLcLDSaZNxNVwf5SLV8Puzgxy3AYQymT0
{
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"batch_id": "00000000-0000-0000-0000-000000000bf2",
"location_id": "00000000-0000-0000-0000-000000000795",
"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: 1067ded54526b1ee2a22affa96ce45a9-27f8425dbd0f6d4b-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-000000001ed1",
"role": {
"id": "00000000-0000-0000-0000-000000001f54",
"name": "Admin 2417"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "0a6f235f-4b50-4722-ab25-6dd5bd06c7cd",
"inserted_datetime": "2026-06-23T08:54:46.285935Z",
"internal_notes": null,
"inventory_source": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000bf2",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "371cd7f0-66a1-4490-8c0c-70dd4831da80",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000017e1",
"id": "00000000-0000-0000-0000-000000000795",
"license_id": "00000000-0000-0000-0000-0000000001f6",
"name": "Place 572"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "a595fb52-88e3-4f96-8982-902c98dbf0d0",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-23T08:54:46.256171Z"
},
"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-23T08:54:46.285935Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0OTMsImlhdCI6MTc4MjIwNDg5MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMWViNmFhODktODY2My00ODcxLWJhMjgtNDhmNTY4ZjEzNjlmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODkyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODI1MiIsInR5cCI6ImFjY2VzcyJ9.lk_W-jvcBBXqEtBM53JHrJ4UPIuARliG3zvHxRLbDcE
{
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000000801",
"price_base": "10.000000000",
"product_id": "b4431a50-a220-4531-aac9-a248250e5e93",
"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: 46242885a6289eb0e81261134d0ddfb7-019172102625b7a1-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-00000000203c",
"role": {
"id": "00000000-0000-0000-0000-0000000020c9",
"name": "Admin 2790"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "cd5bd650-cf0b-49a2-bebc-57c0eca93809",
"inserted_datetime": "2026-06-23T08:54:53.176026Z",
"internal_notes": null,
"inventory_source": null,
"items": [
{
"batch": null,
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "533072d6-aeef-4c41-a284-180b50d9da93",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000194e",
"id": "00000000-0000-0000-0000-000000000801",
"license_id": "00000000-0000-0000-0000-000000000218",
"name": "Place 680"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "b4431a50-a220-4531-aac9-a248250e5e93",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-23T08:54:53.157855Z"
},
"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-23T08:54:53.176026Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0OTIsImlhdCI6MTc4MjIwNDg5MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGM5MGVlYzUtYjlmZi00OTBlLThmYjMtODM5YjBlNjVkOTk4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODkxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODIyMCIsInR5cCI6ImFjY2VzcyJ9.e6_4sIAwvrhZ6eo_rrKbjNVHkCrMDa1zpIfnL6wQakk
{
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"compliance_quantity": "1.0000",
"is_sample": true,
"location_id": "00000000-0000-0000-0000-0000000007fa",
"package_id": "00000000-0000-0000-0000-00000000011f",
"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: 3be3ccb52494c2f3a4ef2e7b5c8f7407-a95c0e130a2d21e4-0
{
"data": {
"billing_location": null,
"biotrack_id": null,
"charges": [],
"company": null,
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2680@example.com",
"full_name": "FirstName5430 LastName5431",
"id": "00000000-0000-0000-0000-00000000201c",
"role": {
"id": "00000000-0000-0000-0000-0000000020a8",
"name": "Admin 2757"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "98d34c0b-6355-4089-8065-a1b2fedbb2d8",
"inserted_datetime": "2026-06-23T08:54:52.133716Z",
"internal_notes": null,
"inventory_source": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000cc1",
"name": "B1"
},
"compliance_quantity": "1.0000",
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "73ddfa54-a2d6-436f-9cc7-476dad5ddf33",
"is_sample": true,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001928",
"id": "00000000-0000-0000-0000-0000000007fa",
"license_id": "00000000-0000-0000-0000-000000000217",
"name": "Place 673"
},
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000000184",
"id": "00000000-0000-0000-0000-00000000011f",
"metrc_label": "ABCDEF012345670000000184",
"status": "selling"
},
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "90d2cea4-1419-4f54-bf3e-846bc000573f",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-23T08:54:52.050281Z"
},
"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-23T08:54:52.133716Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODgsImlhdCI6MTc4MjIwNDg4OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTAwMmJkZjMtM2RhZS00N2Q0LTgxMGMtYmU1NDVhZGU3ZTY2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODg3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODA4MyIsInR5cCI6ImFjY2VzcyJ9.8lqZa6DpGKwoR1IFWaxzVLcxPR7iixU2W3sNOaOdXbo
{
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-0000000007d5",
"price_base": "10.000000000",
"product_id": "97661e41-f1fc-4b0c-a038-eb5be466d150",
"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: 589a3a202d047718da171686f66e6b6c-f92dddaecf9a8f89-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-000000001f93",
"role": {
"id": "00000000-0000-0000-0000-00000000201e",
"name": "Admin 2619"
}
},
"custom_data": [],
"delivery_datetime": null,
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "47b4906c-316a-471a-ae7a-8783090ce9bf",
"inserted_datetime": "2026-06-23T08:54:48.872851Z",
"internal_notes": null,
"inventory_source": null,
"items": [
{
"batch": null,
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "89aa1ec9-8642-41cd-8ba5-c1f5bbf1c939",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001898",
"id": "00000000-0000-0000-0000-0000000007d5",
"license_id": "00000000-0000-0000-0000-00000000020e",
"name": "Place 636"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "97661e41-f1fc-4b0c-a038-eb5be466d150",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-23T08:54:48.856655Z"
},
"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-23T08:54:48.872851Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODYsImlhdCI6MTc4MjIwNDg4NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOWU4OWIyMjMtZmY0My00MTY1LWEyOTgtMDI4NTQyZDI4ZjliIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODg1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6Nzk1MCIsInR5cCI6ImFjY2VzcyJ9.3N-JlNcLoTGxt3PKdTM62bpi_wPYLjspG9I9oZmWHrw
{
"billing_location_id": "00000000-0000-0000-0000-0000000007af",
"charges": [],
"company_id": "00000000-0000-0000-0000-0000000010d3",
"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": "dc3e1ffe-12eb-4458-977b-c19bf87a45bd",
"location_id": "00000000-0000-0000-0000-0000000007af",
"package_id": "00000000-0000-0000-0000-00000000011b",
"price_base": "10.000000000",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-0000000007af",
"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-000000001f0e",
"shipping_location_id": "00000000-0000-0000-0000-0000000007af",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: dadf2bdde8cbd72225cd8c57d91e66bc-2c38f81a4441da86-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001816",
"id": "00000000-0000-0000-0000-0000000007af",
"license_id": "00000000-0000-0000-0000-0000000001ff",
"license_number": "CDPH-00000153",
"name": "Place 598"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-0000000010d3",
"name": "Company 1837",
"updated_datetime": "2026-06-23T08:54:46.861731Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-000000001f0e",
"role": {
"id": "00000000-0000-0000-0000-000000001f94",
"name": "Admin 2481"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "5033c096-ce6e-40d1-af5b-3741aba137d6",
"inserted_datetime": "2026-06-23T08:54:46.966981Z",
"internal_notes": null,
"inventory_source": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001816",
"id": "00000000-0000-0000-0000-0000000007af",
"license_id": "00000000-0000-0000-0000-0000000001ff",
"license_number": "CDPH-00000153",
"name": "Place 598"
},
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000c0a",
"name": "B2"
},
"compliance_quantity": "1.0000",
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "dc3e1ffe-12eb-4458-977b-c19bf87a45bd",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001816",
"id": "00000000-0000-0000-0000-0000000007af",
"license_id": "00000000-0000-0000-0000-0000000001ff",
"name": "Place 598"
},
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000000178",
"id": "00000000-0000-0000-0000-00000000011b",
"metrc_label": "ABCDEF012345670000000178",
"status": "selling"
},
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "30bcbcfe-4c16-4353-a922-4c99cc25ea46",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-23T08:54:46.877943Z"
},
"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-000000001f0e",
"role": {
"id": "00000000-0000-0000-0000-000000001f94",
"name": "Admin 2481"
}
},
"payment_term_name": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001816",
"id": "00000000-0000-0000-0000-0000000007af",
"license_id": "00000000-0000-0000-0000-0000000001ff",
"license_number": "CDPH-00000153",
"name": "Place 598"
},
"status": "PROCESSING",
"total": "10.00",
"updated_datetime": "2026-06-23T08:54:47.072128Z"
}
}
POST /public/v1/orders updates an order
POST /public/v1/orders
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzcsImlhdCI6MTc4MjIwNDg3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTUxYzliYWQtMGQ4My00ZmIzLTgxZDItNDVjNjk1NWYxOTljIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTkyMSIsInR5cCI6ImFjY2VzcyJ9.WCUK5S1lX_1rChVqa6XUtx2RpSskDLcJhlMrKaqJJV4
{
"billing_location_id": "00000000-0000-0000-0000-0000000005b7",
"charges": [
{
"id": "fb954050-b0e0-4d39-8bf5-de39b2f92e58",
"name": "C1",
"percent": "10.0000",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "e7a14b15-4c4c-420f-93b4-69f05e42a4f5",
"name": "C2",
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company_id": "00000000-0000-0000-0000-000000000c6a",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": "gonna make you sweat",
"id": "df47982d-eb7b-4db3-ad4b-ce9e5010fcc6",
"items": [
{
"id": "59485972-cc3a-4a18-8658-aaf74beda0fb",
"is_sample": true,
"location_id": "00000000-0000-0000-0000-0000000005b7",
"price_base": "10.000000000",
"product_id": "3c1969cb-a771-4df8-bc64-ea27ad96a10e",
"quantity": "2.000000000"
},
{
"id": "6f463e0b-4183-42fa-a1ab-55123101ec8c",
"location_id": "00000000-0000-0000-0000-0000000005b7",
"price_base": "100.000000000",
"product_id": "3c1969cb-a771-4df8-bc64-ea27ad96a10e",
"quantity": "3.000000000"
},
{
"compliance_quantity": "1.0000",
"id": "4ac3308b-bfff-4ff3-ae33-e4c1f606669c",
"location_id": "00000000-0000-0000-0000-0000000005b7",
"package_id": "00000000-0000-0000-0000-0000000000c6",
"price_base": "10.000000000",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-0000000005b7",
"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-00000000176b",
"shipping_location_id": "00000000-0000-0000-0000-0000000005b7",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: bec979a0fa8ec4bee085ba227fb564c8-c60357bf57ef37f2-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000011f4",
"id": "00000000-0000-0000-0000-0000000005b7",
"license_id": "00000000-0000-0000-0000-000000000175",
"license_number": "CDPH-00000014",
"name": "Place 94"
},
"biotrack_id": null,
"charges": [
{
"id": "fb954050-b0e0-4d39-8bf5-de39b2f92e58",
"name": "C1",
"percent": "10.0000",
"price": "33.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "e7a14b15-4c4c-420f-93b4-69f05e42a4f5",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000000c6a",
"name": "Company 299",
"updated_datetime": "2026-06-23T08:54:37.881855Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-00000000171e",
"role": {
"id": "00000000-0000-0000-0000-000000001799",
"name": "Admin 438"
}
},
"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": "df47982d-eb7b-4db3-ad4b-ce9e5010fcc6",
"inserted_datetime": "2026-06-23T08:54:37.939238Z",
"internal_notes": null,
"inventory_source": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000011f4",
"id": "00000000-0000-0000-0000-0000000005b7",
"license_id": "00000000-0000-0000-0000-000000000175",
"license_number": "CDPH-00000014",
"name": "Place 94"
},
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000008cc",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "59485972-cc3a-4a18-8658-aaf74beda0fb",
"is_sample": true,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000011f4",
"id": "00000000-0000-0000-0000-0000000005b7",
"license_id": "00000000-0000-0000-0000-000000000175",
"name": "Place 94"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "3c1969cb-a771-4df8-bc64-ea27ad96a10e",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-23T08:54:37.906981Z"
},
"quantity": "2.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000008cc",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "6f463e0b-4183-42fa-a1ab-55123101ec8c",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000011f4",
"id": "00000000-0000-0000-0000-0000000005b7",
"license_id": "00000000-0000-0000-0000-000000000175",
"name": "Place 94"
},
"package": null,
"price": "100.000000000",
"price_base": "100.000000000",
"product": {
"id": "3c1969cb-a771-4df8-bc64-ea27ad96a10e",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-23T08:54:37.906981Z"
},
"quantity": "3.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000008cf",
"name": "B2"
},
"compliance_quantity": "1.0000",
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "4ac3308b-bfff-4ff3-ae33-e4c1f606669c",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000011f4",
"id": "00000000-0000-0000-0000-0000000005b7",
"license_id": "00000000-0000-0000-0000-000000000175",
"name": "Place 94"
},
"package": {
"batch_number": "B2",
"compliance_label": "ABCDEF012345670000000010",
"id": "00000000-0000-0000-0000-0000000000c6",
"metrc_label": "ABCDEF012345670000000010",
"status": "selling"
},
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "284d67d3-6637-44b6-8b2e-5f62e1ab9337",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-06-23T08:54:37.966151Z"
},
"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-5",
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-484@example.com",
"full_name": "FirstName980 LastName981",
"id": "00000000-0000-0000-0000-00000000176b",
"role": {
"id": "00000000-0000-0000-0000-0000000017e7",
"name": "Admin 516"
}
},
"payment_term_name": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000011f4",
"id": "00000000-0000-0000-0000-0000000005b7",
"license_id": "00000000-0000-0000-0000-000000000175",
"license_number": "CDPH-00000014",
"name": "Place 94"
},
"status": "PROCESSING",
"total": "358.00",
"updated_datetime": "2026-06-23T08:54:38.508721Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODgsImlhdCI6MTc4MjIwNDg4OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYTMzZDYxYjUtMmJiNi00ZTFkLTkyZTEtNWNlMjYzZGZiNmM0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODg3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6ODA1NCIsInR5cCI6ImFjY2VzcyJ9.C1YK-HglamJt52r5Hm2SS5Ez04kfNrtkzvKGy78rdRs
{
"billing_location_id": "00000000-0000-0000-0000-0000000007cd",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000001132",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-0000000007cd",
"position": 1,
"price_base": "100.000000000",
"product_id": "2769fd49-1366-47fe-b001-b165eac6c658",
"quantity": "10.000000000"
},
{
"location_id": "00000000-0000-0000-0000-0000000007cd",
"position": 2,
"price_base": "200.000000000",
"product_id": "ad356e21-e62c-4fe6-a5f2-aedc6cf50678",
"quantity": "10.000000000"
},
{
"location_id": "00000000-0000-0000-0000-0000000007cd",
"position": 3,
"price_base": "300.000000000",
"product_id": "fb12c533-e8b6-4cc6-80a8-fd27e57d2cfb",
"quantity": "10.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-0000000007cd",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: bfa814aebb0211573876d586ea3b2922-3a2496c2361d0933-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001882",
"id": "00000000-0000-0000-0000-0000000007cd",
"license_id": "00000000-0000-0000-0000-00000000020b",
"license_number": "CDPH-00000165",
"name": "Place 628"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000001132",
"name": "Company 1945",
"updated_datetime": "2026-06-23T08:54:48.401649Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "owner-2521@example.com",
"full_name": "FirstName5112 LastName5113",
"id": "00000000-0000-0000-0000-000000001f76",
"role": {
"id": "00000000-0000-0000-0000-000000001fff",
"name": "Admin 2588"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "707ed9e9-ea78-469f-a886-9aba73c324f9",
"inserted_datetime": "2026-06-23T08:54:48.518954Z",
"internal_notes": null,
"inventory_source": null,
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000c53",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "9bb94dbc-6b16-4be2-a0fc-d7dd9e9b2e07",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001882",
"id": "00000000-0000-0000-0000-0000000007cd",
"license_id": "00000000-0000-0000-0000-00000000020b",
"name": "Place 628"
},
"package": null,
"price": "90.000000000",
"price_base": "100.000000000",
"product": {
"id": "2769fd49-1366-47fe-b001-b165eac6c658",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-23T08:54:48.430592Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000c55",
"name": "B2"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "28743f97-6b3c-4f49-92b5-73ce83b444d9",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001882",
"id": "00000000-0000-0000-0000-0000000007cd",
"license_id": "00000000-0000-0000-0000-00000000020b",
"name": "Place 628"
},
"package": null,
"price": "200.000000000",
"price_base": "200.000000000",
"product": {
"id": "ad356e21-e62c-4fe6-a5f2-aedc6cf50678",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-06-23T08:54:48.445491Z"
},
"quantity": "10.000000000",
"returned_quantity": "0",
"total_cost_actual": null,
"total_cost_default": null
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000c57",
"name": "B3"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "71cb62ef-5638-4dd1-a137-e2e359d6cb2e",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001882",
"id": "00000000-0000-0000-0000-0000000007cd",
"license_id": "00000000-0000-0000-0000-00000000020b",
"name": "Place 628"
},
"package": null,
"price": "290.000000000",
"price_base": "300.000000000",
"product": {
"id": "fb12c533-e8b6-4cc6-80a8-fd27e57d2cfb",
"name": "P3",
"sku": "SKU3",
"updated_datetime": "2026-06-23T08:54:48.465273Z"
},
"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-000000001882",
"id": "00000000-0000-0000-0000-0000000007cd",
"license_id": "00000000-0000-0000-0000-00000000020b",
"license_number": "CDPH-00000165",
"name": "Place 628"
},
"status": "PROCESSING",
"total": "5800.00",
"updated_datetime": "2026-06-23T08:54:48.554650Z"
}
}
POST /public/v1/orders deleting order items & charges
POST /public/v1/orders
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZmRhZTExZTAtYjZkYy00MmI4LWE4ODctMzMwZjBmNGI4ZWQzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjMyNyIsInR5cCI6ImFjY2VzcyJ9.TSl9gSI-A6G5uvvBG8U-mQR_l4L7A2B2WBv-5W0GfQI
{
"billing_location_id": "00000000-0000-0000-0000-000000000625",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000000d19",
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"id": "9e27ec57-b6a4-42e9-b5e6-8f69975eac4c",
"items": [
{
"id": "7a5bd224-79d0-4eb1-9743-d7658118686b",
"location_id": "00000000-0000-0000-0000-000000000625",
"price_base": "10.000000000",
"product_id": "4aeb6dc9-4a7d-4997-8f82-417f515bf7af",
"quantity": "1.000000000"
}
],
"order_datetime": "2020-01-01T00:00:02.000000Z",
"shipping_location_id": "00000000-0000-0000-0000-000000000625",
"status": "PROCESSING"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 5a3708c1d6b40313d9fdff03fb83a76b-3e801f5fd04a6248-0
{
"data": {
"billing_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001338",
"id": "00000000-0000-0000-0000-000000000625",
"license_id": "00000000-0000-0000-0000-000000000181",
"license_number": "CDPH-00000026",
"name": "Place 204"
},
"biotrack_id": null,
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000d19",
"name": "Company 600",
"updated_datetime": "2026-06-23T08:54:38.857157Z"
},
"creator": {
"banned": false,
"deleted_at": null,
"email": "user1@a.com",
"full_name": "John Foo",
"id": "00000000-0000-0000-0000-0000000018b7",
"role": {
"id": "00000000-0000-0000-0000-000000001938",
"name": "Admin 853"
}
},
"custom_data": [],
"delivery_datetime": "2020-01-01T00:00:00.000000Z",
"due_datetime": "2020-01-01T00:00:01.000000Z",
"external_notes": null,
"id": "9e27ec57-b6a4-42e9-b5e6-8f69975eac4c",
"inserted_datetime": "2026-06-23T08:54:39.117808Z",
"internal_notes": null,
"inventory_source": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001338",
"id": "00000000-0000-0000-0000-000000000640",
"license_id": null,
"license_number": null,
"name": "Place 231"
},
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000093c",
"name": "B1"
},
"compliance_quantity": null,
"cost_per_unit": null,
"cost_per_unit_default": null,
"id": "7a5bd224-79d0-4eb1-9743-d7658118686b",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001338",
"id": "00000000-0000-0000-0000-000000000625",
"license_id": "00000000-0000-0000-0000-000000000181",
"name": "Place 204"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "4aeb6dc9-4a7d-4997-8f82-417f515bf7af",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-23T08:54:39.086745Z"
},
"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-13",
"owner": null,
"payment_term_name": null,
"shipping_location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001338",
"id": "00000000-0000-0000-0000-000000000625",
"license_id": "00000000-0000-0000-0000-000000000181",
"license_number": "CDPH-00000026",
"name": "Place 204"
},
"status": "PROCESSING",
"total": "10.00",
"updated_datetime": "2026-06-23T08:54:39.251859Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTYwMjQ5ZTMtMWFhYy00ZTgxLTgzZTEtMDNhZDEzOGJlZDAzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjU0NiIsInR5cCI6ImFjY2VzcyJ9.A63ktbEE_19dm4iz-DIVkPorZVsTEWSrvXX9JYc5FIc
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 5fa8f83c32e1bc880a2217cf14e3f7cd-649bb6f9b26171a1-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000068",
"custom_data": [
{
"id": 183,
"name": "Custom Field 30",
"value": "Custom Field Value 1"
}
],
"expiration_date": "2024-01-01T00:00:00.000000Z",
"harvest_date": "2024-06-15",
"id": "00000000-0000-0000-0000-0000000000e3",
"is_trade_sample": true,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-00000000018a",
"license_number": "CDPH-00000035"
},
"location": {
"id": "00000000-0000-0000-0000-000000000649",
"name": "Place 240"
},
"metrc_label": "ABCDEF012345670000000068",
"packaged_date": "2024-07-01",
"primary_test_result": null,
"product_id": "e6809cd4-0ff2-4203-b445-0637b3b43742",
"product_unit_quantity": "7.500000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-00000000fd4d",
"name": "3"
},
"quantity": "5.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "5.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-00000000fd4e",
"name": "2"
}
},
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000072",
"custom_data": [
{
"id": 183,
"name": "Custom Field 30",
"value": null
}
],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-0000000000e6",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-00000000018a",
"license_number": "CDPH-00000035"
},
"location": {
"id": "00000000-0000-0000-0000-00000000064e",
"name": "Place 245"
},
"metrc_label": "ABCDEF012345670000000072",
"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": "e6809cd4-0ff2-4203-b445-0637b3b43742",
"product_unit_quantity": "15.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-00000000fd4d",
"name": "3"
},
"quantity": "20.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "20.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-00000000fd4f",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODAsImlhdCI6MTc4MjIwNDg4MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNWY5NzAzNjgtM2M0NS00YjdiLTg2NzAtZTZhYThmMWM1YWRhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjkyOSIsInR5cCI6ImFjY2VzcyJ9.SogvMGTJZwdAfwPCNh6S5tWIpZTwSjSt7tIj-kG5YxE
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: f9e454df67c5c3d0f683b3d93efff605-4da5b9e0d12260f8-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000130",
"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-000000000104",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-0000000001ae",
"license_number": "CDPH-00000071"
},
"location": {
"id": "00000000-0000-0000-0000-000000000697",
"name": "Place 318"
},
"metrc_label": "ABCDEF012345670000000130",
"packaged_date": "2014-11-29",
"primary_test_result": null,
"product_id": "b6c1ae74-fd01-48fd-8d76-c3e6c9330716",
"product_unit_quantity": "141.747462720",
"product_unit_type": {
"id": "00000000-0000-0000-0000-000000010ba0",
"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-000000010ba2",
"name": "Ounce"
}
}
],
"next_page": null
}
GET /public/v1/packages allows filtering by product_ids
GET /public/v1/packages?product_ids[]=77bc91fa-36fb-4369-8738-e27ddcc57857&product_ids[]=f703a2b4-1c07-43ff-9edc-ea5ceddac61c
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTBhM2MxODQtZDFmMS00NDhlLTg1MmYtYjlhZmRhZGQ2ZGZiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjQ5NCIsInR5cCI6ImFjY2VzcyJ9.tulPMI3SNWxJmXiiStr1q4tGliiJfh_OiY9JGZSNixU
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 1638c77834e16a137fe0e20658e0dbb2-61fc0a6750dc1834-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000061",
"custom_data": [],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-0000000000de",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-000000000189",
"license_number": "CDPH-00000034"
},
"location": {
"id": "00000000-0000-0000-0000-000000000646",
"name": "Place 237"
},
"metrc_label": "ABCDEF012345670000000061",
"packaged_date": null,
"primary_test_result": null,
"product_id": "77bc91fa-36fb-4369-8738-e27ddcc57857",
"product_unit_quantity": "10.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-00000000faaf",
"name": "Gram"
},
"quantity": "10.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "10.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-00000000faaf",
"name": "Gram"
}
},
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000063",
"custom_data": [],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-0000000000df",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-000000000189",
"license_number": "CDPH-00000034"
},
"location": {
"id": "00000000-0000-0000-0000-000000000647",
"name": "Place 238"
},
"metrc_label": "ABCDEF012345670000000063",
"packaged_date": null,
"primary_test_result": null,
"product_id": "f703a2b4-1c07-43ff-9edc-ea5ceddac61c",
"product_unit_quantity": "10.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-00000000faaf",
"name": "Gram"
},
"quantity": "10.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "10.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-00000000faaf",
"name": "Gram"
}
}
],
"next_page": null
}
GET /public/v1/packages allows filtering by ids
GET /public/v1/packages?ids[]=00000000-0000-0000-0000-0000000000ea
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNzk5MDE1OTUtNDQwZi00YWRmLThiN2UtMjEzYWY5N2QwYzYzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjY0NSIsInR5cCI6ImFjY2VzcyJ9.HR8LmC_qPrRTJKLAEKw1kH1nG0JqhEhAASiKram40-g
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: f3af4e16677d2bb2e46780e1c4c87750-640b9cd913a3da3f-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000079",
"custom_data": [],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-0000000000ea",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-000000000190",
"license_number": "CDPH-00000041"
},
"location": {
"id": "00000000-0000-0000-0000-000000000653",
"name": "Place 250"
},
"metrc_label": "ABCDEF012345670000000079",
"packaged_date": null,
"primary_test_result": null,
"product_id": "c885b3ce-a15d-4bc7-8f23-8bb177db0d92",
"product_unit_quantity": "10.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-0000000100a6",
"name": "Gram"
},
"quantity": "10.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "10.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-0000000100a6",
"name": "Gram"
}
}
],
"next_page": null
}
GET /public/v1/packages allows filtering by location_ids
GET /public/v1/packages?location_ids[]=00000000-0000-0000-0000-00000000067b&location_ids[]=00000000-0000-0000-0000-00000000067c
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODAsImlhdCI6MTc4MjIwNDg4MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZGU3OWZhMDUtMGM3ZC00ZDMwLWI2ZTQtYzZhNjVkZDhhYjVjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjgwMiIsInR5cCI6ImFjY2VzcyJ9.3dqlwRWVrbNs0FcM0PXUrb5Cy71PlB53FMrEWWuklJE
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 4fffb7daec0e95448d9e14d72592dcef-d2ab74f246a65b55-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000113",
"custom_data": [],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-0000000000fb",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-0000000001a2",
"license_number": "CDPH-00000059"
},
"location": {
"id": "00000000-0000-0000-0000-00000000067b",
"name": "Place 290"
},
"metrc_label": "ABCDEF012345670000000113",
"packaged_date": null,
"primary_test_result": null,
"product_id": "86fabe82-3fce-468d-809f-d50ec8e894b6",
"product_unit_quantity": "10.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-000000010678",
"name": "Gram"
},
"quantity": "10.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "10.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-000000010678",
"name": "Gram"
}
},
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000115",
"custom_data": [],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-0000000000fc",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-0000000001a2",
"license_number": "CDPH-00000059"
},
"location": {
"id": "00000000-0000-0000-0000-00000000067c",
"name": "Place 291"
},
"metrc_label": "ABCDEF012345670000000115",
"packaged_date": null,
"primary_test_result": null,
"product_id": "5b969bf5-3717-4177-9dbc-19d22f3acfc1",
"product_unit_quantity": "10.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-000000010678",
"name": "Gram"
},
"quantity": "10.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "10.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-000000010678",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzYsImlhdCI6MTc4MjIwNDg3NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjNhZGY2N2MtOTYyOC00ZDdkLTk4NDYtNzJjZjA3OTAwYWY3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTUzNyIsInR5cCI6ImFjY2VzcyJ9.W4OTVhx-yZAxMleYL2uYaDV4SHF5AimrvZpQm7pOR4o
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: a0db1fe0199a4710d90bd7609f5ea170-901de8f6f59522c3-0
{
"data": [
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000000",
"custom_data": [],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-0000000000c1",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-000000000167",
"license_number": "CDPH-00000000"
},
"location": {
"id": "00000000-0000-0000-0000-00000000055a",
"name": "Place 1"
},
"metrc_label": "ABCDEF012345670000000000",
"packaged_date": "2014-11-29",
"primary_test_result": null,
"product_id": "80e8725a-e166-4878-8275-053cad6bb337",
"product_unit_quantity": "1.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-00000000d6bc",
"name": "Ounce"
},
"quantity": "1.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "1.000000000",
"status": "active",
"unit_type": {
"id": "00000000-0000-0000-0000-00000000d6bc",
"name": "Ounce"
}
},
{
"batch_number": null,
"compliance_label": "ABCDEF012345670000000006",
"custom_data": [],
"expiration_date": null,
"harvest_date": null,
"id": "00000000-0000-0000-0000-0000000000c4",
"is_trade_sample": false,
"lab_testing_state": "NotSubmitted",
"license": {
"id": "00000000-0000-0000-0000-000000000167",
"license_number": "CDPH-00000000"
},
"location": {
"id": "00000000-0000-0000-0000-0000000005a5",
"name": "Place 76"
},
"metrc_label": "ABCDEF012345670000000006",
"packaged_date": "2014-11-29",
"primary_test_result": null,
"product_id": "ce6545e6-e2ba-4100-8a41-34c998396c15",
"product_unit_quantity": "0.000000000",
"product_unit_type": {
"id": "00000000-0000-0000-0000-00000000d6bc",
"name": "Ounce"
},
"quantity": "0.000000000",
"quantity_assembling": "0.000000000",
"quantity_available": "0.000000000",
"status": "finished",
"unit_type": {
"id": "00000000-0000-0000-0000-00000000d6bc",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzYsImlhdCI6MTc4MjIwNDg3NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYTgyNmIwMDEtZDNlNS00ZDY0LTk5OTQtOTJmNWM4NDBmYzc4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTU1OSIsInR5cCI6ImFjY2VzcyJ9.2uvqSduxnd5P6R9vTuw13swN_K33TWeVQ72qNaxVOYQ
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: d9ac6503a0cf5dd17aca7d7594bf5ec7-d82ec00d2f676452-0
{
"data": [
{
"deleted_at": null,
"id": "00000000-0000-0000-0000-000000000028",
"name": "Payment Method 1"
}
],
"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-00000000002e
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzcsImlhdCI6MTc4MjIwNDg3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZWFkZjgyMzctNjQyNi00Yjk0LTljYmEtYjQzNzQ1OWNiY2RhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTcyMSIsInR5cCI6ImFjY2VzcyJ9.LKebGwD2I_JBbrMu5JycLZ1YTIt3YvcUSTNi_s44HYE
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: a56322dd275a659505460fd397491f47-38f834fd5755669b-0
{
"data": {
"deleted_at": null,
"id": "00000000-0000-0000-0000-00000000002e",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGMwMzkzZjEtOWY3ZC00MWJjLWJkNDgtNTAwNDU0ZjIzZjVjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjUxNyIsInR5cCI6ImFjY2VzcyJ9.84oqaTHOU6QFEjYTPwL3k8FVUoIR05IovI_AomW1PIg
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 0f6146ec94af8752cdc87949bee053a1-acb6d162b29b5dd8-0
{
"data": [
{
"brand": {
"id": "00000000-0000-0000-0000-000000000d72",
"name": "Company 757",
"updated_datetime": "2030-11-01T00:00:00.000000Z"
},
"category": {
"id": "00000000-0000-0000-0000-0000000009e5",
"name": "Some category 244",
"type": null
},
"custom_data": [
{
"id": 180,
"name": "Custom Field 29",
"value": "Custom Field Value 1"
}
],
"deleted_at": null,
"description": "test",
"description_markdown": "# test",
"external_name": "External Name",
"id": "d42bbf1c-31a6-4de9-8f36-44f778d62f07",
"images": [
{
"id": "00000000-0000-0000-0000-000000000020",
"name": "Image Name 86",
"rank": 0,
"url": "https://google.com/original-5.jpg"
},
{
"id": "00000000-0000-0000-0000-000000000021",
"name": "Image Name 88",
"rank": 1,
"url": "https://google.com/original-6.jpg"
}
],
"is_active": true,
"menus": [],
"msrp": null,
"name": "Product 663",
"product_group": {
"id": "00000000-0000-0000-0000-0000000009d8",
"name": "Product Group 243"
},
"sku": "sku 664",
"strain": {
"id": "00000000-0000-0000-0000-000000000072",
"name": "Strain 31",
"strain_type": "INDICA"
},
"subcategory": {
"id": "00000000-0000-0000-0000-0000000009d8",
"name": "Some subcategory 243"
},
"unit_cost": null,
"unit_net_weight": "20",
"unit_net_weight_serving_size_unit_type": {
"id": "00000000-0000-0000-0000-00000000fbf5",
"name": "Ounce"
},
"unit_price": "1",
"unit_serving_size": "10",
"unit_type": {
"id": "00000000-0000-0000-0000-00000000fbf3",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2023-11-01T00:00:00.000000Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000000d77",
"name": "Company 763",
"updated_datetime": "2030-11-03T00:00:00.000000Z"
}
},
{
"brand": {
"id": "00000000-0000-0000-0000-000000000d73",
"name": "Company 759",
"updated_datetime": "2030-11-02T00:00:00.000000Z"
},
"category": {
"id": "00000000-0000-0000-0000-0000000009e7",
"name": "Some category 246",
"type": null
},
"custom_data": [
{
"id": 180,
"name": "Custom Field 29",
"value": null
}
],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "13f226ae-0af3-4b9e-880e-b7851bef056c",
"images": [],
"is_active": false,
"menus": [],
"msrp": "100",
"name": "Product 668",
"product_group": {
"id": "00000000-0000-0000-0000-0000000009da",
"name": "Product Group 245"
},
"sku": "sku 669",
"strain": null,
"subcategory": {
"id": "00000000-0000-0000-0000-0000000009da",
"name": "Some subcategory 245"
},
"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-00000000fbf1",
"name": "Pound"
},
"units_per_case": null,
"updated_datetime": "2023-11-02T00:00:00.000000Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000000d79",
"name": "Company 765",
"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/05929157-df35-4ba5-b04e-e48ec03f2a11
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODEsImlhdCI6MTc4MjIwNDg4MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGZmZThjMzctNWQwMS00MjYxLWFkZTItZTNlM2FiZjFlNWYxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODgwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzEyNiIsInR5cCI6ImFjY2VzcyJ9.12kzZqa4UwNNfLukJrN-IGwx4p52d8Lg-id4kj94qLM
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 8032989a51f93ec903d4c5036b452b4f-b43cfa8326d26e49-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-000000000aed",
"name": "Some category 508",
"type": null
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "05929157-df35-4ba5-b04e-e48ec03f2a11",
"images": [],
"is_active": true,
"menus": [],
"msrp": null,
"name": "Test Product",
"product_group": {
"id": "00000000-0000-0000-0000-000000000adb",
"name": "Product Group 502"
},
"sku": "SKU001",
"strain": null,
"subcategory": {
"id": "00000000-0000-0000-0000-000000000adb",
"name": "Some subcategory 502"
},
"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-000000011202",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-06-23T08:54:41.508093Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000000eb3",
"name": "Company 1196",
"updated_datetime": "2026-06-23T08:54:41.505496Z"
}
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzgsImlhdCI6MTc4MjIwNDg3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiY2IzZTRlMjQtMjUxMC00NDljLWIxMjEtZTU3ZDYyYWM5NDEwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjI5NCIsInR5cCI6ImFjY2VzcyJ9.wsHcdIG6cBnTLbJZItJthaY2K7juYfGCXNgI96djoWE
{
"vendor_id": "00000000-0000-0000-0000-000000000d13",
"group_id": "00000000-0000-0000-0000-0000000009a2",
"total_cannabinoid_unit": "PERCENT",
"strain_id": "00000000-0000-0000-0000-000000000070",
"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-0000000000ad"
],
"description": "My Product Description",
"name": "My Product",
"owner_id": "00000000-0000-0000-0000-00000000173d",
"total_thc": "10.4",
"brand_id": "00000000-0000-0000-0000-000000000d1b",
"unit_cost": "50.4",
"category_id": "00000000-0000-0000-0000-0000000009af",
"tags": [
"00000000-0000-0000-0000-00000000000e"
],
"quantity_available_threshold_min": "5.5",
"is_featured": true,
"custom_data": {
"157": "VIP"
},
"is_inactive": true,
"wholesale_unit_price": "90.50",
"quantity_available_threshold_max": "10.5",
"subcategory_id": "00000000-0000-0000-0000-0000000009a2",
"upc": "036000291452",
"unit_net_weight": "3.1",
"unit_type_id": "00000000-0000-0000-0000-00000000e60b",
"unit_price": "100",
"units_per_case": "0.2",
"unit_net_weight_and_serving_size_unit_type_id": "00000000-0000-0000-0000-00000000e604"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 1130b3f01669e621aa06f25e8cce8e1b-ee2a0c3ef0769bfb-0
{
"data": {
"brand": {
"id": "00000000-0000-0000-0000-000000000d1b",
"name": "Company 603",
"updated_datetime": "2026-06-23T08:54:38.866062Z"
},
"category": {
"id": "00000000-0000-0000-0000-0000000009af",
"name": "Some category 190",
"type": null
},
"custom_data": [
{
"id": 157,
"name": "Custom Field 20",
"value": "VIP"
}
],
"deleted_at": null,
"description": "My Product Description",
"description_markdown": "# My Product Description Markdown",
"external_name": null,
"id": "1d4ef8f4-542f-4327-806e-c0a864191e20",
"images": [],
"is_active": false,
"menus": [
{
"menu_id": "00000000-0000-0000-0000-0000000000ad",
"menu_name": "Menu 152"
}
],
"msrp": "100.5",
"name": "My Product",
"product_group": {
"id": "00000000-0000-0000-0000-0000000009a2",
"name": "Product Group 189"
},
"sku": "12345",
"strain": {
"id": "00000000-0000-0000-0000-000000000070",
"name": "Strain 29",
"strain_type": null
},
"subcategory": {
"id": "00000000-0000-0000-0000-0000000009a2",
"name": "Some subcategory 189"
},
"unit_cost": "50.4",
"unit_net_weight": "3.1",
"unit_net_weight_serving_size_unit_type": {
"id": "00000000-0000-0000-0000-00000000e604",
"name": "Ounce"
},
"unit_price": "100",
"unit_serving_size": "2.2",
"unit_type": {
"id": "00000000-0000-0000-0000-00000000e60b",
"name": "Unit"
},
"units_per_case": "0.2",
"updated_datetime": "2026-06-23T08:54:38.975191Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000000d13",
"name": "Company 590",
"updated_datetime": "2026-06-23T08:54:38.833211Z"
}
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMmQwMDVjMmEtNjQ1NC00NmJjLWJhNTctYjY4NTU0NDJhYjgyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjcxMSIsInR5cCI6ImFjY2VzcyJ9.oW0vQxRRg-y4EEBW8sedCVfGCP9gxihhGClTBAEAsmU
{
"category_id": "00000000-0000-0000-0000-000000000a1e",
"inventory_tracking_method": "PACKAGE",
"name": "My Product",
"sku": "12345",
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-000000010318",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-000000000dc0"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 69730365aa8b7b1e09191b6f2396e92d-9b48e35b58ff002e-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-000000000a1e",
"name": "Some category 301",
"type": null
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "c4e2460a-acfc-4248-af7a-5ed5275f3471",
"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-000000010318",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-06-23T08:54:39.996513Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000000dc0",
"name": "Company 899",
"updated_datetime": "2026-06-23T08:54:39.941428Z"
}
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMmQwMDVjMmEtNjQ1NC00NmJjLWJhNTctYjY4NTU0NDJhYjgyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjcxMSIsInR5cCI6ImFjY2VzcyJ9.oW0vQxRRg-y4EEBW8sedCVfGCP9gxihhGClTBAEAsmU
{
"vendor_id": "00000000-0000-0000-0000-000000000dce",
"group_id": "00000000-0000-0000-0000-000000000a1d",
"total_cannabinoid_unit": "PERCENT",
"strain_id": "00000000-0000-0000-0000-000000000074",
"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-0000000000b0"
],
"description": "My Product Description",
"name": "Updated Name",
"id": "c4e2460a-acfc-4248-af7a-5ed5275f3471",
"owner_id": "00000000-0000-0000-0000-000000001a61",
"total_thc": "10.4",
"brand_id": "00000000-0000-0000-0000-000000000dd4",
"unit_cost": "50.4",
"category_id": "00000000-0000-0000-0000-000000000a29",
"tags": [
"00000000-0000-0000-0000-00000000000f"
],
"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-000000000a1b",
"upc": "036000291453",
"unit_net_weight": "3.1",
"unit_type_id": "00000000-0000-0000-0000-000000010321",
"unit_price": "200",
"units_per_case": "0.2",
"unit_net_weight_and_serving_size_unit_type_id": "00000000-0000-0000-0000-00000001031a"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 69730365aa8b7b1e09191b6f2396e92d-7d71a9516cd29b90-0
{
"data": {
"brand": {
"id": "00000000-0000-0000-0000-000000000dd4",
"name": "Company 925",
"updated_datetime": "2026-06-23T08:54:40.064203Z"
},
"category": {
"id": "00000000-0000-0000-0000-000000000a29",
"name": "Some category 312",
"type": null
},
"custom_data": [],
"deleted_at": null,
"description": "My Product Description",
"description_markdown": "My Product Description",
"external_name": "External Name",
"id": "c4e2460a-acfc-4248-af7a-5ed5275f3471",
"images": [],
"is_active": false,
"menus": [
{
"menu_id": "00000000-0000-0000-0000-0000000000b0",
"menu_name": "Menu 161"
}
],
"msrp": "100.5",
"name": "Updated Name",
"product_group": {
"id": "00000000-0000-0000-0000-000000000a1d",
"name": "Product Group 312"
},
"sku": "45678",
"strain": {
"id": "00000000-0000-0000-0000-000000000074",
"name": "Strain 33",
"strain_type": null
},
"subcategory": {
"id": "00000000-0000-0000-0000-000000000a1b",
"name": "Some subcategory 310"
},
"unit_cost": "50.4",
"unit_net_weight": "3.1",
"unit_net_weight_serving_size_unit_type": {
"id": "00000000-0000-0000-0000-00000001031a",
"name": "Ounce"
},
"unit_price": "200",
"unit_serving_size": "2.2",
"unit_type": {
"id": "00000000-0000-0000-0000-000000010321",
"name": "Unit"
},
"units_per_case": "0.2",
"updated_datetime": "2026-06-23T08:54:40.088336Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000000dce",
"name": "Company 918",
"updated_datetime": "2026-06-23T08:54:40.047155Z"
}
}
}
POST /public/v1/products Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODAsImlhdCI6MTc4MjIwNDg4MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTM4ZmU4MDMtY2U0OC00ZDFhLWFmOTAtZDU2YmFiNjU4ZGU4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzAwMyIsInR5cCI6ImFjY2VzcyJ9.ZCNpgvbaPOlmlxeNDkcIgGFcQwQP-gsGDdX7vlxZdiI
{
"category_id": "00000000-0000-0000-0000-000000000ab0",
"inventory_tracking_method": "PACKAGE",
"menu_visibility": "INCLUDE_IN_ALL",
"menus": [
"00000000-0000-0000-0000-0000000000b3"
],
"name": "My Product",
"sku": "12345",
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-000000010d5d",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-000000000e67"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 8c4a2a51a23e337e841d0c779c478680-3b23182201151268-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-000000000ab0",
"name": "Some category 447",
"type": null
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "8c627861-fa33-4bee-8d69-f92085778804",
"images": [],
"is_active": true,
"menus": [
{
"menu_id": "00000000-0000-0000-0000-0000000000b3",
"menu_name": "Menu 170"
},
{
"menu_id": "00000000-0000-0000-0000-0000000000b4",
"menu_name": "Menu 173"
},
{
"menu_id": "00000000-0000-0000-0000-0000000000b5",
"menu_name": "Menu 176"
}
],
"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-000000010d5d",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-06-23T08:54:41.060734Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000000e67",
"name": "Company 1107",
"updated_datetime": "2026-06-23T08:54:40.955877Z"
}
}
}
POST /public/v1/products Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODAsImlhdCI6MTc4MjIwNDg4MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTM4ZmU4MDMtY2U0OC00ZDFhLWFmOTAtZDU2YmFiNjU4ZGU4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzAwMyIsInR5cCI6ImFjY2VzcyJ9.ZCNpgvbaPOlmlxeNDkcIgGFcQwQP-gsGDdX7vlxZdiI
{
"category_id": "00000000-0000-0000-0000-000000000ab0",
"id": "8c627861-fa33-4bee-8d69-f92085778804",
"inventory_tracking_method": "PACKAGE",
"menu_visibility": "DO_NOT_INCLUDE",
"menus": [
"00000000-0000-0000-0000-0000000000b3",
"00000000-0000-0000-0000-0000000000b4"
],
"name": "My Product",
"sku": "12345",
"tags": [],
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-000000010d5d",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-000000000e67"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 8c4a2a51a23e337e841d0c779c478680-886d56a83e04cce8-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-000000000ab0",
"name": "Some category 447",
"type": null
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "8c627861-fa33-4bee-8d69-f92085778804",
"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-000000010d5d",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-06-23T08:54:41.131524Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000000e67",
"name": "Company 1107",
"updated_datetime": "2026-06-23T08:54:40.955877Z"
}
}
}
POST /public/v1/products Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODAsImlhdCI6MTc4MjIwNDg4MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTM4ZmU4MDMtY2U0OC00ZDFhLWFmOTAtZDU2YmFiNjU4ZGU4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzAwMyIsInR5cCI6ImFjY2VzcyJ9.ZCNpgvbaPOlmlxeNDkcIgGFcQwQP-gsGDdX7vlxZdiI
{
"category_id": "00000000-0000-0000-0000-000000000ab0",
"id": "8c627861-fa33-4bee-8d69-f92085778804",
"inventory_tracking_method": "PACKAGE",
"menu_visibility": "INCLUDE_IN_SELECT",
"menus": [
"00000000-0000-0000-0000-0000000000b3",
"00000000-0000-0000-0000-0000000000b4"
],
"name": "My Product",
"sku": "12345",
"tags": [],
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-000000010d5d",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-000000000e67"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 8c4a2a51a23e337e841d0c779c478680-09a1e62e3e39bb3e-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-000000000ab0",
"name": "Some category 447",
"type": null
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "8c627861-fa33-4bee-8d69-f92085778804",
"images": [],
"is_active": true,
"menus": [
{
"menu_id": "00000000-0000-0000-0000-0000000000b3",
"menu_name": "Menu 170"
},
{
"menu_id": "00000000-0000-0000-0000-0000000000b4",
"menu_name": "Menu 173"
}
],
"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-000000010d5d",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-06-23T08:54:41.201863Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000000e67",
"name": "Company 1107",
"updated_datetime": "2026-06-23T08:54:40.955877Z"
}
}
}
POST /public/v1/products Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODAsImlhdCI6MTc4MjIwNDg4MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTM4ZmU4MDMtY2U0OC00ZDFhLWFmOTAtZDU2YmFiNjU4ZGU4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzAwMyIsInR5cCI6ImFjY2VzcyJ9.ZCNpgvbaPOlmlxeNDkcIgGFcQwQP-gsGDdX7vlxZdiI
{
"category_id": "00000000-0000-0000-0000-000000000ab0",
"id": "8c627861-fa33-4bee-8d69-f92085778804",
"inventory_tracking_method": "PACKAGE",
"menu_visibility": "INCLUDE_IN_SELECT",
"menus": [
"00000000-0000-0000-0000-0000000000b4"
],
"name": "My Product",
"sku": "12345",
"unit_price": "100",
"unit_type_id": "00000000-0000-0000-0000-000000010d5d",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-000000000e67"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 8c4a2a51a23e337e841d0c779c478680-130d1adfc15985ff-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-000000000ab0",
"name": "Some category 447",
"type": null
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "8c627861-fa33-4bee-8d69-f92085778804",
"images": [],
"is_active": true,
"menus": [
{
"menu_id": "00000000-0000-0000-0000-0000000000b4",
"menu_name": "Menu 173"
}
],
"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-000000010d5d",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-06-23T08:54:41.256652Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000000e67",
"name": "Company 1107",
"updated_datetime": "2026-06-23T08:54:40.955877Z"
}
}
}
POST /public/v1/products Menus act as expected
POST /public/v1/products
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODAsImlhdCI6MTc4MjIwNDg4MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTM4ZmU4MDMtY2U0OC00ZDFhLWFmOTAtZDU2YmFiNjU4ZGU4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzAwMyIsInR5cCI6ImFjY2VzcyJ9.ZCNpgvbaPOlmlxeNDkcIgGFcQwQP-gsGDdX7vlxZdiI
{
"category_id": "00000000-0000-0000-0000-000000000ab0",
"id": "8c627861-fa33-4bee-8d69-f92085778804",
"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-000000010d5d",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-000000000e67"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 8c4a2a51a23e337e841d0c779c478680-53395a16c8bd3a7f-0
{
"data": {
"brand": null,
"category": {
"id": "00000000-0000-0000-0000-000000000ab0",
"name": "Some category 447",
"type": null
},
"custom_data": [],
"deleted_at": null,
"description": null,
"description_markdown": null,
"external_name": null,
"id": "8c627861-fa33-4bee-8d69-f92085778804",
"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-000000010d5d",
"name": "Gram"
},
"units_per_case": null,
"updated_datetime": "2026-06-23T08:54:41.293858Z",
"vendor": {
"id": "00000000-0000-0000-0000-000000000e67",
"name": "Company 1107",
"updated_datetime": "2026-06-23T08:54:40.955877Z"
}
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNzliOTEzYmEtMmFkYi00MDBkLTlkMWQtZDI5OGI3MGU1ODE1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjQ0OSIsInR5cCI6ImFjY2VzcyJ9.e4ZgGh5rE0pN8LfhfqEISM_7gKv_OHHWHDqGB_yiQ2Q
{
"id": "ffddaf3d-b7d3-49cb-befd-73755bdf218d",
"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: c6ccd5737c57bb927707a409b67c8ccb-905b41dad46bfa3e-0
{
"errors": [
{
"context": {
"id": "ffddaf3d-b7d3-49cb-befd-73755bdf218d"
},
"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": "ffddaf3d-b7d3-49cb-befd-73755bdf218d"
},
"message": "Unit Serving Size can't be greater than Unit Net Weight/Volume",
"pointer": [
"unit_serving_size"
],
"section": "body"
},
{
"context": {
"id": "ffddaf3d-b7d3-49cb-befd-73755bdf218d"
},
"message": "Cannot be negative",
"pointer": [
"quantity_available_threshold_max"
],
"section": "body"
},
{
"context": {
"id": "ffddaf3d-b7d3-49cb-befd-73755bdf218d"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODEsImlhdCI6MTc4MjIwNDg4MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiN2U5ODZkYWItMThkZS00N2YxLWFiNTMtOTE1YWFiMTAzODFlIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODgwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzEwNiIsInR5cCI6ImFjY2VzcyJ9.M3yjzgyL8LRjkuOGpymIwFJ_yW5qv0J9XfUyrM4iaHA
{
"id": "6158524c-adfe-4406-9a9d-f2e476b66ee3",
"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: 069776c6ef20ebc6f3778f5c3769e680-66122ec64820cf62-0
{
"errors": [
{
"context": {
"id": "6158524c-adfe-4406-9a9d-f2e476b66ee3"
},
"message": "Must be greater than threshold min",
"pointer": [
"quantity_available_threshold_max"
],
"section": "body"
},
{
"context": {
"id": "6158524c-adfe-4406-9a9d-f2e476b66ee3"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzcsImlhdCI6MTc4MjIwNDg3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiYmRiOTY2ODQtYTdiMC00NjY4LWIzYjUtOTRiY2M2NDg1YTFmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTYzMyIsInR5cCI6ImFjY2VzcyJ9.VbGfNaJ7ROO_5WipNwIb7k4jGDWZZiKOYtjxafBW--E
{
"brand_id": "00000000-0000-0000-0000-000000000c16",
"category_id": "00000000-0000-0000-0000-00000000090d",
"cbd": "5.2",
"description": "My Product Description",
"description_markdown": "# My Product Description Markdown",
"group_id": "00000000-0000-0000-0000-000000000901",
"inventory_tracking_method": "PACKAGE",
"is_featured": true,
"is_inactive": true,
"menu_visibility": "INCLUDE_IN_ALL",
"menus": [
"00000000-0000-0000-0000-00000000007f",
"00000000-0000-0000-0000-000000000080",
"00000000-0000-0000-0000-000000000081"
],
"msrp": "100.5",
"name": "My Product",
"owner_id": "00000000-0000-0000-0000-000000001606",
"quantity_available_threshold_max": "10.5",
"quantity_available_threshold_min": "5.5555",
"sku": "12345",
"strain_id": "00000000-0000-0000-0000-000000000053",
"subcategory_id": "00000000-0000-0000-0000-000000000901",
"tags": [
"00000000-0000-0000-0000-00000000000b",
"00000000-0000-0000-0000-00000000000c",
"00000000-0000-0000-0000-00000000000d"
],
"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-00000000db9c",
"unit_price": "100",
"unit_serving_size": "2.2",
"unit_type_id": "00000000-0000-0000-0000-00000000dba3",
"units_per_case": "0.2",
"upc": "036000291452",
"vendor_id": "00000000-0000-0000-0000-000000000c15",
"wholesale_unit_price": "90.50"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 6fdca2c709779868bbf40ecde35a5eec-dc9a7dedf3b1a607-0
{
"errors": [
{
"context": {
"id": "ee6875ab-9a58-4641-b615-292e43b48f8a"
},
"message": "Brand does not exist",
"pointer": [
"brand_id"
],
"section": "body"
},
{
"context": {
"id": "ee6875ab-9a58-4641-b615-292e43b48f8a"
},
"message": "Category does not exist",
"pointer": [
"category_id"
],
"section": "body"
},
{
"context": {
"id": "ee6875ab-9a58-4641-b615-292e43b48f8a"
},
"message": "Vendor does not exist",
"pointer": [
"vendor_id"
],
"section": "body"
},
{
"context": {
"id": "ee6875ab-9a58-4641-b615-292e43b48f8a"
},
"message": "Group does not exist",
"pointer": [
"group_id"
],
"section": "body"
},
{
"context": {
"id": "ee6875ab-9a58-4641-b615-292e43b48f8a"
},
"message": "Serving unit type does not exist",
"pointer": [
"unit_net_weight_and_serving_size_unit_type_id"
],
"section": "body"
},
{
"context": {
"id": "ee6875ab-9a58-4641-b615-292e43b48f8a"
},
"message": "Owner does not exist",
"pointer": [
"owner_id"
],
"section": "body"
},
{
"context": {
"id": "ee6875ab-9a58-4641-b615-292e43b48f8a"
},
"message": "Strain does not exist",
"pointer": [
"strain_id"
],
"section": "body"
},
{
"context": {
"id": "ee6875ab-9a58-4641-b615-292e43b48f8a"
},
"message": "Subcategory does not belong to the product category",
"pointer": [
"subcategory_id"
],
"section": "body"
},
{
"context": {
"id": "ee6875ab-9a58-4641-b615-292e43b48f8a"
},
"message": "One or more of the provided tags do not exist",
"pointer": [
"tags"
],
"section": "body"
},
{
"context": {
"id": "ee6875ab-9a58-4641-b615-292e43b48f8a"
},
"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-00000000007f"
],
"section": "body"
},
{
"context": {},
"message": "Menu does not exist",
"pointer": [
"menus",
1,
"00000000-0000-0000-0000-000000000080"
],
"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/36
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzgsImlhdCI6MTc4MjIwNDg3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNzg5OTQwOTMtYjYzYS00ZjU0LThmYWQtMWNjOGYzY2Y5MDBmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjM0MSIsInR5cCI6ImFjY2VzcyJ9.DZiEEnA6exMIq01LBM12qkzQQONnZyov7YtbcVlXj3A
Response
204
cache-control: max-age=0, private, must-revalidate
b3: 4e6498765ead1f1f9f5d19ff0552cb89-84328dae4b7e71cc-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzcsImlhdCI6MTc4MjIwNDg3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiYWEzNTRjNDAtZDcwYi00YTY3LWI1NzQtNjQ1ZWNjOGFiNWEwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTc5NSIsInR5cCI6ImFjY2VzcyJ9.TnI-fZmHFkIA8Ii1k6aVgmwtCW3VXZQhEQRFVoPi5cs
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: b71baa97ec7e8c43036a371a2064a0ec-e09104888d1b0da0-0
{
"data": [
{
"blaze_asset_id": null,
"blaze_product_id": "blaze_123",
"blaze_retailer_id": "82c2781b-f0c1-4be8-a476-033d7ee4ba22",
"id": 28,
"inserted_at": "2026-06-23T08:54:37.622794Z",
"pos_type": "BLAZE",
"product_id": "35f21d1b-0b66-4021-a92b-7bc4b913cca0",
"updated_at": "2026-06-23T08:54:37.622794Z"
},
{
"dutchie_product_id": 456,
"dutchie_retailer_id": "a4e9636a-c137-46d7-9007-3e07d9a25a4e",
"id": 29,
"inserted_at": "2026-06-23T08:54:37.637404Z",
"pos_type": "DUTCHIE",
"product_id": "cd874cca-9ae5-418b-82ad-bb3bfaf44331",
"updated_at": "2026-06-23T08:54:37.637404Z"
}
],
"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-000000000027
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDUyMTYzOWYtYThjMi00ZjRlLThmZmEtOTMwNjAzNTY2ZGY4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjQ4MiIsInR5cCI6ImFjY2VzcyJ9.U8IWdSuoRA2KkNnSzGhvFkeZCvob5Ybkog-8l6rGq4M
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 2091744b3ca02d8e01c9b7d060db8323-3a67813dfb04b2c0-0
{
"data": {
"blaze_asset_id": null,
"blaze_product_id": "blaze_123",
"blaze_retailer_id": "30854202-b1cb-469a-b413-9bc7c189ecdc",
"id": 39,
"inserted_at": "2026-06-23T08:54:39.238453Z",
"pos_type": "BLAZE",
"product_id": "3d4a43c9-25d8-4a53-85da-03b0c6ff6f16",
"updated_at": "2026-06-23T08:54:39.238453Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzgsImlhdCI6MTc4MjIwNDg3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTU3OTk3YWYtN2U2Yy00OWJkLWJjM2YtYTFlMWJjZjAxNTllIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjI2NCIsInR5cCI6ImFjY2VzcyJ9.Bjqzef1ufls7PW4cIpJnf7oHbRCJi5bxGgpobgXAaLw
{
"blaze_product_id": "blaze_123",
"blaze_retailer_id": "e435835a-c267-46a5-880a-a3da9dbcf722",
"product_id": "0c6cc0ff-78f8-41e1-b687-bdabb7f8d07c"
}
Response
201
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 85ef0f7f8531ace455b5d2914ac3c6a1-7413100c25135dbf-0
{
"data": {
"blaze_asset_id": null,
"blaze_product_id": "blaze_123",
"blaze_retailer_id": "e435835a-c267-46a5-880a-a3da9dbcf722",
"id": 35,
"inserted_at": "2026-06-23T08:54:38.794721Z",
"pos_type": "BLAZE",
"product_id": "0c6cc0ff-78f8-41e1-b687-bdabb7f8d07c",
"updated_at": "2026-06-23T08:54:38.794721Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzgsImlhdCI6MTc4MjIwNDg3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTk3M2MyYzMtMGNmZi00MzNiLTgzNzYtNmJkNmY1N2I1N2Y4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjA0NyIsInR5cCI6ImFjY2VzcyJ9.G66KSwlitHvVf5i6jXTJljYY9EBnuDuVu8jiWVF91Es
{
"blaze_product_id": "blaze_456",
"blaze_retailer_id": "2ad1c8bf-7f4a-43da-89f4-c19def935d27",
"product_id": "a00659cb-667b-4b8b-a9ef-56ce8c358dc0"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 5348cdaf95e5bc5139f76256427ebff5-b231b8ad10506777-0
{
"data": {
"blaze_asset_id": null,
"blaze_product_id": "blaze_456",
"blaze_retailer_id": "2ad1c8bf-7f4a-43da-89f4-c19def935d27",
"id": 33,
"inserted_at": "2026-06-23T08:54:38.227932Z",
"pos_type": "BLAZE",
"product_id": "a00659cb-667b-4b8b-a9ef-56ce8c358dc0",
"updated_at": "2026-06-23T08:54:38.238180Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODEsImlhdCI6MTc4MjIwNDg4MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMmUyMjlkMjMtNTg0YS00YzYzLWIzYzYtMjE1N2NhMDI0NWUwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODgwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzA2NyIsInR5cCI6ImFjY2VzcyJ9.em_xvzzGEXmsAp8rhZTiej3uHOSVmkacqW6qnXUkDR0
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 5dc534a7dce83b0619609742588db248-bcbcdb7866262359-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000e97",
"name": "Company 1160",
"updated_datetime": "2026-06-23T08:54:41.317362Z"
},
"custom_data": [
{
"id": 191,
"name": "Custom Field 35",
"value": null
}
],
"due_datetime": "2026-06-23T08:54:41.347517Z",
"id": "00000000-0000-0000-0000-0000000000a0",
"inserted_datetime": "2026-06-23T08:54:41.348171Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000a58",
"name": "B1418"
},
"compliance_quantity": null,
"id": "1b53fa3f-49df-49ff-b629-73f40e6b411a",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000156b",
"id": "00000000-0000-0000-0000-0000000006bb",
"license_id": null,
"name": "Place 354"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "b42cb657-d894-4693-8cac-1b3f41ddf4ce",
"name": "Product 1404",
"sku": "sku 1405",
"updated_datetime": "2026-06-23T08:54:41.357994Z"
},
"quantity": "15.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000a59",
"name": "B1419"
},
"compliance_quantity": null,
"id": "76cc74f2-4174-4984-a62f-9988d1a8294d",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000156b",
"id": "00000000-0000-0000-0000-0000000006bb",
"license_id": null,
"name": "Place 354"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "b704ab4c-13f4-428d-a0a5-e1ee7ab551d2",
"name": "Product 1406",
"sku": "sku 1407",
"updated_datetime": "2026-06-23T08:54:41.367337Z"
},
"quantity": "10.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000a5a",
"name": "B1420"
},
"compliance_quantity": null,
"id": "5a2782f4-552a-4104-9060-135752ccff9a",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000156b",
"id": "00000000-0000-0000-0000-0000000006bb",
"license_id": null,
"name": "Place 354"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "df31e535-562f-4a01-bad3-6a29db792ba1",
"name": "Product 1408",
"sku": "sku 1409",
"updated_datetime": "2026-06-23T08:54:41.372466Z"
},
"quantity": "5.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000a5b",
"name": "B1421"
},
"compliance_quantity": null,
"id": "68638eb0-ae70-426f-b9b9-40fffc2e48f2",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000156b",
"id": "00000000-0000-0000-0000-0000000006bb",
"license_id": null,
"name": "Place 354"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "cf71189e-0b93-456e-a37d-8ca71df009bd",
"name": "Product 1416",
"sku": "sku 1417",
"updated_datetime": "2026-06-23T08:54:41.380383Z"
},
"quantity": "2.000000000",
"received_quantity": "0.000000000"
}
],
"order_datetime": "2026-06-23T08:54:41.347516Z",
"purchase_number": "Purchase #22",
"status": "PENDING",
"total": "32.00",
"updated_datetime": "2026-06-23T08:54:41.348171Z"
},
{
"charges": [
{
"id": "810cfb8a-fad8-484a-823f-74561f5ab9b6",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000000e95",
"name": "Company 1158",
"updated_datetime": "2030-11-01T00:00:00.000000Z"
},
"custom_data": [
{
"id": 191,
"name": "Custom Field 35",
"value": "Custom Field Value 1"
}
],
"due_datetime": "2020-01-01T00:00:01.000000Z",
"id": "00000000-0000-0000-0000-00000000009f",
"inserted_datetime": "2020-01-01T00:00:03.000000Z",
"items": [
{
"batch": {
"batch_number": "UID1",
"id": "00000000-0000-0000-0000-000000000a4f",
"name": "B1"
},
"compliance_quantity": "1.0000",
"id": "640c69c4-c880-4d67-92c1-26d3b6c3b703",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000156b",
"id": "00000000-0000-0000-0000-0000000006b6",
"license_id": "00000000-0000-0000-0000-0000000001bb",
"name": "Place 349"
},
"package": {
"batch_number": "B1",
"compliance_label": "ABCDEF012345670000000145",
"id": "00000000-0000-0000-0000-00000000010b",
"metrc_label": "ABCDEF012345670000000145",
"status": "active"
},
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "75974d74-7fc9-4afc-af34-fc787346ffc4",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODMsImlhdCI6MTc4MjIwNDg4MywiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDNkMGEwYjUtODM3OC00NDJlLTk1M2ItMjFhODk4ZWNmN2E2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODgyLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzUxNiIsInR5cCI6ImFjY2VzcyJ9.A6nEfi-nqCYikYwACnIi14dw7gbxejxzBaIE7OtYCeI
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 9d5ff30c468ea4448453ef2df7fd012a-1a57e0817dc168db-0
{
"data": [
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000fed",
"name": "Company 1548",
"updated_datetime": "2026-06-23T08:54:43.866660Z"
},
"custom_data": [],
"due_datetime": "2026-06-23T08:54:43.885422Z",
"id": "00000000-0000-0000-0000-0000000000ba",
"inserted_datetime": "2026-06-23T08:54:43.885882Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b6f",
"name": "B2258"
},
"compliance_quantity": null,
"id": "9e31271d-36a0-450d-96c0-fe197dade0d8",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000016cb",
"id": "00000000-0000-0000-0000-00000000072b",
"license_id": null,
"name": "Place 466"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "ff6202ef-42f4-413d-b28d-e37c7fe3a0f7",
"name": "Product 2241",
"sku": "sku 2242",
"updated_datetime": "2026-06-23T08:54:43.891977Z"
},
"quantity": "15.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b70",
"name": "B2259"
},
"compliance_quantity": null,
"id": "dd72f614-52cb-4597-9bee-e983849f1417",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000016cb",
"id": "00000000-0000-0000-0000-00000000072b",
"license_id": null,
"name": "Place 466"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "3d402d94-bdde-490f-8cb5-9145d8177cee",
"name": "Product 2247",
"sku": "sku 2248",
"updated_datetime": "2026-06-23T08:54:43.896824Z"
},
"quantity": "10.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b72",
"name": "B2261"
},
"compliance_quantity": null,
"id": "de3d30b1-dbf1-4329-8384-36db9d0cd405",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000016cb",
"id": "00000000-0000-0000-0000-00000000072b",
"license_id": null,
"name": "Place 466"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "a7ba6fc3-59a7-4010-aee2-18a4f4fc6f4b",
"name": "Product 2251",
"sku": "sku 2252",
"updated_datetime": "2026-06-23T08:54:43.901981Z"
},
"quantity": "5.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b74",
"name": "B2262"
},
"compliance_quantity": null,
"id": "bf8a93ca-a128-414b-8041-f0322234c220",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000016cb",
"id": "00000000-0000-0000-0000-00000000072b",
"license_id": null,
"name": "Place 466"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "fd5cc006-16bf-48ad-9942-d3b6a2bc1cd9",
"name": "Product 2256",
"sku": "sku 2257",
"updated_datetime": "2026-06-23T08:54:43.906847Z"
},
"quantity": "2.000000000",
"received_quantity": "0.000000000"
}
],
"order_datetime": "2020-01-01T12:30:00.000000Z",
"purchase_number": "Purchase #47",
"status": "PENDING",
"total": "32.00",
"updated_datetime": "2026-06-23T08:54:43.885882Z"
},
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000fe2",
"name": "Company 1537",
"updated_datetime": "2026-06-23T08:54:43.780200Z"
},
"custom_data": [],
"due_datetime": "2026-06-23T08:54:43.801414Z",
"id": "00000000-0000-0000-0000-0000000000b9",
"inserted_datetime": "2026-06-23T08:54:43.801818Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b65",
"name": "B2223"
},
"compliance_quantity": null,
"id": "80ea76e8-14e9-404c-a975-4ed199a806e1",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000016cb",
"id": "00000000-0000-0000-0000-000000000727",
"license_id": null,
"name": "Place 462"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "76e12ad5-d713-43f7-a431-b9fb37151ae4",
"name": "Product 2212",
"sku": "sku 2213",
"updated_datetime": "2026-06-23T08:54:43.812809Z"
},
"quantity": "15.000000000",
"received_quantity": "15.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b66",
"name": "B2224"
},
"compliance_quantity": null,
"id": "9e36bdca-316b-4d5e-b0d4-ba1f6fd20d2b",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000016cb",
"id": "00000000-0000-0000-0000-000000000727",
"license_id": null,
"name": "Place 462"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "6a78d072-97fa-4024-9e2a-452e13816bcb",
"name": "Product 2214",
"sku": "sku 2215",
"updated_datetime": "2026-06-23T08:54:43.823412Z"
},
"quantity": "10.000000000",
"received_quantity": "10.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b67",
"name": "B2225"
},
"compliance_quantity": null,
"id": "f57b2540-dba9-4e25-b2a2-3b190fe150c2",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000016cb",
"id": "00000000-0000-0000-0000-000000000727",
"license_id": null,
"name": "Place 462"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "b9f00a05-4bae-44c5-849a-072ea4835b5c",
"name": "Product 2216",
"sku": "sku 2217",
"updated_datetime": "2026-06-23T08:54:43.833078Z"
},
"quantity": "5.000000000",
"received_quantity": "5.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b68",
"name": "B2226"
},
"compliance_quantity": null,
"id": "030444b8-80f8-477a-8ec6-ca58ed1e65d8",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000016cb",
"id": "00000000-0000-0000-0000-000000000727",
"license_id": null,
"name": "Place 462"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "441fa109-776b-4c71-bb96-dc3456dfa50a",
"name": "Product 2221",
"sku": "sku 2222",
"updated_datetime": "2026-06-23T08:54:43.842717Z"
},
"quantity": "2.000000000",
"received_quantity": "2.000000000"
}
],
"order_datetime": "2020-01-01T12:20:00.000000Z",
"purchase_number": "Purchase #46",
"status": "COMPLETED",
"total": "32.00",
"updated_datetime": "2026-06-23T08:54:43.801818Z"
},
{
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000fc8",
"name": "Company 1508",
"updated_datetime": "2026-06-23T08:54:43.593033Z"
},
"custom_data": [],
"due_datetime": "2026-06-23T08:54:43.618829Z",
"id": "00000000-0000-0000-0000-0000000000b7",
"inserted_datetime": "2026-06-23T08:54:43.619266Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b50",
"name": "B2160"
},
"compliance_quantity": null,
"id": "9f68ea33-0d92-40ee-8020-5c12f954874f",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000016cb",
"id": "00000000-0000-0000-0000-000000000720",
"license_id": null,
"name": "Place 455"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "7cbe1df2-e928-4327-b2d5-cf6924fbb98d",
"name": "Product 2149",
"sku": "sku 2150",
"updated_datetime": "2026-06-23T08:54:43.626310Z"
},
"quantity": "15.000000000",
"received_quantity": "15.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b51",
"name": "B2161"
},
"compliance_quantity": null,
"id": "f7067aff-eaa2-45ca-a994-260b5e38a65c",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000016cb",
"id": "00000000-0000-0000-0000-000000000720",
"license_id": null,
"name": "Place 455"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "c9acf17e-027b-4ed9-8525-75dd69b5a90e",
"name": "Product 2151",
"sku": "sku 2152",
"updated_datetime": "2026-06-23T08:54:43.632910Z"
},
"quantity": "10.000000000",
"received_quantity": "10.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b52",
"name": "B2162"
},
"compliance_quantity": null,
"id": "d1db7c49-33b2-48d1-97bf-652d73c80997",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000016cb",
"id": "00000000-0000-0000-0000-000000000720",
"license_id": null,
"name": "Place 455"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "47c21518-1d5a-44b2-848a-71c070967038",
"name": "Product 2155",
"sku": "sku 2156",
"updated_datetime": "2026-06-23T08:54:43.640711Z"
},
"quantity": "5.000000000",
"received_quantity": "5.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b53",
"name": "B2163"
},
"compliance_quantity": null,
"id": "9ce83832-df39-4506-8f53-834e68f70aac",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000016cb",
"id": "00000000-0000-0000-0000-000000000720",
"license_id": null,
"name": "Place 455"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "39be0018-1512-41d4-8cb1-fb53b00f1b96",
"name": "Product 2158",
"sku": "sku 2159",
"updated_datetime": "2026-06-23T08:54:43.648795Z"
},
"quantity": "2.000000000",
"received_quantity": "2.000000000"
}
],
"order_datetime": "2020-01-01T12:00:00.000000Z",
"purchase_number": "Purchase #44",
"status": "COMPLETED",
"total": "32.00",
"updated_datetime": "2026-06-23T08:54:43.619266Z"
}
],
"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-0000000000aa/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODIsImlhdCI6MTc4MjIwNDg4MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTg1ZDhkM2QtNjIwYS00MDk5LThlNGMtNmM2Y2IyOGMwMmE4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODgxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzI2OSIsInR5cCI6ImFjY2VzcyJ9.7hFzHqJ_3X4nJWXcVYlTwkJ_287pHz9OdXiEoJDjgVc
{
"amount": 100.01,
"description": "Payment for purchase",
"payment_datetime": "2020-01-01T00:00:00.000000Z",
"payment_method_id": "00000000-0000-0000-0000-000000000032",
"quickbooks_deposit_account_id": "QBD-123"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 0b3f4d0db709311939d0a7ce56142e23-c4e4cc532116cdba-0
{
"data": {
"amount": "100.01",
"description": "Payment for purchase",
"id": "00000000-0000-0000-0000-000000000007",
"inserted_datetime": "2026-06-23T08:54:42.312610Z",
"payment_date": "2020-01-01T00:00:00.000000Z",
"payment_method": {
"deleted_at": null,
"id": "00000000-0000-0000-0000-000000000032",
"name": "Payment Method 0"
},
"payment_number": "PYT-0000001",
"purchase_id": "00000000-0000-0000-0000-0000000000aa",
"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-0000000000aa/payments
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODIsImlhdCI6MTc4MjIwNDg4MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTg1ZDhkM2QtNjIwYS00MDk5LThlNGMtNmM2Y2IyOGMwMmE4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODgxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzI2OSIsInR5cCI6ImFjY2VzcyJ9.7hFzHqJ_3X4nJWXcVYlTwkJ_287pHz9OdXiEoJDjgVc
{
"amount": 100.01,
"description": "Payment for purchase",
"payment_datetime": "2020-01-01T00:00:00.000000Z",
"payment_method_id": "00000000-0000-0000-0000-000000000032",
"quickbooks_deposit_account_name": "QBD-NAME"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 0b3f4d0db709311939d0a7ce56142e23-2b507a2ff52b1024-0
{
"data": {
"amount": "100.01",
"description": "Payment for purchase",
"id": "00000000-0000-0000-0000-000000000008",
"inserted_datetime": "2026-06-23T08:54:42.367449Z",
"payment_date": "2020-01-01T00:00:00.000000Z",
"payment_method": {
"deleted_at": null,
"id": "00000000-0000-0000-0000-000000000032",
"name": "Payment Method 0"
},
"payment_number": "PYT-0000002",
"purchase_id": "00000000-0000-0000-0000-0000000000aa",
"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-000000000089
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzYsImlhdCI6MTc4MjIwNDg3NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzc3Mzg1ZTMtM2M0Mi00M2YwLWIzYjUtMjFhNjZmZTkwNjBhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTU1MyIsInR5cCI6ImFjY2VzcyJ9.FRXqUzN5C1v5PqyHS9fgcaD67nhLYuhvfLmMLkVnMmE
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: d73eada3e8bc5d7e6c52755d97e36efe-63171076c06639e7-0
{
"data": {
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-000000000bfb",
"name": "Company 34",
"updated_datetime": "2026-06-23T08:54:36.732344Z"
},
"custom_data": [],
"due_datetime": "2026-06-23T08:54:36.794674Z",
"id": "00000000-0000-0000-0000-000000000089",
"inserted_datetime": "2026-06-23T08:54:36.859513Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000008a0",
"name": "B49"
},
"compliance_quantity": null,
"id": "3fd64384-091b-46cd-90bf-83374aa065b5",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001107",
"id": "00000000-0000-0000-0000-00000000055e",
"license_id": null,
"name": "Place 5"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "37918c99-9ee3-469c-a002-88eb812ada99",
"name": "Product 41",
"sku": "sku 42",
"updated_datetime": "2026-06-23T08:54:36.870556Z"
},
"quantity": "15.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000008a1",
"name": "B50"
},
"compliance_quantity": null,
"id": "14fb8776-4318-40e6-93f8-dbf034e22bec",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001107",
"id": "00000000-0000-0000-0000-00000000055e",
"license_id": null,
"name": "Place 5"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "fb717cbc-841b-482c-b40f-57677e15f5a2",
"name": "Product 43",
"sku": "sku 44",
"updated_datetime": "2026-06-23T08:54:36.879515Z"
},
"quantity": "10.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000008a2",
"name": "B51"
},
"compliance_quantity": null,
"id": "b53ec4b5-3e62-4d3d-adb9-5dcb75bf540e",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001107",
"id": "00000000-0000-0000-0000-00000000055e",
"license_id": null,
"name": "Place 5"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "9402aca7-cda0-40d6-87fd-96e7bf218a93",
"name": "Product 45",
"sku": "sku 46",
"updated_datetime": "2026-06-23T08:54:36.887796Z"
},
"quantity": "5.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-0000000008a3",
"name": "B52"
},
"compliance_quantity": null,
"id": "9603c19a-c779-49fd-9265-db9e621af9bc",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001107",
"id": "00000000-0000-0000-0000-00000000055e",
"license_id": null,
"name": "Place 5"
},
"package": null,
"price": "10.000000000",
"price_base": "10",
"product": {
"id": "4a1e16c1-ec36-4dab-8b0e-0852939767b2",
"name": "Product 47",
"sku": "sku 48",
"updated_datetime": "2026-06-23T08:54:36.897003Z"
},
"quantity": "2.000000000",
"received_quantity": "0.000000000"
}
],
"order_datetime": "2026-06-23T08:54:36.794672Z",
"purchase_number": "Purchase #0",
"status": "PENDING",
"total": "32.00",
"updated_datetime": "2026-06-23T08:54:36.859513Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODQsImlhdCI6MTc4MjIwNDg4NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTQyNTQ0ZjYtNWMzNS00NGNmLWE3OGItZjczMjQzZjc4N2FjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODgzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzYyMiIsInR5cCI6ImFjY2VzcyJ9.QIw6Z1NUGGjDUSByREIMxPFmzyWOd9UphsmrbHKmNZE
{
"billing_location_id": "00000000-0000-0000-0000-000000000746",
"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-000000001016",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000000744",
"price": "10.000000000",
"product_id": "6006712d-b9d9-4ee5-b5e4-9263ccba6fe9",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000000744",
"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: 3d5e1308af7d87c6bf205a517619eea9-bb56a5b3097e9bbc-0
{
"data": {
"charges": [
{
"id": "b3859923-1081-4ee2-ac7d-e4bd113055ae",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "83b31dff-ef42-4e83-b6d3-4c0d87a25d5f",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000001016",
"name": "Company 1594",
"updated_datetime": "2026-06-23T08:54:44.101666Z"
},
"custom_data": [
{
"id": 194,
"name": "Custom Field 38",
"value": null
}
],
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-0000000000c2",
"inserted_datetime": "2026-06-23T08:54:44.264138Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b88",
"name": "B1"
},
"compliance_quantity": null,
"id": "fa40eb4b-33ad-4da0-8d05-56a749d19279",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001722",
"id": "00000000-0000-0000-0000-000000000744",
"license_id": "00000000-0000-0000-0000-0000000001d5",
"name": "Place 491"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "6006712d-b9d9-4ee5-b5e4-9263ccba6fe9",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-23T08:54:44.237785Z"
},
"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-23T08:54:44.269924Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMGRmYjYzNWEtYjlkNi00Zjc0LTliYzAtY2RkMmU5NGI1ZTlkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjMxMiIsInR5cCI6ImFjY2VzcyJ9._drAOiiFZR2p-UU2MbdD5qQs3GiEn7qpy2xaExEA270
{
"billing_location_id": "00000000-0000-0000-0000-000000000624",
"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-000000000d12",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"batch_id": "00000000-0000-0000-0000-00000000096a",
"location_id": "00000000-0000-0000-0000-000000000624",
"price": "10.000000000",
"product_id": "3381fc85-8516-4670-86eb-a46cc1ce86c1",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000000624",
"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: 4546d55686e4d32664ff00e5d7698609-e80ad1a18244a60b-0
{
"data": {
"charges": [
{
"id": "13299453-2ccb-4b49-80e1-d6715c2ad651",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "e8ffb25c-05c6-46a8-a544-093df2265d44",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000000d12",
"name": "Company 589",
"updated_datetime": "2026-06-23T08:54:38.832892Z"
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-000000000093",
"inserted_datetime": "2026-06-23T08:54:39.860742Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-00000000096a",
"name": "B1"
},
"compliance_quantity": null,
"id": "5c699ed2-e1ff-4676-8fb1-049492b44990",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001331",
"id": "00000000-0000-0000-0000-000000000624",
"license_id": "00000000-0000-0000-0000-000000000180",
"name": "Place 203"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "3381fc85-8516-4670-86eb-a46cc1ce86c1",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-23T08:54:39.830136Z"
},
"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-23T08:54:39.884593Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODQsImlhdCI6MTc4MjIwNDg4NCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMWU1ZjMxYzYtZDFhYy00MGEwLTkyMGItM2E4MWE0YjgxOTE1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODgzLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzY1MyIsInR5cCI6ImFjY2VzcyJ9.pWpFoEOFx1fO6v3gqyNvIXfOc8qEij1J-MaFfJE5dPk
{
"billing_location_id": "00000000-0000-0000-0000-00000000074b",
"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-00000000101d",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000000074b",
"price": "10.000000000",
"product_id": "066cea9c-3ffd-4938-a52e-4ed30e7db8d4",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-00000000074b",
"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: 45d96c69942b11c334d0bcbc5df39583-e2ed3ebeea0a35b1-0
{
"data": {
"charges": [
{
"id": "57eed45e-2387-46d0-88df-3179d7a024b0",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "f6dd9027-3b86-427e-81a2-94eb0e881bdb",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-00000000101d",
"name": "Company 1605",
"updated_datetime": "2026-06-23T08:54:44.351874Z"
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-0000000000c3",
"inserted_datetime": "2026-06-23T08:54:44.421677Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000b8b",
"name": "B1"
},
"compliance_quantity": null,
"id": "93132541-a651-4940-85a1-2d389698fc66",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000172e",
"id": "00000000-0000-0000-0000-00000000074b",
"license_id": "00000000-0000-0000-0000-0000000001da",
"name": "Place 498"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "066cea9c-3ffd-4938-a52e-4ed30e7db8d4",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-23T08:54:44.394521Z"
},
"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-23T08:54:44.431681Z"
}
}
POST /public/v1/purchases updates a purchase
POST /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODEsImlhdCI6MTc4MjIwNDg4MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDg5NDdkYWUtODgyOC00NmUzLWFjOGQtZjUzZDI3ODE4YTkzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODgwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzEyNSIsInR5cCI6ImFjY2VzcyJ9.WUDUfDULHIVFucsujtT9aWW_n_a1g8ly1OuhZ1bydcY
{
"billing_location_id": "00000000-0000-0000-0000-0000000006c2",
"charges": [
{
"name": "C1",
"percent": "10.0000",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company_id": "00000000-0000-0000-0000-000000000eae",
"due_datetime": "2020-01-20T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-0000000006c2",
"price": "10.000000000",
"product_id": "4d4580f8-7eb2-44ea-8ca0-6bb725dc90d3",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-0000000006c2",
"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: 90095884b23c50648fed8374eccca797-6d3f2593384045df-0
{
"data": {
"charges": [
{
"id": "77731d38-7e03-4304-8a5c-3ae8bb64858f",
"name": "C1",
"percent": "10.0000",
"price": "1.00",
"type": "CHARGE",
"unit_type": "PERCENT"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000000eae",
"name": "Company 1187",
"updated_datetime": "2026-06-23T08:54:41.479521Z"
},
"custom_data": [],
"due_datetime": "2020-01-20T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-0000000000a2",
"inserted_datetime": "2026-06-23T08:54:41.561032Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000a68",
"name": "B1"
},
"compliance_quantity": null,
"id": "69988d91-9a14-4b70-b7a1-2df96bff5c73",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000158a",
"id": "00000000-0000-0000-0000-0000000006c2",
"license_id": "00000000-0000-0000-0000-0000000001be",
"name": "Place 361"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "4d4580f8-7eb2-44ea-8ca0-6bb725dc90d3",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-23T08:54:41.510443Z"
},
"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-23T08:54:41.568552Z"
}
}
POST /public/v1/purchases updates a purchase
POST /public/v1/purchases
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODEsImlhdCI6MTc4MjIwNDg4MSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDg5NDdkYWUtODgyOC00NmUzLWFjOGQtZjUzZDI3ODE4YTkzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODgwLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzEyNSIsInR5cCI6ImFjY2VzcyJ9.WUDUfDULHIVFucsujtT9aWW_n_a1g8ly1OuhZ1bydcY
{
"billing_location_id": "00000000-0000-0000-0000-0000000006c2",
"charges": [
{
"id": "77731d38-7e03-4304-8a5c-3ae8bb64858f",
"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-000000000eae",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-0000000000a2",
"items": [
{
"id": "69988d91-9a14-4b70-b7a1-2df96bff5c73",
"location_id": "00000000-0000-0000-0000-0000000006c2",
"price": "10.000000000",
"product_id": "4d4580f8-7eb2-44ea-8ca0-6bb725dc90d3",
"quantity": "1.000000000"
},
{
"batch_id": "00000000-0000-0000-0000-000000000a6b",
"location_id": "00000000-0000-0000-0000-0000000006c2",
"price": "5.000000000",
"product_id": "8f3dba95-bcdd-4ae5-a01a-be606f5cf2cc",
"quantity": "2.000000000"
}
],
"location_id": "00000000-0000-0000-0000-0000000006c2",
"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: 90095884b23c50648fed8374eccca797-24c570f8ff1695e3-0
{
"data": {
"charges": [
{
"id": "77731d38-7e03-4304-8a5c-3ae8bb64858f",
"name": "C1",
"percent": "10.0000",
"price": "2.00",
"type": "CHARGE",
"unit_type": "PERCENT"
},
{
"id": "c18582cd-cf92-4186-9e45-7919f3083662",
"name": "C2",
"percent": null,
"price": "-5.00",
"type": "DISCOUNT",
"unit_type": "PRICE"
}
],
"company": {
"id": "00000000-0000-0000-0000-000000000eae",
"name": "Company 1187",
"updated_datetime": "2026-06-23T08:54:41.479521Z"
},
"custom_data": [],
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-0000000000a2",
"inserted_datetime": "2026-06-23T08:54:41.561032Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000a68",
"name": "B1"
},
"compliance_quantity": null,
"id": "69988d91-9a14-4b70-b7a1-2df96bff5c73",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000158a",
"id": "00000000-0000-0000-0000-0000000006c2",
"license_id": "00000000-0000-0000-0000-0000000001be",
"name": "Place 361"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "4d4580f8-7eb2-44ea-8ca0-6bb725dc90d3",
"name": "P1",
"sku": "SKU1",
"updated_datetime": "2026-06-23T08:54:41.510443Z"
},
"quantity": "1.000000000",
"received_quantity": "0.000000000"
},
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000a6b",
"name": "B2"
},
"compliance_quantity": null,
"id": "bf0b4af2-b3bf-4174-bb9b-e36b7902d87b",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-00000000158a",
"id": "00000000-0000-0000-0000-0000000006c2",
"license_id": "00000000-0000-0000-0000-0000000001be",
"name": "Place 361"
},
"package": null,
"price": "5.000000000",
"price_base": "5.000000000",
"product": {
"id": "8f3dba95-bcdd-4ae5-a01a-be606f5cf2cc",
"name": "P2",
"sku": "SKU2",
"updated_datetime": "2026-06-23T08:54:41.532682Z"
},
"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-23T08:54:41.657488Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODUsImlhdCI6MTc4MjIwNDg4NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjcyMTEzMzctMjBkOS00Mjc1LTg1NzItNGVlZDViZTEyNTlmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODg0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzgyMyIsInR5cCI6ImFjY2VzcyJ9.TWFR1n7GuK212gDVKRJHSWJlG31l1nzR7kjzUGruabE
{
"billing_location_id": "00000000-0000-0000-0000-00000000077f",
"company_id": "00000000-0000-0000-0000-00000000107e",
"due_datetime": "2020-01-20T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000000077f",
"price": "10",
"product_id": "fc34aea0-b268-4f23-8807-a25f61216d6e",
"quantity": "1"
}
],
"location_id": "00000000-0000-0000-0000-00000000077f",
"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: 3b6c8b582aa56b0d2b7a12c25c2dcd71-0af123bada8b7f70-0
{
"data": {
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000000107e",
"name": "Company 1732",
"updated_datetime": "2026-06-23T08:54:45.462930Z"
},
"custom_data": [],
"due_datetime": "2020-01-20T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-0000000000cc",
"inserted_datetime": "2026-06-23T08:54:45.498198Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000bcf",
"name": "B2531"
},
"compliance_quantity": null,
"id": "76fef730-6b8f-42c3-8795-a769a5e78998",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000017ac",
"id": "00000000-0000-0000-0000-00000000077f",
"license_id": "00000000-0000-0000-0000-0000000001ec",
"name": "Place 550"
},
"package": null,
"price": "10.000000000",
"price_base": "10.000000000",
"product": {
"id": "fc34aea0-b268-4f23-8807-a25f61216d6e",
"name": "Product 2529",
"sku": "sku 2530",
"updated_datetime": "2026-06-23T08:54:45.485491Z"
},
"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-23T08:54:45.498198Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODUsImlhdCI6MTc4MjIwNDg4NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjcyMTEzMzctMjBkOS00Mjc1LTg1NzItNGVlZDViZTEyNTlmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODg0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzgyMyIsInR5cCI6ImFjY2VzcyJ9.TWFR1n7GuK212gDVKRJHSWJlG31l1nzR7kjzUGruabE
{
"company_id": "00000000-0000-0000-0000-00000000107e",
"id": "00000000-0000-0000-0000-0000000000cc",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000000077f",
"price": "2",
"product_id": "fc34aea0-b268-4f23-8807-a25f61216d6e",
"quantity": "1"
}
]
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 3b6c8b582aa56b0d2b7a12c25c2dcd71-68449763fb14146a-0
{
"data": {
"charges": [],
"company": {
"id": "00000000-0000-0000-0000-00000000107e",
"name": "Company 1732",
"updated_datetime": "2026-06-23T08:54:45.462930Z"
},
"custom_data": [],
"due_datetime": "2020-01-20T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-0000000000cc",
"inserted_datetime": "2026-06-23T08:54:45.498198Z",
"items": [
{
"batch": {
"batch_number": null,
"id": "00000000-0000-0000-0000-000000000bcf",
"name": "B2531"
},
"compliance_quantity": null,
"id": "53654c95-6ff1-4e53-bb6c-3d7bc40185da",
"is_sample": false,
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-0000000017ac",
"id": "00000000-0000-0000-0000-00000000077f",
"license_id": "00000000-0000-0000-0000-0000000001ec",
"name": "Place 550"
},
"package": null,
"price": "2.000000000",
"price_base": "2.000000000",
"product": {
"id": "fc34aea0-b268-4f23-8807-a25f61216d6e",
"name": "Product 2529",
"sku": "sku 2530",
"updated_datetime": "2026-06-23T08:54:45.485491Z"
},
"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-23T08:54:45.551940Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODAsImlhdCI6MTc4MjIwNDg4MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiN2NlMzExODEtNzIwZS00NjViLTgzZTAtOTM4NzAyOGRlYjRmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6Njg4MSIsInR5cCI6ImFjY2VzcyJ9.VcdRP-E5Zg41tOo_eCfGqQIp155ieiXtEFpaWcAkl6w
{
"billing_location_id": "00000000-0000-0000-0000-00000000068e",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000000e34",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"id": "00000000-0000-0000-0000-00000000009a",
"items": [
{
"batch_id": "00000000-0000-0000-0000-0000000009f4",
"id": "0a16552e-97fa-4a41-865d-78a92beb3904",
"location_id": "00000000-0000-0000-0000-00000000068e",
"price": "10.000000000",
"product_id": "006ac740-99a3-45d3-ae44-0124816b7ad8",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-00000000068e",
"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: 2b3611a397aa6ecdf0d5689bee2bdd4a-d10edb372afd8f39-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODIsImlhdCI6MTc4MjIwNDg4MiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNWU0YWIwNWItOWJjOC00ZmM3LTk1MjQtODY4NjUxZDFiZWNkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODgxLCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NzMyMSIsInR5cCI6ImFjY2VzcyJ9.Q_dyHBR5XVt81P22W3TgwPipkoHwkD3sTnpzLrtnTRM
{
"billing_location_id": "00000000-0000-0000-0000-0000000006f4",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000000f3a",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-0000000006f4",
"price": "10.000000000",
"product_id": "8af9299c-4d9d-4f1f-8987-b51b924bebbd",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-0000000006f4",
"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: 8cc5c04527438924c9a61bd3b21ad6ab-fe559b872e8e5fe6-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODUsImlhdCI6MTc4MjIwNDg4NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzgzYWI4YzctMmU1OS00MWJlLTk4NGEtZGIwNjQxZTQ4OTk2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODg0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6Nzc0OCIsInR5cCI6ImFjY2VzcyJ9.fyQrb7E2R3mnWoUV4lPPBT-R8FJe0LlMFjEJGiRWaB8
{
"billing_location_id": "00000000-0000-0000-0000-000000000762",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000001058",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000000762",
"price": "10.000000000",
"product_id": "4ced6d7a-4eee-4c71-8e79-57df5388bfa0",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000000762",
"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: d885687d46f236a43c604c076bebe4f8-63da0bf2dcbb92bb-0
{
"errors": [
{
"context": {
"id": "613e0787-65bb-4992-825a-cbe293ef8e03"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODAsImlhdCI6MTc4MjIwNDg4MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTBkMjNjYzEtNDhhOC00ZTYyLWEzMWQtNTJhNDg3MjU2MjJjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6Njk2MiIsInR5cCI6ImFjY2VzcyJ9.Iov5ocb75ZfW7D_wmjmGtAHh0WyqbLEao1y66UytmLg
{
"billing_location_id": "00000000-0000-0000-0000-000000000699",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000000e52",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"batch_id": "00000000-0000-0000-0000-000000000a1d",
"location_id": "00000000-0000-0000-0000-000000000699",
"price": "10.000000000",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000000699",
"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: eab22efc682c60b52400ad322ac04c65-830d6e55cc071a30-0
{
"errors": [
{
"context": {
"id": "7fd20e1f-2094-4e24-b386-36f20503c3d6"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODUsImlhdCI6MTc4MjIwNDg4NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiM2Q3MTc4NDAtNmQ5ZC00NjlmLWE5MzItODVmYTk2MWRmZjFhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODg0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6Nzc3OSIsInR5cCI6ImFjY2VzcyJ9.9AGoEedUrftaFjBAXnxjyjnt2IVhr9zx8UJNwu-ekN0
{
"billing_location_id": "00000000-0000-0000-0000-00000000076a",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000001069",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000000076b",
"price": "10.000000000",
"product_id": "c3c13a8a-fbe3-4b6b-a896-a11b7b59c707",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-00000000076b",
"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: 9d3a5ec4767463c36957748f868e6858-6ff06cff616afa7f-0
{
"errors": [
{
"context": {
"id": "a708d211-c84b-4c1e-bae6-6e76920fc743"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzcsImlhdCI6MTc4MjIwNDg3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjUyNWE2NTYtMTAxNS00NDQ3LTkyMDItMmJkZTY5MzYwZDQ5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTg0MSIsInR5cCI6ImFjY2VzcyJ9.mK6GGIAx-UQKXhZRLhAAPqCgOm0Rjz8hTU5IAk-1yX8
{
"billing_location_id": "00000000-0000-0000-0000-00000000059d",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000000c4a",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-00000000059d",
"price": "10.000000000",
"product_id": "867e576b-7bff-47ad-b899-bdb7e6988aa7",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-00000000059f",
"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: 17e848b5f3edaa49c8a9efd370bdf793-a8dd9a27e996e928-0
{
"errors": [
{
"context": {
"id": "9ed45c96-6c2c-46cc-8b87-d003037ad1c1"
},
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODUsImlhdCI6MTc4MjIwNDg4NSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiM2Y4Y2EyMTQtZDZkMy00Y2U3LWJjZmYtOWM2ODNiZDQwMWVjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODg0LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6Nzc2MiIsInR5cCI6ImFjY2VzcyJ9.YScD0SGRLarMETJShTe-g7-nqzCerFrwQF5QKmUgvpY
{
"billing_location_id": "00000000-0000-0000-0000-000000000766",
"charges": [],
"company_id": "00000000-0000-0000-0000-000000001062",
"due_datetime": "2020-01-30T00:00:00.000000Z",
"items": [
{
"location_id": "00000000-0000-0000-0000-000000000765",
"price": "10.000000000",
"product_id": "9c8dc8e7-c160-4a9e-a45a-60d21c8b6cde",
"quantity": "1.000000000"
}
],
"location_id": "00000000-0000-0000-0000-000000000765",
"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: b0d32a751b43aaad3a52b52d42ed79d6-571062487ed237a0-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzcsImlhdCI6MTc4MjIwNDg3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZTBlMjlmMjAtM2ExMC00MzY5LTk0YzUtMzFiMzE5MDVkNmM0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTY4MyIsInR5cCI6ImFjY2VzcyJ9.8XxwOOxkbzaawh1EShzP2oElerqDYh5ocJaeU4r_NoU
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 6dd2469e1e72325a02cf9ade85cffeb7-5811879d03b0240e-0
{
"data": [
{
"company": {
"id": "00000000-0000-0000-0000-000000000c28",
"name": "Company 145",
"updated_datetime": "2026-06-23T08:54:37.265710Z"
},
"custom_data": {
"137": "Custom Field Value"
},
"description": null,
"id": "00000000-0000-0000-0000-00000000003c",
"inserted_at": "2026-06-23T08:54:37.273098Z",
"invoice_numbers": [],
"items": [
{
"id": "00000000-0000-0000-0000-00000000003c",
"price": 30.1,
"product": {
"id": "f74d60bd-8601-425d-97d1-761b885799ce",
"name": "Product 91",
"sku": "sku 92",
"updated_datetime": "2026-06-23T08:54:37.253967Z"
},
"quantity": 5.0,
"waste": false
}
],
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001166",
"id": "00000000-0000-0000-0000-00000000057a",
"license_id": null,
"name": "Place 33"
},
"order_id": null,
"order_number": null,
"order_quantity": null,
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-177@example.com",
"full_name": "FirstName356 LastName357",
"id": "00000000-0000-0000-0000-000000001636",
"role": {
"id": "00000000-0000-0000-0000-0000000016a3",
"name": "Admin 192"
}
},
"return_datetime": "2024-12-12T20:26:19.297537Z",
"return_number": "RN-1",
"return_quantity": null,
"return_type": null,
"status": "Processing",
"total": 150.5,
"updated_at": "2026-06-23T08:54:37.273098Z"
}
],
"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-00000000003b
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzYsImlhdCI6MTc4MjIwNDg3NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGU3ZDc5NjQtZmI2NC00NTYzLWJhMzktNjNmMmE2YjE0ZWY5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTU3NiIsInR5cCI6ImFjY2VzcyJ9.0r8YcWcU99Jidqxcz35sIXRJ5PpEb29jAOJJ1UbNW68
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 7626468e59fda2c9aaeb028229174992-a40dcc939dc92288-0
{
"data": {
"company": {
"id": "00000000-0000-0000-0000-000000000c05",
"name": "Company 54",
"updated_datetime": "2026-06-23T08:54:36.831910Z"
},
"custom_data": {},
"description": null,
"id": "00000000-0000-0000-0000-00000000003b",
"inserted_at": "2026-06-23T08:54:36.896211Z",
"invoice_numbers": [],
"items": [
{
"id": "00000000-0000-0000-0000-00000000003b",
"price": 30.1,
"product": {
"id": "04a0872b-3098-45f1-8896-a6b7246a58c9",
"name": "Product 34",
"sku": "sku 35",
"updated_datetime": "2026-06-23T08:54:36.826516Z"
},
"quantity": 5.0,
"waste": false
}
],
"location": {
"address": "123 Fake Street, Beverly Hills, CA 88888, USA",
"company_id": "00000000-0000-0000-0000-000000001117",
"id": "00000000-0000-0000-0000-000000000564",
"license_id": null,
"name": "Place 11"
},
"order_id": null,
"order_number": null,
"order_quantity": null,
"owner": {
"banned": false,
"deleted_at": null,
"email": "owner-69@example.com",
"full_name": "FirstName136 LastName137",
"id": "00000000-0000-0000-0000-0000000015c9",
"role": {
"id": "00000000-0000-0000-0000-00000000162d",
"name": "Admin 74"
}
},
"return_datetime": "2026-06-23T08:54:36.837211Z",
"return_number": "RN-0",
"return_quantity": null,
"return_type": null,
"status": "Processing",
"total": 32.0,
"updated_at": "2026-06-23T08:54:36.896211Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNWE4MTExMmQtMTcwNS00YTNmLWJmNGQtY2YzMjExZjExZTBmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjY3OSIsInR5cCI6ImFjY2VzcyJ9.3zkRRBuy76J0Ob9KJ3QhdB_E2xl_hhPgFOCqWMgrozg
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: e916bdb26c22da3f28ab334459243e9b-371064833445d1a5-0
{
"data": [
{
"batch_id": null,
"completion_datetime": "2026-06-23T08:54:39.884704Z",
"compliance_quantity": null,
"compliance_unit_type": null,
"description": null,
"id": "00000000-0000-0000-0000-0000000001b3",
"inserted_at": "2026-06-23T08:54:39.885147Z",
"license_id": null,
"location_id": null,
"owner_id": "00000000-0000-0000-0000-000000001a17",
"package_id": null,
"product_id": "d2d22e68-fd93-4d62-ab2e-93b712d14d5c",
"quantity": "10",
"reason": "revaluation",
"total_cost": "10000",
"unit_type": {
"id": "00000000-0000-0000-0000-000000010203",
"name": "Gram"
}
},
{
"batch_id": null,
"completion_datetime": "2026-06-23T08:54:39.982596Z",
"compliance_quantity": "1",
"compliance_unit_type": {
"id": "00000000-0000-0000-0000-000000010205",
"name": "Ounce"
},
"description": "A default note describing this transaction",
"id": "00000000-0000-0000-0000-0000000001b6",
"inserted_at": "2026-06-23T08:54:39.985872Z",
"license_id": "00000000-0000-0000-0000-000000000192",
"location_id": "00000000-0000-0000-0000-00000000065d",
"owner_id": null,
"package_id": "00000000-0000-0000-0000-0000000000f0",
"product_id": "3e6a597a-8237-4e63-969d-2a1e65a8a265",
"quantity": "1",
"reason": "Voluntary Surrender",
"total_cost": "900",
"unit_type": {
"id": "00000000-0000-0000-0000-000000010205",
"name": "Ounce"
}
},
{
"batch_id": "00000000-0000-0000-0000-000000000982",
"completion_datetime": "2026-06-23T08:54:40.055160Z",
"compliance_quantity": null,
"compliance_unit_type": null,
"description": null,
"id": "00000000-0000-0000-0000-0000000001b8",
"inserted_at": "2026-06-23T08:54:40.057123Z",
"license_id": null,
"location_id": "00000000-0000-0000-0000-00000000065a",
"owner_id": null,
"package_id": null,
"product_id": "ad137890-ef2d-436c-bb56-9dc75228f93c",
"quantity": "1",
"reason": "revaluation",
"total_cost": "-800",
"unit_type": {
"id": "00000000-0000-0000-0000-000000010203",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTExZWUwNzEtYTVmMS00MGZlLWIzNGYtNjU1YmJlZDU1MDc1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjQxNSIsInR5cCI6ImFjY2VzcyJ9.IHndVOImnXbxUrAcM5M2d7b4NOzJsW9pGYp47hwjm8g
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "00000000-0000-0000-0000-00000000063e",
"product_id": "81bbc3a6-3e89-40d1-b4cb-27dad9d7a915",
"quantity": 10,
"reason": "expired"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 2ad258dc9952e8763ca0c9282ec5435d-fc8bb46c72f7dae3-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-0000000001a2",
"inserted_at": "2026-06-23T08:54:39.081115Z",
"license_id": null,
"location_id": "00000000-0000-0000-0000-00000000063e",
"owner_id": null,
"package_id": null,
"product_id": "81bbc3a6-3e89-40d1-b4cb-27dad9d7a915",
"quantity": "10",
"reason": "expired",
"total_cost": null,
"unit_type": {
"id": "00000000-0000-0000-0000-00000000f7c7",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzgsImlhdCI6MTc4MjIwNDg3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNmZiMWY2MzQtNjI5MC00ZTAyLWI2MWYtZTA3NjIwNTUzODFhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjEyNCIsInR5cCI6ImFjY2VzcyJ9.uCDQDIOyZgTHKrZ8y0uhi66rykm3TdrCrN-FZOKzNbo
{
"batch_id": "00000000-0000-0000-0000-0000000008fb",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "00000000-0000-0000-0000-0000000005ff",
"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: 6ac9ff8782dc70c4fd6b82068c8316bb-33d11bf7ce00d4d5-0
{
"data": {
"batch_id": "00000000-0000-0000-0000-0000000008fb",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": null,
"compliance_unit_type": null,
"description": "test",
"id": "00000000-0000-0000-0000-00000000019a",
"inserted_at": "2026-06-23T08:54:38.427221Z",
"license_id": null,
"location_id": "00000000-0000-0000-0000-0000000005ff",
"owner_id": null,
"package_id": null,
"product_id": "85df88bf-ab71-4c97-94a0-bd7e8f5cbc0d",
"quantity": "10",
"reason": "expired",
"total_cost": "10000",
"unit_type": {
"id": "00000000-0000-0000-0000-00000000ec56",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzcsImlhdCI6MTc4MjIwNDg3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiY2U2YjI2MjMtNDA4Mi00NTFjLWEwYzgtYTVmNzkzMWVkY2VhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTY0NCIsInR5cCI6ImFjY2VzcyJ9.rJM8odSPPaMyadvsLlTfM3g69pJM_oIDmlIupCy_mb0
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": 10,
"description": "test",
"package_id": "00000000-0000-0000-0000-0000000000c3",
"reason": "Damage (BCC)",
"unit_cost": 1000
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 8069e7a37884318e269ec45ca6ec2f7a-1c636cfe2a343a0d-0
{
"data": {
"batch_id": null,
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": "10",
"compliance_unit_type": {
"id": "00000000-0000-0000-0000-00000000db00",
"name": "Ounce"
},
"description": "test",
"id": "00000000-0000-0000-0000-000000000196",
"inserted_at": "2026-06-23T08:54:37.839505Z",
"license_id": "00000000-0000-0000-0000-00000000016b",
"location_id": "00000000-0000-0000-0000-00000000056d",
"owner_id": null,
"package_id": "00000000-0000-0000-0000-0000000000c3",
"product_id": "8390c19b-ab77-47c9-a201-ed8c9bc8d3de",
"quantity": "0.35274",
"reason": "Damage (BCC)",
"total_cost": "10000.000000005834",
"unit_type": {
"id": "00000000-0000-0000-0000-00000000dafe",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDVkYTg4MmItNjExNi00NTFlLWI0ODctMjJmOWFmOTFhZWJhIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjU3OCIsInR5cCI6ImFjY2VzcyJ9.Pl3izRxnwyT5GGif2RiHqA-cKjHWXo0MQXh_2XoQeSo
{
"description": "test",
"package_id": "00000000-0000-0000-0000-0000000000e5",
"quantity": 10,
"reason": "Damage (BCC)"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: b65ce8854017b3edf4c965ecb2c935d7-4cd66be3d711c0be-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODAsImlhdCI6MTc4MjIwNDg4MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGM2ODAzYWMtNWRlMi00MTMwLThiODgtNDU1MWE5NmEyYWRjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6Njc5NyIsInR5cCI6ImFjY2VzcyJ9.9pDZu3u6ndFb8VY-eG66zDq1QVY18crQJ7yqjxfJ94s
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "00000000-0000-0000-0000-00000000067f",
"product_id": "9646f0e9-8895-4e10-a052-776bdf77ae39",
"quantity": 10,
"reason": "expired"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 74a51beec4f95564d8190501cacceadb-bc7295b7558cbdc9-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzYsImlhdCI6MTc4MjIwNDg3NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYjQ4YjkzNzMtYmNmNi00NTRmLTkxZmQtNzEyODU1ODU0MTE0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTU0NyIsInR5cCI6ImFjY2VzcyJ9.TOT3Y3d94ekdNAt7nZE-VwM---9AB4BfpTJRGE59phY
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": 10,
"description": "test",
"location_id": "00000000-0000-0000-0000-00000000055d",
"product_id": "f83ff6c9-3890-4c7a-847b-1e3252e663e0",
"reason": "expired"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: c34e7e2ef9f643a6dd6bd6f529ef7862-d6292e7eeba100d8-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODAsImlhdCI6MTc4MjIwNDg4MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMjI1Yjg0YmEtYWIyYy00NDU3LTkzNWItZGY4NTZhYzllYzg3IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6Njc4MSIsInR5cCI6ImFjY2VzcyJ9.3RBuNXuRRxWJyUbBUZTQnaI5mdux_ffxjiZ5iw4fW80
{
"batch_id": "579c8940-4764-492f-b305-49d1a4eb5f42",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "81045f67-1574-4b30-87bc-d4a99d805e3a",
"package_id": "2073e7e5-8162-4827-8675-69757ba8984a",
"product_id": "1f899d7e-57e7-4b10-afa6-510dc3865c9d",
"reason": "expired"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: f3543975536585ee329f0935f700c431-6eff3e5ae0ea3510-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzgsImlhdCI6MTc4MjIwNDg3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMmQ5N2VkMWEtZDVjMi00NTYzLThkOTItZmQ0ZTIzZjk0MTI4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjAxNiIsInR5cCI6ImFjY2VzcyJ9.5QGie7xyJP0xfmJx0m06OI5s-lSKW7zlJs_aWF2JAD8
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "5f49aac3-d05e-4173-bdd1-c4e86168fc6e",
"reason": "expired"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: f51b9958360f5a8cbe736fe91771f71d-5841bdede1989f49-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODAsImlhdCI6MTc4MjIwNDg4MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzgxODYzZmYtZWMxMS00ZDgwLWIxYmMtNTNiZDMxZDZiMThkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6Njc4OSIsInR5cCI6ImFjY2VzcyJ9.xSumSH5iyi15gHk0S12aINHacDtsnFUtmyAlaIstkeg
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "0b6a038b-4d8a-420d-b75f-6b7ab65de3bc",
"product_id": "cacd0174-807b-4c00-bf4d-fdd7594838b5",
"quantity": 10,
"reason": "waste"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 38fe8945dd75da1a145ad6c86c171c37-e52d81ea979e9eb6-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNGEyMjQ0Y2YtNTFmOS00OGJmLWJkOGQtNDhmNTE1MjE2MjEwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjQwMSIsInR5cCI6ImFjY2VzcyJ9.99coUBzKtb6S3LXvZ6znjoub0JDzkcVusbG3oSUkNqE
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": 10,
"description": "test",
"location_id": "c13841a1-7402-447f-81db-9393633313c0",
"package_id": "0164ac4f-a607-4d3b-9e1f-fb677acc0cc8",
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 36298ba99b3549794ebb8374fc059400-b01af79d5a4c605a-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODAsImlhdCI6MTc4MjIwNDg4MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMTBlNTM3MWYtZmY1YS00MjJlLWI5MWYtMDBhNjIyNGY4YzUzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6Njg2NiIsInR5cCI6ImFjY2VzcyJ9.orRyCv6jrFj2oat7bJVt3MyUkhWGUdUCKfxkdw3AMU8
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"product_id": "0fe3f49c-6df8-4815-a556-0f27ccafe6c0",
"quantity": 10,
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: d062bc0b8213daadb55d448270283770-6d89bf132a9e6a9f-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzgsImlhdCI6MTc4MjIwNDg3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOTNlOWViMDMtMWM4NS00ODI2LWExN2MtODE2NzM5Nzg5MzNmIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjIwMCIsInR5cCI6ImFjY2VzcyJ9.02dMuz5dAfUDStD6pukryvZYKHY7o8JBJZ-lkwW7kkA
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "64c6ed32-2ee1-498d-aace-579aa1c516ef",
"product_id": "0cd29223-f9a0-4f35-8393-9fe7e6f20ae4",
"quantity": 10,
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: d9777c331c2d127c79b5b8c0d283f9cf-cb7807682c95f613-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYmIxZGQ3NTUtZTE5Yy00YTRhLWJjZGYtMjBhZDZjMDI0NjkyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjU0NCIsInR5cCI6ImFjY2VzcyJ9.JU0k9zDNWBzJVmgKpnlbCUb0b8yyDuNKvAncoKXPDKs
{
"batch_id": "00000000-0000-0000-0000-000000000952",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "4d88bf77-f837-44f3-8514-e71da88c7c58",
"quantity": 10,
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 093e840b7577dcdc34924b785c6ecdc5-cfcd57ff7bcf0b38-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODAsImlhdCI6MTc4MjIwNDg4MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZmQzODlmYjMtYjU5YS00YjhjLWJiZjQtOTMyYzE5ZDU2Zjg0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjgwNyIsInR5cCI6ImFjY2VzcyJ9.vPwDJ7hu3sNTE78XxTZbLvhFM0KneB4bzde692ddTmc
{
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"compliance_quantity": 10,
"description": "test",
"package_id": "00000000-0000-0000-0000-0000000000fd",
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 54d1d58c70c68fac6d781c36496e14a4-b60db407439aeffb-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzgsImlhdCI6MTc4MjIwNDg3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNzM1MmQ5MDktOWNjYy00NDZhLWI3Y2ItY2Y4ZTEwMjhlMzc2IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjIzOSIsInR5cCI6ImFjY2VzcyJ9.tMt0R3MelfCGWYIbm28x8udbab5LxJPhzkzBPiBNYMA
{
"batch_id": "00000000-0000-0000-0000-000000000916",
"completion_datetime": "2020-01-03T12:20:00.000000Z",
"description": "test",
"location_id": "00000000-0000-0000-0000-00000000061d",
"quantity": 10,
"reason": "compliance"
}
Response
400
cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
b3: 6a2da033c522dfc1dc8c2346a8b94950-6bfdb72b25bd63a7-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-0000000001bc
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0ODAsImlhdCI6MTc4MjIwNDg4MCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZjFjODVjMWMtM2NhMS00ZTgyLTliN2QtZDVkMGFmYTFhOGUzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc5LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjgzMCIsInR5cCI6ImFjY2VzcyJ9.9-8fz9OwEZ97vWgm1qvjbJy8PXEdZeNsCoVZEcqE7RA
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 7accf955a4c34088f32fceb0a3c431a0-312968553a3b493f-0
{
"data": {
"batch_id": "00000000-0000-0000-0000-0000000009b6",
"completion_datetime": "2026-06-23T08:54:40.372121Z",
"compliance_quantity": null,
"compliance_unit_type": null,
"description": null,
"id": "00000000-0000-0000-0000-0000000001bc",
"inserted_at": "2026-06-23T08:54:40.372505Z",
"license_id": null,
"location_id": "00000000-0000-0000-0000-000000000688",
"owner_id": null,
"package_id": null,
"product_id": "b261589f-eddd-43cc-8a19-b7345aaabcec",
"quantity": "10",
"reason": "revaluation",
"total_cost": null,
"unit_type": {
"id": "00000000-0000-0000-0000-000000010858",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzcsImlhdCI6MTc4MjIwNDg3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiYzkzMGU0MDgtMzY4Yy00ZTc0LTljNTItYzJjZmI2MjIwOWZjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTgxOCIsInR5cCI6ImFjY2VzcyJ9.nia_DuPuh_zh3Y_E4BI2ef0CiMjBkE6IQL3pxAcu-sY
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 61c1d4416366a19fb908f4cd4ca87028-0ac8bf23f2d2d2ae-0
{
"data": [
{
"id": "00000000-0000-0000-0000-000000000058",
"name": "Strain 5",
"strain_type": "INDICA"
},
{
"id": "00000000-0000-0000-0000-000000000059",
"name": "Strain 6",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzcsImlhdCI6MTc4MjIwNDg3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNTc2MzdmNzEtZGFjZS00NzBiLWFjNWMtODE4OWZkZWRhNzIwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTY3OCIsInR5cCI6ImFjY2VzcyJ9.Fb-FLkZBJFYAMPnLqm_98ZgLYRuha4OM1ZjjPfRKLCg
{
"name": "Blue Dream",
"strain_type": "hybrid"
}
Response
201
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 88d333861c868e15ef838221df210b37-87ef753f60fa7c4b-0
{
"data": {
"id": "00000000-0000-0000-0000-000000000054",
"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-00000000006d
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzgsImlhdCI6MTc4MjIwNDg3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiNDM0YmY3NGEtMjI5MC00YzRjLWE3NmMtZTkzYmMyZDA4ZTg1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjIyNyIsInR5cCI6ImFjY2VzcyJ9.BxYj4qhJISTiyOuuz3cwPpyZv_f5M2QZbVN5GzjVVMQ
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: c5fff6d2b1af4ae2a8c6a010eb3c95c2-e2dc702454ca5871-0
{
"data": {
"id": "00000000-0000-0000-0000-00000000006d",
"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-000000000071
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzgsImlhdCI6MTc4MjIwNDg3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYmUyNjBjZTItYjhiNS00NDFmLWIwYjYtYTNmOTE0OWY0NDEzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjM2NyIsInR5cCI6ImFjY2VzcyJ9.q4n9uWlUHoXsA1mtFopTQ_9kVmmDuANcwhClUtF5esU
{
"name": "New Name",
"strain_type": "sativa"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: a587c2729f208640516df17de32b49af-aadcfdf109bf25cc-0
{
"data": {
"id": "00000000-0000-0000-0000-000000000071",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzgsImlhdCI6MTc4MjIwNDg3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMzZkNTc2MGUtOTQwYy00YTM5LThlMDMtZTk2NTdlNWE4ZWU0IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjIzNCIsInR5cCI6ImFjY2VzcyJ9.YbpLPM4EDbEPF9PxMMbk2buQVs9X62NS7DFlI137GQA
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 073d30ae3945f1ccde628e1cdad8a40c-1f8f7a22fcada99d-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-000000000039",
"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-0000000000d2",
"release_date": "2026-06-23",
"thc_mg_per_unit": "2.12345",
"thc_percentage": "20.1234",
"total_cbd_mg_per_unit": "3.12345",
"total_cbd_percentage": "80.1234",
"total_thc_mg_per_unit": "4.12345",
"total_thc_percentage": "40.1234",
"updated_datetime": "2026-06-23T08:54:38.792598Z"
},
{
"additional_test_results": {
"thca_percentage": "12"
},
"batch_id": "00000000-0000-0000-0000-000000000922",
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-00000000003a",
"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-23T08:54:38.810856Z"
},
{
"additional_test_results": {},
"batch_id": null,
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-00000000003b",
"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-0000000000d4",
"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-23T08:54:38.884834Z"
}
],
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiY2VlOTM4MWEtOGU3MC00ODZkLTk4ODAtMmZiNWY1YmIyNGRkIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjU3MiIsInR5cCI6ImFjY2VzcyJ9.2K9olijjy297V3Q-b_fGsyvVy4kcJN_CVh5QXmcEmJ8
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 108f2e7cb3e22adaed58c76c33e6a7e9-aa7bb0e8762f9071-0
{
"data": [
{
"additional_test_results": {
"spiroxamine_a_ug_per_g": "13",
"thiacloprid_ug_per_g": "14"
},
"batch_id": "00000000-0000-0000-0000-000000000957",
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-000000000048",
"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-23T08:54:39.471508Z"
}
],
"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-00000000004e
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiYzM5YmI3ZjYtMDY0OC00NjVhLTk3NmMtNzc2Mjk3ZjRlMzE1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjcwMyIsInR5cCI6ImFjY2VzcyJ9.4QCVDEiCCQU0Ak9eFdSvIF5f0BBt4c4_Xo8GxIUEfc8
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: d98defbeea2cb9ca78bdf6f96cccfeb2-ea7a8888fd7bab86-0
{
"data": {
"additional_test_results": {},
"batch_id": "00000000-0000-0000-0000-000000000975",
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-00000000004e",
"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-23T08:54:39.927121Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzgsImlhdCI6MTc4MjIwNDg3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiN2M1OGNkMWItNWQ0Ni00OTY5LTg4OGUtNDA3NzA4NGM3NTUxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjA5MSIsInR5cCI6ImFjY2VzcyJ9.CliEyoZfJsaEf_z2Cv_n5h6T-qx1fXWkzIrVFAH8TAM
{
"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-0000000008ed",
"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: 91dd6504c6e3e506a9ee6dfd59a8a393-3b60570d98a82cd7-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-0000000008ed",
"cbd_mg_per_unit": "1.1",
"cbd_percentage": "2.2",
"id": "00000000-0000-0000-0000-000000000038",
"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-23T08:54:38.331194Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzYsImlhdCI6MTc4MjIwNDg3NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMGJmNGE2OWItNjMzOS00NDc3LWIwYjEtZGNmMzkxZGRjZGVjIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTU3OCIsInR5cCI6ImFjY2VzcyJ9.pt4bckZ8DnGXg3qSpH9C5boyn0JaaVv6xTNwzhcsauw
{
"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-0000000000c2"
}
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 4444f414c35d760e0e509fa43360a508-2e08a21a3dd1e9d4-0
{
"data": {
"additional_test_results": {},
"batch_id": null,
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-000000000035",
"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-0000000000c2",
"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-23T08:54:37.743755Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiMDk5OTc3YTUtMDVkMC00NGIxLWIyMTUtNDkwYzA1YzRiOTUwIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjUwMCIsInR5cCI6ImFjY2VzcyJ9.AT0oxMIqL2P_eS1thX2J-737W9H09nyExuHrCRdJcOE
{
"batch_id": "00000000-0000-0000-0000-000000000946",
"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: 0d124f2bd958e39fdfa52aeca65b9672-957c134228d41f3e-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiODdjZjczNGYtMDY3MC00YzFjLWE1MzAtNjljYTEzYjU2NWU4IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjY1MCIsInR5cCI6ImFjY2VzcyJ9.HWhG6xt7ZoBzpiJpK9xh6DfSISTav1F-1zyUNmXjGrg
{
"additional_test_results": {},
"batch_id": "00000000-0000-0000-0000-000000000965",
"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: 1368c9bea45cb0a70fb566f586bdd884-a42bd1402f113cbf-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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzksImlhdCI6MTc4MjIwNDg3OSwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDUxNjk4YzEtZGQ3Zi00MjU2LWJhNDUtYmUwYjJlYTVkNTMxIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc4LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjY3NCIsInR5cCI6ImFjY2VzcyJ9.dcMIQH8u6LCasaqW6uiC5zpTeI-a8-TTfe-H4cEGzTQ
{
"additional_test_results": {
"thca_percentage": "15"
},
"id": "00000000-0000-0000-0000-00000000004d",
"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: be9bbbb5af48c3fe3270bf1191134b24-923aa9ceee5c100b-0
{
"data": {
"additional_test_results": {
"thca_percentage": "15"
},
"batch_id": "00000000-0000-0000-0000-00000000096c",
"cbd_mg_per_unit": null,
"cbd_percentage": null,
"id": "00000000-0000-0000-0000-00000000004d",
"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-23T08:54:39.879421Z"
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzcsImlhdCI6MTc4MjIwNDg3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZmRlY2JjMTktMDg0Mi00ZDY1LTg1NDUtZjE3MzJhZTJkNDM5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTY5OSIsInR5cCI6ImFjY2VzcyJ9.2aIh3A8YsMv7swfIDjJ8X15Ut6OowIrByKbaODIgYy0
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: f0affed0f0f39daf0393eea175f8ac00-09dfcdbb2461d0a5-0
{
"data": [
{
"banned": false,
"deleted_at": null,
"email": "owner-190@example.com",
"full_name": "FirstName382 LastName383",
"id": "00000000-0000-0000-0000-000000001643",
"role": {
"id": "00000000-0000-0000-0000-0000000016b2",
"name": "Admin 207"
}
},
{
"banned": false,
"deleted_at": null,
"email": "owner-192@example.com",
"full_name": "FirstName386 LastName387",
"id": "00000000-0000-0000-0000-000000001645",
"role": {
"id": "00000000-0000-0000-0000-0000000016b4",
"name": "Admin 209"
}
}
],
"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-0000000016de
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzcsImlhdCI6MTc4MjIwNDg3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiZDQwNmE0ZDEtNTY3Mi00NjcxLWEzYjgtOWIxMDAzZmQ2ZTBiIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTg1MiIsInR5cCI6ImFjY2VzcyJ9.yoVLMCUp3A3PSdiJ1ggTMEa9NGG134ps6uRwH3EzPao
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: a191b6176d2ebd4f48d9c0f76112eb84-1d7706c344424311-0
{
"data": {
"banned": false,
"deleted_at": null,
"email": "owner-345@example.com",
"full_name": "FirstName696 LastName697",
"id": "00000000-0000-0000-0000-0000000016de",
"role": {
"id": "00000000-0000-0000-0000-000000001754",
"name": "Admin 369"
}
}
}
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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzcsImlhdCI6MTc4MjIwNDg3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiOWEzOWVkODUtMmQ0OC00ZTcxLWExZDktMDg5NzlmNjE3YWQyIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTc2MyIsInR5cCI6ImFjY2VzcyJ9.v1C_rhrx4K9E8u9VTRXhtwzC2pMYHSSbt5YkI5L3dA8
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 2b77ff4e80ffe4223d923c93f6a8c044-55ff40cc21cdc478-0
{
"data": [
{
"color": "Red",
"description": "Test Vehicle",
"id": "00000000-0000-0000-0000-000000000026",
"inserted_datetime": "2026-06-23T08:54:37.478006Z",
"license_plate_number": "1234567890ABCDEFG",
"license_plate_state": "CA",
"make": "Toyota",
"model": "Camry",
"updated_datetime": "2026-06-23T08:54:37.478006Z",
"vin": "1234567890ABCDEFG",
"year": "2020"
},
{
"color": "Red",
"description": "Test Vehicle",
"id": "00000000-0000-0000-0000-000000000027",
"inserted_datetime": "2026-06-23T08:54:37.484616Z",
"license_plate_number": "1234567890ABCDEFG",
"license_plate_state": "CA",
"make": "Honda",
"model": "Civic",
"updated_datetime": "2026-06-23T08:54:37.484616Z",
"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.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzcsImlhdCI6MTc4MjIwNDg3NywiaXNzIjoiRGlzdHJ1IiwianRpIjoiNzg4MzgxMDEtODgyOC00N2Y5LThjNzQtYTI3Mzc3ZWJlNDY5IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc2LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTY5MiIsInR5cCI6ImFjY2VzcyJ9.Soyj6D7_NWJVKKCWEFOCP5NBbjXDFsGjpQ5I6Bug5nQ
{
"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: 4065dc790ab9adbba601a3b030fc2566-36b19bcce2f613b8-0
{
"data": {
"color": "Red",
"description": "Delivery truck",
"id": "00000000-0000-0000-0000-000000000024",
"inserted_datetime": "2026-06-23T08:54:37.259629Z",
"license_plate_number": "XYZ789",
"license_plate_state": "TX",
"make": "Ford",
"model": "F-150",
"updated_datetime": "2026-06-23T08:54:37.259629Z",
"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-00000000002d
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzgsImlhdCI6MTc4MjIwNDg3OCwiaXNzIjoiRGlzdHJ1IiwianRpIjoiZWQ0ODM2NTYtYWI1Mi00MjU1LTg0YTAtZDE2YTMxNjIyZmUzIiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc3LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NjAzMSIsInR5cCI6ImFjY2VzcyJ9.04XsFraZO8y_6QKKpfgWmk_LQjucK2r_qjmVBX_HehI
Response
200
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
b3: 99ca4fe4e20c70fe562a373a9931ed52-d8007d334c84ff75-0
{
"data": {
"color": "Blue",
"description": "Company car",
"id": "00000000-0000-0000-0000-00000000002d",
"inserted_datetime": "2026-06-23T08:54:38.162661Z",
"license_plate_number": "ABC123",
"license_plate_state": "CA",
"make": "Toyota",
"model": "Camry",
"updated_datetime": "2026-06-23T08:54:38.162661Z",
"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-000000000021
content-type: application/json
accept: application/json
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJEaXN0cnUiLCJleHAiOjE4MTM2NTQ0NzYsImlhdCI6MTc4MjIwNDg3NiwiaXNzIjoiRGlzdHJ1IiwianRpIjoiOGZmNGFmN2MtZTAzYy00YTY4LTkyMjctYzZiYThmODNlZWI1IiwibW9iaWxlIjpmYWxzZSwibmJmIjoxNzgyMjA0ODc1LCJwbGF0Zm9ybSI6IkFQSSIsInN1YiI6IlVzZXI6NTUxMCIsInR5cCI6ImFjY2VzcyJ9.VOGV5N3dfv3BwCx7k5fDqGd_bG-rIaaBsWgy7m8yFm8
{
"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: efbe1488fbda58050117eddcdf05367d-a6bfd34fe0ac6aaf-0
{
"data": {
"color": "Red",
"description": "Test Vehicle",
"id": "00000000-0000-0000-0000-000000000021",
"inserted_datetime": "2026-06-23T08:54:36.351552Z",
"license_plate_number": "1234567890ABCDEFG",
"license_plate_state": "CA",
"make": "Honda",
"model": "Accord",
"updated_datetime": "2026-06-23T08:54:36.780234Z",
"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
2026-06-23
- Added
quickbooks_sync_enqueuedfield to the response of POST/public/v1/invoices/{id}/payments.