Reprice the original term of a contract
defrr_reprice_contractUse when the contract's ORIGINAL term (its first term, before any renewal) was priced wrong and needs correcting, whether too high (a credit note) or too low (an additional invoice). Renewals keep their own prices; to correct a renewal use defrr_reprice_renewal. 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>",
"correctedPrice": "<correctedPrice>"
},
"name": "defrr_reprice_contract"
}
}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. | |
| 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 original 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 (a contract of 12,000 a year that becomes 24,000 from month 3 is billed 10,000 more, not 12,000). Leave it out to correct the price from the start of the 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 original term should have cost, in the schedule's currency. Lower than its current price gives a credit; higher gives an additional invoice. |