payware_products_update_product
Updates an existing product by changing only the fields you provide and keeping omitted values unchanged, including active-period and currency validation.
Instructions
[Merchant] Update an existing product. Only provide the fields you want to change: payware keeps every stored value the request leaves out. With neither activeFrom nor activeTo the active period stays as stored; with one of them the other is worked out as on create (activeFrom alone: the period runs one year from it; activeTo alone: it starts one year before activeTo, or today if that is later), and a start before today is refused (ERR_INVALID_ACTIVE_FROM_DATE).
Product Structure: š¦ PRODUCT METADATA: name, shortDescription, longDescription, sku, upc, shippable, active, shop š° PRODUCT DATA (prData object): type, regularPrice, currency, overlapPriority, timeToLive, activeFrom, activeTo, timeZone āļø PRODUCT OPTIONS (prOptions object): imageUrl, termsUrl, termsText
Changing currency of a product with delivery settings is refused, and nothing changes, rather than quietly changing what delivery costs (VG 2026-11-15): 409 ERR_PRODUCT_CURRENCY_HAS_SURCHARGES while the product has delivery surcharges (they are amounts in its current currency: clear them with payware_products_set_delivery, keeping the exclusions, change the currency, then enter them again in the new one), checked first; and 409 ERR_NO_DELIVERY_IN_CURRENCY for a shippable product whose shop's delivery table has no rows in the new currency, which would leave it deliverable nowhere (add them with payware_shops_set_delivery first).
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_update_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | No | Stock Keeping Unit (SKU) | |
| upc | No | Universal Product Code (UPC) | |
| name | No | Product recognizable name | |
| shop | No | Shop code | |
| active | No | Indicates if product can serve as payment source | |
| activeTo | No | Product active state ending date (YYYY-MM-DD format) | |
| currency | No | Price currency (3-character ISO code) | |
| imageUrl | No | URL of the product image, fetched and checked by payware on save: JPG or PNG, at most 600 KB, at least 300 px wide and at most four times as wide as it is high (1200 x 630 px, about 300 KB, recommended). Banks, the payment page and chat previews show it. | |
| termsUrl | No | URL pointing to external terms and conditions resource | |
| timeZone | No | Product state scheduling timezone (IANA format, e.g., 'Europe/Sofia') | |
| partnerId | No | Merchant partner ID (uses PAYWARE_PARTNER_ID env var as default) | partner_12345 |
| productId | Yes | Product identifier to update (starts with 'pr') | |
| shippable | No | Indicates if product requires delivery address | |
| termsText | No | Terms and conditions text | |
| activeFrom | No | Product active state starting date (YYYY-MM-DD format) | |
| privateKey | No | RSA private key for authentication (uses environment-specific private key as default) | |
| timeToLive | No | Time allowed for product payment in seconds (60-2592000) | |
| useSandbox | No | Use sandbox environment | |
| productType | No | Type of product | |
| regularPrice | No | Product regular price as a decimal string. Zero or positive, at most 12 integer digits, and no more decimals than the currency's minor unit (0 for JPY, 2 for EUR, 3 for KWD, 8 for BTC). Returned as a string too. | |
| longDescription | No | Long product description | |
| overlapPriority | No | Priority when overlapping price schedules exist | |
| shortDescription | No | Short product description |