select_shipping_option
Select one of the shipping options returned by set_shipping_address. Binds the rate to the cart so the total includes shipping; call before execute_checkout so the hosted checkout opens pre-filled.
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": {
"site_id": "<site_id>",
"cart_id": "<cart_id>",
"option_id": "<option_id>"
},
"name": "select_shipping_option"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart_id | Yes | Cart ID | |
| site_id | Yes | Registered site ID | |
| option_id | Yes | option_id from cart.shipping_options |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| items | Yes | ||
| total | Yes | ||
| cartId | Yes | ||
| siteId | Yes | ||
| shipping | No | ||
| subtotal | Yes | ||
| shippingOptions | No | ||
| selectedShippingId | No |