Create a waste event for use by the license_number provided.
OK
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": [ ]
}