Set a shipment's free-time terms
set_shipment_free_timeChanges data: sets the demurrage and detention free days of one shipment, as the person who connected this app, and records it in the organization's audit log. They replace what the carrier's terms or an email's notice said for this shipment and outrank both from then on, so use it only when the user gives the terms or asks to correct them, and say what will change before calling it. Only the arguments you send change; null clears one, and the shipment then follows the carrier's terms or the notice again. basis says whether days are counted as "calendar" or "working" days and is kept only while a day count is set. It changes this shipment only: terms for every shipment of a carrier are set in Trackberry's settings. The answer is the shipment's free-time summary after the change and changes, each changed field with its old from and new to; sending what the shipment already has changes nothing, so it is safe to repeat. 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>"
},
"name": "set_shipment_free_time"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| basis | No | How the days are counted: "calendar" or "working" days. Kept only while a day count is set. | |
| shipment_id | Yes | A shipment id such as "shp_123", as returned by search_shipments. | |
| demurrage_days | No | Free days before demurrage starts, 0 to 90, or null to follow the carrier's terms or the notice. | |
| detention_days | No | Free days before detention starts, 0 to 90, or null to follow the carrier's terms or the notice. |