Value chains › Fresh Produce
Tomato pack house
Field-run tomatoes are received in crates, sorted by colour stage and defects, and graded into Grade 1 and Grade 2 for market and processing grade for paste. Growers are paid per kg by grade.
agri.tomato.pack_house
Grade, cure and pack yields confirmed
What the factory receives
Raw material your system can send as a consignment (item.code):
| Item | Code | Unit | HS code |
|---|---|---|---|
| Fresh tomatoes (field run) | TOMATO-FRESH | kg | 0702.00 |
Units besides kg: crate20 = 20 kg fruit crate (20 kg)
What the factory makes
Tomato grading
| In | Code | Share |
|---|---|---|
| Fresh tomatoes (field run) | TOMATO-FRESH | 100 % |
| Out | Code | Kind | Yield |
|---|---|---|---|
| Tomatoes Grade 1 | TOMATO-GRADE1 | Main product | 50–70 % |
| Tomatoes Grade 2 | TOMATO-GRADE2 | Co-product | 15–30 % |
| Tomatoes processing grade (to paste) | TOMATO-PROCESSING | By-product | 5–20 % |
| Waste | WASTE | Waste | 1–5 % |
Steps: Receiving and weighing → Washing and drying → Sorting by colour stage and defects → Grading by size → Packing in crates
Yield is the share of the input weight, as a range seen in practice. The factory records the real weights on every run.
All products and intermediates
| Item | Code | Unit | HS code |
|---|---|---|---|
| Tomatoes Grade 1 | TOMATO-GRADE1 | kg | 0702.00 |
| Tomatoes Grade 2 | TOMATO-GRADE2 | kg | 0702.00 |
| Tomatoes processing grade (to paste) | TOMATO-PROCESSING | kg | 0702.00 |
Quality checks
Tomato pack-house intake intake
Fifty fruits per grower lot
| Parameter | Accepted | |
|---|---|---|
| Colour stage (1 green – 6 red) | text | |
| Cracks, blossom-end rot, tuta absoluta and bruising | ≤ 10 % | |
| Spray records within MRL / pre-harvest interval | pass / fail | critical: a failure holds the lot |
Graded tomato release release
One crate per 50
| Parameter | Accepted | |
|---|---|---|
| Out-of-grade fruit in crate | ≤ 10 % | critical: a failure holds the lot |
| Crate net weight | ≥ 20 kg | |
| Firmness and uniform colour | pass / fail |
Results travel in run.completed (quality) and a hold in lot.hold_changed.
Example messages
1. You send a consignment
POST /api/v1/consignments. Here as toll work (the sender keeps ownership and pays for processing); leave out mode to sell the goods to the factory.
{
"reference_no": "VAB-26-7",
"source": "society_api",
"kind": "value_addition",
"mode": "toll",
"sender": {
"external_system": "your-system",
"society_id": 39,
"name": "Example Farmers Co-operative"
},
"item": {
"code": "TOMATO-FRESH"
},
"declared_qty": 1000,
"unit": "kg",
"dispatched_at": "2026-11-15T08:10:00+03:00",
"lots": [
{
"lot_no": "LOT-001",
"qty": 1000
}
]
}
2. You receive the results
Webhook run.completed, for 1,000 kg in (the middle of each yield range). Main products and co-products carry their grade when the item is one of a graded family; quality carries the checks recorded on the run.
{
"type": "run.completed",
"data": {
"reference_no": "VAB-26-7",
"work_order_ref": "WO-26-0042",
"item": "TOMATO-GRADE1",
"completed_at": "2026-11-16T17:30:00+03:00",
"outturn_no": "LOT-…",
"yield_pct": 60,
"outputs": [
{
"item": "TOMATO-GRADE1",
"grade": "GRADE1",
"role": "main",
"qty": 600,
"unit": "kg",
"lot_no": "LOT-…",
"yield_flag": null,
"bags": null,
"bag_unit": null,
"packets": null
},
{
"item": "TOMATO-GRADE2",
"grade": "GRADE2",
"role": "co_product",
"qty": 225,
"unit": "kg",
"lot_no": "LOT-…",
"yield_flag": null,
"bags": null,
"bag_unit": null,
"packets": null
},
{
"item": "TOMATO-PROCESSING",
"grade": null,
"role": "by_product",
"qty": 125,
"unit": "kg",
"lot_no": "LOT-…",
"yield_flag": null,
"bags": null,
"bag_unit": null,
"packets": null
},
{
"item": "WASTE",
"grade": null,
"role": "waste",
"qty": 30,
"unit": "kg",
"lot_no": "LOT-…",
"yield_flag": null,
"bags": null,
"bag_unit": null,
"packets": null
}
],
"quality": []
}
}
Before and after the run you also receive consignment.received (weighed in), and then statement.issued, sale.proceeds or invoice.issued and payment.recorded. See Connecting a supplier or society system.
