payware_products_set_delivery
[Merchant] Replace a product's delivery overrides. Whatever you do not send is removed, so read them first with payware_products_get_delivery.
Instructions
[Merchant] Replace a product's delivery overrides. Whatever you do not send is removed, so read them first with payware_products_get_delivery.
Endpoint: PUT /products/{productId}/delivery
Each row is either {"country":"RO","excluded":true} (not delivered there; no surcharge) or {"country":"BG","excluded":false,"surchargePerUnit":"3.00"} (delivered, with an extra amount per unit in the product's currency). The product is useful here when it is shippable. Unknown product or one outside an ISV's shops: 404 ERR_MISSING_PRODUCT.
Needs a plan that can ship: Standard or Premium. A Basic (BSC) merchant is refused with 403 ERR_METHOD_NOT_ALLOWED_FOR_CURRENT_USER_PLAN. Changes are audit-logged.
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": {
"productId": "<productId>",
"countries": "<countries>"
},
"name": "payware_products_set_delivery"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| countries | Yes | The complete list of overrides, one row per country. Empty clears them | |
| productId | Yes | The product's ID: pr + 8 letters or digits, e.g. pr7e4rCToG | |
| useSandbox | No | Use the sandbox (the default) rather than production |