Create a plant_batch for the license_number provided.
OK
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Bad Request
{- "license": {
- "license_number": "KMIL1012345"
}, - "name": "Hathaway plant batch rejit 05122022 B5",
- "barcode": null,
- "type": {
- "id": "ILPBT0001"
}, - "quantity": {
- "unit_of_measure": "Each",
- "total": 5
}, - "planted_date": "2022-05-12T18:27:39Z",
- "strain": {
- "id": "3b81bb9e64e64332a24a9d8cf5fbc595"
}, - "origin": {
- "plant": null,
- "plant_batches": null,
- "lots": [
- {
- "id": "33wa9b62fe1c47e4970c55ec6c7ff898",
- "quantity": 5,
- "unit_of_measure": "Each"
}
]
}, - "locations": {
- "id": "a2befc157b1c44a1a56c5e4573b5e6e0"
}, - "additional": {
- "patient_license": null,
- "is_for_medical_use": false
}
}{- "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": [
- {
- "detail": "planted_date entered is 1421 hours before the current time stamp 2022-07-10T23:46:40Z",
- "type": "date"
}
]
}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.
| 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 |
| barcode | string Plant_batch's tag that uniquely identifies it for the tracking purposes. Example: barcode=1KMP00000000099000015442 |
| expand | string The expand query parameter is used to include additional information for the child objects in the plant_batch's response. |
| entity_state | string Queryable entity states for plant_batch. |
| start_date | string Starting date for the time range of plant_batch's modifications. Only applicable if entity_state query parameter is used. Example: start_date=2020-09-04 |
| end_date | string End date for the time range of plant_batch's modifications. Only applicable if entity_state query parameter is used. Example: end_date=2020-09-05 |
OK
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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": [ ]
}Update the details of a plant_batch. Update growth phase and take actions (move, add waste or addtives, destroy, etc..) upon the plants for the license_number provided.
required | object | ||||||||||||||||||||||
required | object Specific action for this plant_batch operation. | ||||||||||||||||||||||
| name | string The display name of the plant_batch. | ||||||||||||||||||||||
| barcode | string A unique identifier required for specific states. | ||||||||||||||||||||||
object The type of the plant_batch (e.g. Clone or Seed). | |||||||||||||||||||||||
object The quantity of immature plants being added to this plant_batch. | |||||||||||||||||||||||
| planted_date | string <date-time> The timestamp of when the plant_batch was created (planted). | ||||||||||||||||||||||
| additives_application_date | string <date-time> The timestamp of when additives were applied to the plant_batch. | ||||||||||||||||||||||
| mother_plant_date | string <date-time> The timestamp of when the plant_batch was first used as a mother plant. | ||||||||||||||||||||||
object | |||||||||||||||||||||||
object The plant_batch's origin, either plant (mother plant), plant_batch, or lot. | |||||||||||||||||||||||
| |||||||||||||||||||||||
object | |||||||||||||||||||||||
| move_date | string <date-time> The timestamp of when the plant_batch was moved. | ||||||||||||||||||||||
object Additional information | |||||||||||||||||||||||
Array of objects List of additives that have been applied to the plant_batch. | |||||||||||||||||||||||
Array
| |||||||||||||||||||||||
Array of objects The destroy plant events taken on this plant_batch | |||||||||||||||||||||||
OK
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Bad Request
{- "license": {
- "license_number": "KMIL1012345"
}, - "actions": {
- "id": "ILPBUD0002"
}, - "move_date": "2022-06-26T20:29:19Z",
- "locations": {
- "id": "fdad7be6c0f74ce1ae8b1431e88bbac6"
}
}{- "results": {
- "type": "object",
- "data": {
- "license": {
- "license_number": "KMIL1012345",
- "type": {
- "name": "Cultivation Centers"
}
}, - "actions": {
- "id": "ILPBUD0002",
- "name": "move"
}, - "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": "fdad7be6c0f74ce1ae8b1431e88bbac6",
- "name": "IL manisha pune 521"
}, - "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-11T00:20:36Z",
- "reason": "location changed",
- "actioned_by": "user credentials"
}, - {
- "state": "plant_batch_moved",
- "date": "2022-06-26T20:29:19Z",
- "reason": "original location a2befc157b1c44a1a56c5e4573b5e6e0 Hathaway cultivation 1 inventory-5270040",
- "actioned_by": "user credentials"
}
]
}
}, - "warnings": [ ]
}Deactivate a plant_batch for the license_number provided.
{- "license": {
- "license_number": "KMP20200814"
}
}{- "results": {
- "type": "object",
- "data": {
- "id": "5689",
- "deleted": true
}
}, - "warnings": [ ]
}Retrieve a list of plant batch types
{- "results": {
- "type": "array",
- "data": [
- {
- "id": "ILPBT0001",
- "name": "seed"
}, - {
- "id": "ILPBT0002",
- "name": "clone"
}, - {
- "id": "ILPBT0003",
- "name": "plant_tissue"
}
]
}, - "warnings": [ ]
}Retrieve the plant batch actions for a specific state
OK
Bad Request
{- "results": {
- "type": "array",
- "data": [
- {
- "id": "ILPBUD0001",
- "name": "change strain",
- "note": "change the strain of a plant batch"
}, - {
- "id": "ILPBUD0002",
- "name": "move",
- "note": "move plant batch to different location"
}, - {
- "id": "ILPBUD0003",
- "name": "split",
- "note": "split plant batch"
}, - {
- "id": "ILPBUD0004",
- "name": "apply additives",
- "note": "apply additives to plant batch"
}, - {
- "id": "ILPBUD0005",
- "name": "change plant batch name",
- "note": "change plant batch name"
}
]
}, - "warnings": [ ]
}