payware_products_update_schedule
Updates an existing product price schedule by reading it first to preserve omitted fields. Use it to change dates, discounts, corrections, or descriptions; Premium plan only.
Instructions
[Merchant] Update an existing price schedule. Only provide fields you want to change. The tool reads the schedule (and the product's time zone) first and sends it whole: the server resets a field a partial update leaves out (the discount to 0%, the dates to today), a server defect. Premium (PRM) plan only: the server answers 403 on any other plan (for an ISV, the merchant's plan).
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>",
"scheduleId": "<scheduleId>"
},
"name": "payware_products_update_schedule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dateTo | No | Schedule end date (YYYY-MM-DD format) | |
| dateFrom | No | Schedule start date (YYYY-MM-DD format) | |
| partnerId | No | Merchant partner ID (uses PAYWARE_PARTNER_ID env var as default) | partner_12345 |
| productId | Yes | Product identifier (starts with 'pr') | |
| privateKey | No | RSA private key for authentication (uses environment-specific private key as default) | |
| scheduleId | Yes | Schedule identifier | |
| useSandbox | No | Use sandbox environment | |
| description | No | Schedule description | |
| correctionType | No | Price correction method | |
| correctionValue | No | Correction value (positive number with max 2 decimals) | |
| priceCorrection | No | Price correction direction |