Change a shipment's container, B/L or air waybill number
change_transport_referenceChanges data: replaces the container, B/L or air waybill number of one shipment, as the person who connected this app, and records it in the organization's audit log. It has large side effects, so tell the user what will happen and get their confirmation before calling it, and call it only when they ask to correct the number. The new number is checked first (a container number must pass its ISO 6346 check digit, an air waybill its check digit) and nothing changes if it is refused. Then: the number is marked as typed by a person, so documents can no longer overwrite it; if the shipment is being tracked, its registration with the carrier's tracking service is released and tracking starts again under the new number (not when its tracking was entered by hand or it is archived, and a shipment that was never tracked stays untracked, with tracking_restarted false: use start_tracking for that); the shipment's public tracking subscribers are emailed that the number changed; and its checks run again. Send transport_type (ocean or air) only when the mode changes too. Safe to repeat: the number the shipment already has changes nothing and sends nothing, with changed false. Giving a number to a shipment that has never had one is billed once, as in Trackberry. For other fields, such as the reference, ETA or consignor, use update_shipment instead. Answers with the shipment, previous_transport_reference, transport_reference and tracking_restarted. 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>",
"transport_reference": "<transport_reference>"
},
"name": "change_transport_reference"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shipment_id | Yes | A shipment id such as "shp_123", as returned by search_shipments. | |
| transport_type | No | "ocean" or "air". Only when the shipment changes mode; otherwise it keeps its own. | |
| transport_reference | Yes | The new container number (like MSCU1234566), bill of lading number or air waybill number (like 016-25645270). |