Retrieve the plant_batches details. If the id is not provided, the details of all the active plant batches for the license_number are obtained, filtered by the query parameter(s) criteria.
OK
Bad Request
{- "results": {
- "type": "object",
- "data": {
- "license": {
- "license_number": "KMIL1012345",
- "type": {
- "name": "Cultivation Centers"
}
}, - "actions": null,
- "id": "feb189d1e56148c2a9f509b38030a598",
- "name": "Hathaway plant batch rejit 05122022 B5",
- "barcode": "9164149779326645",
- "type": {
- "id": "ILPBT0001",
- "name": "seed"
}, - "quantity": {
- "unit_of_measure": "Each",
- "total": 5,
- "untracked": 5,
- "tracked": null,
- "lots": null,
- "harvested": null,
- "wasted": {
- "number_scheduled_for_destruction": 0,
- "number_wasted": 0
}
}, - "planted_date": "2022-05-12T18:27:39Z",
- "strain": {
- "id": "3b81bb9e64e64332a24a9d8cf5fbc595",
- "name": "matsumoto reijit 5"
}, - "origin": {
- "plants": null,
- "plant_batches": null,
- "lots": [
- {
- "id": "33wa9b62fe1c47e4970c55ec6c7ff898",
- "barcode": "1565161621663009",
- "name": "Default seed IL lot",
- "type": {
- "id": "KOMLT0001",
- "name": "Product"
}, - "quantity": 5,
- "unit_of_measure": "Each"
}
]
}, - "additives": null,
- "waste": null,
- "locations": {
- "id": "a2befc157b1c44a1a56c5e4573b5e6e0",
- "name": "Hathaway cultivation 1 inventory-5270040"
}, - "additional": {
- "patient_license": null,
- "is_for_medical_use": false
}, - "entity_state": [
- {
- "state": "active",
- "date": "2022-07-10T23:46:41Z",
- "reason": "batch created",
- "actioned_by": "system generated"
}, - {
- "state": "updated",
- "date": "2022-07-10T23:46:41Z",
- "reason": "plant batch updated",
- "actioned_by": "system generated"
}
]
}
}, - "warnings": [ ]
}