payware_products_get_delivery
[Merchant] Read a product's delivery overrides: the countries it is not delivered to and the countries where it costs extra.
Instructions
[Merchant] Read a product's delivery overrides: the countries it is not delivered to and the countries where it costs extra.
Endpoint: GET /products/{productId}/delivery
Warn the merchant when the answer carries noDeliveryInCurrency: true: the product is shippable, its shop has a delivery table, and none of it is in the product's currency, so it cannot be delivered anywhere until prices in that currency are added to the shop.
Answers {"productId":"pr...","countries":[{"country":"RO","excluded":true},{"country":"BG","excluded":false,"surchargePerUnit":"3.00"}]}. The surcharge is in the product's currency (so the product's currency cannot change while it has one: ERR_PRODUCT_CURRENCY_HAS_SURCHARGES). Any surcharge makes a quantity required when an institution processes the product (ERR_QUANTITY_REQUIRED). The overrides only narrow the shop's table: a surcharge on a country the shop does not list has no effect until the shop serves it.
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>"
},
"name": "payware_products_get_delivery"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| productId | Yes | The product's ID: pr + 8 letters or digits, e.g. pr7e4rCToG | |
| useSandbox | No | Use the sandbox (the default) rather than production |