legal_put_shop_withdrawal
Configure legally required WooCommerce withdrawal settings, including labels, emails, links, and period, while leaving unspecified keys unchanged and rejecting invalid values.
Instructions
Change the withdrawal function settings; only the keys given change, an invalid value is a 400 and nothing is written. core_feature switches WooCommerce's own withdrawal feature (409 below WooCommerce 11.1). The two labels are legally prescribed: change them only to the wording the law requires.
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": "<site>"
},
"name": "legal_put_shop_withdrawal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site id (see list_sites) | |
| emails | No | Emails that carry the withdrawal link | |
| footer | No | Highlighted link at the end of every page | |
| enabled | No | cvrt-legal completes WooCommerce's withdrawal function | |
| link_label | No | Label of the function (prescribed wording) | |
| item_picker | No | Item list for 'specific items only' (order's own customer) | |
| account_menu | No | My Account menu item | |
| core_feature | No | WooCommerce's own withdrawal feature on/off | |
| single_email | No | Ask for the email address only once | |
| confirm_label | No | Label of the confirmation button (prescribed wording) | |
| order_actions | No | Withdrawal action on orders | |
| withdrawal_days | No | Withdrawal period in days (14-365) |