Confirm a shipment's freight quote
confirm_shipmentConfirm a shipment's freight quote. Confirms the shipment as you saw it, like the Confirm button in the portal. Only shipments with status PENDING_CONFIRMATION can be confirmed (otherwise 409 shipment_not_decidable). Confirming a shipment doesn't charge your wallet. It creates an amount due that you pay separately. Needs the shipments:write permission.
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": {
"id": "<id>",
"version": "<version>"
},
"name": "confirm_shipment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The record's id | |
| version | Yes | The shipment's version from the shipment details. If the shipment changed since, you get 409 shipment_changed: read it again and confirm the new version | |
| idempotencyKey | No | Make up a new unique value for each new action; reuse the same value only when retrying the same action. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| replayed | No | true when this is the saved result of an earlier call with the same idempotencyKey |