payware_products_update_schedule
Updates an existing Payware product price schedule by applying only the fields you provide and preserving omitted values; requires a Premium merchant plan.
Instructions
[Merchant] Update an existing price schedule. Only provide the fields you want to change: payware keeps every stored value the request leaves out. With neither dateFrom nor dateTo the schedule's period stays as stored; with one of them the other is worked out as on create (dateFrom alone: the period runs one month from it; dateTo alone: it starts one month before dateTo, or today if that is later), and a start before today is refused (ERR_INVALID_ACTIVE_FROM_DATE). 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 |