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.
OK
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": [ ]
}