Retrieve plant batch(s) details

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.

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"
id
required
string

Plant Batch ID

Example: a521f55de4394f4f99c282be687e63aa
query Parameters
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.

Enum: "active" "inactive" "finished" "unfinished" "updated" "onhold"
entity_state
string

Queryable entity states for plant_batch.

Enum: "inactive" "active"
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
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
Responses
200

OK

400

Bad Request

get/{state}/v1/plant_batches/{id}
Response samples
application/json
{
  • "results": {
    },
  • "warnings": [ ]
}