Usage-based charges can be either charged in advance or in arrears
You have the flexibility to define the nature of charges associated with your products or services. Specifically, you can
determine whether a charge has to be paid in arrears (at the end of the period), or in advance (immediately on event ingestion).
Charges settled in arrears are invoiced at the end of the billing period, based
on the actual usage during that period. This suits usage types like storage, API
calls, or compute, where it is more practical to wait until the end of the
period before billing. By default, all charges are billed in arrears.
Dashboard
API
Set a charge as invoiced in arrears from the user interface, where you can
customize the invoice cadence.
Define a charge paid in arrears
Set pay_in_advance to false on a charge to bill it in arrears:
Charges paid in advance are invoiced immediately when usage changes. Use this
when you need to bill a customer instantly for a usage-based action, such as
adding a user seat or an integration.
Dashboard
API
Set a charge as invoiced in advance from the user interface, where you
can customize the invoice cadence.
Define a charge paid in advance
Set pay_in_advance to true on a charge to bill it in advance: