Skip to main content
API v2 is in beta. Endpoints return the X-Lago-Endpoint-Status: beta header.

Rate Card Rate.

lago_id
string<uuid>
required

Unique identifier created by Lago.

Example:

"1a901a90-1a90-1a90-1a90-1a901a901a90"

code
string
required

Code.

Example:

"example"

rate_card_code
string | null
required

Code of the parent rate card.

Example:

"compute_usd"

status
enum<string>
required

Status derived from the effective-dated rate timeline.

Available options:
pending,
active,
terminated
Example:

"pending"

rate_model
enum<string>
required

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"

rate_properties
object
required

Pricing configuration for the selected rate model. Standard requires amount; package also requires package_size. Graduated, volume and graduated_percentage models use their matching ranges array. Custom properties remain model-specific.

min_amount_cents
integer
required

Minimum amount, in cents.

Example:

100

billing_interval_count
integer
required

Billing interval count.

Example:

1

billing_interval_unit
enum<string>
required

Unit of the billing interval.

Available options:
day,
week,
month,
year
Example:

"day"

applied_pricing_unit_conversion_rate
string | null
required

Applied pricing unit conversion rate. Sent as a decimal string.

Pattern: ^-?[0-9]+(\.[0-9]+)?$
Example:

"1.5"

effective_from
string<date-time>
required

Effective from.

Example:

"2022-04-29T08:59:51.123456Z"

created_at
string<date-time>
required

UTC creation timestamp, with microsecond precision.

Example:

"2022-04-29T08:59:51.123456Z"

updated_at
string<date-time>
required

UTC timestamp of the last update, with microsecond precision.

Example:

"2022-04-29T08:59:51.123456Z"

deleted_at
string<date-time> | null
required

UTC deletion timestamp, with microsecond precision. Null until deletion.

Example:

null