{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"code": "example",
"rate_card_code": "compute_usd",
"status": "pending",
"rate_model": "standard",
"rate_properties": {
"amount": "1.5",
"free_units": 0,
"package_size": 100,
"rate": "1.5",
"fixed_amount": "1.5",
"free_units_per_events": 0,
"free_units_per_total_aggregation": "1.5",
"per_transaction_min_amount": "1.5",
"per_transaction_max_amount": "1.5",
"graduated_ranges": [
{
"to_value": null,
"flat_amount": "1.5",
"per_unit_amount": "1.5",
"rate": "1.5"
}
],
"volume_ranges": [
{
"to_value": null,
"flat_amount": "1.5",
"per_unit_amount": "1.5",
"rate": "1.5"
}
],
"graduated_percentage_ranges": [
{
"to_value": null,
"flat_amount": "1.5",
"per_unit_amount": "1.5",
"rate": "1.5"
}
]
},
"min_amount_cents": 100,
"billing_interval_count": 1,
"billing_interval_unit": "day",
"applied_pricing_unit_conversion_rate": "1.5",
"effective_from": "2022-04-29T08:59:51.123456Z",
"created_at": "2022-04-29T08:59:51.123456Z",
"updated_at": "2022-04-29T08:59:51.123456Z",
"deleted_at": null
}Rates
The rate object
Fields of a rate in the Lago API. A rate holds the rate model, prices, billing interval, minimum and effective date of a rate card.
API v2 is in beta. Endpoints return the
X-Lago-Endpoint-Status: beta header.Rate Card Rate.
Pricing model. Fixed products support standard, graduated and volume. Volume cannot be billed in advance; dynamic requires a sum metric. Proration and aggregation can impose further restrictions.
Available options:
standard, graduated, package, percentage, volume, graduated_percentage, custom, dynamic Example:
"standard"