lago_id |
String |
Unique identifier assigned to the fee within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the fee’s record within the Lago system. |
|
sequential_id |
Integer |
This ID helps in uniquely identifying and organizing the invoices associated with a specific customer. It provides a sequential numbering system specific to the customer, allowing for easy tracking and management of invoices within the customer's context. |
|
number |
String |
The unique number assigned to the invoice. This number serves as a distinct identifier for the invoice and helps in differentiating it from other invoices in the system. |
|
issuing_date |
Date |
The date when the invoice was issued. It is provided in the ISO 8601 date format. |
|
payment_due_date |
Date |
The payment due date for the invoice, specified in the ISO 8601 date format. |
[optional] |
net_payment_term |
Integer |
The net payment term, expressed in days, specifies the duration within which a customer is expected to remit payment after the invoice is finalized. |
[optional] |
invoice_type |
String |
The type of invoice issued. Possible values are `subscription`, `one-off` or `credit`. |
|
status |
String |
The status of the invoice. It indicates the current state of the invoice and can have two possible values: - `draft`: the invoice is in the draft state, waiting for the end of the grace period to be finalized. During this period, events can still be ingested and added to the invoice. - `finalized`: the invoice has been issued and finalized. In this state, events cannot be ingested or added to the invoice anymore. |
|
payment_status |
String |
The status of the payment associated with the invoice. It can have one of the following values: - `pending`: the payment is pending, waiting for payment processing in Stripe or when the invoice is emitted but users have not updated the payment status through the endpoint. - `succeeded`: the payment of the invoice has been successfully processed. - `failed`: the payment of the invoice has failed or encountered an error during processing. |
|
currency |
Currency |
|
|
fees_amount_cents |
Integer |
The total sum of fees amount in cents. It calculates the cumulative amount of all the fees associated with the invoice, providing a consolidated value. |
|
coupons_amount_cents |
Integer |
The total sum of all coupons discounted on the invoice. It calculates the cumulative discount amount applied by coupons, expressed in cents. |
|
credit_notes_amount_cents |
Integer |
The total sum of all credit notes discounted on the invoice. It calculates the cumulative discount amount applied by credit notes, expressed in cents. |
|
sub_total_excluding_taxes_amount_cents |
Integer |
Subtotal amount, excluding taxes, expressed in cents. This field depends on the version number. Here are the definitions based on the version: - Version 1: is equal to the sum of `fees_amount_cents`, minus `coupons_amount_cents`, and minus `prepaid_credit_amount_cents`. - Version 2: is equal to the `fees_amount_cents`. - Version 3: is equal to the `fees_amount_cents`, minus `coupons_amount_cents` |
|
taxes_amount_cents |
Integer |
The sum of tax amount associated with the invoice, expressed in cents. |
|
sub_total_including_taxes_amount_cents |
Integer |
Subtotal amount, including taxes, expressed in cents. This field depends on the version number. Here are the definitions based on the version: - Version 1: is equal to the `total_amount_cents`. - Version 2: is equal to the sum of `fees_amount_cents` and `taxes_amount_cents`. - Version 3: is equal to the sum `sub_total_excluding_taxes_amount_cents` and `taxes_amount_cents` |
|
prepaid_credit_amount_cents |
Integer |
The total sum of all prepaid credits discounted on the invoice. It calculates the cumulative discount amount applied by prepaid credits, expressed in cents. |
|
total_amount_cents |
Integer |
The sum of the amount and taxes amount on the invoice, expressed in cents. It calculates the total financial value of the invoice, including both the original amount and any applicable taxes. |
|
version_number |
Integer |
|
|
file_url |
String |
Contains the URL that provides direct access to the invoice PDF file. You can use this URL to download or view the PDF document of the invoice |
[optional] |
customer |
InvoiceObjectCustomer |
|
[optional] |
metadata |
Array<InvoiceMetadataObject> |
|
[optional] |
applied_taxes |
Array<InvoiceAppliedTaxObject> |
|
[optional] |
credits |
Array<CreditObject> |
|
[optional] |
fees |
Array<FeeObject> |
|
[optional] |
subscriptions |
Array<SubscriptionObject> |
|
[optional] |