This object represents a charge associated with a plan. Charges define the pricing for usage-based billable metrics.
Unique identifier of charge, created by Lago.
"1a901a90-1a90-1a90-1a90-1a901a901a90"
Unique identifier of the billable metric created by Lago.
"1a901a90-1a90-1a90-1a90-1a901a901a90"
Unique code identifying a billable metric.
"requests"
The date and time when the charge was created. It is expressed in UTC format according to the ISO 8601 datetime standard.
"2022-09-14T16:35:31Z"
Specifies the pricing model used for the calculation of the final fee. It can be any of the following values:
dynamic, graduated, graduated_percentage, package, percentage, standard, volume This field determines the billing timing for this specific usage-based charge. When set to true, the charge is due and invoiced immediately. Conversely, when set to false, the charge is due and invoiced at the end of each billing period.
true
This field specifies whether the charge should be included in a proper invoice. If set to false, no invoice will be issued for this charge. You can only set it to false when pay_in_advance is true.
true
This setting can only be configured if pay_in_advance is true and invoiceable is false.
This field determines whether and when the charge fee should be included in
the invoice. If null, no invoice will be issued for this charge fee.
If invoice, an invoice will be generated at the end of the period,
consolidating all charge fees with a succeeded payment status.
null, invoice "invoice"
Specifies whether a charge is prorated based on the remaining number of days in the billing period or billed fully.
true, the charge is prorated based on the remaining days in the current billing period.false, the charge is billed in full.false.false
The minimum spending amount required for the charge, measured in cents and excluding any applicable taxes. It indicates the minimum amount that needs to be charged for each billing period.
1200
List of all thresholds utilized for calculating the charge.
List of filters used to apply differentiated pricing based on additional event properties.
Unique code identifying the charge within the plan.
"api_requests_charge"
Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name.
"Setup"
All taxes applied to the charge.
The pricing unit applied to the charge.
Specifies whether the charge accepts a target wallet for prepaid credits deduction.
false
Unique identifier of the parent charge (if this is an override).
"1a901a90-1a90-1a90-1a90-1a901a901a90"