Copy
Ask AI
{
"customer_usage": {
"from_datetime": "2022-07-01T00:00:00Z",
"to_datetime": "2022-07-31T23:59:59Z",
"issuing_date": "2022-08-01T23:59:59Z",
"lago_invoice_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"currency": "EUR",
"amount_cents": 123,
"taxes_amount_cents": 200,
"total_amount_cents": 123,
"charges_usage": [
{
"units": "1.0",
"events_count": 10,
"amount_cents": 123,
"amount_currency": "EUR",
"charge": {
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"charge_model": "graduated",
"invoice_display_name": "Setup"
},
"billable_metric": {
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"name": "Storage",
"code": "storage",
"aggregation_type": "sum_agg"
},
"filters": [
{
"units": "0.9",
"amount_cents": 1000,
"events_count": 10,
"invoice_display_name": "AWS eu-east-1",
"values": {
"region": "us-east-1"
}
}
],
"grouped_usage": [
{
"amount_cents": 1000,
"events_count": 10,
"units": "0.9",
"grouped_by": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"filters": [
{
"units": "0.9",
"amount_cents": 1000,
"events_count": 10,
"invoice_display_name": "AWS eu-east-1",
"values": {
"region": "us-east-1"
}
}
]
}
]
}
]
}
}
Attributes
Hide object
Hide object
The lower bound of the billing period, expressed in the ISO 8601 datetime
format in Coordinated Universal Time (UTC).
The upper bound of the billing period, expressed in the ISO 8601 datetime
format in Coordinated Universal Time (UTC).
The date of creation of the invoice.
The amount in cents, tax excluded.
The currency of the customer’s current usage amount excluding tax.
The total amount in cents, tax included.
The currency of the customer’s current usage amount including tax.
The tax amount in cents.
The currency of the customer’s current usage tax.
A unique identifier associated with the invoice related to this particular
usage record. In cases where no invoice has been generated for this
particular usage, the field value will be null.
Show charges_usage
Show charges_usage
The number of units consumed by the customer for a specific charge
item.
The amount in cents, tax excluded, consumed by the customer for a
specific charge item.
The currency of a usage item consumed by the customer.
The quantity of usage events that have been recorded for a particular
charge during the specified time period. These events may also be
referred to as the number of transactions in some contexts.
Show charge
Show charge
Unique identifier assigned to the charge within the Lago
application. This ID is exclusively created by Lago and serves as
a unique identifier for the charge’s record within the Lago
system.
The pricing model applied to this charge. Possible values are
standard
, graduated
, percentage
, package
or volume
.Show billable_metric
Show billable_metric
Unique identifier assigned to the billable metric within the Lago
application. This ID is exclusively created by Lago and serves as
a unique identifier for the billable metric’s record within the
Lago system.
The name of the billable metric used for this charge.
The code of the billable metric used for this charge.
The aggregation type of the billable metric used for this charge.
Possible values are
count_agg
, sum_agg
, max_agg
or
unique_count_agg
.Show filters
Show filters
The number of units consumed for a specific group related to a
charge item.
The amount in cents, tax excluded, consumed for a specific group
related to a charge item.
The quantity of usage events that have been recorded for a
particular charge filter during the specified time period. These
events may also be referred to as the number of transactions in
some contexts.
Specifies the name that will be displayed on an invoice.
List of filter values applied to the usage.
Show grouped_usage
Show grouped_usage
The amount in cents, tax excluded, consumed for a specific group
related to a charge item.
The quantity of usage events that have been recorded for a
particular charge during the specified time period. These events
may also be referred to as the number of transactions in some
contexts.
The number of units consumed by the customer for a specific charge
item.
Key value list of event properties aggregated by the charge model
Show group
Show group
Unique identifier assigned to the group within the Lago
application. This ID is exclusively created by Lago and serves
as a unique identifier for the group record within the Lago
system.
The group key, only returned for groups with two dimensions.
The group value.
The number of units consumed for a specific group related to a
charge item.
The amount in cents, tax excluded, consumed for a specific
group related to a charge item.