LAGO_URL="https://api.getlago.com"
API_KEY="__YOUR_API_KEY__"
curl --location --request GET "$LAGO_URL/api/v1/credit_notes?per_page=2&page=1" \
--header "Authorization: Bearer $API_KEY"
{
"credit_notes": [
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"billing_entity_code": "acme_corp",
"sequential_id": 2,
"number": "LAG-1234-CN2",
"lago_invoice_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"invoice_number": "LAG-1234",
"issuing_date": "2022-12-06",
"reason": "other",
"currency": "EUR",
"total_amount_cents": 120,
"taxes_amount_cents": 20,
"taxes_rate": 20,
"sub_total_excluding_taxes_amount_cents": 100,
"balance_amount_cents": 100,
"credit_amount_cents": 100,
"refund_amount_cents": 0,
"coupons_adjustment_amount_cents": 20,
"created_at": "2022-09-14T16:35:31Z",
"updated_at": "2022-09-14T16:35:31Z",
"credit_status": "available",
"refund_status": "pending",
"description": "Free text",
"file_url": "https://getlago.com/credit_note/file",
"items": [
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"amount_cents": 100,
"amount_currency": "EUR",
"fee": {
"amount_cents": 100,
"amount_currency": "EUR",
"taxes_amount_cents": 20,
"taxes_rate": 20,
"units": "0.32",
"precise_unit_amount": "312.5",
"total_aggregated_units": "0.32",
"total_amount_cents": 120,
"total_amount_currency": "EUR",
"pay_in_advance": true,
"invoiceable": true,
"payment_status": "pending",
"item": {
"type": "subscription",
"code": "startup",
"name": "Startup",
"lago_item_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"item_type": "Subscription",
"description": "Startup",
"invoice_display_name": "Setup Fee (SF1)",
"filter_invoice_display_name": "AWS eu-east-1",
"filters": {},
"grouped_by": {}
},
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"lago_charge_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"lago_charge_filter_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"lago_invoice_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"lago_true_up_fee_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"lago_true_up_parent_fee_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"lago_subscription_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"lago_customer_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"external_customer_id": "external_id",
"external_subscription_id": "external_id",
"precise_amount": "1.0001",
"precise_total_amount": "1.0212",
"taxes_precise_amount": "0.20123",
"events_count": 23,
"from_date": "2022-04-29T08:59:51Z",
"to_date": "2022-05-29T08:59:51Z",
"created_at": "2022-08-24T14:58:59Z",
"succeeded_at": "2022-08-24T14:58:59Z",
"failed_at": "2022-08-24T14:58:59Z",
"refunded_at": "2022-08-24T14:58:59Z",
"event_transaction_id": "transaction_1234567890",
"description": "Fee description",
"precise_coupons_amount_cents": "0.0",
"amount_details": {
"plan_amount_cents": 10000,
"graduated_ranges": [
{
"units": "10.0",
"from_value": 0,
"to_value": 10,
"flat_unit_amount": "1.0",
"per_unit_amount": "1.0",
"per_unit_total_amount": "10.0",
"total_with_flat_amount": "11.0"
}
],
"graduated_percentage_ranges": [
{
"units": "10.0",
"from_value": 0,
"to_value": 10,
"flat_unit_amount": "1.0",
"rate": "1.0",
"per_unit_total_amount": "10.0",
"total_with_flat_amount": "11.0"
}
],
"free_units": "10.0",
"paid_units": "40.0",
"per_package_size": 1000,
"per_package_unit_amount": "0.5",
"per_unit_total_amount": "10.0",
"units": "20.0",
"free_events": 10,
"rate": "1.0",
"paid_events": 20,
"fixed_fee_unit_amount": "1.0",
"fixed_fee_total_amount": "20.0",
"min_max_adjustment_total_amount": "20.0",
"per_unit_amount": "0.5",
"flat_unit_amount": "10.0"
},
"self_billed": false,
"applied_taxes": [
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"lago_tax_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"tax_name": "TVA",
"tax_code": "french_standard_vat",
"tax_rate": 20,
"tax_description": "French standard VAT",
"amount_cents": 2000,
"amount_currency": "USD",
"created_at": "2022-09-14T16:35:31Z",
"lago_fee_id": "1a901a90-1a90-1a90-1a90-1a901a901a90"
}
],
"pricing_unit_details": {
"lago_pricing_unit_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"pricing_unit_code": "credits",
"short_name": "CR",
"amount_cents": 200,
"precise_amount_cents": "200.0",
"unit_amount_cents": 100,
"precise_unit_amount": "100.0",
"conversion_rate": "0.5"
}
}
}
],
"applied_taxes": [
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"lago_tax_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"tax_name": "TVA",
"tax_code": "french_standard_vat",
"tax_rate": 20,
"tax_description": "French standard VAT",
"amount_cents": 2000,
"amount_currency": "USD",
"created_at": "2022-09-14T16:35:31Z",
"lago_credit_note_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"base_amount_cents": 100
}
],
"self_billed": false,
"error_details": [
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"error_code": "tax_error",
"details": {}
}
]
}
],
"meta": {
"current_page": 2,
"total_pages": 4,
"total_count": 70,
"next_page": 3,
"prev_page": 1
}
}This endpoint list all existing credit notes.
LAGO_URL="https://api.getlago.com"
API_KEY="__YOUR_API_KEY__"
curl --location --request GET "$LAGO_URL/api/v1/credit_notes?per_page=2&page=1" \
--header "Authorization: Bearer $API_KEY"
{
"credit_notes": [
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"billing_entity_code": "acme_corp",
"sequential_id": 2,
"number": "LAG-1234-CN2",
"lago_invoice_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"invoice_number": "LAG-1234",
"issuing_date": "2022-12-06",
"reason": "other",
"currency": "EUR",
"total_amount_cents": 120,
"taxes_amount_cents": 20,
"taxes_rate": 20,
"sub_total_excluding_taxes_amount_cents": 100,
"balance_amount_cents": 100,
"credit_amount_cents": 100,
"refund_amount_cents": 0,
"coupons_adjustment_amount_cents": 20,
"created_at": "2022-09-14T16:35:31Z",
"updated_at": "2022-09-14T16:35:31Z",
"credit_status": "available",
"refund_status": "pending",
"description": "Free text",
"file_url": "https://getlago.com/credit_note/file",
"items": [
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"amount_cents": 100,
"amount_currency": "EUR",
"fee": {
"amount_cents": 100,
"amount_currency": "EUR",
"taxes_amount_cents": 20,
"taxes_rate": 20,
"units": "0.32",
"precise_unit_amount": "312.5",
"total_aggregated_units": "0.32",
"total_amount_cents": 120,
"total_amount_currency": "EUR",
"pay_in_advance": true,
"invoiceable": true,
"payment_status": "pending",
"item": {
"type": "subscription",
"code": "startup",
"name": "Startup",
"lago_item_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"item_type": "Subscription",
"description": "Startup",
"invoice_display_name": "Setup Fee (SF1)",
"filter_invoice_display_name": "AWS eu-east-1",
"filters": {},
"grouped_by": {}
},
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"lago_charge_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"lago_charge_filter_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"lago_invoice_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"lago_true_up_fee_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"lago_true_up_parent_fee_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"lago_subscription_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"lago_customer_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"external_customer_id": "external_id",
"external_subscription_id": "external_id",
"precise_amount": "1.0001",
"precise_total_amount": "1.0212",
"taxes_precise_amount": "0.20123",
"events_count": 23,
"from_date": "2022-04-29T08:59:51Z",
"to_date": "2022-05-29T08:59:51Z",
"created_at": "2022-08-24T14:58:59Z",
"succeeded_at": "2022-08-24T14:58:59Z",
"failed_at": "2022-08-24T14:58:59Z",
"refunded_at": "2022-08-24T14:58:59Z",
"event_transaction_id": "transaction_1234567890",
"description": "Fee description",
"precise_coupons_amount_cents": "0.0",
"amount_details": {
"plan_amount_cents": 10000,
"graduated_ranges": [
{
"units": "10.0",
"from_value": 0,
"to_value": 10,
"flat_unit_amount": "1.0",
"per_unit_amount": "1.0",
"per_unit_total_amount": "10.0",
"total_with_flat_amount": "11.0"
}
],
"graduated_percentage_ranges": [
{
"units": "10.0",
"from_value": 0,
"to_value": 10,
"flat_unit_amount": "1.0",
"rate": "1.0",
"per_unit_total_amount": "10.0",
"total_with_flat_amount": "11.0"
}
],
"free_units": "10.0",
"paid_units": "40.0",
"per_package_size": 1000,
"per_package_unit_amount": "0.5",
"per_unit_total_amount": "10.0",
"units": "20.0",
"free_events": 10,
"rate": "1.0",
"paid_events": 20,
"fixed_fee_unit_amount": "1.0",
"fixed_fee_total_amount": "20.0",
"min_max_adjustment_total_amount": "20.0",
"per_unit_amount": "0.5",
"flat_unit_amount": "10.0"
},
"self_billed": false,
"applied_taxes": [
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"lago_tax_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"tax_name": "TVA",
"tax_code": "french_standard_vat",
"tax_rate": 20,
"tax_description": "French standard VAT",
"amount_cents": 2000,
"amount_currency": "USD",
"created_at": "2022-09-14T16:35:31Z",
"lago_fee_id": "1a901a90-1a90-1a90-1a90-1a901a901a90"
}
],
"pricing_unit_details": {
"lago_pricing_unit_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"pricing_unit_code": "credits",
"short_name": "CR",
"amount_cents": 200,
"precise_amount_cents": "200.0",
"unit_amount_cents": 100,
"precise_unit_amount": "100.0",
"conversion_rate": "0.5"
}
}
}
],
"applied_taxes": [
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"lago_tax_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"tax_name": "TVA",
"tax_code": "french_standard_vat",
"tax_rate": 20,
"tax_description": "French standard VAT",
"amount_cents": 2000,
"amount_currency": "USD",
"created_at": "2022-09-14T16:35:31Z",
"lago_credit_note_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"base_amount_cents": 100
}
],
"self_billed": false,
"error_details": [
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"error_code": "tax_error",
"details": {}
}
]
}
],
"meta": {
"current_page": 2,
"total_pages": 4,
"total_count": 70,
"next_page": 3,
"prev_page": 1
}
}LAGO_URL="https://api.getlago.com"
API_KEY="__YOUR_API_KEY__"
curl --location --request GET "$LAGO_URL/api/v1/credit_notes?per_page=2&page=1" \
--header "Authorization: Bearer $API_KEY"
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Page number.
1
Number of records per page.
20
Unique identifier assigned to the customer in your application.
"5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba"
Filter credit notes starting from a specific date.
"2022-07-08"
Filter credit notes up to a specific date.
"2022-08-09"
Search credit notes by id, number, customer name, customer external_id or customer email.
"Jane"
Filter credit notes by currency. Possible values ISO 4217 currency codes.
"EUR"
Filter credit notes by reasons. Possible values are product_unsatisfactory, order_change, order_cancellation, fraudulent_charge, duplicated_charge or other.
product_unsatisfactory, order_change, order_cancellation, fraudulent_charge, duplicated_charge, other Filter credit notes by credit status. Possible values are available, consumed or voided.
available, consumed, voided Filter credit notes by refund status. Possible values are pending, succeeded or failed.
pending, succeeded, failed Filter credit notes by their related invoice number.
"INV-001-002"
Filter credit notes of at least a specific amount. This parameter must be defined in cents to ensure consistent handling for all currency types.
9000
Filter credit notes up to a specific amount. This parameter must be defined in cents to ensure consistent handling for all currency types.
100000
Filter credit notes belonging to a self billed invoice. Possible values are true or false.
true
Filter credit notes by billing entity codes.
[
"billing_entity_code_1",
"billing_entity_code_2"
]Credit notes
Show child attributes
The credit note unique identifier, created by Lago.
"1a901a90-1a90-1a90-1a90-1a901a901a90"
The unique code of the billing entity associated with the credit note.
"acme_corp"
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.
2
The credit note unique number.
"LAG-1234-CN2"
Unique identifier assigned to the invoice that the credit note belongs to
"1a901a90-1a90-1a90-1a90-1a901a901a90"
The invoice unique number, related to the credit note.
"LAG-1234"
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.
"2022-12-06"
The reason of the credit note creation.
Possible values are duplicated_charge, product_unsatisfactory, order_change, order_cancellation, fraudulent_charge or other.
duplicated_charge, product_unsatisfactory, order_change, order_cancellation, fraudulent_charge, other "other"
The currency of the credit note.
AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BIF, BMD, BND, BOB, BRL, BSD, BWP, BYN, BZD, CAD, CDF, CHF, CLF, CLP, CNY, COP, CRC, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, ISK, JMD, JPY, KES, KGS, KHR, KMF, KRW, KYD, KZT, LAK, LBP, LKR, LRD, LSL, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRO, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SEK, SGD, SHP, SLL, SOS, SRD, STD, SZL, THB, TJS, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VND, VUV, WST, XAF, XCD, XOF, XPF, YER, ZAR, ZMW "EUR"
The total amount of the credit note, expressed in cents.
120
The tax amount of the credit note, expressed in cents.
20
The tax rate associated with this specific credit note.
20
The subtotal of the credit note excluding any applicable taxes, expressed in cents.
100
The remaining credit note amount, expressed in cents.
100
The credited amount of the credit note, expressed in cents.
100
The refunded amount of the credit note, expressed in cents.
0
The pro-rated amount of the coupons applied to the source invoice.
20
The date when the credit note was created. It is expressed in Coordinated Universal Time (UTC).
"2022-09-14T16:35:31Z"
The date when the credit note was last updated. It is expressed in Coordinated Universal Time (UTC).
"2022-09-14T16:35:31Z"
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.available, consumed, voided, "available"
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.pending, succeeded, failed, "pending"
The description of the credit note.
"Free text"
The PDF file of the credit note.
"https://getlago.com/credit_note/file"
Array of credit note's items.
Show child attributes
The credit note's item unique identifier, created by Lago.
"1a901a90-1a90-1a90-1a90-1a901a901a90"
The credit note's item amount, expressed in cents.
100
The credit note's item currency.
AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BIF, BMD, BND, BOB, BRL, BSD, BWP, BYN, BZD, CAD, CDF, CHF, CLF, CLP, CNY, COP, CRC, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, ISK, JMD, JPY, KES, KGS, KHR, KMF, KRW, KYD, KZT, LAK, LBP, LKR, LRD, LSL, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRO, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SEK, SGD, SHP, SLL, SOS, SRD, STD, SZL, THB, TJS, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VND, VUV, WST, XAF, XCD, XOF, XPF, YER, ZAR, ZMW "EUR"
The fee object related to the credit note item.
Show child attributes
The cost of this specific fee, excluding any applicable taxes.
100
The currency of this specific fee. It indicates the monetary unit in which the fee's cost is expressed.
AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BIF, BMD, BND, BOB, BRL, BSD, BWP, BYN, BZD, CAD, CDF, CHF, CLF, CLP, CNY, COP, CRC, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, ISK, JMD, JPY, KES, KGS, KHR, KMF, KRW, KYD, KZT, LAK, LBP, LKR, LRD, LSL, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRO, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SEK, SGD, SHP, SLL, SOS, SRD, STD, SZL, THB, TJS, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VND, VUV, WST, XAF, XCD, XOF, XPF, YER, ZAR, ZMW "EUR"
The cost of the tax associated with this specific fee.
20
The tax rate associated with this specific fee.
20
The number of units used to charge the customer. This field indicates the quantity or count of units consumed or utilized in the context of the charge. It helps in determining the basis for calculating the fee or cost associated with the usage of the service or product provided to the customer.
"0.32"
The unit amount of the fee per unit, with precision.
"312.5"
The total number of units that have been aggregated for this specific fee.
"0.32"
The cost of this specific fee, including any applicable taxes.
120
The currency of this specific fee, including any applicable taxes.
AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BIF, BMD, BND, BOB, BRL, BSD, BWP, BYN, BZD, CAD, CDF, CHF, CLF, CLP, CNY, COP, CRC, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, ISK, JMD, JPY, KES, KGS, KHR, KMF, KRW, KYD, KZT, LAK, LBP, LKR, LRD, LSL, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRO, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SEK, SGD, SHP, SLL, SOS, SRD, STD, SZL, THB, TJS, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VND, VUV, WST, XAF, XCD, XOF, XPF, YER, ZAR, ZMW "EUR"
Flag that indicates whether the fee was paid in advance. It serves as a boolean value, where true represents that the fee was paid in advance (straightaway), and false indicates that the fee was not paid in arrears (at the end of the period).
true
Flag that indicates whether the fee was included on the invoice. It serves as a boolean value, where true represents that the fee was included on the invoice, and false indicates that the fee was not included on the invoice.
true
Indicates the payment status of the fee. It represents the current status of the payment associated with the fee. The possible values for this field are pending, succeeded, failed and refunded.
pending, succeeded, failed, refunded "pending"
Item attached to the fee
Show child attributes
The fee type. Possible values are add-on, charge, credit, subscription or commitment.
charge, add_on, subscription, credit, commitment "subscription"
The code of the fee item. It can be the code of the add-on, the code of the charge, the code of the credit or the code of the subscription.
"startup"
The name of the fee item. The value depends on the type of the fee item:
charge, it is the billable metric name.add-on, it is the add-on name.credit, it is the wallet transaction name if set, or "credit" if not.fixed_charge, it is the fixed charge add-on name."Startup"
Unique identifier of the fee item, created by Lago. It can be the identifier of the add-on, the charge, the credit, the subscription or the commitment.
"1a901a90-1a90-1a90-1a90-1a901a901a90"
The type of the fee item. Possible values are AddOn, BillableMetric, WalletTransaction, Subscription.
AddOn, BillableMetric, Subscription, WalletTransaction "Subscription"
The description of the fee item. The value depends on the type of the fee item:
charge, it is the billable metric description.add-on, it is the add-on description.credit, it is always "credit".fixed_charge, it is the fixed charge add-on description."Startup"
Specifies the name that will be displayed on an invoice. If no value is set for this field, we'll fallback to a value that depends on the type of the fee items:
charge, we'll fallback to the invoice_display_name of the charge or the billable metric name if no invoice_display_name is set.add-on, we'll fallback to the invoice_name of the add-on or the name of the add-on.credit, we'll fallback to the wallet transaction name if set, or credit if not.fixed_charge, we'll fallback to the invoice_display_name of the fixed_charge or the invoice_name of the fixed_charge_add_on if no invoice_display_name is set.invoice_display_name of the subscription plan."Setup Fee (SF1)"
Specifies the name that will be displayed on an invoice. If no value is set for this field, the actual charge filter values will be used as the default display name.
"AWS eu-east-1"
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.
"1a901a90-1a90-1a90-1a90-1a901a901a90"
Unique identifier assigned to the charge that the fee belongs to
"1a901a90-1a90-1a90-1a90-1a901a901a90"
Unique identifier assigned to the charge filter that the fee belongs to
"1a901a90-1a90-1a90-1a90-1a901a901a90"
Unique identifier assigned to the invoice that the fee belongs to
"1a901a90-1a90-1a90-1a90-1a901a901a90"
Unique identifier assigned to the true-up fee when a minimum has been set to the charge. This identifier helps to distinguish and manage the true-up fee associated with the charge, which may be applicable when a minimum threshold or limit is set for the charge amount.
"1a901a90-1a90-1a90-1a90-1a901a901a90"
Unique identifier assigned to the parent fee on which the true-up fee is assigned. This identifier establishes the relationship between the parent fee and the associated true-up fee.
"1a901a90-1a90-1a90-1a90-1a901a901a90"
Unique identifier assigned to the subscription, created by Lago. This field is specifically displayed when the fee type is charge or subscription.
"1a901a90-1a90-1a90-1a90-1a901a901a90"
Unique identifier assigned to the customer, created by Lago. This field is specifically displayed when the fee type is charge or subscription.
"1a901a90-1a90-1a90-1a90-1a901a901a90"
Unique identifier assigned to the customer in your application. This field is specifically displayed when the fee type is charge or subscription.
"external_id"
Unique identifier assigned to the subscription in your application. This field is specifically displayed when the fee type is charge or subscription.
"external_id"
The cost of this specific fee, excluding any applicable taxes, with precision.
"1.0001"
The cost of this specific fee, including any applicable taxes, with precision.
"1.0212"
The cost of the tax associated with this specific fee, with precision.
"0.20123"
The number of events that have been sent and used to charge the customer. This field indicates the count or quantity of events that have been processed and considered in the charging process.
23
The beginning date of the period that the fee covers. It is applicable only to subscription and charge fees. This field indicates the start date of the billing period or subscription period associated with the fee.
"2022-04-29T08:59:51Z"
The ending date of the period that the fee covers. It is applicable only to subscription and charge fees. This field indicates the end date of the billing period or subscription period associated with the fee.
"2022-05-29T08:59:51Z"
The date and time when the fee was created. It is provided in Coordinated Universal Time (UTC) format.
"2022-08-24T14:58:59Z"
The date and time when the payment for the fee was successfully processed. It is provided in Coordinated Universal Time (UTC) format.
"2022-08-24T14:58:59Z"
The date and time when the payment for the fee failed to process. It is provided in Coordinated Universal Time (UTC) format.
"2022-08-24T14:58:59Z"
The date and time when the payment for the fee was refunded. It is provided in Coordinated Universal Time (UTC) format
"2022-08-24T14:58:59Z"
Unique identifier assigned to the transaction. This field is specifically displayed when the fee type is charge and the payment for the fee is made in advance (pay_in_advance is set to true).
"transaction_1234567890"
The description of the fee.
"Fee description"
The coupon amount applied to the fee, with precision.
"0.0"
List of all unit amount details for calculating the fee.
Show child attributes
The base cost of the plan, excluding any applicable taxes, that is billed on a recurring basis. This value is defined at 0 if your plan is a pay-as-you-go plan.
10000
Graduated ranges, used for a graduated charge model.
Show child attributes
Total units received in Lago.
"10.0"
Lower value of a tier. It is either 0 or the previous range's to_value + 1.
0
Highest value of a tier.
10
Flat unit amount within a specified tier.
"1.0"
Amount per unit within a specified tier.
"1.0"
Total amount of received units to be charged within a specified tier.
"10.0"
Total amount to be charged for a specific tier, taking into account the flat_unit_amount and the per_unit_total_amount.
"11.0"
Graduated percentage ranges, used for a graduated_percentage charge model.
Show child attributes
Total units received in Lago.
"10.0"
Lower value of a tier. It is either 0 or the previous range's to_value + 1.
0
Highest value of a tier.
10
Flat unit amount within a specified tier.
"1.0"
Percentage rate applied within a specified tier.
"1.0"
Total amount of received units to be charged within a specified tier.
"10.0"
Total amount to be charged for a specific tier, taking into account the flat_unit_amount and the per_unit_total_amount.
"11.0"
The quantity of units that are provided free of charge for each billing period in a package charge model.
"10.0"
The quantity of units that are not provided free of charge for each billing period in a package charge model.
"40.0"
The quantity of units included, defined for Package or Percentage charge model.
1000
Total amount to charge for received paid_units, defined for Package or Percentage charge model.
"0.5"
Total amount of received units to be charged for the Volume or Percentage charge model.
"10.0"
The total units received in Lago for the Percentage charge model.
"20.0"
Total number of free events allowed for the Percentage charge model.
10
Percentage rate applied for the Percentage charge model.
"1.0"
Total number of paid events for the Percentage charge model.
20
Fixed fee unit price per received paid_event for the Percentage charge model.
"1.0"
Total amount to charge for received paid_events for the Percentage charge model.
"20.0"
Total adjustment amount linked to minimum and maximum spending per transaction for the Percentage charge model.
"20.0"
The flat amount for a whole tier, excluding tax, for a volume charge model.
"0.5"
The unit price, excluding tax, for a specific tier of a volume charge model.
"10.0"
Indicates if the fee belongs to self-billed invoice. Self-billing is a process where an organization creates the invoice on behalf of the partner.
false
List of fee applied taxes
Show child attributes
Unique identifier of the applied tax, created by Lago.
"1a901a90-1a90-1a90-1a90-1a901a901a90"
Unique identifier of the tax, created by Lago.
"1a901a90-1a90-1a90-1a90-1a901a901a90"
Name of the tax.
"TVA"
Unique code used to identify the tax associated with the API request.
"french_standard_vat"
The percentage rate of the tax
20
Internal description of the tax
"French standard VAT"
Amount of the tax
2000
Currency of the tax
AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BIF, BMD, BND, BOB, BRL, BSD, BWP, BYN, BZD, CAD, CDF, CHF, CLF, CLP, CNY, COP, CRC, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, ISK, JMD, JPY, KES, KGS, KHR, KMF, KRW, KYD, KZT, LAK, LBP, LKR, LRD, LSL, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRO, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SEK, SGD, SHP, SLL, SOS, SRD, STD, SZL, THB, TJS, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VND, VUV, WST, XAF, XCD, XOF, XPF, YER, ZAR, ZMW "USD"
The date and time when the applied tax was created. It is expressed in UTC format according to the ISO 8601 datetime standard. This field provides the timestamp for the exact moment when the applied tax was initially created.
"2022-09-14T16:35:31Z"
Unique identifier of the fee, created by Lago.
"1a901a90-1a90-1a90-1a90-1a901a901a90"
Details about the pricing unit used and amounts for this fee.
Show child attributes
Unique identifier of the pricing unit, created by Lago.
"1a901a90-1a90-1a90-1a90-1a901a901a90"
The code of the pricing unit.
"credits"
The short name of the pricing unit. Will be used as currency name in the UI and PDFs.
"CR"
The amount in cents in the pricing unit.
200
The precise amount in cents in the pricing unit.
"200.0"
The unit amount in cents in the pricing unit.
100
The precise unit amount in the pricing unit.
"100.0"
The conversion rate from pricing units to the plan's currency.
"0.5"
Show child attributes
Unique identifier of the applied tax, created by Lago.
"1a901a90-1a90-1a90-1a90-1a901a901a90"
Unique identifier of the tax, created by Lago.
"1a901a90-1a90-1a90-1a90-1a901a901a90"
Name of the tax.
"TVA"
Unique code used to identify the tax associated with the API request.
"french_standard_vat"
The percentage rate of the tax
20
Internal description of the tax
"French standard VAT"
Amount of the tax
2000
Currency of the tax
AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BIF, BMD, BND, BOB, BRL, BSD, BWP, BYN, BZD, CAD, CDF, CHF, CLF, CLP, CNY, COP, CRC, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, ISK, JMD, JPY, KES, KGS, KHR, KMF, KRW, KYD, KZT, LAK, LBP, LKR, LRD, LSL, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRO, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SEK, SGD, SHP, SLL, SOS, SRD, STD, SZL, THB, TJS, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VND, VUV, WST, XAF, XCD, XOF, XPF, YER, ZAR, ZMW "USD"
The date and time when the applied tax was created. It is expressed in UTC format according to the ISO 8601 datetime standard. This field provides the timestamp for the exact moment when the applied tax was initially created.
"2022-09-14T16:35:31Z"
Unique identifier of the credit note, created by Lago.
"1a901a90-1a90-1a90-1a90-1a901a901a90"
100
Indicates if the credit note belongs to self-billed invoice. Self-billing is a process where an organization creates the invoice on behalf of the partner.
false
Show child attributes
The credit note error details unique identifier, created by Lago.
"1a901a90-1a90-1a90-1a90-1a901a901a90"
The type of the error.
not_provided, tax_error, tax_voiding_error, invoice_generation_error "tax_error"
The details of the error.
Show child attributes