Prepare cash on delivery order
prepare_cod_orderPrepare a cash-on-delivery or pay-at-pickup order without placing it. Returns the summary, terms link, confirmation question and a confirmation token valid for about ten minutes.
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": {
"payment_method_id": "<payment_method_id>"
},
"name": "prepare_cod_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | No | Contact and delivery address entered by the shopper. Use the two-letter country code. | |
| cart_key | No | Guest carts only; omit it when the account is connected. Private tool input. Copy the key from an earlier tool result, the cart_key query parameter of a payment link, or the last segment of a /shop/mcp-checkout/ link already in the chat. Keep it out of shopper replies. | |
| address_id | No | ||
| carrier_id | No | ||
| gls_point_id | No | ||
| payment_method_id | Yes |