Change / upgrade service product
change_contract_productUpgrade or downgrade a contract product to a different product, generating a pro-rata invoice or credit note. Use dry_run to preview billing impact before making changes.
Instructions
Upgrade or downgrade a contract product to a different product (with pro-rata invoice/credit note). Set dry_run=true first to preview the billing impact without changing anything.
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": {
"contract_id": "<contract_id>",
"contract_product_id": "<contract_product_id>",
"new_product_id": "<new_product_id>"
},
"name": "change_contract_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | No | Custom price override | |
| dry_run | No | Preview only — nothing is written (default false) | |
| quantity | No | ||
| contract_id | Yes | Contract UUID | |
| refund_source | No | 0 original source, 1 wallet | |
| new_product_id | Yes | New product UUID | |
| contract_product_id | Yes | Contract product UUID | |
| billing_cycle_months | No | ||
| use_current_due_date | No | Keep the existing next due date (default true) |