Reprice a renewal
defrr_reprice_renewalUse when a renewal was priced wrong and needs correcting, whether too high (a credit note) or too low (an additional invoice). For a new price the customer AGREED to from a given month (not an error), pass effectiveFrom. Returns the credit note or additional invoice, the revenue to reverse (price lowered) or catch up (price raised) for months already closed, and the corrected revenue month by month; direction says which. Costs 2 credits (refunded if it fails).
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": {
"schedule": "<schedule>",
"termIndex": "<termIndex>",
"correctedPrice": "<correctedPrice>"
},
"name": "defrr_reprice_renewal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schedule | Yes | The contract's terms. The first term needs a startDate; each later term (a renewal) starts the day after the previous one ends when endDateIncluded is true (the default), or on the day the previous one ends when it is false. | |
| termIndex | Yes | Which term: 1 is the first renewal, 2 the second, and so on. Only the latest renewal can be corrected for now, so give the position of the last term. | |
| effectiveFrom | No | Only for a new AGREED price that applies from a month on, rather than a pricing error: the first month (YYYY-MM, within the renewal's own term) at the new price. Earlier months keep the old rate and the credit note or additional invoice is just what the months from here on come to. Leave it out to correct the renewal's price from the start of its term. | |
| lockedThrough | No | The latest month already closed for changes, as YYYY-MM. Revenue in that month and earlier cannot be changed, so the correction is posted in the next month. Leave out or null if no month is closed. | |
| correctedPrice | Yes | What the renewal should have cost, in the schedule's currency. Lower than its current price gives a credit; higher gives an additional invoice. |