add_shipping_zone_method
Add a shipping method (flat_rate, free_shipping, or local_pickup) to a specific WooCommerce zone. Provide zone ID and method type to attach it for later rate configuration.
Instructions
Add a shipping method to a zone. Valid method_id values: 'flat_rate', 'free_shipping', 'local_pickup'. Configure rates via settings after adding.
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": {
"zone_id": "<zone_id>",
"method_id": "<method_id>"
},
"name": "add_shipping_zone_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Comma-separated fields to return in response | |
| zone_id | Yes | Shipping zone ID | |
| method_id | Yes | Shipping method type |