Plant lifecycle report

distru-report-plant-lifecycleRead

One row per plant batch: plants started, moved to veg, destroyed and harvested, with dates and costs per stage.

Inputs

Every tool also takes the common inputs.

FieldTypeRequiredDescription
cursorstringNonextCursor of the previous call; keep the other arguments unchanged.
batchCreationDatetimeobjectNoInclusive. YYYY-MM-DD (whole days, company timezone) or ISO 8601 with a UTC offset. Batch creation (planting) date. Defaults to the last 30 days.
batchCreationDatetime.endstringNo
batchCreationDatetime.startstringNo
strainstringNoCase-insensitive substring of strain name.
maxRowsLimitintegerNoRows per page. Defaults to 500.

Output

Presence on a nested field assumes its parent exists.

FieldTypePresenceDescription
nextCursorstringCan be absentPass as cursor to fetch the next page. Present only when meta.truncated.
metaobjectAlways
meta.reportstringAlways
meta.dateRangestringAlways
meta.rowLimitnumberAlways
meta.offsetnumberAlways
meta.rowCountnumberAlways
meta.totalRowCountnumberAlways
meta.truncatedbooleanAlways
meta.columnsobject[]Always
meta.columns[].keystringAlways
meta.columns[].labelstringAlways
rowsobject[]Always
rows[].plantBatchNamestringAlways
rows[].batchCreationDatestringAlways
rows[].strainstringAlways
rows[].plantsStartedstringAlways
rows[].plantsPromotedToVegstringAlways
rows[].plantsDestroyedstringAlways
rows[].plantsHarvestedstringAlways
rows[].promotedToVegDatestringCan be null
rows[].firstHarvestDatestringCan be null
rows[].lastHarvestDatestringCan be null
rows[].daysAsBatchstringAlways
rows[].daysVegToLastHarveststringCan be null
rows[].totalLifecycleDaysstringAlways
rows[].totalCostBatchStagestringCan be null
rows[].totalCostVegToLastHarveststringCan be null
rows[].destroyedPlantCoststringCan be null
rows[].totalLifecycleCoststringCan be null
rows[].harvestNameSstringCan be null
rows[].customFieldsobject[]Always
rows[].customFields[].keystringAlways
rows[].customFields[].labelstringAlways
rows[].customFields[].valuestringCan be null
What the AI reads

Plant batch lifecycle: one row per plant batch created in the range, with plants started, promoted to veg, destroyed and harvested, key dates, days per stage, cost per stage and the harvests it produced. Metrc only: just batches on active Metrc licenses whose facility tracks vegetative plants. Use for batch timelines, stage durations and cultivation cost per batch. For individual plant events use distru-report-cultivation-transaction-history; for harvest yields and costs use distru-report-harvest-outputs. The veg and harvest dates and daysVegToLastHarvest are null until the batch reaches that stage; daysAsBatch runs to today while the batch is not promoted. harvestNameS is null until a plant is harvested, and also when those harvests are not in Distru, even with harvest dates set. The four cost fields are null and left out of meta.columns when the caller cannot view costs; totalLifecycleCost is the sum of the other three. The dates are MM/DD/YYYY in the caller's timezone; counts, day spans and money are numeric strings. Returns 500 rows by default (maxRowsLimit, up to 5000). When meta.truncated is true more rows exist: repeat the call with the same filters, any date range made explicit so every page covers the same one, and cursor set to nextCursor — or narrow the filters when you need a summary rather than every row.