Create a lot for use by the license_number provided.
OK
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Bad Request
{- "license": {
- "license_number": "KMP-20201027-TST"
}, - "action": {
- "id": "KOMLA0004"
}, - "name": "Kodai 01 extract intermediate Lot 1",
- "product": {
- "id": "fg67e96ac61b4ca9bb9c2607f98f4"
}, - "barcode": "1KMBV1200000000046",
- "quantity": 100,
- "unit_of_measure": "Grams",
- "date": "2021-05-03T18:27:39Z",
- "type": {
- "id": "KOMLT0001"
}, - "location": {
- "id": "fg67123c61b4ca9bb9c2607fghg6"
}, - "origin": {
- "lots": [
- {
- "id": "fg67e96ac61b4ca9bb9c2607fghg6",
- "quantity": 50,
- "unit_of_measure": "Grams"
}, - {
- "id": "fg67e96ac61b4ca9bb9c26abcdf5",
- "quantity": 50,
- "unit_of_measure": "Grams"
}
]
}, - "additional": {
- "patient_license": "",
- "is_for_medical_use": false,
- "medical_compliance_info": "no",
- "note": "",
- "is_production_batch": false,
- "production_batch_id": "",
- "is_trade_sample": false,
- "is_donation": false,
- "is_test_sample": false,
- "is_retest": false,
- "is_process_validation_sample": false,
- "is_requires_remediation": false,
- "is_remediated": false,
- "is_same_product": false,
- "shipper_license_number": "",
- "is_quarantine": false,
- "is_initial_inventory": false,
- "is_lab_or_QA_not_required": false,
- "lab_or_qa_result_url": "",
- "authentication_id": "",
- "sample_data": [ ],
- "transfer_id": "",
- "date_received": ""
}
}{- "results": {
- "type": "object",
- "data": {
- "license": {
- "license_number": "KMPL20200818",
- "type": {
- "name": "Type 12"
}
}, - "action": {
- "id": "KOMLA0004",
- "name": "combine"
}, - "id": "fg67e96ac61b4ca9bb9c2607f98f4",
- "name": "Kodai 01 extract intermediate Lot 1",
- "barcode": "1KMBV1200000000046",
- "quantity": 100,
- "unit_of_measure": "Grams",
- "date": "2021-05-03T18:27:39Z",
- "type": {
- "id": "KOMLT0001",
- "name": "Product"
}, - "location": {
- "id": "fg67123c61b4ca9bb9c2607fghg6",
- "name": "KMP Persona Location 1",
- "type": {
- "id": "3",
- "name": "Processing KMP 1"
}
}, - "origin": {
- "plant": [ ],
- "plant_batch": [ ],
- "harvest": [ ],
- "lots": [
- {
- "id": "fg67e96ac61b4ca9bb9c2607fghg6",
- "barcode": "1KMBV1200000000045",
- "name": "Kodai 01 extract intermediate sub lot A01",
- "type": "Concentrate",
- "quantity": 50,
- "unit_of_measure": "Grams"
}, - {
- "id": "fg67e96ac61b4ca9bb9c26abcdf5",
- "barcode": "1KMBV1200000000046",
- "name": "Kodai 01 extract intermediate sub lot A02",
- "type": "Concentrate",
- "quantity": 50,
- "unit_of_measure": "Grams"
}
]
}, - "contents": {
- "strain": {
- "id": "e239e96ac61b4ca9bb9c2607f2egghc86f4",
- "name": "Queen Emeraldus Bounty"
}, - "product": {
- "id": "fg67e96ac61b4ca9bb9c2607f98f4",
- "name": "Kodai 01 extract intermediate",
- "category": {
- "id": "e239e96ac61b4ca9bb9c2607f2cc86f4",
- "type": "Concentrate",
- "main_category": "Extract (weight)",
- "sub_category": ""
}, - "characteristics": {
- "quantity_type": "WeightBased",
- "unit_of_measure": "Grams",
- "ingredients": [
- "CO2 Kodai 01 extract intermediate"
], - "strain": {
- "id": "e239e96ac61b4ca9bb9c2607f2egghc86f4",
- "name": "Queen Emeraldus Bounty"
}, - "unit": {
- "cannabinoids": {
- "cbd_percent": 10,
- "thc_percent": 10
}, - "cbd_content": null,
- "cbd_content_uom": null,
- "cbd_content_dose": null,
- "cbd_content_dose_uom": null,
- "thc_content": null,
- "thc_content_uom": null,
- "thc_content_dose": null,
- "thc_content_dose_uom": null,
- "volume": null,
- "volume_uom": null,
- "weight": 100,
- "weight_uom": "Grams",
- "quantity": null,
- "quantity_uom": null
}, - "serving_size": null,
- "serving_num": null,
- "supply_duration_days": null,
- "doses_number": null,
- "lab_test_ref": "NotSubmitted",
- "administration_method": "",
- "brand": "KMP",
- "description": "",
- "image": {
}, - "contains_seeds": false
}
}
}, - "additional": {
- "patient_license": "",
- "is_for_medical_use": false,
- "medical_compliance_info": "no",
- "note": "",
- "is_production_batch": false,
- "production_batch_id": "",
- "is_trade_sample": false,
- "is_donation": false,
- "is_test_sample": false,
- "is_retest": false,
- "is_process_validation_sample": false,
- "is_requires_remediation": false,
- "is_remediated": false,
- "is_same_product": false,
- "shipper_license_number": "",
- "is_quarantine": false,
- "is_initial_inventory": false,
- "is_lab_or_QA_not_required": false,
- "lab_or_qa_result_url": "",
- "authentication_id": "",
- "sample_data": "",
- "transfer_id": "",
- "date_received": ""
}, - "adjustment": [ ],
- "remediation": [ ],
- "entity_state": [
- {
- "state": "active",
- "date": "2021-05-21T20:29:19Z",
- "reason": "lot created",
- "actioned_by": "kodai@kmp.com"
}
]
}
}, - "warnings": [ ]
}Retrieve the lot details. If the id: is not provided, the details of all active lots for the license_number are obtained, filtered by the query parameter(s) criteria.
| 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 lots. |
| start_date | string start date value for query operations Example: start_date=2021-08-12T00:00:00z |
| end_date | string end date value for query operations Example: end_date=2021-08-13T00:00:00z |
| barcode | string Lot's tag that uniquely identifies it for tracking purposes. Example: barcode=1KMP00000000099000015442 |
OK
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Bad Request
{- "results": {
- "type": "object",
- "data": {
- "license": {
- "license_number": "KMPL20200818",
- "type": {
- "name": "Type 12"
}
}, - "action": {
- "id": "KOMLA0004",
- "name": "adjustment"
}, - "id": "fg67e96ac61b4ca9bb9c2607f98f4",
- "name": "Kodai 01 extract intermediate Lot 1",
- "barcode": "1KMBV1200000000046",
- "quantity": 100,
- "unit_of_measure": "Grams",
- "date": "2021-05-03T18:27:39Z",
- "type": {
- "id": "KOMLT0001",
- "name": "Product"
}, - "location": {
- "id": "fg67123c61b4ca9bb9c2607fghg6",
- "name": "KMP Persona Location 1",
- "type": {
- "id": "3",
- "name": "Processing KMP 1"
}
}, - "origin": {
- "plant": [ ],
- "plant_batch": [ ],
- "harvest": [ ],
- "lots": [
- {
- "id": "fg67e96ac61b4ca9bb9c2607fghg6",
- "barcode": "1KMBV1200000000045",
- "name": "Kodai 01 extract intermediate sub lot A01",
- "type": "Concentrate",
- "quantity": 50,
- "unit_of_measure": "Grams"
}, - {
- "id": "fg67e96ac61b4ca9bb9c26abcdf5",
- "barcode": "1KMBV1200000000046",
- "name": "Kodai 01 extract intermediate sub lot A02",
- "type": "Concentrate",
- "quantity": 50,
- "unit_of_measure": "Grams"
}
]
}, - "contents": {
- "strain": {
- "id": "e239e96ac61b4ca9bb9c2607f2egghc86f4",
- "name": "Queen Emeraldus Bounty"
}, - "product": {
- "id": "fg67e96ac61b4ca9bb9c2607f98f4",
- "name": "Kodai 01 extract intermediate",
- "category": {
- "id": "e239e96ac61b4ca9bb9c2607f2cc86f4",
- "type": "Concentrate",
- "main_category": "Extract (weight)",
- "sub_category": ""
}, - "characteristics": {
- "quantity_type": "WeightBased",
- "unit_of_measure": "Grams",
- "ingredients": [
- "CO2 Kodai 01 extract intermediate"
], - "strain": {
- "id": "e239e96ac61b4ca9bb9c2607f2egghc86f4",
- "name": "Queen Emeraldus Bounty"
}, - "unit": {
- "cannabinoids": {
- "cbd_percent": 10,
- "thc_percent": 10
}, - "cbd_content": null,
- "cbd_content_uom": null,
- "cbd_content_dose": null,
- "cbd_content_dose_uom": null,
- "thc_content": null,
- "thc_content_uom": null,
- "thc_content_dose": null,
- "thc_content_dose_uom": null,
- "volume": null,
- "volume_uom": null,
- "weight": 100,
- "weight_uom": "Grams",
- "quantity": null,
- "quantity_uom": null
}, - "serving_size": null,
- "serving_num": null,
- "supply_duration_days": null,
- "doses_number": null,
- "lab_test_ref": "NotSubmitted",
- "administration_method": "",
- "brand": "KMP",
- "description": "",
- "image": {
}, - "contains_seeds": false
}
}
}, - "additional": {
- "patient_license": "",
- "is_for_medical_use": false,
- "medical_compliance_info": "no",
- "note": "",
- "is_production_batch": false,
- "production_batch_id": "",
- "is_trade_sample": false,
- "is_donation": false,
- "is_retest": false,
- "is_test_sample": false,
- "is_process_validation_sample": false,
- "is_requires_remediation": false,
- "is_remediated": true,
- "is_same_product": false,
- "shipper_license_number": "CA-100098-LIC",
- "is_quarantine": false,
- "is_initial_inventory": false,
- "is_lab_or_QA_not_required": false,
- "authentication_id": "",
- "sample_data": "",
- "transfer_id": "fg67e2345fdgh4ca9bb9c2607fghg6",
- "date_received": "2021-05-03T18:27:39Z"
}, - "adjustment": [
- {
- "quantity": -1,
- "unit_of_measure": "Grams",
- "reason": {
- "id": "CAAR0004",
- "name": "Correcting a mistake",
- "is_note_required": false
}, - "date": "2021-07-28T13:54:06Z",
- "note": "scale was not properly calibrated",
- "actioned_by": "Kodai Susumu",
- "received_by": ""
}
], - "remediation": [
- {
- "method": {
- "id": "CAAR0002",
- "name": "Dilution of Concentrate of Analyte"
}, - "date": "2021-07-28T13:54:06Z",
- "steps": "added 9 Grams of MCT oil",
- "actioned_by": "Kodai Susumu"
}
], - "entity_state": [
- {
- "state": "active",
- "date": "2021-05-21T20:29:19Z",
- "reason": "lot created",
- "actioned_by": "kodai@kmp.com"
}, - {
- "state": "lab_testing_passed",
- "date": "2021-07-26T20:29:19Z",
- "reason": "lab xyz123 test 789 passed",
- "actioned_by": "kodai@kmp.com"
}
]
}
}, - "warnings": [ ]
}Update the details of a lot for the license_number provided.
required | object | ||||||||||||||||||||
object specific action for this lot operation. | |||||||||||||||||||||
| name | string name of the lot. | ||||||||||||||||||||
object product contained in the lot. | |||||||||||||||||||||
object The location of the lot. | |||||||||||||||||||||
object additional information about the lot. | |||||||||||||||||||||
| |||||||||||||||||||||
Array of objects The adjustments made to the package. | |||||||||||||||||||||
Array
| |||||||||||||||||||||
Array of objects The remediation action made to the package. | |||||||||||||||||||||
Array of objects A list of state changes made to the entity. Entity states for lot [active, inactive, finished, unfinished, discontinued, used]. | |||||||||||||||||||||
OK
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Bad Request
{- "license": {
- "license_number": "KMP-20201027-TST"
}, - "action": {
- "id": "KOMLA0008"
}, - "adjustment": [
- {
- "quantity": -1,
- "unit_of_measure": "Grams",
- "reason": {
- "id": "CAAR0004"
}, - "date": "2021-07-28T13:54:06Z",
- "note": "scale was not properly calibrated",
- "actioned_by": "kodai susumu",
- "received_by": ""
}
]
}{- "results": {
- "type": "object",
- "data": {
- "license": {
- "license_number": "KMPL20200818",
- "type": {
- "name": "Type 12"
}
}, - "action": {
- "id": "KOMLA0004",
- "name": "adjustment"
}, - "id": "fg67e96ac61b4ca9bb9c2607f98f4",
- "name": "Kodai 01 extract intermediate Lot 1",
- "barcode": "1KMBV1200000000046",
- "quantity": 100,
- "unit_of_measure": "Grams",
- "date": "2021-05-03T18:27:39Z",
- "type": {
- "id": "KOMLT0001",
- "name": "Product"
}, - "location": {
- "id": "fg67123c61b4ca9bb9c2607fghg6",
- "name": "KMP Persona Location 1",
- "type": {
- "id": "3",
- "name": "Processing KMP 1"
}
}, - "origin": {
- "plant": [ ],
- "plant_batch": [ ],
- "harvest": [ ],
- "lots": [
- {
- "id": "fg67e96ac61b4ca9bb9c2607fghg6",
- "barcode": "1KMBV1200000000045",
- "name": "Kodai 01 extract intermediate sub lot A01",
- "type": "Concentrate",
- "quantity": 50,
- "unit_of_measure": "Grams"
}, - {
- "id": "fg67e96ac61b4ca9bb9c26abcdf5",
- "barcode": "1KMBV1200000000046",
- "name": "Kodai 01 extract intermediate sub lot A02",
- "type": "Concentrate",
- "quantity": 50,
- "unit_of_measure": "Grams"
}
]
}, - "contents": {
- "strain": {
- "id": "e239e96ac61b4ca9bb9c2607f2egghc86f4",
- "name": "Queen Emeraldus Bounty"
}, - "product": {
- "id": "fg67e96ac61b4ca9bb9c2607f98f4",
- "name": "Kodai 01 extract intermediate",
- "category": {
- "id": "e239e96ac61b4ca9bb9c2607f2cc86f4",
- "type": "Concentrate",
- "main_category": "Extract (weight)",
- "sub_category": ""
}, - "characteristics": {
- "quantity_type": "WeightBased",
- "unit_of_measure": "Grams",
- "ingredients": [
- "CO2 Kodai 01 extract intermediate"
], - "strain": {
- "id": "e239e96ac61b4ca9bb9c2607f2egghc86f4",
- "name": "Queen Emeraldus Bounty"
}, - "unit": {
- "cannabinoids": {
- "cbd_percent": 10,
- "thc_percent": 10
}, - "cbd_content": null,
- "cbd_content_uom": null,
- "cbd_content_dose": null,
- "cbd_content_dose_uom": null,
- "thc_content": null,
- "thc_content_uom": null,
- "thc_content_dose": null,
- "thc_content_dose_uom": null,
- "volume": null,
- "volume_uom": null,
- "weight": 100,
- "weight_uom": "Grams",
- "quantity": null,
- "quantity_uom": null
}, - "serving_size": null,
- "serving_num": null,
- "supply_duration_days": null,
- "doses_number": null,
- "lab_test_ref": "NotSubmitted",
- "administration_method": "",
- "brand": "KMP",
- "description": "",
- "image": {
}, - "contains_seeds": false
}
}
}, - "additional": {
- "patient_license": "",
- "is_for_medical_use": false,
- "medical_compliance_info": "no",
- "note": "",
- "is_production_batch": false,
- "production_batch_id": "",
- "is_trade_sample": false,
- "is_donation": false,
- "is_test_sample": false,
- "is_retest": false,
- "is_process_validation_sample": false,
- "is_requires_remediation": false,
- "is_remediated": true,
- "is_same_product": false,
- "shipper_license_number": "",
- "is_quarantine": false,
- "is_initial_inventory": false,
- "is_lab_or_QA_not_required": false,
- "authentication_id": "",
- "sample_data": "",
- "transfer_id": "6",
- "date_received": ""
}, - "adjustment": [
- {
- "quantity": -1,
- "unit_of_measure": "Grams",
- "reason": {
- "id": "CAAR0004",
- "name": "Correcting a mistake",
- "is_note_required": false
}, - "date": "2021-07-28T13:54:06Z",
- "note": "scale was not properly calibrated",
- "actioned_by": "Kodai Susumu",
- "received_by": ""
}
], - "remediation": [
- {
- "method": {
- "id": "CAAR0002",
- "name": "Dilution of Concentrate of Analyte"
}, - "date": "2021-07-28T13:54:06Z",
- "steps": "added 9 Grams of MCT oil",
- "actioned_by": "Kodai Susumu"
}
], - "entity_state": [
- {
- "state": "active",
- "date": "2021-05-21T20:29:19Z",
- "reason": "lot created",
- "actioned_by": "kodai@kmp.com"
}, - {
- "state": "lab_testing_passed",
- "date": "2021-07-26T20:29:19Z",
- "reason": "lab xyz123 test 789 passed",
- "actioned_by": "kodai@kmp.com"
}
]
}
}, - "warnings": [ ]
}Retrieve a list of lot actions for CREATE and UPDATE
{- "results": {
- "type": "array",
- "data": [
- {
- "id": "KOMLA0001",
- "name": "split"
}, - {
- "id": "KOMLA0002",
- "name": "change_product"
}, - {
- "id": "KOMLA0003",
- "name": "convert"
}, - {
- "id": "KOMLA0004",
- "name": "combine"
}, - {
- "id": "KOMLA0005",
- "name": "change_origin"
}, - {
- "id": "KOMLA0006",
- "name": "move"
}, - {
- "id": "KOMLA0007",
- "name": "entity_state"
}, - {
- "id": "KOMLA0008",
- "name": "adjustment"
}, - {
- "id": "KOMLA0009",
- "name": "remediate"
}, - {
- "id": "KOMLA0010",
- "name": "other"
}
]
}, - "warnings": [ ]
}Retrieve a list of lot types
{- "results": {
- "type": "array",
- "data": [
- {
- "id": "KOMLT0001",
- "name": "Product"
}, - {
- "id": "KOMLT0002",
- "name": "ImmaturePlant"
}, - {
- "id": "KOMLT0003",
- "name": "VegetativePlant"
}, - {
- "id": "KOMLT0004",
- "name": "PlantWaste"
}, - {
- "id": "KOMLT0005",
- "name": "HarvestWaste"
}
]
}, - "warnings": [ ]
}Retrieve a list of adjustment reasons for a specific state
OK
Bad Request
{- "results": {
- "type": "array",
- "data": [
- {
- "id": "CAAR0001",
- "name": "Damage (BCC)",
- "is_note_required": true
}, - {
- "id": "CAAR0002",
- "name": "Display Sample",
- "is_note_required": false
}, - {
- "id": "CAAR0003",
- "name": "Failure to Thrive (BCC)",
- "is_note_required": true
}, - {
- "id": "CAAR0004",
- "name": "Incorrect Quantity",
- "is_note_required": false
}
]
}, - "warnings": [ ]
}Retrieve a list of remediation methods for a specific state
{- "results": {
- "type": "array",
- "data": [
- {
- "id": "CAAR0001",
- "name": "Additional Processing Method"
}, - {
- "id": "CAAR0002",
- "name": "Dilution of Concentrate of Analyte"
}, - {
- "id": "CAAR0003",
- "name": "Failure to Thrive (BCC)"
}, - {
- "id": "CAAR0004",
- "name": "Further Drying/Curing"
}, - {
- "id": "CAAR0005",
- "name": "Relabeled"
}, - {
- "id": "CAAR0006",
- "name": "Sterilization"
}, - {
- "id": "CAAR0007",
- "name": "Used for Concentrate or Extract"
}
]
}, - "warnings": [ ]
}Retrieve the lots rejection reasons for transfers
{- "results": {
- "type": "array",
- "data": [
- {
- "id": "CATLRR0001",
- "name": "damage"
}, - {
- "id": "CATLRR0002",
- "name": "damage_bcc"
}, - {
- "id": "CATLRR0003",
- "name": "data_entry_error"
}, - {
- "id": "CATLRR0004",
- "name": "incorrect_item_transfer"
}, - {
- "id": "CATLRR0005",
- "name": "incorrect_quantity"
}, - {
- "id": "CATLRR0006",
- "name": "non_compliant_label"
}, - {
- "id": "CATLRR0007",
- "name": "spoilage"
}, - {
- "id": "CATLRR0008",
- "name": "theft"
}
]
}, - "warnings": [ ]
}