lago_id
string
required

Unique identifier assigned to the lifetime usage record within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the lifetime usage record within the Lago system

lago_subscription_id
string
required

Unique identifier assigned to the subscription record within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the subscription record within the Lago system

external_subscription_id
string
required

The subscription external unique identifier (provided by your own application).

external_historical_usage_amount_cents
integer
required

The historical usage amount in cents for the subscription (provided by your own application).

invoiced_usage_amount_cents
integer
required

The total invoiced usage amount in cents for the subscription.

current_usage_amount_cents
integer
required

The current usage amount in cents for the subscription on the current billing period.

from_datetime
string
required

The recording start date and time of the subscription lifetime usage. The date and time must be in ISO 8601 format.

to_datetime
string
required

The recording end date and time of the subscription lifetime usage. The date and time must be in ISO 8601 format.

usage_thresholds
object[]

Array of usage thresholds attached to the subscription's plan.