payware_products_update_product
Updates an existing Payware product by ID, reading it first and sending the full record so selected fields change while omitted fields remain intact.
Instructions
[Merchant] Update an existing product. Only provide the fields you want to change. The tool reads the product first and sends it whole: the server resets a field a partial update leaves out (active, shippable and quickPay to FALSE, type, time zone and time to live to defaults), a server defect.
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
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 pointing to external product image resource | |
| 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 |