Create a waste event for use by the license_number provided.
OK
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Bad Request
{- "license": {
- "license_number": "KMIL1012345"
}, - "actions": {
- "id": "KOMWAAS0007"
}, - "name": "Tomino amuro kamui 05242022 waste 1",
- "dates": {
- "hold_start": "2022-05-24T18:27:39Z",
- "hold_end": "2022-05-24T18:27:39Z",
- "waste_start": "2022-05-24T18:27:39Z",
- "waste_end": "2022-05-24T18:27:39Z"
}, - "employees": {
- "id": "0ab0e41e280244d4b26a6cd678f24583"
}, - "type": [
- {
- "id": "ILWTY0001"
}, - {
- "id": "ILWTY0003"
}
], - "reason": {
- "id": "ILPWR0001"
}, - "note": "too much pesticide was sprayed",
- "method": {
- "id": "ILPWM0002"
}, - "mixed_material": [
- {
- "id": "ILWAMM0001",
- "material": "inorganic material",
- "quantity": 1000.1234,
- "unit_of_measure": "Grams"
}
], - "weights": null,
- "origin": {
- "harvests": [
- {
- "id": "44cee18ee3564d148cbf6fc440dabc94",
- "quantity": {
- "flower": {
- "wet": {
- "quantity": 50
}, - "dry": {
- "quantity": 0
}
}, - "plant_material": {
- "wet": {
- "quantity": 50
}, - "dry": {
- "quantity": 0
}
}
}, - "unit_of_measure": "Grams"
}
], - "plant_batches": null,
- "plants": null,
- "locations": null
}, - "locations": {
- "id": "015db810bd814b20bb99c622d1194026"
}
}{- "results": {
- "type": "object",
- "data": {
- "license": {
- "license_number": "KMIL1012345",
- "type": {
- "name": "Cultivation Centers"
}
}, - "actions": {
- "id": "KOMWAAS0007",
- "name": "waste_harvest_material"
}, - "id": "870472d5c6d443e79eef78c8c38ee028",
- "name": "Tomino amuro kamui 05242022 waste 1",
- "barcode": "8167196724995261",
- "dates": {
- "hold_start": "2022-05-24T18:27:39Z",
- "hold_end": "2022-05-24T18:27:39Z",
- "waste_start": "2022-05-24T18:27:39Z",
- "waste_end": "2022-05-24T18:27:39Z",
- "actual_waste_start": null,
- "actual_waste_end": null
}, - "employees": {
- "id": "0ab0e41e280244d4b26a6cd678f24583",
- "name": {
- "first_name": "Priss",
- "last_name": "Asagiri"
}, - "email_address": "pasagiri@maetel.com",
- "phone_number": "312-123-4567"
}, - "type": [
- {
- "id": "ILWTY0001",
- "name": "wet_plant_material"
}, - {
- "id": "ILWTY0003",
- "name": "wet_flower_material"
}
], - "reason": {
- "id": "ILPWR0001",
- "name": "other",
- "is_note_required": false
}, - "note": "too much pesticide was sprayed",
- "methods": {
- "id": "ILPWM0002",
- "name": "harvest"
}, - "mixed_material": [
- {
- "id": "ILWAMM0001",
- "name": "inorganic_material",
- "material": "inorganic material",
- "quantity": 1000.1234,
- "unit_of_measure": "Grams"
}
], - "counts": {
- "quantity": 1,
- "unit_of_measure": "Each"
}, - "weights": {
- "total_weight": {
- "quantity": 100,
- "unit_of_measure": "Grams"
}
}, - "origin": {
- "plants": null,
- "plant_batches": null,
- "harvests": [
- {
- "id": "44cee18ee3564d148cbf6fc440dabc94",
- "quantity": {
- "quantity_tts_delta": 0,
- "quantity_total": 100,
- "flower": {
- "wet": {
- "quantity": 50
}, - "dry": {
- "quantity": 0
}
}, - "plant_material": {
- "wet": {
- "quantity": 50
}, - "dry": {
- "quantity": 0
}
}
}, - "unit_of_measure": "Grams"
}
], - "locations": null,
- "lots": null
}, - "locations": {
- "id": "015db810bd814b20bb99c622d1194026",
- "name": "Hathaway cultivation 51 inventorY2",
- "type": {
- "id": "ILLOC0002",
- "name": "inventory_room"
}
}, - "entity_state": [
- {
- "state": "active",
- "date": "2022-07-14T01:53:25Z",
- "reason": "waste created",
- "actioned_by": "system generated"
}, - {
- "state": "updated",
- "date": "2022-05-24T18:27:39Z",
- "reason": "waste updated",
- "actioned_by": "user credentials"
}, - {
- "state": "scheduled_for_destruction",
- "date": "2022-05-24T18:27:39Z",
- "reason": "waste scheduled for destruction",
- "actioned_by": "user credentials"
}
]
}
}, - "warnings": [ ]
}Retrieve the waste event details. If the id is not provided, the details of all the waste events for the license_number are obtained.
| 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 |
| 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 |
| entity_state | string Queryable entity states for additive. Inactive will return inactive and/or deleted additives. |
OK
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Bad Request
{- "results": {
- "type": "object",
- "data": {
- "license": {
- "license_number": "KMIL1012345",
- "type": {
- "name": "Type 12"
}
}, - "actions": {
- "id": "KOMWAAS0006",
- "name": "waste_flowering_plant_material"
}, - "id": "707089cb8bd747a2bfac434dc817fa59",
- "name": "KMP waste CSV plant material 06242022",
- "barcode": null,
- "dates": {
- "hold_start": "2022-05-24T18:27:39Z",
- "hold_end": "2022-05-24T18:27:39Z",
- "waste_start": "2022-05-24T18:27:39Z",
- "waste_end": "2022-05-24T18:27:39Z",
- "actual_waste_start": null,
- "actual_waste_end": null
}, - "employees": {
- "id": "b96ae6385b6749b6846eb9ec7f9a93c9",
- "name": {
- "first_name": "Kamile",
- "last_name": "Bidan"
}, - "email_address": "kidan2@maetal.com",
- "phone_number": "408-123-4568"
}, - "type": [
- {
- "id": "CAWTY0001",
- "name": "wet_plant_material"
}, - {
- "id": "CAWTY0003",
- "name": "wet_flower_material"
}
], - "reason": {
- "id": "CAPWR0003",
- "name": "failure_to_thrive_bcc",
- "is_note_required": true
}, - "note": "plants are not doing well and dying",
- "methods": {
- "id": "CAPWM0003",
- "name": "self_haul"
}, - "mixed_material": [
- {
- "id": "CAWAMM0001",
- "name": "inorganic_material",
- "material": "inorganic material",
- "quantity": 1001.1234,
- "unit_of_measure": "Grams"
}
], - "counts": {
- "quantity": 2,
- "unit_of_measure": "Each"
}, - "weights": {
- "total_weight": {
- "quantity": 10013,
- "unit_of_measure": "Grams"
}
}, - "origin": {
- "plants": [
- {
- "id": "cbb5803792524c9182569081904b5b89",
- "barcode": "1A4FF0200000029000014249",
- "name": "tomino amuro kamui 05202022 plants A",
- "quantity": {
- "flower": {
- "wet": {
- "quantity": 2003.2
}, - "dry": {
- "quantity": 0
}
}, - "plant_material": {
- "wet": {
- "quantity": 2003.2
}, - "dry": {
- "quantity": 0
}
}
}, - "unit_of_measure": "Grams"
}, - {
- "id": "17e9ec8efb5444b8927033577f9ed59f",
- "barcode": "1A4FF0200000029000014247",
- "name": "Tomino amuro 052022 plants A 014247",
- "quantity": {
- "flower": {
- "wet": {
- "quantity": 3003.3
}, - "dry": {
- "quantity": 0
}
}, - "plant_material": {
- "wet": {
- "quantity": 3003.3
}, - "dry": {
- "quantity": 0
}
}
}, - "unit_of_measure": "Grams"
}
], - "plant_batches": null,
- "harvests": null,
- "locations": null,
- "lots": null
}, - "locations": {
- "id": "39d820bae059468facede4bff0efc4ec",
- "name": "Hathaway cultivation 1",
- "type": {
- "id": "CALOC0001",
- "name": "Cultivation"
}
}, - "entity_state": [
- {
- "state": "active",
- "date": "2022-07-01T23:10:35Z",
- "reason": "waste created",
- "actioned_by": "system generated"
}, - {
- "state": "updated",
- "date": "2022-05-24T18:27:39Z",
- "reason": "waste updated",
- "actioned_by": "user credentials"
}, - {
- "state": "csv_file_created",
- "date": "2022-05-24T18:27:39Z",
- "reason": "csv file ID 707089cb8bd747a2bfac434dc817fa59 name record_plants_waste_707089cb8bd747a2bfac434dc817fa59_1656717036.csv created for waste",
- "actioned_by": "user credentials"
}
]
}
}, - "warnings": [ ]
}Update the details of a waste event for the license_number provided.
OK
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Bad Request
{- "license": {
- "license_number": "KMIL1012345"
}, - "actions": {
- "id": "KOMWAAS0013"
}, - "move_date": "2022-07-16T20:29:19Z",
- "locations": {
- "id": "66878631b87e43968cbcd0d776d856b8"
}
}{- "results": {
- "type": "object",
- "data": {
- "license": {
- "license_number": "KMIL1012345",
- "type": {
- "name": "Cultivation Centers"
}
}, - "actions": {
- "id": "KOMWAAS0013",
- "name": "move_waste_to_new_location"
}, - "id": "870472d5c6d443e79eef78c8c38ee028",
- "name": "Tomino amuro kamui 05242022 waste 1",
- "barcode": "8167196724995261",
- "dates": {
- "hold_start": "2022-05-24T18:27:39Z",
- "hold_end": "2022-05-24T18:27:39Z",
- "waste_start": "2022-05-24T18:27:39Z",
- "waste_end": "2022-05-24T18:27:39Z",
- "actual_waste_start": null,
- "actual_waste_end": null
}, - "employees": {
- "id": "0ab0e41e280244d4b26a6cd678f24583",
- "name": {
- "first_name": "Priss",
- "last_name": "Asagiri"
}, - "email_address": "pasagiri@maetel.com",
- "phone_number": "312-123-4567"
}, - "type": [
- {
- "id": "ILWTY0001",
- "name": "wet_plant_material"
}, - {
- "id": "ILWTY0003",
- "name": "wet_flower_material"
}
], - "reason": {
- "id": "ILPWR0001",
- "name": "other",
- "is_note_required": false
}, - "note": "too much pesticide was sprayed",
- "methods": {
- "id": "ILPWM0002",
- "name": "harvest"
}, - "mixed_material": [
- {
- "id": "ILWAMM0001",
- "name": "inorganic_material",
- "material": "inorganic material",
- "quantity": 1000.1234,
- "unit_of_measure": "Grams"
}
], - "counts": {
- "quantity": 1,
- "unit_of_measure": "Each"
}, - "weights": {
- "total_weight": {
- "quantity": 100,
- "unit_of_measure": "Grams"
}
}, - "origin": {
- "plants": null,
- "plant_batches": null,
- "harvests": [
- {
- "id": "44cee18ee3564d148cbf6fc440dabc94",
- "quantity": {
- "quantity_tts_delta": 0,
- "quantity_total": 100,
- "flower": {
- "wet": {
- "quantity": 50
}, - "dry": {
- "quantity": 0
}
}, - "plant_material": {
- "wet": {
- "quantity": 50
}, - "dry": {
- "quantity": 0
}
}
}, - "unit_of_measure": "Grams"
}
], - "locations": null,
- "lots": null
}, - "locations": {
- "id": "66878631b87e43968cbcd0d776d856b8",
- "name": "Cultivation Room 1A",
- "type": {
- "id": "ILLOC0002",
- "name": "inventory_room"
}
}, - "entity_state": [
- {
- "state": "active",
- "date": "2022-07-14T01:53:25Z",
- "reason": "waste created",
- "actioned_by": "system generated"
}, - {
- "state": "updated",
- "date": "2022-07-18T00:44:06Z",
- "reason": "waste updated",
- "actioned_by": "user credentials"
}, - {
- "state": "scheduled_for_destruction",
- "date": "2022-05-24T18:27:39Z",
- "reason": "waste scheduled for destruction",
- "actioned_by": "user credentials"
}, - {
- "state": "waste_moved",
- "date": "2022-07-16T20:29:19Z",
- "reason": "original location 015db810bd814b20bb99c622d1194026 Hathaway cultivation 51 inventorY2",
- "actioned_by": "user credentials"
}
]
}
}, - "warnings": [
- {
- "detail": "move_date entered is 28 hours before the current time stamp 2022-07-18T00:44:05Z",
- "type": "move_date"
}
]
}Deactivate a waste event for the license_number provided.
{- "license_number": "KMIL1012345"
}{- "results": {
- "type": "object",
- "data": {
- "id": "707089cb8bd747a2bfac434dc817fa59",
- "deleted": true
}
}, - "warnings": [ ]
}retrieve the waste types for a specific state
{- "results": {
- "type": "array",
- "data": [
- {
- "id": "CAWTY0001",
- "name": "wet_plant_material",
- "note": "wet plant material waste"
}, - {
- "id": "CAWTY0002",
- "name": "dry_plant_material",
- "note": "dry plant material waste"
}, - {
- "id": "CAWTY0003",
- "name": "wet_flower_material",
- "note": "wet flower material waste"
}, - {
- "id": "CAWTY0004",
- "name": "dry_flower_material",
- "note": "dry flower material waste"
}, - {
- "id": "CAWTY0005",
- "name": "Lots",
- "note": "lot or product waste"
}
]
}, - "warnings": [ ]
}retrieve the waste types for a specific state and license number
OK
object | |
Array of objects | |
Bad Request
{- "results": {
- "type": "array",
- "data": [
- {
- "id": "CAPWR0001",
- "name": "contamination_bcc",
- "is_note_required": true,
- "info": "bcc for bcc licenses only"
}, - {
- "id": "CAPWR0002",
- "name": "damage_bcc",
- "is_note_required": true,
- "info": "bcc for bcc licenses only"
}, - {
- "id": "CAPWR0003",
- "name": "failure_to_thrive_bcc",
- "is_note_required": true,
- "info": "bcc for bcc licenses only"
}, - {
- "id": "CAPWR0004",
- "name": "male_plants_bcc",
- "is_note_required": false,
- "info": "bcc for bcc licenses only"
}, - {
- "id": "CAPWR0005",
- "name": "mandated_destruction",
- "is_note_required": true,
- "info": null
}, - {
- "id": "CAPWR0006",
- "name": "pesticides",
- "is_note_required": true,
- "info": null
}, - {
- "id": "CAPWR0007",
- "name": "pruning",
- "is_note_required": true,
- "info": null
}, - {
- "id": "CAPWR0012",
- "name": "mold",
- "is_note_required": false,
- "info": null
}
]
}, - "warnings": [ ]
}retrieve the waste methods for a specific state
{- "results": {
- "type": "array",
- "data": [
- {
- "id": "ILPWM0001",
- "name": "compost"
}, - {
- "id": "ILPWM0002",
- "name": "harvest"
}, - {
- "id": "ILPWM0003",
- "name": "self_haul"
}, - {
- "id": "ILPWM0004",
- "name": "waste_hauler"
}, - {
- "id": "ILPWM0005",
- "name": "other"
}
]
}, - "warnings": [ ]
}Retrieve the waste actions for a specific state
OK
Bad Request
{- "results": {
- "type": "array",
- "data": [
- {
- "id": "KOMWAAS0001",
- "name": "waste_immature_plants_from_batch",
- "note": "waste by count",
- "info": "destroy immature plants"
}, - {
- "id": "KOMWAAS0002",
- "name": "waste_immature_plant_batch_material",
- "note": "waste by weight",
- "info": "may require file upload to tts"
}, - {
- "id": "KOMWAAS0003",
- "name": "waste_plant",
- "note": "waste entire plant",
- "info": "destroy plant"
}, - {
- "id": "KOMWAAS0004",
- "name": "waste_immature_plant_material",
- "note": "waste by weight",
- "info": "may require file upload to tts"
}, - {
- "id": "KOMWAAS0005",
- "name": "waste_vegetative_plant_material",
- "note": "waste by weight",
- "info": "may require file upload to tts"
}, - {
- "id": "KOMWAAS0006",
- "name": "waste_flowering_plant_material",
- "note": "waste by weight",
- "info": "may require file upload to tts"
}, - {
- "id": "KOMWAAS0007",
- "name": "waste_harvest_material",
- "note": "waste by weight",
- "info": ""
}, - {
- "id": "KOMWAAS0008",
- "name": "waste_by_location",
- "note": "waste by weight",
- "info": "may require file upload to tts"
}, - {
- "id": "KOMWAAS0009",
- "name": "destroy_material",
- "note": "destroy material after holding period",
- "info": "required by specific states after holding period"
}
]
}, - "warnings": [ ]
}retrieve the materials mixed with waste per state
OK
Bad Request
{- "results": {
- "type": "array",
- "data": [
- {
- "id": "CAWAMM0001",
- "name": "inorganic_material",
- "note": null
}, - {
- "id": "CAWAMM0002",
- "name": "soil",
- "note": null
}, - {
- "id": "CAWAMM0003",
- "name": "none",
- "note": "use none when mixed materials not required"
}
]
}, - "warnings": [ ]
}