Invoicing
Modifying & Recalculating Invoices
4 min
amberflo allows you to modify and recalculate invoices that are still open in the current billing period or within the grace period you can apply changes such as new pricing plans or discounts, and the system will generate a new invoice based on the customer’s existing usage and any updated terms the updated invoice replaces the existing one, ensuring accuracy in billing before payment is finalized changing pricing plans from the customer details page, use the add new plan button in the pricing plan section to assign a new pricing plan this takes you to a configuration page where you can set the new plan terms when assigning a new plan, pay attention to the start date options selecting start of current billing period will apply the new pricing plan from the beginning of the current period, and the invoice will be recalculated accordingly if the invoice is still in the grace period , you will also see the option to apply the plan from the start of the previous billing period change pricing plans through the api this feature is also available at the api level see assign a pricing plan to a customer to recalculate the invoice, pass the starttimeinseconds parameter set to the beginning of the billing period when assigning the plan apply discounts on the customer details page, use the add button in the discounts section to assign a new discount just like with pricing plans, the start date options control how the discount is applied selecting start of current billing period will apply the discount from the beginning of the period, and the invoice will be updated if the invoice is in the grace period , you can select start of previous billing period to retroactively apply the discount and trigger recalculation add discounts through the api this feature is also available at the api level see add discount to a customer the starttimeinseconds parameter can be passed in at the start of the current billing period to add a discount to the current invoice