Fees
A fee is a line item in an invoice.
There are few types of fees:
- Subscription fees that correspond to the base amount of the plan;
- Charge fees that correspond to usage-based charges (i.e. the costs associated with each billable metric), this fee can be linked to a true-up fee;
- Add-on fees that correspond to a line item appearing in a one off invoice; and
- Credit that correspond to line item appearing in credit notes.
Information about fees includes (but is not limited to):
- Type;
- Amount;
- Currency; and
- Taxes.
The fee object is embedded within an invoice or credit note object, making it retrievable on its own. This is illustrated below.:
Update fee payment status
The payment_status
of a fee can only be configured if lago_invoice_id
is
null
.
This option allows you to define the payment status of a fee yourself. The available options are: pending
, succeeded
, failed
, and refunded
.
Note that payment_status
is used to group fees with a succeeded
status into a specific invoice if regroup_paid_fee
is set to invoice
. Outside of this process, the payment_status
is for your internal use.
Delete a fee
The deletion of a fee can only be doable if lago_invoice_id
is null
.
This option allows you to delete a fee that is not linked to any invoice. Please refer to charge invoiceable or not for more details.