Create a product
OK
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Bad Request
{- "license": {
- "license_number": "KMP-20201027-TST"
}, - "name": "KMP Hikari",
- "category": {
- "id": "e239e96ac61b4ca9bb9c2607f2cc86f4"
}, - "characteristics": {
- "ingredients": [
- "paradigm atom concentrate"
], - "strain": {
- "id": "e239e96ac61b4ca9bb9c2607f2egghc86f4"
}, - "unit": {
- "cannabinoids": {
- "cbd_percent": 50,
- "thc_percent": 50
}, - "cbd_content": 0.2,
- "cbd_content_uom": "Milligrams",
- "cbd_content_dose": null,
- "cbd_content_dose_uom": null,
- "thc_content": 0.2,
- "thc_content_uom": "Milligrams",
- "thc_content_dose": null,
- "thc_content_dose_uom": null,
- "volume": null,
- "volume_uom": null,
- "weight": 50,
- "weight_uom": "Grams",
- "quantity": 25,
- "quantity_uom": "Each"
}, - "serving_size": null,
- "serving_num": null,
- "supply_duration_days": 14,
- "doses_number": null,
- "lab_test_ref": "NotSubmitted",
- "administration_method": "",
- "brand": "KMP",
- "description": "Class A paradigm atom purple concentrate",
- "image": {
}, - "contains_seeds": false
}
}{- "results": {
- "type": "object",
- "data": {
- "license": {
- "license_number": "KMPL20200818",
- "type": {
- "name": "Type 12"
}
}, - "id": "f348f96bdc61b4db9cc9d2607f2cc86f4",
- "name": "KMP Hikari",
- "category": {
- "id": "e239e96ac61b4ca9bb9c2607f2cc86f4",
- "type": "Concentrate",
- "main_category": "Capsule (weight - each)",
- "sub_category": ""
}, - "characteristics": {
- "quantity_type": "Count Based",
- "unit_of_measure": "Each",
- "ingredients": [
- "paradigm atom concentrate"
], - "strain": {
- "id": "e239e96ac61b4ca9bb9c2607f2egghc86f4",
- "name": "Purple atom Clouds"
}, - "unit": {
- "cannabinoids": {
- "cbd_percent": 50,
- "thc_percent": 50
}, - "cbd_content": 0.2,
- "cbd_content_uom": "Milligrams",
- "cbd_content_dose": null,
- "cbd_content_dose_uom": null,
- "thc_content": 0.2,
- "thc_content_uom": "Milligrams",
- "thc_content_dose": null,
- "thc_content_dose_uom": null,
- "volume": null,
- "volume_uom": null,
- "weight": 50,
- "weight_uom": "Grams",
- "quantity": 25,
- "quantity_uom": "Each"
}, - "serving_size": null,
- "serving_num": null,
- "supply_duration_days": 14,
- "doses_number": null,
- "lab_test_ref": "NotSubmitted",
- "administration_method": "",
- "brand": "KMP",
- "description": "Class A paradigm atom purple concentrate",
- "image": {
}, - "contains_seeds": false
}, - "entity_state": [
- {
- "state": "active",
- "date": "2021-04-24T20:29:19Z",
- "reason": "product created",
- "actioned_by": "admin@kmp.com"
}, - {
- "state": "approved",
- "date": "2021-04-24T20:29:19Z",
- "reason": "product approved by metrc ca",
- "actioned_by": "admin@kmp.com"
}
]
}
}, - "warnings": [ ]
}If the id path parameter is not provided in the request, the response will contain all the active products for the license_number provided.
| id required | string Reference (entity_ID) for the product. Example: a521f55de4394f4f99c282be687e63aa |
| state required | string Lower case ANSI standard 38:2009 USPS codes of the US state where licensee is operating. |
| license_number required | string Reference (entity_ID) for the license. This is the business license number issued by the state. Example: license_number=ABC-1234 |
| limit | number Optional parameter that allows you to specify a number to limit the results in the response. Default limit is 100. Example: limit=100 |
| offset | number Optional parameter that allows you to offset records if the max number for the filter exceeds the limit. Example: offset=0 |
| entity_state | string Queryable entity states for strain. |
OK
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Bad Request
{- "results": {
- "type": "object",
- "records": {
- "count": "0 - 100",
- "total": 437,
- "previous": null,
}, - "data": {
- "license": {
- "license_number": "KMPL20200818",
- "type": {
- "name": "Type 12"
}
}, - "id": "fg67e96ac61b4ca9bb9c2607f98f4",
- "name": "KMP Hikari",
- "category": {
- "id": "e239e96ac61b4ca9bb9c2607f2cc86f4",
- "type": "Concentrate",
- "main_category": "Capsule (weight - each)",
- "sub_category": ""
}, - "characteristics": {
- "quantity_type": "CountBased",
- "unit_of_measure": "Each",
- "ingredients": [
- "paradigm atom concentrate"
], - "strain": {
- "id": "e239e96ac61b4ca9bb9c2607f2egghc86f4",
- "name": "Purple atom Clouds"
}, - "unit": {
- "cannabinoids": {
- "cbd_percent": 50,
- "thc_percent": 50
}, - "cbd_content": 0.2,
- "cbd_content_uom": "Milligrams",
- "cbd_content_dose": null,
- "cbd_content_dose_uom": null,
- "thc_content": 0.2,
- "thc_content_uom": "Milligrams",
- "thc_content_dose": null,
- "thc_content_dose_uom": null,
- "volume": null,
- "volume_uom": null,
- "weight": 50,
- "weight_uom": "Grams",
- "quantity": 25,
- "quantity_uom": "Each"
}, - "serving_size": null,
- "serving_num": null,
- "supply_duration_days": 14,
- "doses_number": null,
- "lab_test_ref": "NotSubmitted",
- "administration_method": "",
- "brand": "KMP",
- "description": "Class A paradigm atom purple concentrate",
- "image": {
}, - "contains_seeds": false
}, - "entity_state": [
- {
- "state": "active",
- "date": "2021-04-24T20:29:19Z",
- "reason": "product created",
- "actioned_by": "admin@kmp.com"
}, - {
- "state": "approved",
- "date": "2021-04-24T20:29:19Z",
- "reason": "product approved by metrc ca",
- "actioned_by": "admin@kmp.com"
}
]
}
}, - "warnings": [ ]
}Update the product registered under the license_number provided.
| id required | string Reference (entity_ID) for the product you are updating. Example: a521f55de4394f4f99c282be687e63aa |
| state required | string Lower case ANSI standard 38:2009 USPS codes of the US state where licensee is operating. |
required | object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name | string Product name. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
OK
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Bad Request
{- "license": {
- "license_number": "KMP-20201027-TST"
}, - "characteristics": {
- "unit": {
- "cannabinoids": {
- "cbd_percent": 25,
- "thc_percent": 75
}, - "cbd_content": 0.1,
- "thc_content": 0.3
}
}
}{- "results": {
- "type": "object",
- "data": {
- "license": {
- "license_number": "KMPL20200818",
- "type": {
- "name": "Type 12"
}
}, - "id": "fg67e96ac61b4ca9bb9c2607f98f4",
- "name": "KMP Hikari",
- "category": {
- "id": "e239e96ac61b4ca9bb9c2607f2cc86f4",
- "type": "Concentrate",
- "main_category": "Capsule (weight - each)",
- "sub_category": ""
}, - "characteristics": {
- "quantity_type": "CountBased",
- "unit_of_measure": "Each",
- "ingredients": [
- "paradigm atom concentrate"
], - "strain": {
- "id": "e239e96ac61b4ca9bb9c2607f2egghc86f4",
- "name": "Purple atom Clouds"
}, - "unit": {
- "cannabinoids": {
- "cbd_percent": 25,
- "thc_percent": 75
}, - "cbd_content": 0.1,
- "cbd_content_uom": "Milligrams",
- "cbd_content_dose": null,
- "cbd_content_dose_uom": null,
- "thc_content": 0.3,
- "thc_content_uom": "Milligrams",
- "thc_content_dose": null,
- "thc_content_dose_uom": null,
- "volume": null,
- "volume_uom": null,
- "weight": 50,
- "weight_uom": "Grams",
- "quantity": 25,
- "quantity_uom": "Each"
}, - "serving_size": null,
- "supply_duration_days": 14,
- "doses_number": null,
- "lab_test_ref": "NotSubmitted",
- "administration_method": "",
- "brand": "KMP",
- "description": "Class A paradigm atom purple concentrate",
- "image": {
}, - "contains_seeds": false
}, - "entity_state": [
- {
- "state": "active",
- "date": "2021-04-24T20:29:19Z",
- "reason": "product created",
- "actioned_by": "admin@kmp.com"
}, - {
- "state": "approved",
- "date": "2021-04-24T20:29:19Z",
- "reason": "product approved by metrc ca",
- "actioned_by": "admin@kmp.com"
}
]
}
}, - "warnings": [ ]
}Deactivate a product registered under the license_number provided.
| id required | string Reference (entity_ID) for the product you are deleting. Example: a521f55de4394f4f99c282be687e63aa |
| state required | string Lower case ANSI standard 38:2009 USPS codes of the US state where licensee is operating. |
{- "license": {
- "license_number": "KMP-20201027-TST"
}
}{- "results": {
- "type": "object",
- "data": {
- "id": "225903",
- "deleted": true
}
}, - "warnings": [ ]
}Retrieve a list of product categories
OK
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Bad Request
{- "results": {
- "type": "array",
- "data": [
- {
- "id": "123456",
- "type": "Buds",
- "main_category": "Flower",
- "sub_category": null,
- "characteristics": {
- "quantity_type": "WeightBased",
- "required_uom": true,
- "required_ingredients": false,
- "required_strain_id": true,
- "required_unit_cannabinoids": false,
- "required_unit_cbd_content": false,
- "required_unit_cbd_content_uom": false,
- "required_unit_cbd_content_dose": false,
- "required_unit_cbd_content_dose_uom": false,
- "required_unit_thc_content": false,
- "required_unit_thc_content_uom": false,
- "required_unit_thc_content_dose": false,
- "required_unit_thc_content_dose_uom": false,
- "required_unit_volume": false,
- "required_unit_volume_uom": false,
- "required_unit_weight": false,
- "required_unit_weight_uom": false,
- "required_unit_quantity": true,
- "required_unit_quantity_uom": true,
- "required_serving_size": false,
- "required_serving_num": false,
- "required_supply_duration_days": false,
- "required_doses_number": false,
- "required_lab_test_ref": false,
- "required_administration_method": false,
- "required_brand": false,
- "required_description": false,
- "required_product_image": false,
- "required_package_image": false,
- "required_label_image": false,
- "can_contain_seeds": false,
- "can_be_remediated": true
}
}, - {
- "id": "123457",
- "type": "InfusedEdible",
- "main_category": "Edible (volume - each)",
- "sub_category": "",
- "characteristics": {
- "quantity_type": "CountBased",
- "required_uom": true,
- "required_ingredients": false,
- "required_strain_id": false,
- "required_unit_cannabinoids": false,
- "required_unit_cbd_content": false,
- "required_unit_cbd_content_uom": false,
- "required_unit_cbd_content_dose": false,
- "required_unit_cbd_content_dose_uom": false,
- "required_unit_thc_content": false,
- "required_unit_thc_content_uom": false,
- "required_unit_thc_content_dose": false,
- "required_unit_thc_content_dose_uom": false,
- "required_unit_volume": true,
- "required_unit_volume_uom": true,
- "required_unit_weight": false,
- "required_unit_weight_uom": false,
- "required_unit_quantity": false,
- "required_unit_quantity_uom": false,
- "required_serving_size": false,
- "required_serving_num": false,
- "required_supply_duration_days": false,
- "required_doses_number": false,
- "required_lab_test_ref": false,
- "required_administration_method": false,
- "required_brand": false,
- "required_description": false,
- "required_product_image": false,
- "required_package_image": false,
- "required_label_image": false,
- "can_contain_seeds": false,
- "can_be_remediated": false
}
}
]
}, - "warnings": [ ]
}