curl --request GET \
--url https://api.getlago.com/api/v1/plans \
--header 'Authorization: Bearer <token>'{
"plans": [
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"name": "Startup",
"created_at": "2023-06-27T19:43:42Z",
"code": "startup",
"interval": "monthly",
"amount_cents": 10000,
"amount_currency": "USD",
"invoice_display_name": "Startup plan",
"description": "",
"trial_period": 5,
"pay_in_advance": true,
"bill_charges_monthly": null,
"minimum_commitment": {
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"amount_cents": 100000,
"created_at": "2022-04-29T08:59:51Z",
"plan_code": "premium",
"invoice_display_name": "Minimum Commitment (C1)",
"interval": "monthly",
"updated_at": "2022-04-29T08:59:51Z",
"taxes": [
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"name": "TVA",
"code": "french_standard_vat",
"rate": 20,
"applied_to_organization": true,
"created_at": "2023-07-06T14:35:58Z",
"description": "French standard VAT"
}
]
},
"charges": [
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a91",
"lago_billable_metric_id": "1a901a90-1a90-1a90-1a90-1a901a901a91",
"billable_metric_code": "requests",
"created_at": "2023-06-27T19:43:42Z",
"charge_model": "package",
"invoiceable": true,
"invoice_display_name": "Setup",
"pay_in_advance": false,
"regroup_paid_fees": null,
"prorated": false,
"min_amount_cents": 3000,
"properties": {
"amount": "30",
"free_units": 100,
"package_size": 1000
},
"filters": []
},
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a92",
"lago_billable_metric_id": "1a901a90-1a90-1a90-1a90-1a901a901a92",
"billable_metric_code": "cpu",
"created_at": "2023-06-27T19:43:42Z",
"charge_model": "graduated",
"invoiceable": true,
"invoice_display_name": "Setup",
"pay_in_advance": false,
"regroup_paid_fees": null,
"prorated": false,
"min_amount_cents": 0,
"properties": {
"graduated_ranges": [
{
"from_value": 0,
"to_value": 10,
"flat_amount": "10",
"per_unit_amount": "0.5"
},
{
"from_value": 11,
"to_value": null,
"flat_amount": "0",
"per_unit_amount": "0.4"
}
]
},
"filters": []
},
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a93",
"lago_billable_metric_id": "1a901a90-1a90-1a90-1a90-1a901a901a93",
"billable_metric_code": "seats",
"created_at": "2023-06-27T19:43:42Z",
"charge_model": "standard",
"invoiceable": true,
"invoice_display_name": "Setup",
"pay_in_advance": true,
"regroup_paid_fees": null,
"prorated": false,
"min_amount_cents": 0,
"properties": {},
"filters": [
{
"invoice_display_name": "Europe",
"properties": {
"amount": "10"
},
"values": {
"region": [
"Europe"
]
}
},
{
"invoice_display_name": "USA",
"properties": {
"amount": "5"
},
"values": {
"region": [
"USA"
]
}
},
{
"invoice_display_name": "Africa",
"properties": {
"amount": "8"
},
"values": {
"region": [
"Africa"
]
}
}
]
},
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a94",
"lago_billable_metric_id": "1a901a90-1a90-1a90-1a90-1a901a901a94",
"billable_metric_code": "storage",
"created_at": "2023-06-27T19:43:42Z",
"charge_model": "volume",
"invoiceable": true,
"invoice_display_name": "Setup",
"pay_in_advance": false,
"regroup_paid_fees": null,
"prorated": false,
"min_amount_cents": 0,
"properties": {
"volume_ranges": [
{
"from_value": 0,
"to_value": 100,
"flat_amount": "0",
"per_unit_amount": "0"
},
{
"from_value": 101,
"to_value": null,
"flat_amount": "0",
"per_unit_amount": "0.5"
}
]
},
"filters": []
},
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a95",
"lago_billable_metric_id": "1a901a90-1a90-1a90-1a90-1a901a901a95",
"billable_metric_code": "payments",
"created_at": "2023-06-27T19:43:42Z",
"charge_model": "percentage",
"invoiceable": false,
"invoice_display_name": "Setup",
"pay_in_advance": true,
"regroup_paid_fees": "invoice",
"prorated": false,
"min_amount_cents": 0,
"properties": {
"rate": "1",
"fixed_amount": "0.5",
"free_units_per_events": 5,
"free_units_per_total_aggregation": "500"
},
"filters": []
}
],
"taxes": [
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"name": "TVA",
"code": "french_standard_vat",
"rate": 20,
"applied_to_organization": true,
"created_at": "2023-07-06T14:35:58Z",
"description": "French standard VAT"
}
],
"usage_thresholds": [
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"threshold_display_name": "Threshold 1",
"amount_cents": 10000,
"recurring": true,
"created_at": "2023-06-27T19:43:42Z",
"updated_at": "2023-06-27T19:43:42Z"
}
],
"entitlements": [
{
"entitlement": {
"code": "seats",
"name": "Number of seats",
"description": "Number of users of the account",
"privileges": [
{
"code": "max",
"name": "Maximum",
"value_type": "integer",
"config": {},
"value": 10
},
{
"code": "max_admins",
"name": "Max Admins",
"value_type": "integer",
"config": {},
"value": 5
},
{
"code": "root",
"name": "Allow root user",
"value_type": "boolean",
"config": {},
"value": true
},
{
"code": "provider",
"name": "SSO Provider",
"value_type": "select",
"value": "google",
"config": {
"select_options": [
"google",
"okta"
]
}
}
]
}
}
]
}
],
"meta": {
"current_page": 2,
"total_pages": 4,
"total_count": 70,
"next_page": 3,
"prev_page": 1
}
}This endpoint retrieves all existing plans.
curl --request GET \
--url https://api.getlago.com/api/v1/plans \
--header 'Authorization: Bearer <token>'{
"plans": [
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"name": "Startup",
"created_at": "2023-06-27T19:43:42Z",
"code": "startup",
"interval": "monthly",
"amount_cents": 10000,
"amount_currency": "USD",
"invoice_display_name": "Startup plan",
"description": "",
"trial_period": 5,
"pay_in_advance": true,
"bill_charges_monthly": null,
"minimum_commitment": {
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"amount_cents": 100000,
"created_at": "2022-04-29T08:59:51Z",
"plan_code": "premium",
"invoice_display_name": "Minimum Commitment (C1)",
"interval": "monthly",
"updated_at": "2022-04-29T08:59:51Z",
"taxes": [
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"name": "TVA",
"code": "french_standard_vat",
"rate": 20,
"applied_to_organization": true,
"created_at": "2023-07-06T14:35:58Z",
"description": "French standard VAT"
}
]
},
"charges": [
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a91",
"lago_billable_metric_id": "1a901a90-1a90-1a90-1a90-1a901a901a91",
"billable_metric_code": "requests",
"created_at": "2023-06-27T19:43:42Z",
"charge_model": "package",
"invoiceable": true,
"invoice_display_name": "Setup",
"pay_in_advance": false,
"regroup_paid_fees": null,
"prorated": false,
"min_amount_cents": 3000,
"properties": {
"amount": "30",
"free_units": 100,
"package_size": 1000
},
"filters": []
},
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a92",
"lago_billable_metric_id": "1a901a90-1a90-1a90-1a90-1a901a901a92",
"billable_metric_code": "cpu",
"created_at": "2023-06-27T19:43:42Z",
"charge_model": "graduated",
"invoiceable": true,
"invoice_display_name": "Setup",
"pay_in_advance": false,
"regroup_paid_fees": null,
"prorated": false,
"min_amount_cents": 0,
"properties": {
"graduated_ranges": [
{
"from_value": 0,
"to_value": 10,
"flat_amount": "10",
"per_unit_amount": "0.5"
},
{
"from_value": 11,
"to_value": null,
"flat_amount": "0",
"per_unit_amount": "0.4"
}
]
},
"filters": []
},
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a93",
"lago_billable_metric_id": "1a901a90-1a90-1a90-1a90-1a901a901a93",
"billable_metric_code": "seats",
"created_at": "2023-06-27T19:43:42Z",
"charge_model": "standard",
"invoiceable": true,
"invoice_display_name": "Setup",
"pay_in_advance": true,
"regroup_paid_fees": null,
"prorated": false,
"min_amount_cents": 0,
"properties": {},
"filters": [
{
"invoice_display_name": "Europe",
"properties": {
"amount": "10"
},
"values": {
"region": [
"Europe"
]
}
},
{
"invoice_display_name": "USA",
"properties": {
"amount": "5"
},
"values": {
"region": [
"USA"
]
}
},
{
"invoice_display_name": "Africa",
"properties": {
"amount": "8"
},
"values": {
"region": [
"Africa"
]
}
}
]
},
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a94",
"lago_billable_metric_id": "1a901a90-1a90-1a90-1a90-1a901a901a94",
"billable_metric_code": "storage",
"created_at": "2023-06-27T19:43:42Z",
"charge_model": "volume",
"invoiceable": true,
"invoice_display_name": "Setup",
"pay_in_advance": false,
"regroup_paid_fees": null,
"prorated": false,
"min_amount_cents": 0,
"properties": {
"volume_ranges": [
{
"from_value": 0,
"to_value": 100,
"flat_amount": "0",
"per_unit_amount": "0"
},
{
"from_value": 101,
"to_value": null,
"flat_amount": "0",
"per_unit_amount": "0.5"
}
]
},
"filters": []
},
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a95",
"lago_billable_metric_id": "1a901a90-1a90-1a90-1a90-1a901a901a95",
"billable_metric_code": "payments",
"created_at": "2023-06-27T19:43:42Z",
"charge_model": "percentage",
"invoiceable": false,
"invoice_display_name": "Setup",
"pay_in_advance": true,
"regroup_paid_fees": "invoice",
"prorated": false,
"min_amount_cents": 0,
"properties": {
"rate": "1",
"fixed_amount": "0.5",
"free_units_per_events": 5,
"free_units_per_total_aggregation": "500"
},
"filters": []
}
],
"taxes": [
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"name": "TVA",
"code": "french_standard_vat",
"rate": 20,
"applied_to_organization": true,
"created_at": "2023-07-06T14:35:58Z",
"description": "French standard VAT"
}
],
"usage_thresholds": [
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"threshold_display_name": "Threshold 1",
"amount_cents": 10000,
"recurring": true,
"created_at": "2023-06-27T19:43:42Z",
"updated_at": "2023-06-27T19:43:42Z"
}
],
"entitlements": [
{
"entitlement": {
"code": "seats",
"name": "Number of seats",
"description": "Number of users of the account",
"privileges": [
{
"code": "max",
"name": "Maximum",
"value_type": "integer",
"config": {},
"value": 10
},
{
"code": "max_admins",
"name": "Max Admins",
"value_type": "integer",
"config": {},
"value": 5
},
{
"code": "root",
"name": "Allow root user",
"value_type": "boolean",
"config": {},
"value": true
},
{
"code": "provider",
"name": "SSO Provider",
"value_type": "select",
"value": "google",
"config": {
"select_options": [
"google",
"okta"
]
}
}
]
}
}
]
}
],
"meta": {
"current_page": 2,
"total_pages": 4,
"total_count": 70,
"next_page": 3,
"prev_page": 1
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Page number.
1
Number of records per page.
20
Plans
Show child attributes
Unique identifier of the plan created by Lago.
"1a901a90-1a90-1a90-1a90-1a901a901a90"
The name of the plan.
"Startup"
The date and time when the plan 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 plan was initially created.
"2023-06-27T19:43:42Z"
The code of the plan. It serves as a unique identifier associated with a particular plan. The code is typically used for internal or system-level identification purposes, like assigning a subscription, for instance.
"startup"
The interval used for recurring billing. It represents the frequency at which subscription billing occurs. The interval can be one of the following values: yearly, semiannual, quarterly, monthly or weekly.
weekly, monthly, quarterly, semiannual, yearly "monthly"
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
The currency of the plan. It indicates the monetary unit in which the plan's cost, including taxes and usage-based charges, 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 "USD"
Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the plan will be used as the default display name.
"Startup plan"
The description on the plan.
""
The duration in days during which the base cost of the plan is offered for free.
5
This field determines the billing timing for the plan. When set to true, the base cost of the plan is due at the beginning of each billing period. Conversely, when set to false, the base cost of the plan is due at the end of each billing period.
true
This field, when set to true, enables to invoice usage-based charges on monthly basis, even if the cadence of the plan is yearly or semiannual. This allows customers to pay charges overage on a monthly basis. This can be set to true only if the plan's interval is yearly or semiannual.
null
Show child attributes
Unique identifier of the minimum commitment, created by Lago.
"1a901a90-1a90-1a90-1a90-1a901a901a90"
The amount of the minimum commitment in cents.
100000
The date and time when the minimum commitment 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 minimum commitment was initially created.
"2022-04-29T08:59:51Z"
The unique code representing the plan to be attached to the customer.
"premium"
Specifies the name that will be displayed on an invoice. If no value is set for this field, the default name will be used as the display name.
"Minimum Commitment (C1)"
The interval used for recurring billing. It represents the frequency at which subscription billing occurs. The interval can be one of the following values: yearly, semiannual, quarterly, monthly or weekly.
weekly, monthly, quarterly, semiannual, yearly "monthly"
The date and time when the minimum commitment was updated. It is expressed in UTC format according to the ISO 8601 datetime standard. This field provides the timestamp for the exact moment when the minimum commitment was initially created.
"2022-04-29T08:59:51Z"
All taxes applied to the minimum commitment.
Show child attributes
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
This field is deprecated and will be removed in a future version. When set to true, it applies the tax to the organization's default billing entity. To apply or remove a tax from any billing entity (including the default one), please use the PUT /billing_entities/:code endpoint instead.
true
Creation date of the tax.
"2023-07-06T14:35:58Z"
Internal description of the tax
"French standard VAT"
Additional usage-based charges for this plan.
Show child attributes
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"
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"
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.
, 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.
Show child attributes
The list of event properties that are used to group the events on the invoice for a standard charge model.
DEPRECATED Replaced by pricing_group_keys.
["agent_name"]The list of event properties that are used to group the events on the invoice.
["agent_name"]Graduated ranges, sorted from bottom to top tiers, used for a graduated charge model.
Show child attributes
Specifies the lower value of a tier for a graduated charge model. It must be either 0 or the previous range's to_value + 1 to maintain the proper sequence of values.
0
Specifies the highest value of a tier for a graduated charge model.
10
The flat amount for a whole tier, excluding tax, for a graduated charge model. It is expressed as a decimal value.
"10"
The unit price, excluding tax, for a specific tier of a graduated charge model. It is expressed as a decimal value.
"0.5"
Graduated percentage ranges, sorted from bottom to top tiers, used for a graduated_percentage charge model.
Show child attributes
Specifies the lower value of a tier for a graduated_percentage charge model. It must be either 0 or the previous range's to_value + 1 to maintain the proper sequence of values.
0
Specifies the highest value of a tier for a graduated_percentage charge model.
10
The percentage rate that is applied to the amount of each transaction in the tier for a graduated_percentage charge model. It is expressed as a decimal value.
"1"
The flat amount for a whole tier, excluding tax, for a graduated_percentage charge model. It is expressed as a decimal value.
"10"
standard charge model. It is expressed as a decimal value.package charge model. It is expressed as a decimal value."30"
The quantity of units that are provided free of charge for each billing period in a package charge model. This field specifies the number of units that customers can use without incurring any additional cost during each billing cycle.
100
The quantity of units included in each pack or set for a package charge model. It indicates the number of units that are bundled together as a single package or set within the pricing structure.
1000
The percentage rate that is applied to the amount of each transaction for a percentage charge model. It is expressed as a decimal value.
"1"
The fixed fee that is applied to each transaction for a percentage charge model. It is expressed as a decimal value.
"0.5"
The count of transactions that are not impacted by the percentage rate and fixed fee in a percentage charge model. This field indicates the number of transactions that are exempt from the calculation of charges based on the specified percentage rate and fixed fee.
5
The transaction amount that is not impacted by the percentage rate and fixed fee in a percentage charge model. This field indicates the portion of the transaction amount that is exempt from the calculation of charges based on the specified percentage rate and fixed fee.
"500"
Specifies the maximum allowable spending for a single transaction. Working as a transaction cap.
"3.75"
Specifies the minimum allowable spending for a single transaction. Working as a transaction floor.
"1.75"
Volume ranges, sorted from bottom to top tiers, used for a volume charge model.
Show child attributes
Specifies the lower value of a tier for a volume charge model. It must be either 0 or the previous range's to_value + 1 to maintain the proper sequence of values.
0
Specifies the highest value of a tier for a volume charge model.
from_value of the same tier.null for the last tier.10
The flat amount for a whole tier, excluding tax, for a volume charge model. It is expressed as a decimal value.
"10"
The unit price, excluding tax, for a specific tier of a volume charge model. It is expressed as a decimal value.
"0.5"
List of filters used to apply differentiated pricing based on additional event properties.
Show child attributes
Specifies the name that will be displayed on an invoice. If no value is set for this field, the values of the filter will be used as the default display name.
"AWS"
List of all thresholds utilized for calculating the charge.
Show child attributes
The list of event properties that are used to group the events on the invoice for a standard charge model.
DEPRECATED Replaced by pricing_group_keys.
["agent_name"]The list of event properties that are used to group the events on the invoice.
["agent_name"]Graduated ranges, sorted from bottom to top tiers, used for a graduated charge model.
Show child attributes
Specifies the lower value of a tier for a graduated charge model. It must be either 0 or the previous range's to_value + 1 to maintain the proper sequence of values.
0
Specifies the highest value of a tier for a graduated charge model.
10
The flat amount for a whole tier, excluding tax, for a graduated charge model. It is expressed as a decimal value.
"10"
The unit price, excluding tax, for a specific tier of a graduated charge model. It is expressed as a decimal value.
"0.5"
Graduated percentage ranges, sorted from bottom to top tiers, used for a graduated_percentage charge model.
Show child attributes
Specifies the lower value of a tier for a graduated_percentage charge model. It must be either 0 or the previous range's to_value + 1 to maintain the proper sequence of values.
0
Specifies the highest value of a tier for a graduated_percentage charge model.
10
The percentage rate that is applied to the amount of each transaction in the tier for a graduated_percentage charge model. It is expressed as a decimal value.
"1"
The flat amount for a whole tier, excluding tax, for a graduated_percentage charge model. It is expressed as a decimal value.
"10"
standard charge model. It is expressed as a decimal value.package charge model. It is expressed as a decimal value."30"
The quantity of units that are provided free of charge for each billing period in a package charge model. This field specifies the number of units that customers can use without incurring any additional cost during each billing cycle.
100
The quantity of units included in each pack or set for a package charge model. It indicates the number of units that are bundled together as a single package or set within the pricing structure.
1000
The percentage rate that is applied to the amount of each transaction for a percentage charge model. It is expressed as a decimal value.
"1"
The fixed fee that is applied to each transaction for a percentage charge model. It is expressed as a decimal value.
"0.5"
The count of transactions that are not impacted by the percentage rate and fixed fee in a percentage charge model. This field indicates the number of transactions that are exempt from the calculation of charges based on the specified percentage rate and fixed fee.
5
The transaction amount that is not impacted by the percentage rate and fixed fee in a percentage charge model. This field indicates the portion of the transaction amount that is exempt from the calculation of charges based on the specified percentage rate and fixed fee.
"500"
Specifies the maximum allowable spending for a single transaction. Working as a transaction cap.
"3.75"
Specifies the minimum allowable spending for a single transaction. Working as a transaction floor.
"1.75"
Volume ranges, sorted from bottom to top tiers, used for a volume charge model.
Show child attributes
Specifies the lower value of a tier for a volume charge model. It must be either 0 or the previous range's to_value + 1 to maintain the proper sequence of values.
0
Specifies the highest value of a tier for a volume charge model.
from_value of the same tier.null for the last tier.10
The flat amount for a whole tier, excluding tax, for a volume charge model. It is expressed as a decimal value.
"10"
The unit price, excluding tax, for a specific tier of a volume charge model. It is expressed as a decimal value.
"0.5"
All taxes applied to the charge.
Show child attributes
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
This field is deprecated and will be removed in a future version. When set to true, it applies the tax to the organization's default billing entity. To apply or remove a tax from any billing entity (including the default one), please use the PUT /billing_entities/:code endpoint instead.
true
Creation date of the tax.
"2023-07-06T14:35:58Z"
Internal description of the tax
"French standard VAT"
The pricing unit applied to the charge.
[
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a91",
"lago_billable_metric_id": "1a901a90-1a90-1a90-1a90-1a901a901a91",
"billable_metric_code": "requests",
"created_at": "2023-06-27T19:43:42Z",
"charge_model": "package",
"invoiceable": true,
"invoice_display_name": "Setup",
"pay_in_advance": false,
"regroup_paid_fees": null,
"prorated": false,
"min_amount_cents": 3000,
"properties": {
"amount": "30",
"free_units": 100,
"package_size": 1000
},
"filters": []
},
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a92",
"lago_billable_metric_id": "1a901a90-1a90-1a90-1a90-1a901a901a92",
"billable_metric_code": "cpu",
"created_at": "2023-06-27T19:43:42Z",
"charge_model": "graduated",
"invoiceable": true,
"invoice_display_name": "Setup",
"pay_in_advance": false,
"regroup_paid_fees": null,
"prorated": false,
"min_amount_cents": 0,
"properties": {
"graduated_ranges": [
{
"from_value": 0,
"to_value": 10,
"flat_amount": "10",
"per_unit_amount": "0.5"
},
{
"from_value": 11,
"to_value": null,
"flat_amount": "0",
"per_unit_amount": "0.4"
}
]
},
"filters": []
},
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a93",
"lago_billable_metric_id": "1a901a90-1a90-1a90-1a90-1a901a901a93",
"billable_metric_code": "seats",
"created_at": "2023-06-27T19:43:42Z",
"charge_model": "standard",
"invoiceable": true,
"invoice_display_name": "Setup",
"pay_in_advance": true,
"regroup_paid_fees": null,
"prorated": false,
"min_amount_cents": 0,
"properties": {},
"filters": [
{
"invoice_display_name": "Europe",
"properties": { "amount": "10" },
"values": { "region": ["Europe"] }
},
{
"invoice_display_name": "USA",
"properties": { "amount": "5" },
"values": { "region": ["USA"] }
},
{
"invoice_display_name": "Africa",
"properties": { "amount": "8" },
"values": { "region": ["Africa"] }
}
]
},
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a94",
"lago_billable_metric_id": "1a901a90-1a90-1a90-1a90-1a901a901a94",
"billable_metric_code": "storage",
"created_at": "2023-06-27T19:43:42Z",
"charge_model": "volume",
"invoiceable": true,
"invoice_display_name": "Setup",
"pay_in_advance": false,
"regroup_paid_fees": null,
"prorated": false,
"min_amount_cents": 0,
"properties": {
"volume_ranges": [
{
"from_value": 0,
"to_value": 100,
"flat_amount": "0",
"per_unit_amount": "0"
},
{
"from_value": 101,
"to_value": null,
"flat_amount": "0",
"per_unit_amount": "0.5"
}
]
},
"filters": []
},
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a95",
"lago_billable_metric_id": "1a901a90-1a90-1a90-1a90-1a901a901a95",
"billable_metric_code": "payments",
"created_at": "2023-06-27T19:43:42Z",
"charge_model": "percentage",
"invoiceable": false,
"invoice_display_name": "Setup",
"pay_in_advance": true,
"regroup_paid_fees": "invoice",
"prorated": false,
"min_amount_cents": 0,
"properties": {
"rate": "1",
"fixed_amount": "0.5",
"free_units_per_events": 5,
"free_units_per_total_aggregation": "500"
},
"filters": []
}
]All taxes applied to the plan.
Show child attributes
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
This field is deprecated and will be removed in a future version. When set to true, it applies the tax to the organization's default billing entity. To apply or remove a tax from any billing entity (including the default one), please use the PUT /billing_entities/:code endpoint instead.
true
Creation date of the tax.
"2023-07-06T14:35:58Z"
Internal description of the tax
"French standard VAT"
List of usage thresholds applied to the plan.
Show child attributes
Unique identifier of the usage threshold created by Lago.
"1a901a90-1a90-1a90-1a90-1a901a901a90"
The display name of the usage threshold.
"Threshold 1"
The amount to reach to trigger a progressive_billing invoice.
10000
This field when set to true indicates that a progressive_billing invoice will be created every time the lifetime usage increases by the specified amount.
true
The date and time when the usage threshold was created. It is expressed in UTC format according to the ISO 8601 datetime standard.
"2023-06-27T19:43:42Z"
The date and time when the usage threshold was last updated. It is expressed in UTC format according to the ISO 8601 datetime standard.
"2023-06-27T19:43:42Z"
List of all feature entitlements and their privileges available for this plan.
Show child attributes
Show child attributes
Unique code used to identify the feature. Max 255 characters.
"seats"
Name of the feature. Max 255 characters.
"Number of seats"
Description of the feature. Max 600 characters.
"Number of users of the account"
Privileges associated with this feature. Each privilege must have a value assigned.
Show child attributes
Unique code for the privilege.
"max"
Display name for the privilege.
"Maximum"
Data type of the privilege value. Default: string
integer, boolean, string, select "integer"
Value assigned to this privilege in the entitlement. Type depends on the privilege's value_type.
10
[
{
"code": "max",
"name": "Maximum",
"value_type": "integer",
"config": {},
"value": 10
},
{
"code": "max_admins",
"name": "Max Admins",
"value_type": "integer",
"config": {},
"value": 5
},
{
"code": "root",
"name": "Allow root user",
"value_type": "boolean",
"config": {},
"value": true
},
{
"code": "provider",
"name": "SSO Provider",
"value_type": "select",
"value": "google",
"config": { "select_options": ["google", "okta"] }
}
]Show child attributes