Create waste event

Create a waste event for use by the license_number provided.

SecurityApiKeyAuth and CustomAuth
Request
path Parameters
state
required
string

Lower case ANSI standard 38:2009 USPS codes of the US state where licensee is operating.

Enum: "ca" "il" "wa" "ma" "md" "mi" "wv" "co" "ok" "oh"
header Parameters
x-api-key
required
string

Trace API key header

Example: b123x21wbHlkYXBpa2V5
Authorization
required
string

Company and user credentials authentication

Example: KMP-JSON token=dmVuZG9yLWFwaS1rZXk6dX12312sdfs2V5
Request Body schema: application/json
license_number
string

Reference (entity_ID) for the license. This is the business license number issued by the state. The presence of the license number in the body is of informational nature, while it must be provided in the query parameters.

required
object

The create action being taken on the waste

name
required
string

The display name of the waste.

required
object

The dates event dates of the creation of the waste. Hold dates are required in some states.

Array of objects

The employee who created the waste.

required
Array of objects

The type of waste that was removed (e.g. Plant Material, Fibrous, Root Ball).

required
object

The reason for the waste as specified by the state.

note
string

Additional information related to the waste. May be optional or required based on the reason provided.

required
object

The waste method as specified by the state (e.g. Compost, Self-Hauler, or Waste-Hauler).

weight
required
number <float>

The weight of the waste being removed.

unit_of_measure
required
string

The unit of measure for the weight of the waste.

required
object

List of plants, plant_batches, or harvests the waste was removed from (e.g. immature plant batch, flowering plant, harvest batch, etc.). One waste event must be from one origin type.

Array of objects (waste_other_material)

Other material the waste was mixed with.

date
string

The date the waste was removed.

Responses
200

OK

400

Bad Request

post/{state}/v1/waste
Request samples
application/json
{
  • "license": {
    },
  • "actions": {
    },
  • "name": "Tomino amuro kamui 05242022 waste 1",
  • "dates": {
    },
  • "employees": {
    },
  • "type": [
    ],
  • "reason": {
    },
  • "note": "too much pesticide was sprayed",
  • "method": {
    },
  • "mixed_material": [
    ],
  • "weights": null,
  • "origin": {
    },
  • "locations": {
    }
}
Response samples
application/json
{
  • "results": {
    },
  • "warnings": [ ]
}