Products

List Products

The product reference list the composer's parse matches a sentence against ("Drenched the ewes with First Mectin…"): name, label active constituent and the withholding period (WHP) and export slaughter interval (ESI) on its label. kind narrows the list: drench, herbicide (the sprays a spray record is parsed against), fertiliser, seed, seed_treatment or inoculant; an unknown kind is an empty list.

Read the intervals by their own names, never by whp_days and esi_days, which are stored columns whose meaning depends on kind (for a herbicide whp_days is the GRAZING period and esi_days the HARVEST period). Every product carries meat_whp_days, export_esi_days, grazing_whp_days, harvest_whp_days and egi_days, each null where its kind does not have one. A fertiliser has no interval at all: it carries analysis (nutrient percentages) and an advisory_note, which is advice to pass on and never a status. This is a short catalogue, not the APVMA ESI list — ESIs change, so confirm the label with the farmer and do not override their figure silently. Signed-in callers only.

get/products

Request

  • Base URL: https://api.purplegrain.com/api/v1
  • URL: https://api.purplegrain.com/api/v1/products
  • Auth: HTTP bearer

Query parameters

kindstring
Example:drench

drench, herbicide, fertiliser, seed, seed_treatment or inoculant.

pageinteger
per_pageinteger

Response

Success.

Changes

No recorded changes to this operation across all 1 revision of this API.