Value chains › Fresh Produce
Watermelon pack house
Watermelons are received from growers, weighed, checked for ripeness and defects, and graded into Class I and Class II by weight and appearance; cracked or sunburnt fruit is sold as rejects for juice or feed.
agri.watermelon.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 |
|---|---|---|---|
| Watermelons (field run) | WATERMELON-FRESH | kg | 0807.11 |
What the factory makes
Watermelon grading
| In | Code | Share |
|---|---|---|
| Watermelons (field run) | WATERMELON-FRESH | 100 % |
| Out | Code | Kind | Yield |
|---|---|---|---|
| Watermelons Class I | WATERMELON-CLASS1 | Main product | 55–75 % |
| Watermelons Class II | WATERMELON-CLASS2 | Co-product | 15–30 % |
| Watermelon rejects (cracked, sunburnt, undersize) | WATERMELON-REJECT | By-product | 5–15 % |
| Waste | WASTE | Waste | 0–3 % |
Steps: Receiving and weighing → Cleaning → Ripeness and defect check → Grading by weight class → Loading
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 |
|---|---|---|---|
| Watermelons Class I | WATERMELON-CLASS1 | kg | 0807.11 |
| Watermelons Class II | WATERMELON-CLASS2 | kg | 0807.11 |
| Watermelon rejects (cracked, sunburnt, undersize) | WATERMELON-REJECT | kg |
Quality checks
Watermelon intake intake
Cut two fruits per grower lot
| Parameter | Accepted | |
|---|---|---|
| Flesh soluble solids (confirm the buyer's minimum) | ≥ 9 °Bx | |
| Hollow heart and white heart | pass / fail | |
| Cracks, sunburn and rots | ≤ 10 % | critical: a failure holds the lot |
Graded watermelon release release
Ten fruits per load
| Parameter | Accepted | |
|---|---|---|
| Fruit weight | ≥ 2 kg | |
| Weight class | text | |
| Out-of-grade fruit | ≤ 10 % | critical: a failure holds the lot |
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": "WATERMELON-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": "WATERMELON-CLASS1",
"completed_at": "2026-11-16T17:30:00+03:00",
"outturn_no": "LOT-…",
"yield_pct": 65,
"outputs": [
{
"item": "WATERMELON-CLASS1",
"grade": "CLASS1",
"role": "main",
"qty": 650,
"unit": "kg",
"lot_no": "LOT-…",
"yield_flag": null,
"bags": null,
"bag_unit": null,
"packets": null
},
{
"item": "WATERMELON-CLASS2",
"grade": "CLASS2",
"role": "co_product",
"qty": 225,
"unit": "kg",
"lot_no": "LOT-…",
"yield_flag": null,
"bags": null,
"bag_unit": null,
"packets": null
},
{
"item": "WATERMELON-REJECT",
"grade": null,
"role": "by_product",
"qty": 100,
"unit": "kg",
"lot_no": "LOT-…",
"yield_flag": null,
"bags": null,
"bag_unit": null,
"packets": null
},
{
"item": "WASTE",
"grade": null,
"role": "waste",
"qty": 15,
"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.
