Turn cash on delivery on or off
configure_cash_on_deliveryOffer (or stop offering) cash on delivery at checkout, optionally only for orders between min_order and max_order (major currency units). Works with no payment provider at all, so it is the quickest way to let a store take orders. Omitted limits keep their current value.
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>",
"enabled": "<enabled>"
},
"name": "configure_cash_on_delivery"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | Yes | Offer cash on delivery at checkout | |
| site_id | Yes | The site, from list_sites | |
| currency | No | The currency the limits are in. Required when the store currency was only inferred; must be the store currency | |
| max_order | No | Largest order that may pay on delivery. null = no maximum; omit to keep the current value. | |
| min_order | No | Smallest order (major currency units, e.g. 500 = ₹500) that may pay on delivery. null = no minimum; omit to keep the current value. | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. |