List a shipment's pre-allocations
list_preallocationsWho holds what on one shipment. preallocations lists every pre-allocation: boxes of one packing line set aside for a customer (allocatee), with the tentative unit_price per box, currency and value when it is priced, automation ({id, name}) when an automation made it rather than a person, and an id such as "pre_78". packing_lines lists every packing line on the shipment's pallets with its id such as "pln_5521", pallet, produce, variety, calibre, quality category, pack format, brand (label), ggn, comment, box_count, box_weight_kg, preallocated_boxes and available_boxes (what is still free; null when the line has no box count). Use it for "who is this container allocated to", "how many boxes of pallet 12 are free", and always before create_preallocation, update_preallocation or delete_preallocation, which need these ids, and before update_packing_line and set_packing_line_values, which correct a line. For free stock across shipments use query_stock.
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>"
},
"name": "list_preallocations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shipment_id | Yes | A shipment id such as "shp_123", as returned by search_shipments. |