Set a shipment's GGN
set_shipment_ggnChanges data: sets one GGN (the grower's 13-digit number) for a whole shipment, as the person who connected this app, and records it in the organization's audit log. It replaces the GGN stored on the shipment and is written into every packing line that has no GGN, now and after every later packing list is read; lines that already have a GGN keep theirs, so a load with several growers stays correct. Use it only when the user gives the GGN or asks to fix the missing-GGN check, and say what will change before calling it. Setting the GGN the shipment already has, with no line left to fill, changes nothing, so it is safe to repeat. The answer gives ggn, previous_ggn and filled_lines. For one GGN on chosen lines use set_packing_line_values. Get the shipment_id from search_shipments.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"shipment_id": "<shipment_id>",
"ggn": "<ggn>"
},
"name": "set_shipment_ggn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ggn | Yes | The grower's GGN, 13 digits (spaces and dashes are ignored). | |
| shipment_id | Yes | A shipment id such as "shp_123", as returned by search_shipments. |