Amend an order
An amendment changes what an active order bills: adding or ending a line, changing a quantity, moving to a new price or plan, or changing the term. You preview it first and see every proration credit and charge it will cause, then apply exactly what you previewed. Amendments never edit the past: ended lines stay on the order, and every amendment stays readable, so you can always see why an invoice says what it says.
Use an amendment to:
- Sell more mid-term, such as extra seats or a credit top-up, with
updateQuantityoraddLine. - Reprice a customer by moving a line to a new price with
replacePrice, or the whole order to another plan withchangePlan. - Renew, extend or end early by moving the order’s
endsAtwithupdateTerm. - Add negotiated terms to a running order: new negotiated pricing entries and commits.
Amendments are in the orders=v1 private beta: send Paid-Beta: orders=v1 with each request.
How an amendment works
- Preview. You send the changes and the order
versionyou last read. Paid works out the resulting lines, the proration credits and charges, and what happens to each commit, and changes nothing. - Apply. You send the same changes with the preview’s
previewToken. They take effect immediately and the order’sversiongoes up by one. - Record. The amendment is saved with its changes, when it took effect and who made it. Lines it ended keep their history.
Amend an order
On 15 March 2027, Halberd LLP buys 10 more reviewer seats from Clausebase, taking its order from 25 seats to 35.
API
Dashboard
Preview the amendment with the changes and the order’s current version as expectedVersion:
The preview returns the order’s lines as they would be afterwards, a previewToken, and the money it moves in moneyEffects, each in integer minor units (-54839 is a credit of $548.39):
When the numbers are right, create the amendment with the same body and the previewToken:
The preview also returns commits, with what happens to each commit, negotiatedPricing as it will be after the changes, warnings for consequences to review, and, for a plan change, a direction of upgrade, downgrade or lateral.
Changes
One amendment can make several changes. They’re applied together, or not at all.
An amendment can also send commits (up to 10), the same array you send when you create an order. They start when the amendment takes effect. To change or end existing commits, use commits directly.
Negotiated pricing entries are never edited. To renegotiate a term, end its entry and add one with the same key from the same instant, in one amendment. Both dates must be no earlier than the end of the order’s last invoiced period, so issued invoices keep the terms they used.
Proration
proration is prorate by default. When a recurring charge changes mid-period, Paid credits the unused part of the old charge and charges the remaining part of the new one, by day, counting the day the amendment takes effect. Each is rounded half-up to the minor unit once, on its invoice line. Set proration: "none" to change the lines without any credit or charge for the current period.
Usage isn’t prorated: it’s billed for what was used before and after the change. One-time charges are never prorated.
How it bills
Halberd’s reviewer seats are $40.00 each a month, on a monthly cycle. The amendment takes effect on 15 March, so 17 of March’s 31 days remain (15 to 31 March, counting the 15th):
These are the two moneyEffects in the preview, and both land on the nextInvoice.
Commits and term changes
Changing the term changes the commits on the order:
- Shortening the order ends each commit on the new end date. Its
amountkeeps what was committed, andproratedAmountholds that amount prorated by day, kept exact rather than rounded. An invoiced minimum is then trued up against the exact prorated amount, rounded half-up once on the true-up line. - Extending the order leaves its commits unchanged, with the same amount and dates. Add a commit for the extra time in the same amendment if the deal has one.
The preview lists each commit’s outcome as prorated (with its new amount, an exact decimal string in minor units), unchanged or added, and warns when an extension leaves part of the new term without a commit the original term had.
Two people, one order
expectedVersion makes sure an amendment is based on the order as it is now. If someone else amended the order after you read it, your preview or amendment fails and nothing changes. A previewToken works the same way: if the order changed between your preview and your amendment, the amendment fails. In both cases, preview again and apply the new preview.
If billing can’t be reached, the preview or amendment returns 503 and nothing changes. Retry it.
Read the history
List amendments to see every change to an order, newest first, or retrieve one. Each records its changes, effectiveAt, the order’s versionAfter, and its source:
Amendments take effect when you apply them. They can’t be scheduled for a future date, and can’t be undone: to reverse one, apply another.