Orders and contracts
Paid separates what you sell from what each customer agreed to. Your catalog of products, prices, rate cards and plans is the same for everyone and bills no one. An order is a deal with one customer: which prices they pay, from when to when, and on what terms. Nothing is billed until an order puts it on a customer and you activate it.
Understand orders and contracts to:
- Model a deal from your catalog, with its negotiated terms alongside it.
- Decide where each term lives: a discount, a minimum, a prepayment or a custom rate.
- Change a running deal safely, and always be able to explain a past invoice.
Catalog and deals
An order holds lines, each pointing at a price or rate card, and sets the term (startsAt to the exclusive endsAt) and the billingCycle. Self-serve products usually build orders from a plan in one step. Sales-led deals usually put prices on the order directly, with the negotiated terms sent alongside.
Where a negotiated term lives
Negotiated pricing and commits sent with the order are created with it, so they exist before its first invoice.
History is never rewritten
Every amount on every invoice can be traced back to what produced it, because nothing that billed is ever edited in place:
- Prices don’t change. To change a rate, you create a new price, or a new rate card version. Each order line keeps the rate card version it pinned until a migration moves it to the new one.
- Meters don’t change what they measure. To bill something else, you create a new meter.
- An active order changes only through an amendment. You preview the exact proration first, then apply exactly what you previewed. Ended lines stay on the order.
- Issued invoices don’t change. Usage that arrives late is added to the next invoice as an adjustment.
Labels are the exception. You can update a name or displayName at any time, and the new label applies to invoices issued afterwards.
The life of an order
A customer can have several active orders, but no two can price the same meter over the same dates, so no usage is ever billed twice.
How it bills
A Lucerne subscriber on the Base plan, at $8.00 a month, upgrades to Pro, at $20.00 a month, on 16 November. The order is amended with a changePlan change, prorated by day. November has 30 days, and 16 to 30 November is 15 days including the day of the change:
The Base lines stay on the order, ended on 16 November, so the order still shows what the subscriber was billed before the change.