{
"credit_note": {
"lago_id": "5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba",
"sequential_id": 2,
"number": "LAG-1234-CN2",
"lago_invoice_id": "5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba",
"invoice_number": "LAG-1234",
"issuing_date": "2022-12-06",
"credit_status": "available",
"refund_status": "pending",
"reason": "other",
"description": "Free text",
"currency": "EUR",
"total_amount_cents": 120,
"total_amount_currency": "EUR",
"credit_amount_cents": 100,
"credit_amount_currency": "EUR",
"refund_amount_cents": 0,
"refund_amount_currency": "EUR",
"balance_amount_cents": 100,
"balance_amount_currency": "EUR",
"vat_amount_cents": 20,
"vat_amount_currency": "EUR",
"sub_total_vat_excluded_amount_cents": 100,
"sub_total_vat_excluded_amount_currency": "EUR",
"coupons_adjustement_amount_cents": 0,
"created_at": "2022-10-06 09:52:00",
"updated_at": "2022-10-06 09:52:00",
"file_url": "https://getlago.com/credit_note/file",
"items": [
{
"lago_id": "5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba",
"amount_cents": 100,
"amount_currency": "EUR",
"fee": {
"lago_id": "5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba",
"item": {
"type": "charge",
"code": "user_seats",
"name": "User Seats"
},
"amount_cents": 100,
"amount_currency": "EUR",
"vat_amount_cents": 20,
"vat_amount_currency": "EUR",
"total_amount_cents": 120,
"total_amount_currency": "EUR",
"units": 12.6,
"events_count": 10
}
}
]
}
}
Attributes
object
Hide object
Hide object
string
required
The credit note unique identifier, created by Lago.
integer
required
The sequential identifier of the credit note, specifically scoped on the associated invoice. It provides a unique numerical identifier for the credit note within the context of the invoice.
string
required
The credit note unique number.
string
required
The invoice unique number, related to the credit note.
string
required
The date of creation of the credit note. It follows the ISO 8601 date format and provides the specific date when the credit note was created.
string
required
The reason of the credit note creation. Possible values are
duplicated_charge, product_unsatisfactory, order_change, order_cancellation, fraudulent_charge or other.string
The status of the credit portion of the credit note. It indicates the current state or condition of the credit amount associated with the credit note. The possible values for this field are:
-
available: this status indicates that an amount remains available for future usage. The credit can be applied towards future transactions or invoices. -
consumed: this status indicates that the credit amount has been fully consumed. The remaining amount is 0, indicating that the credit has been utilized in its entirety. -
voided: this status indicates that the remaining amount of the credit cannot be used any further. The credit has been voided and is no longer available for application or redemption.
string
The status of the refund portion of the credit note. It indicates the current state or condition of the refund associated with the credit note. The possible values for this field are:
-
pending: this status indicates that the refund is pending execution. The refund request has been initiated but has not been processed or completed yet. -
succeeded: this status indicates that the refund has been successfully executed. The refund amount has been processed and returned to the customer or the designated recipient. -
failed: this status indicates that the refund failed to execute. The refund request encountered an error or unsuccessful processing, and the refund amount could not be returned.
string
required
The currency of the credit note.
integer
required
The total amount of the credit note, expressed in cents.
string
required
The currency of the total amount of the credit note.
integer
required
The credited amount of the credit note, expressed in cents.
string
required
credit_amount_currency.
integer
required
The refunded amount of the credit note, expressed in cents.
string
required
The currency of the total refunded amount of the credit note.
integer
required
The remaining credit note amount, expressed in cents.
string
required
The currency of the total remaining amount of the credit note.
integer
required
The tax amount of the credit note, expressed in cents.
string
required
The currency of the tax amount of the credit note.
integer
required
The subtotal of the credit note excluding any applicable taxes, expressed in cents.
string
required
The currency of the subtotal amount of the credit note, excluding any applicable taxes.
integer
required
The pro-rated amount of the coupons applied to the source invoice.
string
required
The date when the credit note was last updated. It is expressed in Coordinated Universal Time (UTC).
string
The PDF file of the credit note.
array
Show items
Show items
string
required
The credit note’s item unique identifier, created by Lago.
integer
required
The credit note’s item amount, expressed in cents.
string
required
The credit note’s item currency.