Every table and column synced by Lago Data Pipeline
This page lists every table and column that Lago Data Pipeline syncs to your destination, grouped by domain. Open a table to see its columns, in the order they appear in your destination.
lago_id is the primary key of every table.
updated_at drives incremental syncs: a row is synced again when its updated_at changes.
Amounts in _cents columns are in the smallest unit of the currency, for example cents for USD or EUR.
Timestamps are in UTC.
Organizations billing with plans and subscriptions and organizations billing with the product catalog share the same tables. Tables or columns that only apply to one of them are marked, and stay empty for the other. Columns for the product catalog are always added after the existing columns of a shared table.
Billing entities
billing_entities
One row per billing entity, including archived and deleted ones.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the billing entity, assigned by Lago.
code
string
Unique code of the billing entity.
name
string
Name of the billing entity.
legal_name
string
Legal name of the billing entity.
legal_number
string
Legal registration number of the billing entity.
email
string
Email address of the billing entity.
address_line1
string
First line of the billing entity’s address.
address_line2
string
Second line of the billing entity’s address.
city
string
City of the billing entity’s address.
zipcode
string
Zipcode of the billing entity’s address.
state
string
State of the billing entity’s address.
country
string
Country code of the billing entity’s address.
vat_rate
float
Legacy VAT rate field on the billing entity. Taxes applied to the billing entity are listed in billing_entities_taxes.
timezone
string
Timezone of the billing entity.
created_at
timestamp
Date and time the billing entity was created, in UTC.
updated_at
timestamp
Date and time the billing entity was last updated, in UTC.
archived_at
timestamp
Date and time the billing entity was archived, in UTC. Empty when it is not archived.
deleted_at
timestamp
Date and time the billing entity was deleted, in UTC. Empty when it is not deleted.
Customers
customers
One row per customer, including deleted customers.
The lago_taxes_ids column is deprecated: it is always an empty array and is only kept so existing destinations keep working. Use customers_taxes for the taxes assigned to a customer.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the customer, assigned by Lago.
billing_entity_id
string
Unique identifier of the billing entity the customer is attached to, assigned by Lago.
external_id
string
Customer external unique identifier, provided by your own application.
account_type
string
Type of the account: customer or partner.
name
string
Full name of the customer.
firstname
string
First name of the customer.
lastname
string
Last name of the customer.
customer_type
string
Type of the customer: company or individual. Empty when not set.
sequential_id
bigint
Number of the customer within the organization, reflecting its order of creation.
slug
string
Short unique identifier of the customer, built from the organization and the customer’s sequential_id.
created_at
timestamp
Date and time the customer was created, in UTC.
updated_at
timestamp
Date and time the customer was last updated, in UTC.
deleted_at
timestamp
Date and time the customer was deleted, in UTC. Empty for active customers.
country
string
Country code of the customer’s billing address, in ISO 3166 alpha-2 format.
address_line1
string
First line of the customer’s billing address.
address_line2
string
Second line of the customer’s billing address.
state
string
State of the customer’s billing address.
zipcode
string
Zipcode of the customer’s billing address.
email
string
Email of the customer.
city
string
City of the customer’s billing address.
url
string
Custom website URL of the customer.
phone
string
Phone number of the customer.
legal_name
string
Legal company name of the customer.
legal_number
string
Legal company number of the customer.
currency
string
Currency of the customer, in ISO 4217 format.
tax_identification_number
string
Tax identification number of the customer.
timezone
string
Timezone set on the customer, used for billing in their local time. Empty when the customer has no timezone of its own.
applicable_timezone
string
Timezone that applies to the customer: its own timezone, else the organization’s timezone, else UTC.
net_payment_term
integer
Number of days the customer has to pay an invoice after it is issued. Empty when the customer has no payment term of its own.
external_salesforce_id
string
Customer ID within the Salesforce system.
finalize_zero_amount_invoice
string
How invoices with a zero total are handled for this customer: inherit (follows the higher-level setting), skip or finalize.
skip_invoice_custom_sections
boolean
Whether all invoice custom sections are excluded from PDF generation for this customer.
payment_provider
string
Payment provider used to collect payments for the customer’s invoices: stripe, adyen, cashfree, flutterwave, gocardless or moneyhash. Empty when none is set.
payment_provider_code
string
Unique code of the payment provider connection used for the customer.
invoice_grace_period
integer
Grace period in days set on the customer, during which invoices can still be adjusted before they are finalized. Empty when the customer has no grace period of its own.
vat_rate
float
Legacy VAT rate field on the customer. Taxes applied to the customer are listed in customers_taxes.
applicable_invoice_grace_period
integer
Invoice grace period in days that applies to the customer: its own value, else the organization’s value.
document_locale
string
Language of the documents issued for the customer, in ISO 639-1 format. Empty when the customer has no locale of its own.
provider_customer_id
string
Customer ID within the payment provider’s system, from the customer’s payment provider record.
provider_settings
json
Settings of the customer’s payment provider record, such as provider_mandate_id, payment_method_id or sync_with_provider.
metadata
json
Always an empty object in this table.
lago_taxes_ids
json
Always an empty array in this table. The taxes applied to a customer are listed in customers_taxes.
Billable metrics
billable_metrics
One row per billable metric. Deleted billable metrics are excluded.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the billable metric, assigned by Lago.
name
string
Name of the billable metric.
code
string
Unique code of the billable metric, used to associate each event with the correct metric.
description
string
Internal description of the billable metric.
aggregation_type
string
Aggregation method used to compute usage: count_agg, sum_agg, max_agg, unique_count_agg, weighted_sum_agg, latest_agg, custom_agg or unknown.
weighted_interval
string
Time interval used to weight usage with the weighted_sum_agg aggregation type: seconds. Empty for other aggregation types.
recurring
boolean
Whether the accumulated number of units carries over from one billing period to the next instead of resetting to 0.
rounding_function
string
Rounding applied to the aggregated number of units: round, ceil or floor. Empty when units are not rounded.
rounding_precision
integer
Number of decimal places kept when rounding_function is applied. It can be positive or negative.
created_at
timestamp
Date and time the billable metric was created, in UTC.
updated_at
timestamp
Date and time the billable metric was last updated, in UTC.
field_name
string
Event property used to aggregate usage. Empty when aggregation_type is count_agg.
expression
string
Expression evaluated for each event to calculate its units.
filters
json
Filters of the billable metric, as an array of objects with a key (the event property) and its possible values. Empty array when there are no filters.
Plans and subscriptions
charges
One row per usage-based charge of a plan, including deleted charges.Plans and subscriptions only: empty for organizations billing with the product catalog.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the charge, assigned by Lago.
lago_billable_metric_id
string
Unique identifier of the billable metric the charge prices, assigned by Lago.
lago_plan_id
string
Unique identifier of the plan the charge belongs to, assigned by Lago.
invoice_display_name
string
Name displayed on invoices for this charge. When empty, the name of the billable metric is used.
created_at
timestamp
Date and time the charge was created, in UTC.
updated_at
timestamp
Date and time the charge was last updated, in UTC.
deleted_at
timestamp
Date and time the charge was deleted, in UTC. Empty while the charge exists.
charge_model
string
Pricing model of the charge: standard, graduated, package, percentage, volume, graduated_percentage, custom or dynamic.
invoiceable
boolean
Whether the charge is included in an invoice. When false, no invoice is issued for this charge. It can only be false when pay_in_advance is true.
regroup_paid_fees
string
Set to invoice when the paid-in-advance fees of a non-invoiceable charge are consolidated into an invoice at the end of the period once their payment succeeded. Empty when no invoice is issued for them.
pay_in_advance
boolean
When true, the charge is due and invoiced immediately. When false, it is due and invoiced at the end of each billing period.
prorated
boolean
When true, the charge is prorated based on the remaining days in the billing period. When false, it is billed in full.
min_amount_cents
bigint
Minimum amount to charge for each billing period, excluding taxes, in cents.
properties
json
JSON object holding the pricing properties of the charge model, with the same structure as the charge properties in the API (for example amount for a standard charge or graduated_ranges for a graduated one).
charge_filters
json
JSON array of the charge filters used to apply differentiated pricing. Each item holds invoice_display_name, properties (pricing properties for the filter) and values, an array of objects mapping a billable metric filter identifier to the list of filter values. Empty when the charge has no filter.
plans
One row per plan that is not deleted, including plans that override a parent plan for a single subscription.Plans and subscriptions only: empty for organizations billing with the product catalog.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the plan, assigned by Lago.
name
string
Name of the plan.
invoice_display_name
string
Name displayed on invoices. When empty, the plan name is used.
created_at
timestamp
Date and time the plan was created, in UTC.
updated_at
timestamp
Date and time the plan was last updated, in UTC.
code
string
Code of the plan, a unique identifier used for example when assigning a subscription.
plan_interval
string
Interval used for recurring billing: weekly, monthly, yearly or quarterly. Empty for semiannual plans, which this column does not map.
description
string
Description of the plan.
amount_cents
bigint
Base cost of the plan, excluding taxes, billed on a recurring basis, in cents. It is 0 for a pay-as-you-go plan.
amount_currency
string
Currency of the plan, used for its base cost and usage-based charges.
trial_period
float
Duration in days during which the base cost of the plan is offered for free.
pay_in_advance
boolean
When true, the base cost of the plan is due at the beginning of each billing period. When false, it is due at the end of the period.
bill_charges_monthly
boolean
When true, usage-based charges are invoiced monthly even if the plan interval is yearly or semiannual.
parent_id
string
Unique identifier of the parent plan, assigned by Lago. Set on plans that override a parent plan for a single subscription, empty on standard plans.
lago_taxes_ids
json
JSON array of the unique identifiers of the taxes applied to the plan, assigned by Lago.
subscriptions
One row per subscription of a customer to a plan.Plans and subscriptions only: empty for organizations billing with the product catalog.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the subscription, assigned by Lago.
external_id
string
Subscription external unique identifier (provided by your own application).
lago_customer_id
string
Unique identifier of the customer, assigned by Lago.
name
string
Display name of the subscription on invoices.
lago_plan_id
string
Unique identifier of the plan of the subscription, assigned by Lago.
status
string
Status of the subscription: pending, active, terminated or canceled. Empty for incomplete subscriptions (waiting for a gating payment), which this column does not map.
billing_time
string
Billing time of the subscription: calendar or anniversary. It determines when recurring billing cycles start.
subscription_at
timestamp
Anniversary date and time of the initial subscription, in UTC. It is the basis for billing subscriptions with anniversary billing time.
started_at
timestamp
Effective start date and time of the subscription, in UTC. Empty if the subscription is pending or canceled.
trial_ended_at
timestamp
Date and time the free trial ended, in UTC.
ending_at
timestamp
Effective end date and time of the subscription, in UTC. When empty, the subscription renews automatically.
terminated_at
timestamp
Date and time the subscription was terminated, in UTC. Set when the status is terminated.
canceled_at
timestamp
Date and time the subscription was canceled, in UTC. Set when the status is canceled.
created_at
timestamp
Date and time the subscription was created, in UTC.
updated_at
timestamp
Date and time the subscription was last updated, in UTC.
lago_next_subscriptions_id
json
JSON array of the unique identifiers of the subscriptions that replace this one after an upgrade or downgrade, assigned by Lago. Empty array when there is none.
lago_previous_subscription_id
string
Unique identifier of the subscription this one replaces after an upgrade or downgrade, assigned by Lago. Empty for a first subscription.
usage_thresholds
One row per progressive billing usage threshold, including deleted thresholds.Plans and subscriptions only: empty for organizations billing with the product catalog.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_plan_id
string
Unique identifier of the plan the threshold belongs to, assigned by Lago. Empty for a threshold defined on a single subscription.
lago_id
string
Unique identifier of the usage threshold, assigned by Lago.
amount_cents
bigint
Usage amount to reach to trigger a progressive billing invoice, in cents.
recurring
boolean
When true, a progressive billing invoice is created every time the lifetime usage increases by amount_cents.
threshold_display_name
string
Display name of the usage threshold.
created_at
timestamp
Date and time the usage threshold was created, in UTC.
updated_at
timestamp
Date and time the usage threshold was last updated, in UTC.
deleted_at
timestamp
Date and time the usage threshold was deleted, in UTC. Empty while the threshold exists.
Product catalog
catalog_plans
One row per plan of the product catalog.Product catalog only: empty for organizations billing with plans and subscriptions.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the catalog plan, assigned by Lago.
code
string
Unique code of the catalog plan within the organization.
name
string
Name of the catalog plan.
invoice_display_name
string
Name of the catalog plan displayed on invoices. Empty when the plan name is used.
description
string
Description of the catalog plan.
currency
string
Currency of the catalog plan, as an ISO 4217 code.
created_at
timestamp
Date and time the catalog plan was created, in UTC.
updated_at
timestamp
Date and time the catalog plan was last updated, in UTC.
deleted_at
timestamp
Date and time the catalog plan was deleted, in UTC. Empty if the catalog plan is not deleted.
plan_rate_cards
One row per rate card attached to a catalog plan.Product catalog only: empty for organizations billing with plans and subscriptions.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the plan rate card, assigned by Lago.
lago_catalog_plan_id
string
Unique identifier of the catalog plan the rate card is attached to, assigned by Lago.
lago_rate_card_id
string
Unique identifier of the rate card attached to the plan, assigned by Lago.
units
decimal
Number of units of the rate card included in the plan. Copied to the contract’s rate card terms when a contract uses the plan. Empty when not set.
created_at
timestamp
Date and time the rate card was attached to the plan, in UTC.
updated_at
timestamp
Date and time the plan rate card was last updated, in UTC.
deleted_at
timestamp
Date and time the rate card was removed from the plan, in UTC. Empty if it is still attached.
pricing_units
One row per pricing unit, a custom unit in which prices can be expressed instead of a currency.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the pricing unit, assigned by Lago.
code
string
Unique code of the pricing unit within the organization.
name
string
Name of the pricing unit.
short_name
string
Short name of the pricing unit, up to 3 characters, displayed next to amounts.
description
string
Description of the pricing unit.
created_at
timestamp
Date and time the pricing unit was created, in UTC.
updated_at
timestamp
Date and time the pricing unit was last updated, in UTC.
product_categories
One row per product category, used to group products.Product catalog only: empty for organizations billing with plans and subscriptions.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the product category, assigned by Lago.
code
string
Unique code of the product category within the organization.
name
string
Name of the product category.
description
string
Description of the product category.
invoice_display_name
string
Name of the product category displayed on invoices. Empty when the category name is used.
created_at
timestamp
Date and time the product category was created, in UTC.
updated_at
timestamp
Date and time the product category was last updated, in UTC.
deleted_at
timestamp
Date and time the product category was deleted, in UTC. Empty if the product category is not deleted.
product_filters
One row per product filter, a slice of a metered product’s usage defined by billable metric filter values.Product catalog only: empty for organizations billing with plans and subscriptions.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the product filter, assigned by Lago.
lago_product_id
string
Unique identifier of the product the filter belongs to, assigned by Lago.
code
string
Unique code of the filter within its product.
name
string
Name of the product filter.
description
string
Description of the product filter.
invoice_display_name
string
Name of the product filter displayed on invoices. Empty when the filter name is used.
created_at
timestamp
Date and time the product filter was created, in UTC.
updated_at
timestamp
Date and time the product filter or one of its values was last updated, in UTC.
deleted_at
timestamp
Date and time the product filter was deleted, in UTC. Empty if the filter is not deleted.
filter_values
json
Billable metric filter values selected by the filter, as an array of {"key", "value"} objects where key is the billable metric filter key. Empty array when the filter has no values.
products
One row per product of the product catalog.Product catalog only: empty for organizations billing with plans and subscriptions.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the product, assigned by Lago.
lago_product_category_id
string
Unique identifier of the product category, assigned by Lago. Empty when the product has no category.
lago_billable_metric_id
string
Unique identifier of the billable metric measuring the product’s usage, assigned by Lago. Set for metered products, empty for fixed products.
lago_add_on_id
string
Unique identifier of the add-on linked to the product, assigned by Lago. Empty when the product is not linked to an add-on.
lago_charge_id
string
Unique identifier of the charge linked to the product, assigned by Lago. Empty when the product is not linked to a charge.
product_type
string
Type of the product: metered or fixed. A metered product is billed on usage of its billable metric, a fixed product bills a fixed fee per period.
code
string
Unique code of the product within the organization.
name
string
Name of the product.
invoice_display_name
string
Name of the product displayed on invoices. Empty when the product name is used.
description
string
Description of the product.
created_at
timestamp
Date and time the product was created, in UTC.
updated_at
timestamp
Date and time the product was last updated, in UTC.
deleted_at
timestamp
Date and time the product was deleted, in UTC. Empty if the product is not deleted.
rate_card_rates
One row per rate of a rate card. A rate card’s rates form a timeline: each rate applies from its effective_from until the next one takes effect.Product catalog only: empty for organizations billing with plans and subscriptions.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the rate, assigned by Lago.
lago_rate_card_id
string
Unique identifier of the rate card the rate belongs to, assigned by Lago.
code
string
Unique code of the rate within its rate card.
effective_from
timestamp
Date and time the rate takes effect, in UTC. On arrears rate cards it is the start of a day.
rate_model
string
Pricing model of the rate: standard, graduated, package, percentage, volume, graduated_percentage, custom or dynamic.
rate_properties
json
Pricing properties of the rate, structured per rate_model with the same properties as a charge’s pricing model (for example amount for standard, graduated_ranges for graduated).
min_amount_cents
bigint
Minimum amount billed per billing period, in cents. 0 when there is no minimum. Only used on arrears rate cards.
billing_interval_count
integer
Length of the billing period, as a number of billing_interval_unit.
billing_interval_unit
string
Unit of the billing period: day, week, month or year.
applied_pricing_unit_conversion_rate
decimal
Conversion rate from one pricing unit to the rate card currency. Set when the rate card is priced in a pricing unit, empty otherwise.
created_at
timestamp
Date and time the rate was created, in UTC.
updated_at
timestamp
Date and time the rate was last updated, in UTC.
deleted_at
timestamp
Date and time the rate was deleted, in UTC. Empty if the rate is not deleted.
rate_cards
One row per rate card, which sets how a product, or a filter of it, is priced and billed.Product catalog only: empty for organizations billing with plans and subscriptions.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the rate card, assigned by Lago.
lago_product_id
string
Unique identifier of the product priced by the rate card, assigned by Lago.
lago_product_filter_id
string
Unique identifier of the product filter priced by the rate card, assigned by Lago. Empty when the rate card prices the whole product.
code
string
Unique code of the rate card within the organization.
name
string
Name of the rate card.
description
string
Description of the rate card.
currency
string
Currency of the rate card, as an ISO 4217 code.
billing_timing
string
When the rate card’s fees are billed: arrears (at the end of the period) or advance.
proration
boolean
Whether fees are prorated when the rate card covers part of a billing period.
display_on_invoice
boolean
Whether the rate card’s fees are included on an invoice. Can only be false for metered products billed in advance.
regroup_paid_fees
string
How paid fees not displayed on an invoice are grouped: none or invoice. invoice gathers them on one invoice at the end of the period. Empty when fees stay standalone.
applied_pricing_unit_code
string
Code of the pricing unit the rate card is priced in. Empty when the rate card is priced in its currency.
created_at
timestamp
Date and time the rate card was created, in UTC.
updated_at
timestamp
Date and time the rate card was last updated, in UTC.
deleted_at
timestamp
Date and time the rate card was deleted, in UTC. Empty if the rate card is not deleted.
rate_overrides
One row per rate override, which replaces the rate card’s rate during a rate phase.Product catalog only: empty for organizations billing with plans and subscriptions.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the rate override, assigned by Lago.
rate_model
string
Pricing model of the override: standard, graduated, package, percentage, volume, graduated_percentage, custom or dynamic.
rate_properties
json
Pricing properties of the override, structured per rate_model like rate_card_rates.rate_properties.
min_amount_cents
bigint
Minimum amount billed per billing period during the phase, in cents. 0 when there is no minimum.
billing_interval_count
integer
Length of the billing period during the phase, as a number of billing_interval_unit. Empty when the rate card rate’s interval applies.
billing_interval_unit
string
Unit of the billing period during the phase: day, week, month or year. Empty when the rate card rate’s interval applies.
pricing_unit_conversion_rate
decimal
Conversion rate from one pricing unit to the rate card currency during the phase. Set when the rate card is priced in a pricing unit, empty otherwise.
created_at
timestamp
Date and time the rate override was created, in UTC.
updated_at
timestamp
Date and time the rate override was last updated, in UTC.
deleted_at
timestamp
Date and time the rate override was deleted, in UTC. Empty if the rate override is not deleted.
rate_phases
One row per phase of a plan rate card or contract rate card. Phases run in position order, each for a number of billing cycles.Product catalog only: empty for organizations billing with plans and subscriptions.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the rate phase, assigned by Lago.
lago_plan_rate_card_id
string
Unique identifier of the plan rate card the phase belongs to, assigned by Lago. Empty when the phase belongs to a contract rate card.
lago_contract_rate_card_id
string
Unique identifier of the contract rate card the phase belongs to, assigned by Lago. Empty when the phase belongs to a plan rate card.
lago_rate_override_id
string
Unique identifier of the rate override applied during the phase, assigned by Lago. Empty when the phase uses the rate card’s own rate.
code
string
Unique code of the phase within its rate card.
name
string
Name of the phase.
position
integer
Order of the phase in its rate card’s timeline, starting at 1.
billing_interval_cycle_count
integer
Number of billing cycles the phase lasts. Empty for the last phase, which lasts indefinitely.
created_at
timestamp
Date and time the rate phase was created, in UTC.
updated_at
timestamp
Date and time the rate phase was last updated, in UTC.
deleted_at
timestamp
Date and time the rate phase was deleted, in UTC. Empty if the rate phase is not deleted.
Contracts
contract_rate_cards
One row per rate card attached to a contract, from its catalog plan or directly. Its units over time are in contract_rate_cards_terms.Product catalog only: empty for organizations billing with plans and subscriptions.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the contract rate card, assigned by Lago.
lago_contract_id
string
Unique identifier of the contract the rate card is attached to, assigned by Lago.
lago_rate_card_id
string
Unique identifier of the rate card attached to the contract, assigned by Lago.
billing_anchor_date
date
Date the rate card’s billing periods are anchored to. Defaults to the contract’s anchor date, or its start date.
next_billing_at
timestamp
Date and time of the rate card’s next billing, in UTC. Empty when there is nothing left to bill.
effective_date
date
Date the rate card takes effect on the contract.
created_at
timestamp
Date and time the rate card was attached to the contract, in UTC.
updated_at
timestamp
Date and time the contract rate card was last updated, in UTC.
deleted_at
timestamp
Date and time the rate card was removed from the contract, in UTC. Empty if it is still attached.
contract_rate_cards_terms
One row per change of units of a contract rate card, with the date it takes effect.Product catalog only: empty for organizations billing with plans and subscriptions.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the term, assigned by Lago.
lago_contract_rate_card_id
string
Unique identifier of the contract rate card the units apply to, assigned by Lago.
units
decimal
Number of units of the contract rate card from effective_date.
effective_date
date
Date the units take effect. Unique per contract rate card.
application_timing
string
When the change of units applies: current_billing_cycle or next_billing_cycle.
created_at
timestamp
Date and time the term was created, in UTC.
updated_at
timestamp
Date and time the term was last updated, in UTC.
contracts
One row per contract, the agreement that bills a customer with the product catalog. Contracts are not deleted, they are terminated or canceled.Product catalog only: empty for organizations billing with plans and subscriptions.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the contract, assigned by Lago.
lago_customer_id
string
Unique identifier of the customer of the contract, assigned by Lago.
external_id
string
External unique identifier of the contract, set by the organization. A new contract can reuse the external id of the one it replaces.
code
string
Code of the contract, unique per external id.
name
string
Name of the contract.
status
string
Status of the contract: draft, pending, active, terminated or canceled.
billing_anchor_date
date
Date the contract’s billing periods are anchored to. Empty when billing is anchored to the start date.
started_at
timestamp
Date and time the contract starts, in UTC.
ended_at
timestamp
Planned end date and time of the contract, in UTC. Empty when the contract has no planned end.
terminated_at
timestamp
Date and time the contract was terminated, in UTC. Empty if the contract was not terminated.
canceled_at
timestamp
Date and time the contract was canceled, in UTC. Empty if the contract was not canceled.
lago_catalog_plan_id
string
Unique identifier of the catalog plan of the contract, assigned by Lago. Empty when the contract only has rate cards attached directly.
lago_billing_entity_id
string
Unique identifier of the billing entity of the contract, assigned by Lago. Empty when not set on the contract.
lago_payment_method_id
string
Unique identifier of the payment method used for the contract, assigned by Lago. Empty when not set.
payment_method_type
string
Payment method type of the contract: provider or manual.
purchase_order_number
string
Purchase order number of the contract, if any.
consolidate_invoice
boolean
Whether the contract is billed on the same recurring invoice as the customer’s other contracts.
skip_invoice_custom_sections
boolean
Whether invoice custom sections are left off the contract’s invoices.
created_at
timestamp
Date and time the contract was created, in UTC.
updated_at
timestamp
Date and time the contract was last updated, in UTC.
Usage
daily_usages
One row per subscription, or per contract rate card, for each day with usage.Columns for the product catalog come after the original columns. A row holds the usage of either a subscription or a contract.
Column
Type
Description
organization_id
string
Unique identifier of the organization the daily usage belongs to, assigned by Lago.
lago_id
string
Unique identifier of the daily usage record, assigned by Lago.
from_datetime
timestamp
Start of the billing period the usage belongs to, in UTC.
refreshed_at
timestamp
Date and time the usage was computed, in UTC.
to_datetime
timestamp
End of the billing period the usage belongs to, in UTC.
daily_usage
json
Usage accumulated since the start of the billing period, as an object with the keys from_datetime, to_datetime, issuing_date, currency, amount_cents, taxes_amount_cents, total_amount_cents, lago_invoice_id and charges_usage. For a contract, its single charges_usage entry references a contract rate card, a rate card and a product instead of a charge.
daily_usage_date
date
Day the usage is recorded for.
daily_usage_diff
json
Usage added on this day only, with the same structure as daily_usage. It is the difference with the previous daily usage of the same billing period, or the full usage when there is none.
created_at
timestamp
Date and time the record was created, in UTC.
updated_at
timestamp
Date and time the record was last updated, in UTC.
lago_customer_id
string
Unique identifier of the customer the usage belongs to, assigned by Lago.
lago_subscription_id
string
Unique identifier of the subscription the usage belongs to, assigned by Lago. It is empty for contract usage. Plans and subscriptions only.
external_subscription_id
string
Unique identifier of the subscription in your application. It is empty for contract usage. Plans and subscriptions only.
lago_contract_id
string
Unique identifier of the contract the usage belongs to, assigned by Lago. It is empty for subscription usage. Product catalog only.
external_contract_id
string
Unique identifier of the contract in your application. It is empty for subscription usage. Product catalog only.
lago_contract_rate_card_id
string
Unique identifier of the contract rate card the usage belongs to, assigned by Lago. It is empty for subscription usage. Product catalog only.
Invoices and fees
fees
One row per fee.Columns for the product catalog come after the original columns. To link invoices to contracts, use lago_invoice_id with lago_contract_id and lago_contract_rate_card_id.
Column
Type
Description
organization_id
string
Unique identifier of the organization the fee belongs to, assigned by Lago.
lago_id
string
Unique identifier of the fee, assigned by Lago.
lago_charge_id
string
Unique identifier of the charge the fee belongs to, assigned by Lago. It is empty for fees that are not charge fees. Plans and subscriptions only.
lago_fixed_charge_id
string
Unique identifier of the fixed charge the fee belongs to, assigned by Lago. It is empty for fees that are not fixed charge fees. Plans and subscriptions only.
lago_charge_filter_id
string
Unique identifier of the charge filter the fee belongs to, assigned by Lago. It is empty when the fee is not tied to a charge filter. Plans and subscriptions only.
lago_invoice_id
string
Unique identifier of the invoice the fee belongs to, assigned by Lago. It is empty for fees that are not attached to an invoice, such as pay-in-advance fees that are not invoiced.
lago_subscription_id
string
Unique identifier of the subscription the fee belongs to, assigned by Lago. It is empty for fees that are not tied to a subscription. Plans and subscriptions only.
lago_customer_id
string
Unique identifier of the customer the fee belongs to, assigned by Lago. It comes from the subscription, or from the contract for contract fees, and is empty when the fee has neither.
item
json
Item attached to the fee, as an object with the keys type, code, name, description, invoice_display_name, filters, lago_item_id, item_type and grouped_by. type is charge, add_on, subscription, credit, commitment, fixed_charge, product or unknown, and item_type is billable_metric, add_on, wallet_transaction, product or subscription.
pay_in_advance
boolean
Whether the fee was paid in advance (true) or in arrears at the end of the period (false).
amount_cents
bigint
Amount of the fee, excluding taxes, in cents.
invoiceable
boolean
Whether the fee is included on an invoice. For charge fees it comes from the charge, for product fees from whether the rate card is displayed on invoices. It is empty for other fee types.
taxes_amount_cents
bigint
Tax amount of the fee, in cents.
taxes_precise_amount_cents
decimal
Tax amount of the fee, in cents, with full precision.
taxes_rate
float
Tax rate applied to the fee.
total_amount_cents
bigint
Amount of the fee, including taxes, in cents. It is amount_cents plus taxes_amount_cents.
currency
string
Currency of the fee.
units
decimal
Number of units used to charge the customer for this fee.
description
string
Description of the fee.
precise_amount_cents
decimal
Amount of the fee, excluding taxes, in cents, with full precision.
precise_unit_amount
decimal
Amount of the fee per unit, with full precision.
precise_coupons_amount_cents
decimal
Coupon amount applied to the fee, in cents, with full precision.
precise_total_amount_cents
decimal
Amount of the fee, including taxes, in cents, with full precision. It is precise_amount_cents plus taxes_precise_amount_cents.
precise_credit_notes_amount_cents
decimal
Credit note amount applied to the fee, in cents, with full precision.
events_count
integer
Number of events used to compute the fee.
payment_status
string
Payment status of the fee. Possible values are pending, succeeded, failed, refunded or unknown.
created_at
timestamp
Date and time the fee was created, in UTC.
succeeded_at
timestamp
Date and time the payment of the fee succeeded, in UTC.
failed_at
timestamp
Date and time the payment of the fee failed, in UTC.
refunded_at
timestamp
Date and time the payment of the fee was refunded, in UTC.
amount_details
json
Details used to compute the fee amount, such as the units and amounts of each tier or package, depending on the pricing model.
updated_at
timestamp
Date and time the fee was last updated, in UTC.
from_date
string
Start of the period the fee covers, as an ISO 8601 timestamp in text form. For charge and fixed charge fees it is the start of their own billing period.
to_date
string
End of the period the fee covers, as an ISO 8601 timestamp in text form. For charge and fixed charge fees it is the end of their own billing period.
lago_contract_id
string
Unique identifier of the contract the fee was billed for, assigned by Lago. It is empty for fees that do not come from a contract. Product catalog only.
lago_contract_rate_card_id
string
Unique identifier of the contract rate card the fee was billed from, assigned by Lago. It is empty for fees that do not come from a contract. Product catalog only.
lago_rate_card_rate_id
string
Unique identifier of the rate card rate used to price the fee, assigned by Lago. It is empty for fees that are not product fees. Product catalog only.
lago_product_filter_id
string
Unique identifier of the product filter the fee belongs to, assigned by Lago. It is empty when the fee is not tied to a product filter. Product catalog only.
lago_product_id
string
Unique identifier of the product the fee was billed for, assigned by Lago. It comes from the rate card of the fee’s rate and is empty for fees that are not product fees. Product catalog only.
lago_rate_override_id
string
Unique identifier of the rate override used to price the fee, assigned by Lago. A rate override replaces the pricing of a rate card rate. It is empty when no override applies. Product catalog only.
invoice_settlements
One row per settlement of an invoice by a payment or a credit note.
Column
Type
Description
organization_id
string
Unique identifier of the organization the settlement belongs to, assigned by Lago.
lago_id
string
Unique identifier of the invoice settlement, assigned by Lago.
lago_billing_entity_id
string
Unique identifier of the billing entity the settlement belongs to, assigned by Lago.
lago_target_invoice_id
string
Unique identifier of the invoice being settled, assigned by Lago.
settlement_type
string
How the invoice was settled. Possible values are payment or credit_note.
lago_source_payment_id
string
Unique identifier of the payment that settled the invoice, assigned by Lago. It is empty when settlement_type is credit_note.
lago_source_credit_note_id
string
Unique identifier of the credit note that settled the invoice, assigned by Lago. It is empty when settlement_type is payment.
amount_cents
bigint
Amount of the invoice settled, in cents.
amount_currency
string
Currency of the settled amount.
created_at
timestamp
Date and time the settlement was created, in UTC.
updated_at
timestamp
Date and time the settlement was last updated, in UTC.
invoice_subscriptions
One row per subscription billed on an invoice.Plans and subscriptions only: empty for organizations billing with the product catalog.
Column
Type
Description
organization_id
string
Unique identifier of the organization the record belongs to, assigned by Lago.
lago_id
string
Unique identifier of the invoice subscription record, assigned by Lago.
lago_invoice_id
string
Unique identifier of the invoice, assigned by Lago.
lago_regenerated_invoice_id
string
Unique identifier of the invoice that replaced this invoice after it was voided and regenerated, assigned by Lago. It is empty when the invoice was not regenerated.
lago_subscription_id
string
Unique identifier of the subscription billed on the invoice, assigned by Lago.
created_at
timestamp
Date and time the record was created, in UTC.
updated_at
timestamp
Date and time the record was last updated, in UTC.
from_datetime
timestamp
Start of the subscription period billed on the invoice, in UTC.
to_datetime
timestamp
End of the subscription period billed on the invoice, in UTC.
charges_from_datetime
timestamp
Start of the period billed for the subscription’s usage-based charges, in UTC.
charges_to_datetime
timestamp
End of the period billed for the subscription’s usage-based charges, in UTC.
timestamp
timestamp
Billing date and time used to generate the invoice for the subscription, in UTC.
invoicing_reason
string
Why the subscription was billed on the invoice. Possible values are subscription_starting, subscription_periodic, subscription_terminating, in_advance_charge, in_advance_charge_periodic or progressive_billing.
invoices
One row per invoice.
Column
Type
Description
organization_id
string
Unique identifier of the organization the invoice belongs to, assigned by Lago.
lago_id
string
Unique identifier of the invoice, assigned by Lago.
sequential_id
integer
Sequential number of the invoice within the customer’s invoices. It is assigned when the invoice is finalized, so it is empty on draft invoices.
customer_id
string
Unique identifier of the customer the invoice is issued to, assigned by Lago.
number
string
Unique number assigned to the invoice.
issuing_date
timestamp
Date when the invoice was issued.
payment_due_date
timestamp
Payment due date of the invoice.
net_payment_term
integer
Number of days between the issuing date and the payment due date of the invoice.
invoice_type
string
Type of invoice. Possible values are subscription, add_on, credit, one_off, advance_charges, progressive_billing or contract.
status
string
Status of the invoice. Possible values are draft, finalized, voided, failed, pending or deleted. Deleted invoices are kept with the deleted status so the deletion reaches your warehouse.
payment_status
string
Status of the payment associated with the invoice. Possible values are pending, succeeded or failed.
payment_dispute_lost_at
timestamp
Date when the payment dispute was lost. It is empty until a dispute is lost on the invoice.
payment_overdue
boolean
Whether the payment of the invoice is considered overdue.
currency
string
Currency of the invoice.
fees_amount_cents
bigint
Total amount of all fees on the invoice, in cents.
taxes_amount_cents
bigint
Total tax amount of the invoice, in cents.
progressive_billing_credit_amount_cents
bigint
Usage already billed on previous progressive billing invoices and deducted from this invoice, in cents. It only applies to progressive_billing and subscription invoices.
coupons_amount_cents
bigint
Total amount discounted by coupons on the invoice, in cents.
credit_notes_amount_cents
bigint
Total amount discounted by credit notes on the invoice, in cents.
sub_total_excluding_taxes_amount_cents
bigint
Subtotal of the invoice excluding taxes, in cents. How it is computed depends on version_number.
sub_total_including_taxes_amount_cents
bigint
Subtotal of the invoice including taxes, in cents. How it is computed depends on version_number.
total_amount_cents
bigint
Total amount of the invoice, including taxes, in cents.
total_due_amount_cents
bigint
Amount still to be paid on the invoice, in cents. It is total_amount_cents minus the amount already paid.
prepaid_credit_amount_cents
bigint
Total amount discounted by prepaid credits on the invoice, in cents.
prepaid_granted_credit_amount_cents
bigint
Part of the prepaid credits discounted on the invoice that came from granted (free) credits, in cents. Only filled for invoices of traceable wallets.
prepaid_purchased_credit_amount_cents
bigint
Part of the prepaid credits discounted on the invoice that came from purchased (paid) credits, in cents. Only filled for invoices of traceable wallets.
version_number
integer
Version of the invoice calculation rules applied to the invoice. It determines how the subtotals are computed.
created_at
timestamp
Date and time the invoice was created, in UTC.
updated_at
timestamp
Date and time the invoice was last updated, in UTC.
voided_at
timestamp
Date and time the invoice was voided, in UTC. It is empty for invoices that have not been voided.
metadata
json
Metadata attached to the invoice, as an array of objects with the keys lago_id, key, value and created_at. It is empty when the invoice has no metadata.
error_details
json
Errors raised while generating the invoice, as an array of objects with the keys lago_id, error_code and details. It is empty when no error was raised.
item_metadata
One row per metadata object attached to a record.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the metadata object, assigned by Lago.
owner_type
string
Type of record the metadata belongs to: Plan, CreditNote, Wallet, CatalogWallet or PlanWallet.
lago_owner_id
string
Unique identifier of the record the metadata belongs to, assigned by Lago. Its type is given by owner_type.
value
json
Metadata as a JSON object of up to 50 keys, each mapped to a string value or null.
created_at
timestamp
Date and time the row was created, in UTC.
updated_at
timestamp
Date and time the row was last updated, in UTC.
Credit notes
credit_notes
One row per credit note.
Column
Type
Description
organization_id
string
Unique identifier of the organization the credit note belongs to, assigned by Lago.
lago_id
string
Unique identifier of the credit note, assigned by Lago.
sequential_id
integer
Sequential number of the credit note within the credit notes of its invoice.
number
string
Unique number of the credit note.
lago_invoice_id
string
Unique identifier of the invoice the credit note belongs to, assigned by Lago.
issuing_date
date
Date when the credit note was issued.
credit_status
string
Status of the credit part of the credit note. Possible values are available, consumed or voided. It is empty when the credit note has no credit part.
refund_status
string
Status of the refund part of the credit note. Possible values are pending, succeeded or failed. It is empty when the credit note has no refund part.
reason
string
Reason for issuing the credit note. Possible values are duplicated_charge, product_unsatisfactory, order_change, order_cancellation, fraudulent_charge or other.
description
string
Description of the credit note.
currency
string
Currency of the credit note.
total_amount_cents
bigint
Total amount of the credit note, including taxes, in cents.
taxes_amount_cents
bigint
Tax amount of the credit note, in cents.
sub_total_excluding_taxes_amount_cents
bigint
Subtotal of the credit note excluding taxes, in cents. It is the sum of the credit note items minus the coupon adjustment, rounded.
balance_amount_cents
bigint
Remaining credit amount of the credit note, in cents.
credit_amount_cents
bigint
Amount credited to the customer by the credit note, in cents.
refund_amount_cents
bigint
Amount refunded to the customer by the credit note, in cents.
coupons_adjustment_amount_cents
bigint
Prorated amount of the coupons applied to the source invoice, in cents.
taxes_rate
float
Tax rate applied to the credit note.
created_at
timestamp
Date and time the credit note was created, in UTC.
updated_at
timestamp
Date and time the credit note was last updated, in UTC.
refunded_at
timestamp
Date and time the credit note was refunded, in UTC. It is empty when no refund was made.
items
json
Items of the credit note, as an array of objects with the keys lago_id, amount_cents, amount_currency and lago_fee_id (the fee credited by the item).
metadata
json
Metadata attached to the credit note, as an array of objects with the keys key and value. It is empty when the credit note has no metadata.
error_details
json
Errors raised while the credit note was issued, as an array of objects with the keys lago_id, error_code and details. It is empty when no error was raised.
Payments
payment_requests
One row per payment request.
Column
Type
Description
organization_id
string
Unique identifier of the organization the payment request belongs to, assigned by Lago.
lago_id
string
Unique identifier of the payment request, assigned by Lago.
lago_customer_id
string
Unique identifier of the customer the payment request is for, assigned by Lago.
payment_attempts
int
Number of payment attempts made for the payment request.
amount_cents
bigint
Amount the payment request collects, in cents.
amount_currency
string
Currency of the payment request.
email
string
Email address used for sending dunning notifications. It defaults to the customer’s email address.
ready_for_payment_processing
boolean
Whether a new payment can be started for the payment request. It is false once a payment is in progress or has succeeded.
payment_status
string
Payment status of the payment request. Possible values are pending, succeeded or failed.
created_at
timestamp
Date and time the payment request was created, in UTC.
updated_at
timestamp
Date and time the payment request was last updated, in UTC.
invoice_ids
json
The Lago identifiers of the invoices the payment request collects payment for, as an array.
payment_ids
json
The Lago identifiers of the payments made for the payment request, as an array ordered by creation date.
payments
One row per payment.
Column
Type
Description
organization_id
string
Unique identifier of the organization the payment belongs to, assigned by Lago.
lago_id
string
Unique identifier of the payment, assigned by Lago.
amount_cents
bigint
Amount of the payment, in cents.
amount_currency
string
Currency of the payment.
payment_status
string
Payment status, normalized by Lago so it is the same for every payment provider. Possible values are pending, processing, succeeded or failed. It is empty when Lago has not recorded a normalized status for the payment.
payment_type
string
Type of payment. Possible values are provider, manual or x402.
reference
string
Reference of the payment. It is set on manual payments only and empty for other payments.
external_payment_id
string
Unique identifier of the payment within the payment provider, if applicable.
created_at
timestamp
Date and time the payment was created in Lago, in UTC.
updated_at
timestamp
Date and time the payment was last updated, in UTC.
invoice_ids
json
The Lago identifiers of the invoices the payment applies to, as an array. For a payment on a payment request, it lists the invoices of that request.
Wallets
wallet_transaction_consumptions
One row per amount of an inbound wallet transaction consumed by an outbound wallet transaction. Only recorded for traceable wallets.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the wallet transaction consumption, assigned by Lago.
lago_inbound_wallet_transaction_id
string
Unique identifier of the inbound wallet transaction the credits were consumed from, assigned by Lago.
lago_outbound_wallet_transaction_id
string
Unique identifier of the outbound wallet transaction that consumed the credits, assigned by Lago.
consumed_amount_cents
bigint
Amount consumed from the inbound wallet transaction, in cents.
created_at
timestamp
Date and time the consumption was recorded, in UTC.
updated_at
timestamp
Date and time the consumption was last updated, in UTC.
wallet_transactions
One row per wallet transaction, either crediting (inbound) or debiting (outbound) a wallet.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the wallet transaction, assigned by Lago.
lago_wallet_id
string
Unique identifier of the wallet, assigned by Lago.
status
string
Status of the wallet transaction: pending, settled or failed.
source
string
Origin of the wallet transaction: manual, interval (recurring top-up rule), threshold (top-up rule triggered by a balance threshold) or x402.
transaction_status
string
Transaction status of the wallet transaction: purchased, granted, voided or invoiced.
transaction_type
string
Type of transaction: inbound (increasing the balance) or outbound (decreasing the balance).
amount
decimal
Amount of the transaction in the wallet currency, based on the credits and the wallet rate.
credit_amount
decimal
Number of credits of the transaction.
settled_at
timestamp
Date and time the wallet transaction was settled, in UTC.
failed_at
timestamp
Date and time the wallet transaction failed, in UTC.
created_at
timestamp
Date and time the wallet transaction was created, in UTC.
updated_at
timestamp
Date and time the wallet transaction was last updated, in UTC.
invoice_requires_successful_payment
boolean
When true, the invoice for this top-up is issued only once its payment succeeds. When false, it is issued immediately.
metadata
json
JSON array of key-value pairs holding additional information about the transaction. Each item holds key and value.
lago_invoice_id
string
Unique identifier of the invoice associated with the wallet transaction, assigned by Lago. For an inbound transaction it is the top-up invoice, for an outbound transaction the invoice the credits were applied to. Empty when there is none.
wallets
One row per customer wallet holding prepaid credits.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the wallet, assigned by Lago.
lago_customer_id
string
Unique identifier of the customer, assigned by Lago.
status
string
Status of the wallet: active or terminated.
currency
string
Currency of the wallet.
name
string
Name of the wallet.
rate_amount
decimal
Conversion rate between credits and the wallet currency: the value of one credit in the currency.
credits_balance
decimal
Current wallet balance in credits, after all transactions are settled.
credits_ongoing_balance
decimal
Ongoing wallet balance in credits: credits_balance minus credits_ongoing_usage_balance, accounting for current usage including taxes.
credits_ongoing_usage_balance
decimal
Ongoing usage of the wallet in credits, covering all current usage and draft invoices including taxes.
balance_cents
bigint
Current wallet balance, after all transactions are settled, in cents.
ongoing_balance_cents
bigint
Ongoing wallet balance in cents: balance_cents minus ongoing_usage_balance_cents, accounting for current usage including taxes.
ongoing_usage_balance_cents
bigint
Ongoing usage of the wallet in cents, covering all current usage and draft invoices including taxes.
consumed_credits
decimal
Number of credits consumed from the wallet.
created_at
timestamp
Date and time the wallet was created, in UTC.
updated_at
timestamp
Date and time the wallet was last updated, in UTC.
terminated_at
timestamp
Date and time the wallet was terminated, in UTC.
last_balance_sync_at
timestamp
Date and time of the last balance top-up, in UTC.
last_consumed_credit_at
timestamp
Date and time of the last credits consumption, in UTC.
invoice_requires_successful_payment
boolean
When true, the invoice for a wallet top-up is issued only once its payment succeeds. When false, it is issued immediately.
Coupons
applied_coupons
One row per coupon applied to a customer.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the applied coupon, assigned by Lago.
lago_coupon_id
string
Unique identifier of the coupon, assigned by Lago.
lago_customer_id
string
Unique identifier of the customer, assigned by Lago.
status
string
Status of the applied coupon: active or terminated.
amount_cents
bigint
Amount of the coupon, in cents. Set for fixed_amount coupons.
amount_cents_remaining
bigint
Coupon amount_cents minus the sum of the credits it applied, in cents. Only computed for fixed_amount coupons with a forever frequency that have applied at least one credit, empty otherwise.
amount_currency
string
Currency of the coupon amount. Set for fixed_amount coupons.
percentage_rate
decimal
Percentage rate of the coupon. Set for percentage coupons.
frequency
string
Frequency of the applied coupon: once, recurring or forever.
frequency_duration
integer
Number of billing periods to which the coupon applies. Set when the frequency is recurring.
frequency_duration_remaining
integer
Remaining number of billing periods to which the coupon applies.
created_at
timestamp
Date and time the coupon was applied to the customer, in UTC.
terminated_at
timestamp
Date and time the coupon was fully used or removed from the customer, in UTC.
updated_at
timestamp
Date and time the applied coupon was last updated, in UTC.
credits
json
JSON array of the credits the coupon applied to invoices. Each item holds lago_id, amount_cents, amount_currency and before_taxes. Empty when the coupon has not been applied to an invoice yet.
coupons
One row per coupon, including deleted coupons.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the coupon, assigned by Lago.
name
string
Name of the coupon.
code
string
Unique code used to identify the coupon.
description
string
Description of the coupon.
coupon_type
string
Type of the coupon: fixed_amount for a fixed amount discount or percentage for a percentage-based discount.
amount_cents
bigint
Amount of the coupon, in cents. Set only for fixed_amount coupons.
amount_currency
string
Currency of the coupon. Set only for fixed_amount coupons.
percentage_rate
decimal
Percentage rate of the coupon. Set only for percentage coupons.
frequency
string
Frequency of the coupon: once (applies to a single invoice), recurring (applies for a number of billing periods) or forever.
frequency_duration
integer
Number of billing periods to which the coupon applies. Set only for recurring coupons.
reusable
boolean
When true, the coupon can be applied several times to the same customer.
limited_plans
boolean
When true, the coupon only applies to specific plans.
limited_billable_metrics
boolean
When true, the coupon only applies to specific billable metrics.
lago_plan_ids
json
JSON array of the unique identifiers of the plans the coupon is limited to, assigned by Lago. Empty array when the coupon is not limited to plans. Plans and subscriptions only.
lago_billable_metrics_ids
json
JSON array of the unique identifiers of the billable metrics the coupon is limited to, assigned by Lago. Empty array when the coupon is not limited to billable metrics.
created_at
timestamp
Date and time the coupon was created, in UTC.
expiration
string
Type of expiration of the coupon: no_expiration or time_limit.
expiration_at
timestamp
Date and time the coupon expires, in UTC. Set only when expiration is time_limit.
terminated_at
timestamp
Date and time the coupon was terminated, in UTC. A terminated coupon stays on the customers it was applied to but can no longer be applied.
updated_at
timestamp
Date and time the coupon was last updated, in UTC.
Taxes
billing_entities_taxes
One row per tax applied to a billing entity.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the billing entity tax, assigned by Lago.
lago_billing_entity_id
string
Unique identifier of the billing entity, assigned by Lago.
lago_tax_id
string
Unique identifier of the tax, assigned by Lago.
created_at
timestamp
Date and time the row was created, in UTC.
updated_at
timestamp
Date and time the row was last updated, in UTC.
credit_notes_taxes
One row per tax applied to a credit note.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the credit note applied tax, assigned by Lago.
lago_tax_id
string
Unique identifier of the tax, assigned by Lago.
lago_credit_note_id
string
Unique identifier of the credit note, assigned by Lago.
tax_name
string
Name of the tax at the time it was applied.
tax_code
string
Code of the tax at the time it was applied.
tax_rate
float
Percentage rate of the tax at the time it was applied.
tax_description
string
Description of the tax at the time it was applied.
base_amount_cents
bigint
Credit note amount on which the tax is applied, in cents.
amount_cents
bigint
Tax amount of the credit note for this tax, in cents.
amount_currency
string
Currency of the tax amount, in ISO 4217 format.
created_at
timestamp
Date and time the row was created, in UTC.
updated_at
timestamp
Date and time the row was last updated, in UTC.
customers_taxes
One row per tax applied to a customer.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the customer tax, assigned by Lago.
lago_customer_id
string
Unique identifier of the customer, assigned by Lago.
lago_tax_id
string
Unique identifier of the tax, assigned by Lago.
created_at
timestamp
Date and time the row was created, in UTC.
updated_at
timestamp
Date and time the row was last updated, in UTC.
fees_taxes
One row per tax applied to a fee.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the fee applied tax, assigned by Lago.
lago_fee_id
string
Unique identifier of the fee, assigned by Lago.
lago_tax_id
string
Unique identifier of the tax, assigned by Lago.
tax_name
string
Name of the tax at the time it was applied.
tax_code
string
Code of the tax at the time it was applied.
tax_rate
float
Percentage rate of the tax at the time it was applied.
tax_description
string
Description of the tax at the time it was applied.
amount_cents
bigint
Tax amount of the fee for this tax, in cents.
amount_currency
string
Currency of the tax amount, in ISO 4217 format.
created_at
timestamp
Date and time the row was created, in UTC.
updated_at
timestamp
Date and time the row was last updated, in UTC.
invoices_taxes
One row per tax applied to an invoice. Taxes of deleted invoices are excluded.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the invoice applied tax, assigned by Lago.
lago_invoice_id
string
Unique identifier of the invoice, assigned by Lago.
lago_tax_id
string
Unique identifier of the tax, assigned by Lago.
tax_name
string
Name of the tax at the time it was applied.
tax_code
string
Code of the tax at the time it was applied.
tax_rate
float
Percentage rate of the tax at the time it was applied.
tax_description
string
Description of the tax at the time it was applied.
amount_cents
bigint
Tax amount of the invoice for this tax, in cents.
amount_currency
string
Currency of the tax amount, in ISO 4217 format.
fees_amount_cents
bigint
Total amount of the invoice fees on which the tax is applied, in cents.
created_at
timestamp
Date and time the row was created, in UTC.
updated_at
timestamp
Date and time the row was last updated, in UTC.
plans_taxes
One row per tax applied to a plan or a catalog plan.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the plan tax, assigned by Lago.
lago_plan_id
string
Unique identifier of the plan, assigned by Lago. Empty when the tax is applied to a catalog plan. Plans and subscriptions only.
lago_catalog_plan_id
string
Unique identifier of the catalog plan, assigned by Lago. Empty when the tax is applied to a plan. Product catalog only.
lago_tax_id
string
Unique identifier of the tax, assigned by Lago.
created_at
timestamp
Date and time the row was created, in UTC.
updated_at
timestamp
Date and time the row was last updated, in UTC.
rate_cards_taxes
One row per tax applied to a rate card.Product catalog only: empty for organizations billing with plans and subscriptions.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the rate card tax, assigned by Lago.
lago_rate_card_id
string
Unique identifier of the rate card, assigned by Lago.
lago_tax_id
string
Unique identifier of the tax, assigned by Lago.
created_at
timestamp
Date and time the row was created, in UTC.
updated_at
timestamp
Date and time the row was last updated, in UTC.
taxes
One row per tax.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the tax, assigned by Lago.
name
string
Name of the tax.
code
string
Unique code of the tax.
rate
float
Percentage rate of the tax.
description
string
Internal description of the tax.
applied_to_organization
boolean
Deprecated. Whether the tax is applied to the organization’s default billing entity. Use billing_entities_taxes instead.
created_at
timestamp
Date and time the tax was created, in UTC.
updated_at
timestamp
Date and time the tax was last updated, in UTC.
Entitlements
entitlement_entitlement_values
One row per privilege value set on an entitlement, including deleted values.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the entitlement value, assigned by Lago.
lago_entitlement_entitlement_id
string
Unique identifier of the entitlement the value belongs to, assigned by Lago.
lago_entitlement_privilege_id
string
Unique identifier of the feature privilege the value is set for, assigned by Lago.
value
string
Value assigned to the privilege in the entitlement, stored as text. Its type depends on the privilege value type (integer, boolean, string or select).
deleted_at
timestamp
Date and time the value was deleted, in UTC. Empty while the value exists.
created_at
timestamp
Date and time the value was created, in UTC.
updated_at
timestamp
Date and time the value was last updated, in UTC.
entitlement_entitlements
One row per feature granted to a plan or to a single subscription, including deleted entitlements.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the entitlement, assigned by Lago.
lago_entitlement_feature_id
string
Unique identifier of the feature granted, assigned by Lago.
lago_plan_id
string
Unique identifier of the plan the entitlement belongs to, assigned by Lago. Empty for an entitlement set on a single subscription or on a product catalog plan. Plans and subscriptions only.
lago_subscription_id
string
Unique identifier of the subscription the entitlement belongs to, assigned by Lago. Set when the entitlement overrides the plan for a single subscription, empty otherwise. Plans and subscriptions only.
deleted_at
timestamp
Date and time the entitlement was deleted, in UTC. Empty while the entitlement exists.
created_at
timestamp
Date and time the entitlement was created, in UTC.
updated_at
timestamp
Date and time the entitlement was last updated, in UTC.
entitlement_features
One row per feature, including deleted features.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the feature, assigned by Lago.
code
string
Unique code used to identify the feature.
name
string
Name of the feature.
description
string
Description of the feature.
deleted_at
timestamp
Date and time the feature was deleted, in UTC. Empty while the feature exists.
created_at
timestamp
Date and time the feature was created, in UTC.
updated_at
timestamp
Date and time the feature was last updated, in UTC.
Usage monitoring
usage_monitoring_alert_thresholds
One row per threshold of a subscription or wallet alert.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the alert threshold, assigned by Lago.
lago_alert_id
string
Unique identifier of the alert the threshold belongs to, assigned by Lago.
value
decimal
Value that triggers the alert. Its unit depends on the alert type: units for usage units alerts, credits for wallet credits alerts, and cents for all other types.
code
string
Code identifying the threshold inside the alert.
recurring
boolean
When true, the alert is triggered again each time this value is reached after the last non-recurring threshold. An alert has at most one recurring threshold.
created_at
timestamp
Date and time the threshold was created, in UTC.
updated_at
timestamp
Date and time the threshold was last updated, in UTC.
usage_monitoring_triggered_alerts
One row per time a subscription or wallet alert was triggered.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the triggered alert, assigned by Lago.
lago_alert_id
string
Unique identifier of the alert, assigned by Lago.
lago_subscription_id
string
Unique identifier of the subscription, assigned by Lago. Empty when the alert is attached to a wallet. Plans and subscriptions only.
lago_wallet_id
string
Unique identifier of the wallet, assigned by Lago. Empty when the alert is attached to a subscription.
current_value
decimal
Value checked against the thresholds when the alert was triggered.
previous_value
decimal
Value retrieved during the previous check of the alert.
crossed_thresholds
json
JSON array of the threshold lines crossed since the previous check. Each item holds code, value and recurring; a recurring threshold can appear several times.
triggered_at
timestamp
Date and time the alert was triggered, in UTC.
created_at
timestamp
Date and time the record was created, in UTC.
updated_at
timestamp
Date and time the record was last updated, in UTC.
Integrations
integration_customers
One row per link between a customer and an accounting, tax or CRM integration.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the integration customer, assigned by Lago.
lago_customer_id
string
Unique identifier of the customer, assigned by Lago.
lago_integration_id
string
Unique identifier of the integration connection, assigned by Lago.
external_customer_id
string
Customer ID within the integration’s system. Empty when the customer has not been created in that system yet.
type
string
Type of integration: IntegrationCustomers::NetsuiteCustomer, IntegrationCustomers::XeroCustomer, IntegrationCustomers::QuickbooksCustomer, IntegrationCustomers::AnrokCustomer, IntegrationCustomers::AvalaraCustomer, IntegrationCustomers::HubspotCustomer or IntegrationCustomers::SalesforceCustomer.
settings
json
Integration-specific settings, such as sync_with_provider, subsidiary_id (NetSuite) or targeted_object and email (HubSpot).
created_at
timestamp
Date and time the row was created, in UTC.
updated_at
timestamp
Date and time the row was last updated, in UTC.
Deleted records
record_deletions
One row per hard-deleted record of a tracked table, kept for one month so the deletion can be applied to your copy of the data.
Column
Type
Description
organization_id
string
Unique identifier of the organization, assigned by Lago.
lago_id
string
Unique identifier of the deletion record, assigned by Lago.
table_name
string
Table the deleted record belonged to: fees, fees_taxes, invoice_subscriptions, invoices_taxes, credit_notes_taxes, billing_entities_taxes, customers_taxes, rate_cards_taxes, plans_taxes or contract_rate_cards_terms.
lago_record_id
string
Unique identifier of the deleted record, matching its lago_id in table_name.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Lago","description":"Developer documentation for Lago, the open-source billing platform for usage metering, subscriptions, invoicing, payments, and revenue operations.","colors":{"primary":"#006CFA","light":"#006CFA","dark":"#006CFA"},"logo":{"light":"https://mintcdn.com/lago-docs/zZSJbpe68PHhSs3x/logo/light.svg?fit=max\u0026auto=format\u0026n=zZSJbpe68PHhSs3x\u0026q=85\u0026s=b4af3001527c985b81858b9a0928534c","dark":"https://mintcdn.com/lago-docs/zZSJbpe68PHhSs3x/logo/dark.svg?fit=max\u0026auto=format\u0026n=zZSJbpe68PHhSs3x\u0026q=85\u0026s=1eb7aacac796b0cc6bf05be790a792b1"},"favicon":"https://mintcdn.com/lago-docs/8N-yOElNGe9jRGG5/favicon.svg?fit=max\u0026auto=format\u0026n=8N-yOElNGe9jRGG5\u0026q=85\u0026s=5c319e58dd9b5c5b8a31cf2ad8009a1c","api":{"openapi":"https://swagger.getlago.com/openapi.yaml","mdx":{"server":"https://api.getlago.com/api/v1"}},"background":{"color":{"light":"#F5F5EF","dark":"#131923"}},"navbar":{"links":[{"href":"https://getlago.com/book-a-demo","label":"Book a Demo"}],"primary":{"type":"button","label":"Get Started","href":"https://getlago.com/book-a-demo"}},"footer":{"socials":{"github":"https://github.com/getlago/lago","slack":"https://getlago.com/slack","x":"https://x.com/getlago","linkedin":"https://www.linkedin.com/company/getlago","youtube":"https://www.youtube.com/channel/UCp6ltp7n3SgDVsmerJ7O7ZA"},"links":[{"header":"Documentation","items":[{"label":"Get started","href":"https://getlago.com/docs/guide/introduction/welcome-to-lago"},{"label":"API reference","href":"https://getlago.com/docs/api-reference/intro"},{"label":"Integrations","href":"https://getlago.com/docs/integrations/introduction"},{"label":"Templates","href":"https://getlago.com/docs/templates/introduction"},{"label":"Changelog","href":"https://getlago.com/docs/changelog/product"},{"label":"FAQ","href":"https://getlago.com/docs/faq/about-lago"}]},{"header":"Developers","items":[{"label":"Developer hub","href":"https://getlago.com/docs/developers"},{"label":"Authentication","href":"https://getlago.com/docs/auth"},{"label":"Webhooks","href":"https://getlago.com/docs/guide/webhooks"},{"label":"SDKs","href":"https://getlago.com/docs/developers"},{"label":"OpenAPI spec","href":"https://swagger.getlago.com/"},{"label":"MCP server","href":"https://getlago.com/docs/guide/ai-agents/mcp-server"},{"label":"Self-hosted","href":"https://getlago.com/docs/guide/lago-self-hosted/overview"},{"label":"llms.txt","href":"https://getlago.com/docs/llms.txt"}]},{"header":"Platform","items":[{"label":"Usage metering","href":"https://getlago.com/platform/usage-metering"},{"label":"Billing \u0026 invoicing","href":"https://getlago.com/platform/billing-invoicing"},{"label":"Cash collection","href":"https://getlago.com/platform/cash-collection"},{"label":"Revenue analytics","href":"https://getlago.com/platform/revenue-analytics"},{"label":"Entitlements","href":"https://getlago.com/platform/entitlements"},{"label":"Lago AI","href":"https://getlago.com/platform/ai"},{"label":"Pricing","href":"https://getlago.com/pricing"}]},{"header":"Company","items":[{"label":"About Lago","href":"https://getlago.com/docs/about"},{"label":"Customers","href":"https://getlago.com/customers"},{"label":"Blog","href":"https://getlago.com/blog"},{"label":"Contact","href":"https://getlago.com/docs/contact"},{"label":"Trust center","href":"https://security.getlago.com"},{"label":"Status","href":"https://status.getlago.com"}]}]},"seo":{"metatags":{"canonical":"https://getlago.com/docs","description":"Developer documentation for Lago's API-first billing platform, including OpenAPI, SDKs, webhooks, MCP, authentication, and implementation guides.","keywords":"Lago API, billing API, usage metering API, OpenAPI, billing SDK, Lago MCP"},"organization":{"id":"https://getlago.com/#organization","name":"Lago","legalName":"Get Lago Corp.","url":"https://getlago.com","logo":"https://getlago.com/docs/logo/light.svg","sameAs":["https://github.com/getlago","https://www.linkedin.com/company/getlago","https://x.com/GetLago","https://www.youtube.com/channel/UCp6ltp7n3SgDVsmerJ7O7ZA"]},"indexing":"all"},"fonts":{"heading":{"family":"GT America","weight":700,"source":"fonts/GT-America-Standard-Medium.woff2","format":"woff2"},"body":{"family":"GT America","source":"fonts/GT-America-Standard-Regular.woff2","format":"woff2"}},"styling":{"codeblocks":"dark","latex":true},"integrations":{"ga4":{"measurementId":"G-743BQ9THCG"},"cookies":{"key":"lago_docs_analytics","value":"granted"}},"errors":{"404":{"redirect":false,"title":"Documentation page not found","description":"No Lago documentation exists at this URL. Start at [Lago Developer Documentation](/welcome), browse [Developer Resources](/developers), inspect the [documentation index](/llms.txt) or [sitemap](/sitemap.xml), or search the [API reference](/api-reference/intro)."}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"navigation":{"global":{"anchors":[{"anchor":"Blog","icon":"newspaper","href":"https://getlago.com/blog"},{"anchor":"Community","icon":"slack","href":"https://getlago.com/slack"},{"anchor":"GitHub","icon":"github","href":"https://github.com/getlago/lago"},{"anchor":"Status","icon":"signal-bars","href":"https://status.getlago.com/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"lago-docs","hasAudioNarration":false,"actualSubdomain":"lago-docs","customDomains":["getlago.com"],"gitSource":{"type":"github","owner":"getlago","repo":"lago-doc","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b09acb3abaa6e997b15e050","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"API References","count":243},{"language":"default","tag":"API Reference","count":243},{"language":"default","tag":"Guide","count":208},{"language":"default","tag":"Integrations","count":54},{"language":"default","tag":"Plans","count":46},{"language":"default","tag":"Resources","count":46},{"language":"default","tag":"Charges","count":39},{"language":"default","tag":"Pricing \u0026 Subscriptions","count":35},{"language":"default","tag":"Subscriptions","count":31},{"language":"default","tag":"Events \u0026 Usage Components","count":29}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"html{visibility:hidden;background-color:#F5F5EF}@media (prefers-color-scheme: dark){html{background-color:#131923}}html.ready{visibility:visible}.dark .welcome-card{background-color:#1c2535!important;border-color:rgba(255, 255, 255, 0.1)!important;box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.3)!important;color:#e5e7eb}.dark .welcome-card:hover{background-color:#243044!important}.dark .welcome-card h3{color:#ffffff}.dark .welcome-card p{color:#9ca3af!important}#changelog-month-nav{padding-left:2.5rem;width:19rem;box-sizing:border-box;margin-bottom:1.75rem;max-height:45vh;overflow-y:auto}#changelog-month-nav .changelog-month-nav__year{margin:0 0 0.5rem;font-size:0.875rem;line-height:1.5rem;font-weight:500;color:#364152}#changelog-month-nav .changelog-month-nav__list{list-style:none;margin:0;padding:0;border-left:1px solid rgba(0, 0, 0, 0.08)}#changelog-month-nav .changelog-month-nav__list a{display:block;padding:0.25rem 0 0.25rem 0.75rem;margin-left:-1px;border-left:1px solid transparent;font-size:0.875rem;line-height:1.5rem;color:#697586;text-decoration:none;transition:color 0.15s ease, border-color 0.15s ease}#changelog-month-nav .changelog-month-nav__list a:hover{color:#121926}#changelog-month-nav .changelog-month-nav__list a.is-active{color:#006CFA;border-left-color:#006CFA;font-weight:500}.dark #changelog-month-nav .changelog-month-nav__year{color:#cdd5df}.dark #changelog-month-nav .changelog-month-nav__list{border-left-color:rgba(255, 255, 255, 0.12)}.dark #changelog-month-nav .changelog-month-nav__list a{color:#9aa4b2}.dark #changelog-month-nav .changelog-month-nav__list a:hover{color:#ffffff}.dark #changelog-month-nav .changelog-month-nav__list a.is-active{color:#4d9bff;border-left-color:#4d9bff}.update-container>div:first-child{display:none}.update-container>div:nth-child(2){flex:1 1 100%;max-width:100%;width:100%}.update-container{gap:0}#footer a[href*=\"utm_campaign=poweredBy\"]{display:none}"}]}
{"page":{"pagePath":"integrations/data/lago-data-pipeline-schema","slug":"/integrations/data/lago-data-pipeline-schema","pageMetadata":{"title":"Data Pipeline schema","description":"Every table and column synced by Lago Data Pipeline","href":"/integrations/data/lago-data-pipeline-schema"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Every table and column synced by Lago Data Pipeline\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,Heading,Note,Table}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`This page lists every table and column that `,_jsx(_components.a,{href:`/integrations/data/lago-data-pipeline`,children:`Lago Data Pipeline`}),` syncs to your destination, grouped by domain. Open a table to see its columns, in the order they appear in your destination.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`lago_id`}),` is the primary key of every table.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`updated_at`}),` drives incremental syncs: a row is synced again when its `,_jsx(_components.code,{children:`updated_at`}),` changes.`]}),`\n`,_jsxs(_components.li,{children:[`Amounts in `,_jsx(_components.code,{children:`_cents`}),` columns are in the smallest unit of the currency, for example cents for USD or EUR.`]}),`\n`,_jsx(_components.li,{children:`Timestamps are in UTC.`}),`\n`,_jsx(_components.li,{children:`Organizations billing with plans and subscriptions and organizations billing with the product catalog share the same tables. Tables or columns that only apply to one of them are marked, and stay empty for the other. Columns for the product catalog are always added after the existing columns of a shared table.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`billing-entities`,children:`Billing entities`}),`\n`,_jsx(AccordionGroup,{children:_jsxs(Accordion,{title:`billing_entities`,id:`billing-entities`,children:[_jsx(_components.p,{children:`One row per billing entity, including archived and deleted ones.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the billing entity, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique code of the billing entity.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Name of the billing entity.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`legal_name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Legal name of the billing entity.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`legal_number`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Legal registration number of the billing entity.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`email`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Email address of the billing entity.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`address_line1`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`First line of the billing entity’s address.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`address_line2`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Second line of the billing entity’s address.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`city`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`City of the billing entity’s address.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`zipcode`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Zipcode of the billing entity’s address.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`state`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`State of the billing entity’s address.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`country`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Country code of the billing entity’s address.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`vat_rate`})}),_jsx(_components.td,{children:`float`}),_jsxs(_components.td,{children:[`Legacy VAT rate field on the billing entity. Taxes applied to the billing entity are listed in `,_jsx(_components.code,{children:`billing_entities_taxes`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`timezone`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Timezone of the billing entity.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the billing entity was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the billing entity was last updated, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`archived_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the billing entity was archived, in UTC. Empty when it is not archived.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`deleted_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the billing entity was deleted, in UTC. Empty when it is not deleted.`})]})]})]})]})}),`\n`,_jsx(Heading,{level:`2`,id:`customers`,children:`Customers`}),`\n`,_jsx(AccordionGroup,{children:_jsxs(Accordion,{title:`customers`,id:`customers`,children:[_jsx(_components.p,{children:`One row per customer, including deleted customers.`}),_jsx(Note,{children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`lago_taxes_ids`}),` column is deprecated: it is always an empty array and is only kept so existing destinations keep working. Use `,_jsx(_components.a,{href:`#taxes`,children:_jsx(_components.code,{children:`customers_taxes`})}),` for the taxes assigned to a customer.`]})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the customer, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`billing_entity_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the billing entity the customer is attached to, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`external_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Customer external unique identifier, provided by your own application.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`account_type`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Type of the account: `,_jsx(_components.code,{children:`customer`}),` or `,_jsx(_components.code,{children:`partner`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Full name of the customer.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`firstname`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`First name of the customer.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lastname`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Last name of the customer.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`customer_type`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Type of the customer: `,_jsx(_components.code,{children:`company`}),` or `,_jsx(_components.code,{children:`individual`}),`. Empty when not set.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sequential_id`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Number of the customer within the organization, reflecting its order of creation.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`slug`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Short unique identifier of the customer, built from the organization and the customer’s `,_jsx(_components.code,{children:`sequential_id`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the customer was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the customer was last updated, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`deleted_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the customer was deleted, in UTC. Empty for active customers.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`country`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Country code of the customer’s billing address, in ISO 3166 alpha-2 format.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`address_line1`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`First line of the customer’s billing address.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`address_line2`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Second line of the customer’s billing address.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`state`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`State of the customer’s billing address.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`zipcode`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Zipcode of the customer’s billing address.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`email`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Email of the customer.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`city`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`City of the customer’s billing address.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`url`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Custom website URL of the customer.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`phone`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Phone number of the customer.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`legal_name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Legal company name of the customer.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`legal_number`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Legal company number of the customer.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`currency`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Currency of the customer, in ISO 4217 format.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tax_identification_number`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Tax identification number of the customer.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`timezone`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Timezone set on the customer, used for billing in their local time. Empty when the customer has no timezone of its own.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`applicable_timezone`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Timezone that applies to the customer: its own timezone, else the organization’s timezone, else `,_jsx(_components.code,{children:`UTC`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`net_payment_term`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Number of days the customer has to pay an invoice after it is issued. Empty when the customer has no payment term of its own.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`external_salesforce_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Customer ID within the Salesforce system.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`finalize_zero_amount_invoice`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`How invoices with a zero total are handled for this customer: `,_jsx(_components.code,{children:`inherit`}),` (follows the higher-level setting), `,_jsx(_components.code,{children:`skip`}),` or `,_jsx(_components.code,{children:`finalize`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`skip_invoice_custom_sections`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:`Whether all invoice custom sections are excluded from PDF generation for this customer.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`payment_provider`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Payment provider used to collect payments for the customer’s invoices: `,_jsx(_components.code,{children:`stripe`}),`, `,_jsx(_components.code,{children:`adyen`}),`, `,_jsx(_components.code,{children:`cashfree`}),`, `,_jsx(_components.code,{children:`flutterwave`}),`, `,_jsx(_components.code,{children:`gocardless`}),` or `,_jsx(_components.code,{children:`moneyhash`}),`. Empty when none is set.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`payment_provider_code`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique code of the payment provider connection used for the customer.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invoice_grace_period`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Grace period in days set on the customer, during which invoices can still be adjusted before they are finalized. Empty when the customer has no grace period of its own.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`vat_rate`})}),_jsx(_components.td,{children:`float`}),_jsxs(_components.td,{children:[`Legacy VAT rate field on the customer. Taxes applied to the customer are listed in `,_jsx(_components.code,{children:`customers_taxes`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`applicable_invoice_grace_period`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Invoice grace period in days that applies to the customer: its own value, else the organization’s value.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`document_locale`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Language of the documents issued for the customer, in ISO 639-1 format. Empty when the customer has no locale of its own.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`provider_customer_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Customer ID within the payment provider’s system, from the customer’s payment provider record.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`provider_settings`})}),_jsx(_components.td,{children:`json`}),_jsxs(_components.td,{children:[`Settings of the customer’s payment provider record, such as `,_jsx(_components.code,{children:`provider_mandate_id`}),`, `,_jsx(_components.code,{children:`payment_method_id`}),` or `,_jsx(_components.code,{children:`sync_with_provider`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`metadata`})}),_jsx(_components.td,{children:`json`}),_jsx(_components.td,{children:`Always an empty object in this table.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_taxes_ids`})}),_jsx(_components.td,{children:`json`}),_jsxs(_components.td,{children:[`Always an empty array in this table. The taxes applied to a customer are listed in `,_jsx(_components.code,{children:`customers_taxes`}),`.`]})]})]})]})]})}),`\n`,_jsx(Heading,{level:`2`,id:`billable-metrics`,children:`Billable metrics`}),`\n`,_jsx(AccordionGroup,{children:_jsxs(Accordion,{title:`billable_metrics`,id:`billable-metrics`,children:[_jsx(_components.p,{children:`One row per billable metric. Deleted billable metrics are excluded.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the billable metric, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Name of the billable metric.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique code of the billable metric, used to associate each event with the correct metric.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`description`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Internal description of the billable metric.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`aggregation_type`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Aggregation method used to compute usage: `,_jsx(_components.code,{children:`count_agg`}),`, `,_jsx(_components.code,{children:`sum_agg`}),`, `,_jsx(_components.code,{children:`max_agg`}),`, `,_jsx(_components.code,{children:`unique_count_agg`}),`, `,_jsx(_components.code,{children:`weighted_sum_agg`}),`, `,_jsx(_components.code,{children:`latest_agg`}),`, `,_jsx(_components.code,{children:`custom_agg`}),` or `,_jsx(_components.code,{children:`unknown`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`weighted_interval`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Time interval used to weight usage with the `,_jsx(_components.code,{children:`weighted_sum_agg`}),` aggregation type: `,_jsx(_components.code,{children:`seconds`}),`. Empty for other aggregation types.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`recurring`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:`Whether the accumulated number of units carries over from one billing period to the next instead of resetting to 0.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`rounding_function`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Rounding applied to the aggregated number of units: `,_jsx(_components.code,{children:`round`}),`, `,_jsx(_components.code,{children:`ceil`}),` or `,_jsx(_components.code,{children:`floor`}),`. Empty when units are not rounded.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`rounding_precision`})}),_jsx(_components.td,{children:`integer`}),_jsxs(_components.td,{children:[`Number of decimal places kept when `,_jsx(_components.code,{children:`rounding_function`}),` is applied. It can be positive or negative.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the billable metric was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the billable metric was last updated, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`field_name`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Event property used to aggregate usage. Empty when `,_jsx(_components.code,{children:`aggregation_type`}),` is `,_jsx(_components.code,{children:`count_agg`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`expression`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Expression evaluated for each event to calculate its units.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`filters`})}),_jsx(_components.td,{children:`json`}),_jsxs(_components.td,{children:[`Filters of the billable metric, as an array of objects with a `,_jsx(_components.code,{children:`key`}),` (the event property) and its possible `,_jsx(_components.code,{children:`values`}),`. Empty array when there are no filters.`]})]})]})]})]})}),`\n`,_jsx(Heading,{level:`2`,id:`plans-and-subscriptions`,children:`Plans and subscriptions`}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`charges`,id:`charges`,children:[_jsx(_components.p,{children:`One row per usage-based charge of a plan, including deleted charges.`}),_jsx(_components.p,{children:`Plans and subscriptions only: empty for organizations billing with the product catalog.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the charge, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_billable_metric_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the billable metric the charge prices, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_plan_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the plan the charge belongs to, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invoice_display_name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Name displayed on invoices for this charge. When empty, the name of the billable metric is used.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the charge was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the charge was last updated, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`deleted_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the charge was deleted, in UTC. Empty while the charge exists.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`charge_model`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Pricing model of the charge: `,_jsx(_components.code,{children:`standard`}),`, `,_jsx(_components.code,{children:`graduated`}),`, `,_jsx(_components.code,{children:`package`}),`, `,_jsx(_components.code,{children:`percentage`}),`, `,_jsx(_components.code,{children:`volume`}),`, `,_jsx(_components.code,{children:`graduated_percentage`}),`, `,_jsx(_components.code,{children:`custom`}),` or `,_jsx(_components.code,{children:`dynamic`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invoiceable`})}),_jsx(_components.td,{children:`boolean`}),_jsxs(_components.td,{children:[`Whether the charge is included in an invoice. When `,_jsx(_components.code,{children:`false`}),`, no invoice is issued for this charge. It can only be `,_jsx(_components.code,{children:`false`}),` when `,_jsx(_components.code,{children:`pay_in_advance`}),` is `,_jsx(_components.code,{children:`true`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`regroup_paid_fees`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Set to `,_jsx(_components.code,{children:`invoice`}),` when the paid-in-advance fees of a non-invoiceable charge are consolidated into an invoice at the end of the period once their payment succeeded. Empty when no invoice is issued for them.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pay_in_advance`})}),_jsx(_components.td,{children:`boolean`}),_jsxs(_components.td,{children:[`When `,_jsx(_components.code,{children:`true`}),`, the charge is due and invoiced immediately. When `,_jsx(_components.code,{children:`false`}),`, it is due and invoiced at the end of each billing period.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`prorated`})}),_jsx(_components.td,{children:`boolean`}),_jsxs(_components.td,{children:[`When `,_jsx(_components.code,{children:`true`}),`, the charge is prorated based on the remaining days in the billing period. When `,_jsx(_components.code,{children:`false`}),`, it is billed in full.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`min_amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Minimum amount to charge for each billing period, excluding taxes, in cents.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`properties`})}),_jsx(_components.td,{children:`json`}),_jsxs(_components.td,{children:[`JSON object holding the pricing properties of the charge model, with the same structure as the charge `,_jsx(_components.code,{children:`properties`}),` in the API (for example `,_jsx(_components.code,{children:`amount`}),` for a standard charge or `,_jsx(_components.code,{children:`graduated_ranges`}),` for a graduated one).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`charge_filters`})}),_jsx(_components.td,{children:`json`}),_jsxs(_components.td,{children:[`JSON array of the charge filters used to apply differentiated pricing. Each item holds `,_jsx(_components.code,{children:`invoice_display_name`}),`, `,_jsx(_components.code,{children:`properties`}),` (pricing properties for the filter) and `,_jsx(_components.code,{children:`values`}),`, an array of objects mapping a billable metric filter identifier to the list of filter values. Empty when the charge has no filter.`]})]})]})]})]}),_jsxs(Accordion,{title:`plans`,id:`plans`,children:[_jsx(_components.p,{children:`One row per plan that is not deleted, including plans that override a parent plan for a single subscription.`}),_jsx(_components.p,{children:`Plans and subscriptions only: empty for organizations billing with the product catalog.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the plan, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Name of the plan.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invoice_display_name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Name displayed on invoices. When empty, the plan name is used.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the plan was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the plan was last updated, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Code of the plan, a unique identifier used for example when assigning a subscription.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`plan_interval`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Interval used for recurring billing: `,_jsx(_components.code,{children:`weekly`}),`, `,_jsx(_components.code,{children:`monthly`}),`, `,_jsx(_components.code,{children:`yearly`}),` or `,_jsx(_components.code,{children:`quarterly`}),`. Empty for `,_jsx(_components.code,{children:`semiannual`}),` plans, which this column does not map.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`description`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Description of the plan.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Base cost of the plan, excluding taxes, billed on a recurring basis, in cents. It is 0 for a pay-as-you-go plan.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount_currency`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Currency of the plan, used for its base cost and usage-based charges.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`trial_period`})}),_jsx(_components.td,{children:`float`}),_jsx(_components.td,{children:`Duration in days during which the base cost of the plan is offered for free.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pay_in_advance`})}),_jsx(_components.td,{children:`boolean`}),_jsxs(_components.td,{children:[`When `,_jsx(_components.code,{children:`true`}),`, the base cost of the plan is due at the beginning of each billing period. When `,_jsx(_components.code,{children:`false`}),`, it is due at the end of the period.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`bill_charges_monthly`})}),_jsx(_components.td,{children:`boolean`}),_jsxs(_components.td,{children:[`When `,_jsx(_components.code,{children:`true`}),`, usage-based charges are invoiced monthly even if the plan interval is yearly or semiannual.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`parent_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the parent plan, assigned by Lago. Set on plans that override a parent plan for a single subscription, empty on standard plans.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_taxes_ids`})}),_jsx(_components.td,{children:`json`}),_jsx(_components.td,{children:`JSON array of the unique identifiers of the taxes applied to the plan, assigned by Lago.`})]})]})]})]}),_jsxs(Accordion,{title:`subscriptions`,id:`subscriptions`,children:[_jsx(_components.p,{children:`One row per subscription of a customer to a plan.`}),_jsx(_components.p,{children:`Plans and subscriptions only: empty for organizations billing with the product catalog.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the subscription, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`external_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Subscription external unique identifier (provided by your own application).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_customer_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the customer, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Display name of the subscription on invoices.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_plan_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the plan of the subscription, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`status`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Status of the subscription: `,_jsx(_components.code,{children:`pending`}),`, `,_jsx(_components.code,{children:`active`}),`, `,_jsx(_components.code,{children:`terminated`}),` or `,_jsx(_components.code,{children:`canceled`}),`. Empty for `,_jsx(_components.code,{children:`incomplete`}),` subscriptions (waiting for a gating payment), which this column does not map.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`billing_time`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Billing time of the subscription: `,_jsx(_components.code,{children:`calendar`}),` or `,_jsx(_components.code,{children:`anniversary`}),`. It determines when recurring billing cycles start.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`subscription_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsxs(_components.td,{children:[`Anniversary date and time of the initial subscription, in UTC. It is the basis for billing subscriptions with `,_jsx(_components.code,{children:`anniversary`}),` billing time.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`started_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsxs(_components.td,{children:[`Effective start date and time of the subscription, in UTC. Empty if the subscription is `,_jsx(_components.code,{children:`pending`}),` or `,_jsx(_components.code,{children:`canceled`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`trial_ended_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the free trial ended, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ending_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Effective end date and time of the subscription, in UTC. When empty, the subscription renews automatically.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`terminated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsxs(_components.td,{children:[`Date and time the subscription was terminated, in UTC. Set when the status is `,_jsx(_components.code,{children:`terminated`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`canceled_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsxs(_components.td,{children:[`Date and time the subscription was canceled, in UTC. Set when the status is `,_jsx(_components.code,{children:`canceled`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the subscription was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the subscription was last updated, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_next_subscriptions_id`})}),_jsx(_components.td,{children:`json`}),_jsx(_components.td,{children:`JSON array of the unique identifiers of the subscriptions that replace this one after an upgrade or downgrade, assigned by Lago. Empty array when there is none.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_previous_subscription_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the subscription this one replaces after an upgrade or downgrade, assigned by Lago. Empty for a first subscription.`})]})]})]})]}),_jsxs(Accordion,{title:`usage_thresholds`,id:`usage-thresholds`,children:[_jsx(_components.p,{children:`One row per progressive billing usage threshold, including deleted thresholds.`}),_jsx(_components.p,{children:`Plans and subscriptions only: empty for organizations billing with the product catalog.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_plan_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the plan the threshold belongs to, assigned by Lago. Empty for a threshold defined on a single subscription.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the usage threshold, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Usage amount to reach to trigger a progressive billing invoice, in cents.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`recurring`})}),_jsx(_components.td,{children:`boolean`}),_jsxs(_components.td,{children:[`When `,_jsx(_components.code,{children:`true`}),`, a progressive billing invoice is created every time the lifetime usage increases by `,_jsx(_components.code,{children:`amount_cents`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`threshold_display_name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Display name of the usage threshold.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the usage threshold was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the usage threshold was last updated, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`deleted_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the usage threshold was deleted, in UTC. Empty while the threshold exists.`})]})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`product-catalog`,children:`Product catalog`}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`catalog_plans`,id:`catalog-plans`,children:[_jsx(_components.p,{children:`One row per plan of the product catalog.`}),_jsx(_components.p,{children:`Product catalog only: empty for organizations billing with plans and subscriptions.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the catalog plan, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique code of the catalog plan within the organization.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Name of the catalog plan.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invoice_display_name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Name of the catalog plan displayed on invoices. Empty when the plan name is used.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`description`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Description of the catalog plan.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`currency`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Currency of the catalog plan, as an ISO 4217 code.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the catalog plan was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the catalog plan was last updated, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`deleted_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the catalog plan was deleted, in UTC. Empty if the catalog plan is not deleted.`})]})]})]})]}),_jsxs(Accordion,{title:`plan_rate_cards`,id:`plan-rate-cards`,children:[_jsx(_components.p,{children:`One row per rate card attached to a catalog plan.`}),_jsx(_components.p,{children:`Product catalog only: empty for organizations billing with plans and subscriptions.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the plan rate card, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_catalog_plan_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the catalog plan the rate card is attached to, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_rate_card_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the rate card attached to the plan, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`units`})}),_jsx(_components.td,{children:`decimal`}),_jsx(_components.td,{children:`Number of units of the rate card included in the plan. Copied to the contract’s rate card terms when a contract uses the plan. Empty when not set.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the rate card was attached to the plan, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the plan rate card was last updated, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`deleted_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the rate card was removed from the plan, in UTC. Empty if it is still attached.`})]})]})]})]}),_jsxs(Accordion,{title:`pricing_units`,id:`pricing-units`,children:[_jsx(_components.p,{children:`One row per pricing unit, a custom unit in which prices can be expressed instead of a currency.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the pricing unit, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique code of the pricing unit within the organization.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Name of the pricing unit.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`short_name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Short name of the pricing unit, up to 3 characters, displayed next to amounts.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`description`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Description of the pricing unit.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the pricing unit was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the pricing unit was last updated, in UTC.`})]})]})]})]}),_jsxs(Accordion,{title:`product_categories`,id:`product-categories`,children:[_jsx(_components.p,{children:`One row per product category, used to group products.`}),_jsx(_components.p,{children:`Product catalog only: empty for organizations billing with plans and subscriptions.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the product category, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique code of the product category within the organization.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Name of the product category.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`description`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Description of the product category.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invoice_display_name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Name of the product category displayed on invoices. Empty when the category name is used.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the product category was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the product category was last updated, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`deleted_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the product category was deleted, in UTC. Empty if the product category is not deleted.`})]})]})]})]}),_jsxs(Accordion,{title:`product_filters`,id:`product-filters`,children:[_jsx(_components.p,{children:`One row per product filter, a slice of a metered product’s usage defined by billable metric filter values.`}),_jsx(_components.p,{children:`Product catalog only: empty for organizations billing with plans and subscriptions.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the product filter, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_product_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the product the filter belongs to, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique code of the filter within its product.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Name of the product filter.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`description`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Description of the product filter.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invoice_display_name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Name of the product filter displayed on invoices. Empty when the filter name is used.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the product filter was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the product filter or one of its values was last updated, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`deleted_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the product filter was deleted, in UTC. Empty if the filter is not deleted.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`filter_values`})}),_jsx(_components.td,{children:`json`}),_jsxs(_components.td,{children:[`Billable metric filter values selected by the filter, as an array of `,_jsx(_components.code,{children:`{\"key\", \"value\"}`}),` objects where `,_jsx(_components.code,{children:`key`}),` is the billable metric filter key. Empty array when the filter has no values.`]})]})]})]})]}),_jsxs(Accordion,{title:`products`,id:`products`,children:[_jsx(_components.p,{children:`One row per product of the product catalog.`}),_jsx(_components.p,{children:`Product catalog only: empty for organizations billing with plans and subscriptions.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the product, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_product_category_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the product category, assigned by Lago. Empty when the product has no category.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_billable_metric_id`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Unique identifier of the billable metric measuring the product’s usage, assigned by Lago. Set for `,_jsx(_components.code,{children:`metered`}),` products, empty for `,_jsx(_components.code,{children:`fixed`}),` products.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_add_on_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the add-on linked to the product, assigned by Lago. Empty when the product is not linked to an add-on.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_charge_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the charge linked to the product, assigned by Lago. Empty when the product is not linked to a charge.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`product_type`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Type of the product: `,_jsx(_components.code,{children:`metered`}),` or `,_jsx(_components.code,{children:`fixed`}),`. A metered product is billed on usage of its billable metric, a fixed product bills a fixed fee per period.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique code of the product within the organization.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Name of the product.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invoice_display_name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Name of the product displayed on invoices. Empty when the product name is used.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`description`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Description of the product.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the product was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the product was last updated, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`deleted_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the product was deleted, in UTC. Empty if the product is not deleted.`})]})]})]})]}),_jsxs(Accordion,{title:`rate_card_rates`,id:`rate-card-rates`,children:[_jsxs(_components.p,{children:[`One row per rate of a rate card. A rate card’s rates form a timeline: each rate applies from its `,_jsx(_components.code,{children:`effective_from`}),` until the next one takes effect.`]}),_jsx(_components.p,{children:`Product catalog only: empty for organizations billing with plans and subscriptions.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the rate, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_rate_card_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the rate card the rate belongs to, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique code of the rate within its rate card.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`effective_from`})}),_jsx(_components.td,{children:`timestamp`}),_jsxs(_components.td,{children:[`Date and time the rate takes effect, in UTC. On `,_jsx(_components.code,{children:`arrears`}),` rate cards it is the start of a day.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`rate_model`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Pricing model of the rate: `,_jsx(_components.code,{children:`standard`}),`, `,_jsx(_components.code,{children:`graduated`}),`, `,_jsx(_components.code,{children:`package`}),`, `,_jsx(_components.code,{children:`percentage`}),`, `,_jsx(_components.code,{children:`volume`}),`, `,_jsx(_components.code,{children:`graduated_percentage`}),`, `,_jsx(_components.code,{children:`custom`}),` or `,_jsx(_components.code,{children:`dynamic`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`rate_properties`})}),_jsx(_components.td,{children:`json`}),_jsxs(_components.td,{children:[`Pricing properties of the rate, structured per `,_jsx(_components.code,{children:`rate_model`}),` with the same properties as a charge’s pricing model (for example `,_jsx(_components.code,{children:`amount`}),` for `,_jsx(_components.code,{children:`standard`}),`, `,_jsx(_components.code,{children:`graduated_ranges`}),` for `,_jsx(_components.code,{children:`graduated`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`min_amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsxs(_components.td,{children:[`Minimum amount billed per billing period, in cents. `,_jsx(_components.code,{children:`0`}),` when there is no minimum. Only used on `,_jsx(_components.code,{children:`arrears`}),` rate cards.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`billing_interval_count`})}),_jsx(_components.td,{children:`integer`}),_jsxs(_components.td,{children:[`Length of the billing period, as a number of `,_jsx(_components.code,{children:`billing_interval_unit`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`billing_interval_unit`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Unit of the billing period: `,_jsx(_components.code,{children:`day`}),`, `,_jsx(_components.code,{children:`week`}),`, `,_jsx(_components.code,{children:`month`}),` or `,_jsx(_components.code,{children:`year`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`applied_pricing_unit_conversion_rate`})}),_jsx(_components.td,{children:`decimal`}),_jsx(_components.td,{children:`Conversion rate from one pricing unit to the rate card currency. Set when the rate card is priced in a pricing unit, empty otherwise.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the rate was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the rate was last updated, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`deleted_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the rate was deleted, in UTC. Empty if the rate is not deleted.`})]})]})]})]}),_jsxs(Accordion,{title:`rate_cards`,id:`rate-cards`,children:[_jsx(_components.p,{children:`One row per rate card, which sets how a product, or a filter of it, is priced and billed.`}),_jsx(_components.p,{children:`Product catalog only: empty for organizations billing with plans and subscriptions.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the rate card, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_product_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the product priced by the rate card, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_product_filter_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the product filter priced by the rate card, assigned by Lago. Empty when the rate card prices the whole product.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique code of the rate card within the organization.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Name of the rate card.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`description`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Description of the rate card.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`currency`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Currency of the rate card, as an ISO 4217 code.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`billing_timing`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`When the rate card’s fees are billed: `,_jsx(_components.code,{children:`arrears`}),` (at the end of the period) or `,_jsx(_components.code,{children:`advance`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`proration`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:`Whether fees are prorated when the rate card covers part of a billing period.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`display_on_invoice`})}),_jsx(_components.td,{children:`boolean`}),_jsxs(_components.td,{children:[`Whether the rate card’s fees are included on an invoice. Can only be `,_jsx(_components.code,{children:`false`}),` for metered products billed in `,_jsx(_components.code,{children:`advance`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`regroup_paid_fees`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`How paid fees not displayed on an invoice are grouped: `,_jsx(_components.code,{children:`none`}),` or `,_jsx(_components.code,{children:`invoice`}),`. `,_jsx(_components.code,{children:`invoice`}),` gathers them on one invoice at the end of the period. Empty when fees stay standalone.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`applied_pricing_unit_code`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Code of the pricing unit the rate card is priced in. Empty when the rate card is priced in its currency.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the rate card was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the rate card was last updated, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`deleted_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the rate card was deleted, in UTC. Empty if the rate card is not deleted.`})]})]})]})]}),_jsxs(Accordion,{title:`rate_overrides`,id:`rate-overrides`,children:[_jsx(_components.p,{children:`One row per rate override, which replaces the rate card’s rate during a rate phase.`}),_jsx(_components.p,{children:`Product catalog only: empty for organizations billing with plans and subscriptions.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the rate override, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`rate_model`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Pricing model of the override: `,_jsx(_components.code,{children:`standard`}),`, `,_jsx(_components.code,{children:`graduated`}),`, `,_jsx(_components.code,{children:`package`}),`, `,_jsx(_components.code,{children:`percentage`}),`, `,_jsx(_components.code,{children:`volume`}),`, `,_jsx(_components.code,{children:`graduated_percentage`}),`, `,_jsx(_components.code,{children:`custom`}),` or `,_jsx(_components.code,{children:`dynamic`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`rate_properties`})}),_jsx(_components.td,{children:`json`}),_jsxs(_components.td,{children:[`Pricing properties of the override, structured per `,_jsx(_components.code,{children:`rate_model`}),` like `,_jsx(_components.code,{children:`rate_card_rates.rate_properties`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`min_amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsxs(_components.td,{children:[`Minimum amount billed per billing period during the phase, in cents. `,_jsx(_components.code,{children:`0`}),` when there is no minimum.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`billing_interval_count`})}),_jsx(_components.td,{children:`integer`}),_jsxs(_components.td,{children:[`Length of the billing period during the phase, as a number of `,_jsx(_components.code,{children:`billing_interval_unit`}),`. Empty when the rate card rate’s interval applies.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`billing_interval_unit`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Unit of the billing period during the phase: `,_jsx(_components.code,{children:`day`}),`, `,_jsx(_components.code,{children:`week`}),`, `,_jsx(_components.code,{children:`month`}),` or `,_jsx(_components.code,{children:`year`}),`. Empty when the rate card rate’s interval applies.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pricing_unit_conversion_rate`})}),_jsx(_components.td,{children:`decimal`}),_jsx(_components.td,{children:`Conversion rate from one pricing unit to the rate card currency during the phase. Set when the rate card is priced in a pricing unit, empty otherwise.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the rate override was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the rate override was last updated, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`deleted_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the rate override was deleted, in UTC. Empty if the rate override is not deleted.`})]})]})]})]}),_jsxs(Accordion,{title:`rate_phases`,id:`rate-phases`,children:[_jsxs(_components.p,{children:[`One row per phase of a plan rate card or contract rate card. Phases run in `,_jsx(_components.code,{children:`position`}),` order, each for a number of billing cycles.`]}),_jsx(_components.p,{children:`Product catalog only: empty for organizations billing with plans and subscriptions.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the rate phase, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_plan_rate_card_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the plan rate card the phase belongs to, assigned by Lago. Empty when the phase belongs to a contract rate card.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_contract_rate_card_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the contract rate card the phase belongs to, assigned by Lago. Empty when the phase belongs to a plan rate card.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_rate_override_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the rate override applied during the phase, assigned by Lago. Empty when the phase uses the rate card’s own rate.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique code of the phase within its rate card.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Name of the phase.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`position`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Order of the phase in its rate card’s timeline, starting at 1.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`billing_interval_cycle_count`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Number of billing cycles the phase lasts. Empty for the last phase, which lasts indefinitely.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the rate phase was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the rate phase was last updated, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`deleted_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the rate phase was deleted, in UTC. Empty if the rate phase is not deleted.`})]})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`contracts`,children:`Contracts`}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`contract_rate_cards`,id:`contract-rate-cards`,children:[_jsxs(_components.p,{children:[`One row per rate card attached to a contract, from its catalog plan or directly. Its units over time are in `,_jsx(_components.code,{children:`contract_rate_cards_terms`}),`.`]}),_jsx(_components.p,{children:`Product catalog only: empty for organizations billing with plans and subscriptions.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the contract rate card, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_contract_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the contract the rate card is attached to, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_rate_card_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the rate card attached to the contract, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`billing_anchor_date`})}),_jsx(_components.td,{children:`date`}),_jsx(_components.td,{children:`Date the rate card’s billing periods are anchored to. Defaults to the contract’s anchor date, or its start date.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`next_billing_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time of the rate card’s next billing, in UTC. Empty when there is nothing left to bill.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`effective_date`})}),_jsx(_components.td,{children:`date`}),_jsx(_components.td,{children:`Date the rate card takes effect on the contract.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the rate card was attached to the contract, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the contract rate card was last updated, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`deleted_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the rate card was removed from the contract, in UTC. Empty if it is still attached.`})]})]})]})]}),_jsxs(Accordion,{title:`contract_rate_cards_terms`,id:`contract-rate-cards-terms`,children:[_jsx(_components.p,{children:`One row per change of units of a contract rate card, with the date it takes effect.`}),_jsx(_components.p,{children:`Product catalog only: empty for organizations billing with plans and subscriptions.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the term, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_contract_rate_card_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the contract rate card the units apply to, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`units`})}),_jsx(_components.td,{children:`decimal`}),_jsxs(_components.td,{children:[`Number of units of the contract rate card from `,_jsx(_components.code,{children:`effective_date`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`effective_date`})}),_jsx(_components.td,{children:`date`}),_jsx(_components.td,{children:`Date the units take effect. Unique per contract rate card.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`application_timing`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`When the change of units applies: `,_jsx(_components.code,{children:`current_billing_cycle`}),` or `,_jsx(_components.code,{children:`next_billing_cycle`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the term was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the term was last updated, in UTC.`})]})]})]})]}),_jsxs(Accordion,{title:`contracts`,id:`contracts`,children:[_jsx(_components.p,{children:`One row per contract, the agreement that bills a customer with the product catalog. Contracts are not deleted, they are terminated or canceled.`}),_jsx(_components.p,{children:`Product catalog only: empty for organizations billing with plans and subscriptions.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the contract, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_customer_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the customer of the contract, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`external_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`External unique identifier of the contract, set by the organization. A new contract can reuse the external id of the one it replaces.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Code of the contract, unique per external id.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Name of the contract.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`status`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Status of the contract: `,_jsx(_components.code,{children:`draft`}),`, `,_jsx(_components.code,{children:`pending`}),`, `,_jsx(_components.code,{children:`active`}),`, `,_jsx(_components.code,{children:`terminated`}),` or `,_jsx(_components.code,{children:`canceled`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`billing_anchor_date`})}),_jsx(_components.td,{children:`date`}),_jsx(_components.td,{children:`Date the contract’s billing periods are anchored to. Empty when billing is anchored to the start date.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`started_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the contract starts, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ended_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Planned end date and time of the contract, in UTC. Empty when the contract has no planned end.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`terminated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the contract was terminated, in UTC. Empty if the contract was not terminated.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`canceled_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the contract was canceled, in UTC. Empty if the contract was not canceled.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_catalog_plan_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the catalog plan of the contract, assigned by Lago. Empty when the contract only has rate cards attached directly.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_billing_entity_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the billing entity of the contract, assigned by Lago. Empty when not set on the contract.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_payment_method_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the payment method used for the contract, assigned by Lago. Empty when not set.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`payment_method_type`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Payment method type of the contract: `,_jsx(_components.code,{children:`provider`}),` or `,_jsx(_components.code,{children:`manual`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`purchase_order_number`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Purchase order number of the contract, if any.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`consolidate_invoice`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:`Whether the contract is billed on the same recurring invoice as the customer’s other contracts.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`skip_invoice_custom_sections`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:`Whether invoice custom sections are left off the contract’s invoices.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the contract was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the contract was last updated, in UTC.`})]})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`usage`,children:`Usage`}),`\n`,_jsx(AccordionGroup,{children:_jsxs(Accordion,{title:`daily_usages`,id:`daily-usages`,children:[_jsx(_components.p,{children:`One row per subscription, or per contract rate card, for each day with usage.`}),_jsx(_components.p,{children:`Columns for the product catalog come after the original columns. A row holds the usage of either a subscription or a contract.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization the daily usage belongs to, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the daily usage record, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`from_datetime`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Start of the billing period the usage belongs to, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`refreshed_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the usage was computed, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`to_datetime`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`End of the billing period the usage belongs to, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`daily_usage`})}),_jsx(_components.td,{children:`json`}),_jsxs(_components.td,{children:[`Usage accumulated since the start of the billing period, as an object with the keys `,_jsx(_components.code,{children:`from_datetime`}),`, `,_jsx(_components.code,{children:`to_datetime`}),`, `,_jsx(_components.code,{children:`issuing_date`}),`, `,_jsx(_components.code,{children:`currency`}),`, `,_jsx(_components.code,{children:`amount_cents`}),`, `,_jsx(_components.code,{children:`taxes_amount_cents`}),`, `,_jsx(_components.code,{children:`total_amount_cents`}),`, `,_jsx(_components.code,{children:`lago_invoice_id`}),` and `,_jsx(_components.code,{children:`charges_usage`}),`. For a contract, its single `,_jsx(_components.code,{children:`charges_usage`}),` entry references a contract rate card, a rate card and a product instead of a charge.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`daily_usage_date`})}),_jsx(_components.td,{children:`date`}),_jsx(_components.td,{children:`Day the usage is recorded for.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`daily_usage_diff`})}),_jsx(_components.td,{children:`json`}),_jsxs(_components.td,{children:[`Usage added on this day only, with the same structure as `,_jsx(_components.code,{children:`daily_usage`}),`. It is the difference with the previous daily usage of the same billing period, or the full usage when there is none.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the record was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the record was last updated, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_customer_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the customer the usage belongs to, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_subscription_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the subscription the usage belongs to, assigned by Lago. It is empty for contract usage. Plans and subscriptions only.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`external_subscription_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the subscription in your application. It is empty for contract usage. Plans and subscriptions only.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_contract_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the contract the usage belongs to, assigned by Lago. It is empty for subscription usage. Product catalog only.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`external_contract_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the contract in your application. It is empty for subscription usage. Product catalog only.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_contract_rate_card_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the contract rate card the usage belongs to, assigned by Lago. It is empty for subscription usage. Product catalog only.`})]})]})]})]})}),`\n`,_jsx(Heading,{level:`2`,id:`invoices-and-fees`,children:`Invoices and fees`}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`fees`,id:`fees`,children:[_jsx(_components.p,{children:`One row per fee.`}),_jsxs(_components.p,{children:[`Columns for the product catalog come after the original columns. To link invoices to contracts, use `,_jsx(_components.code,{children:`lago_invoice_id`}),` with `,_jsx(_components.code,{children:`lago_contract_id`}),` and `,_jsx(_components.code,{children:`lago_contract_rate_card_id`}),`.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization the fee belongs to, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the fee, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_charge_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the charge the fee belongs to, assigned by Lago. It is empty for fees that are not charge fees. Plans and subscriptions only.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_fixed_charge_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the fixed charge the fee belongs to, assigned by Lago. It is empty for fees that are not fixed charge fees. Plans and subscriptions only.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_charge_filter_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the charge filter the fee belongs to, assigned by Lago. It is empty when the fee is not tied to a charge filter. Plans and subscriptions only.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_invoice_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the invoice the fee belongs to, assigned by Lago. It is empty for fees that are not attached to an invoice, such as pay-in-advance fees that are not invoiced.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_subscription_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the subscription the fee belongs to, assigned by Lago. It is empty for fees that are not tied to a subscription. Plans and subscriptions only.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_customer_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the customer the fee belongs to, assigned by Lago. It comes from the subscription, or from the contract for contract fees, and is empty when the fee has neither.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`item`})}),_jsx(_components.td,{children:`json`}),_jsxs(_components.td,{children:[`Item attached to the fee, as an object with the keys `,_jsx(_components.code,{children:`type`}),`, `,_jsx(_components.code,{children:`code`}),`, `,_jsx(_components.code,{children:`name`}),`, `,_jsx(_components.code,{children:`description`}),`, `,_jsx(_components.code,{children:`invoice_display_name`}),`, `,_jsx(_components.code,{children:`filters`}),`, `,_jsx(_components.code,{children:`lago_item_id`}),`, `,_jsx(_components.code,{children:`item_type`}),` and `,_jsx(_components.code,{children:`grouped_by`}),`. `,_jsx(_components.code,{children:`type`}),` is `,_jsx(_components.code,{children:`charge`}),`, `,_jsx(_components.code,{children:`add_on`}),`, `,_jsx(_components.code,{children:`subscription`}),`, `,_jsx(_components.code,{children:`credit`}),`, `,_jsx(_components.code,{children:`commitment`}),`, `,_jsx(_components.code,{children:`fixed_charge`}),`, `,_jsx(_components.code,{children:`product`}),` or `,_jsx(_components.code,{children:`unknown`}),`, and `,_jsx(_components.code,{children:`item_type`}),` is `,_jsx(_components.code,{children:`billable_metric`}),`, `,_jsx(_components.code,{children:`add_on`}),`, `,_jsx(_components.code,{children:`wallet_transaction`}),`, `,_jsx(_components.code,{children:`product`}),` or `,_jsx(_components.code,{children:`subscription`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pay_in_advance`})}),_jsx(_components.td,{children:`boolean`}),_jsxs(_components.td,{children:[`Whether the fee was paid in advance (`,_jsx(_components.code,{children:`true`}),`) or in arrears at the end of the period (`,_jsx(_components.code,{children:`false`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Amount of the fee, excluding taxes, in cents.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invoiceable`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:`Whether the fee is included on an invoice. For charge fees it comes from the charge, for product fees from whether the rate card is displayed on invoices. It is empty for other fee types.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`taxes_amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Tax amount of the fee, in cents.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`taxes_precise_amount_cents`})}),_jsx(_components.td,{children:`decimal`}),_jsx(_components.td,{children:`Tax amount of the fee, in cents, with full precision.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`taxes_rate`})}),_jsx(_components.td,{children:`float`}),_jsx(_components.td,{children:`Tax rate applied to the fee.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`total_amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsxs(_components.td,{children:[`Amount of the fee, including taxes, in cents. It is `,_jsx(_components.code,{children:`amount_cents`}),` plus `,_jsx(_components.code,{children:`taxes_amount_cents`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`currency`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Currency of the fee.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`units`})}),_jsx(_components.td,{children:`decimal`}),_jsx(_components.td,{children:`Number of units used to charge the customer for this fee.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`description`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Description of the fee.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`precise_amount_cents`})}),_jsx(_components.td,{children:`decimal`}),_jsx(_components.td,{children:`Amount of the fee, excluding taxes, in cents, with full precision.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`precise_unit_amount`})}),_jsx(_components.td,{children:`decimal`}),_jsx(_components.td,{children:`Amount of the fee per unit, with full precision.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`precise_coupons_amount_cents`})}),_jsx(_components.td,{children:`decimal`}),_jsx(_components.td,{children:`Coupon amount applied to the fee, in cents, with full precision.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`precise_total_amount_cents`})}),_jsx(_components.td,{children:`decimal`}),_jsxs(_components.td,{children:[`Amount of the fee, including taxes, in cents, with full precision. It is `,_jsx(_components.code,{children:`precise_amount_cents`}),` plus `,_jsx(_components.code,{children:`taxes_precise_amount_cents`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`precise_credit_notes_amount_cents`})}),_jsx(_components.td,{children:`decimal`}),_jsx(_components.td,{children:`Credit note amount applied to the fee, in cents, with full precision.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`events_count`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Number of events used to compute the fee.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`payment_status`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Payment status of the fee. Possible values are `,_jsx(_components.code,{children:`pending`}),`, `,_jsx(_components.code,{children:`succeeded`}),`, `,_jsx(_components.code,{children:`failed`}),`, `,_jsx(_components.code,{children:`refunded`}),` or `,_jsx(_components.code,{children:`unknown`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the fee was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`succeeded_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the payment of the fee succeeded, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`failed_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the payment of the fee failed, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`refunded_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the payment of the fee was refunded, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount_details`})}),_jsx(_components.td,{children:`json`}),_jsx(_components.td,{children:`Details used to compute the fee amount, such as the units and amounts of each tier or package, depending on the pricing model.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the fee was last updated, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`from_date`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Start of the period the fee covers, as an ISO 8601 timestamp in text form. For charge and fixed charge fees it is the start of their own billing period.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`to_date`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`End of the period the fee covers, as an ISO 8601 timestamp in text form. For charge and fixed charge fees it is the end of their own billing period.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_contract_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the contract the fee was billed for, assigned by Lago. It is empty for fees that do not come from a contract. Product catalog only.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_contract_rate_card_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the contract rate card the fee was billed from, assigned by Lago. It is empty for fees that do not come from a contract. Product catalog only.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_rate_card_rate_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the rate card rate used to price the fee, assigned by Lago. It is empty for fees that are not product fees. Product catalog only.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_product_filter_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the product filter the fee belongs to, assigned by Lago. It is empty when the fee is not tied to a product filter. Product catalog only.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_product_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the product the fee was billed for, assigned by Lago. It comes from the rate card of the fee’s rate and is empty for fees that are not product fees. Product catalog only.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_rate_override_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the rate override used to price the fee, assigned by Lago. A rate override replaces the pricing of a rate card rate. It is empty when no override applies. Product catalog only.`})]})]})]})]}),_jsxs(Accordion,{title:`invoice_settlements`,id:`invoice-settlements`,children:[_jsx(_components.p,{children:`One row per settlement of an invoice by a payment or a credit note.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization the settlement belongs to, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the invoice settlement, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_billing_entity_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the billing entity the settlement belongs to, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_target_invoice_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the invoice being settled, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`settlement_type`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`How the invoice was settled. Possible values are `,_jsx(_components.code,{children:`payment`}),` or `,_jsx(_components.code,{children:`credit_note`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_source_payment_id`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Unique identifier of the payment that settled the invoice, assigned by Lago. It is empty when `,_jsx(_components.code,{children:`settlement_type`}),` is `,_jsx(_components.code,{children:`credit_note`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_source_credit_note_id`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Unique identifier of the credit note that settled the invoice, assigned by Lago. It is empty when `,_jsx(_components.code,{children:`settlement_type`}),` is `,_jsx(_components.code,{children:`payment`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Amount of the invoice settled, in cents.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount_currency`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Currency of the settled amount.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the settlement was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the settlement was last updated, in UTC.`})]})]})]})]}),_jsxs(Accordion,{title:`invoice_subscriptions`,id:`invoice-subscriptions`,children:[_jsx(_components.p,{children:`One row per subscription billed on an invoice.`}),_jsx(_components.p,{children:`Plans and subscriptions only: empty for organizations billing with the product catalog.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization the record belongs to, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the invoice subscription record, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_invoice_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the invoice, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_regenerated_invoice_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the invoice that replaced this invoice after it was voided and regenerated, assigned by Lago. It is empty when the invoice was not regenerated.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_subscription_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the subscription billed on the invoice, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the record was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the record was last updated, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`from_datetime`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Start of the subscription period billed on the invoice, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`to_datetime`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`End of the subscription period billed on the invoice, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`charges_from_datetime`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Start of the period billed for the subscription’s usage-based charges, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`charges_to_datetime`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`End of the period billed for the subscription’s usage-based charges, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`timestamp`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Billing date and time used to generate the invoice for the subscription, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invoicing_reason`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Why the subscription was billed on the invoice. Possible values are `,_jsx(_components.code,{children:`subscription_starting`}),`, `,_jsx(_components.code,{children:`subscription_periodic`}),`, `,_jsx(_components.code,{children:`subscription_terminating`}),`, `,_jsx(_components.code,{children:`in_advance_charge`}),`, `,_jsx(_components.code,{children:`in_advance_charge_periodic`}),` or `,_jsx(_components.code,{children:`progressive_billing`}),`.`]})]})]})]})]}),_jsxs(Accordion,{title:`invoices`,id:`invoices`,children:[_jsx(_components.p,{children:`One row per invoice.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization the invoice belongs to, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the invoice, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sequential_id`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Sequential number of the invoice within the customer’s invoices. It is assigned when the invoice is finalized, so it is empty on draft invoices.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`customer_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the customer the invoice is issued to, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`number`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique number assigned to the invoice.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`issuing_date`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date when the invoice was issued.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`payment_due_date`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Payment due date of the invoice.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`net_payment_term`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Number of days between the issuing date and the payment due date of the invoice.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invoice_type`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Type of invoice. Possible values are `,_jsx(_components.code,{children:`subscription`}),`, `,_jsx(_components.code,{children:`add_on`}),`, `,_jsx(_components.code,{children:`credit`}),`, `,_jsx(_components.code,{children:`one_off`}),`, `,_jsx(_components.code,{children:`advance_charges`}),`, `,_jsx(_components.code,{children:`progressive_billing`}),` or `,_jsx(_components.code,{children:`contract`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`status`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Status of the invoice. Possible values are `,_jsx(_components.code,{children:`draft`}),`, `,_jsx(_components.code,{children:`finalized`}),`, `,_jsx(_components.code,{children:`voided`}),`, `,_jsx(_components.code,{children:`failed`}),`, `,_jsx(_components.code,{children:`pending`}),` or `,_jsx(_components.code,{children:`deleted`}),`. Deleted invoices are kept with the `,_jsx(_components.code,{children:`deleted`}),` status so the deletion reaches your warehouse.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`payment_status`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Status of the payment associated with the invoice. Possible values are `,_jsx(_components.code,{children:`pending`}),`, `,_jsx(_components.code,{children:`succeeded`}),` or `,_jsx(_components.code,{children:`failed`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`payment_dispute_lost_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date when the payment dispute was lost. It is empty until a dispute is lost on the invoice.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`payment_overdue`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:`Whether the payment of the invoice is considered overdue.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`currency`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Currency of the invoice.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fees_amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Total amount of all fees on the invoice, in cents.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`taxes_amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Total tax amount of the invoice, in cents.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`progressive_billing_credit_amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsxs(_components.td,{children:[`Usage already billed on previous progressive billing invoices and deducted from this invoice, in cents. It only applies to `,_jsx(_components.code,{children:`progressive_billing`}),` and `,_jsx(_components.code,{children:`subscription`}),` invoices.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`coupons_amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Total amount discounted by coupons on the invoice, in cents.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`credit_notes_amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Total amount discounted by credit notes on the invoice, in cents.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sub_total_excluding_taxes_amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsxs(_components.td,{children:[`Subtotal of the invoice excluding taxes, in cents. How it is computed depends on `,_jsx(_components.code,{children:`version_number`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sub_total_including_taxes_amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsxs(_components.td,{children:[`Subtotal of the invoice including taxes, in cents. How it is computed depends on `,_jsx(_components.code,{children:`version_number`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`total_amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Total amount of the invoice, including taxes, in cents.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`total_due_amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsxs(_components.td,{children:[`Amount still to be paid on the invoice, in cents. It is `,_jsx(_components.code,{children:`total_amount_cents`}),` minus the amount already paid.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`prepaid_credit_amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Total amount discounted by prepaid credits on the invoice, in cents.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`prepaid_granted_credit_amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Part of the prepaid credits discounted on the invoice that came from granted (free) credits, in cents. Only filled for invoices of traceable wallets.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`prepaid_purchased_credit_amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Part of the prepaid credits discounted on the invoice that came from purchased (paid) credits, in cents. Only filled for invoices of traceable wallets.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`version_number`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Version of the invoice calculation rules applied to the invoice. It determines how the subtotals are computed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the invoice was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the invoice was last updated, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`voided_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the invoice was voided, in UTC. It is empty for invoices that have not been voided.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`metadata`})}),_jsx(_components.td,{children:`json`}),_jsxs(_components.td,{children:[`Metadata attached to the invoice, as an array of objects with the keys `,_jsx(_components.code,{children:`lago_id`}),`, `,_jsx(_components.code,{children:`key`}),`, `,_jsx(_components.code,{children:`value`}),` and `,_jsx(_components.code,{children:`created_at`}),`. It is empty when the invoice has no metadata.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`error_details`})}),_jsx(_components.td,{children:`json`}),_jsxs(_components.td,{children:[`Errors raised while generating the invoice, as an array of objects with the keys `,_jsx(_components.code,{children:`lago_id`}),`, `,_jsx(_components.code,{children:`error_code`}),` and `,_jsx(_components.code,{children:`details`}),`. It is empty when no error was raised.`]})]})]})]})]}),_jsxs(Accordion,{title:`item_metadata`,id:`item-metadata`,children:[_jsx(_components.p,{children:`One row per metadata object attached to a record.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the metadata object, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`owner_type`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Type of record the metadata belongs to: `,_jsx(_components.code,{children:`Plan`}),`, `,_jsx(_components.code,{children:`CreditNote`}),`, `,_jsx(_components.code,{children:`Wallet`}),`, `,_jsx(_components.code,{children:`CatalogWallet`}),` or `,_jsx(_components.code,{children:`PlanWallet`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_owner_id`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Unique identifier of the record the metadata belongs to, assigned by Lago. Its type is given by `,_jsx(_components.code,{children:`owner_type`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`value`})}),_jsx(_components.td,{children:`json`}),_jsx(_components.td,{children:`Metadata as a JSON object of up to 50 keys, each mapped to a string value or null.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the row was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the row was last updated, in UTC.`})]})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`credit-notes`,children:`Credit notes`}),`\n`,_jsx(AccordionGroup,{children:_jsxs(Accordion,{title:`credit_notes`,id:`credit-notes`,children:[_jsx(_components.p,{children:`One row per credit note.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization the credit note belongs to, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the credit note, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sequential_id`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Sequential number of the credit note within the credit notes of its invoice.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`number`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique number of the credit note.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_invoice_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the invoice the credit note belongs to, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`issuing_date`})}),_jsx(_components.td,{children:`date`}),_jsx(_components.td,{children:`Date when the credit note was issued.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`credit_status`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Status of the credit part of the credit note. Possible values are `,_jsx(_components.code,{children:`available`}),`, `,_jsx(_components.code,{children:`consumed`}),` or `,_jsx(_components.code,{children:`voided`}),`. It is empty when the credit note has no credit part.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`refund_status`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Status of the refund part of the credit note. Possible values are `,_jsx(_components.code,{children:`pending`}),`, `,_jsx(_components.code,{children:`succeeded`}),` or `,_jsx(_components.code,{children:`failed`}),`. It is empty when the credit note has no refund part.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reason`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Reason for issuing the credit note. Possible values are `,_jsx(_components.code,{children:`duplicated_charge`}),`, `,_jsx(_components.code,{children:`product_unsatisfactory`}),`, `,_jsx(_components.code,{children:`order_change`}),`, `,_jsx(_components.code,{children:`order_cancellation`}),`, `,_jsx(_components.code,{children:`fraudulent_charge`}),` or `,_jsx(_components.code,{children:`other`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`description`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Description of the credit note.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`currency`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Currency of the credit note.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`total_amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Total amount of the credit note, including taxes, in cents.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`taxes_amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Tax amount of the credit note, in cents.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sub_total_excluding_taxes_amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Subtotal of the credit note excluding taxes, in cents. It is the sum of the credit note items minus the coupon adjustment, rounded.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`balance_amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Remaining credit amount of the credit note, in cents.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`credit_amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Amount credited to the customer by the credit note, in cents.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`refund_amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Amount refunded to the customer by the credit note, in cents.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`coupons_adjustment_amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Prorated amount of the coupons applied to the source invoice, in cents.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`taxes_rate`})}),_jsx(_components.td,{children:`float`}),_jsx(_components.td,{children:`Tax rate applied to the credit note.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the credit note was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the credit note was last updated, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`refunded_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the credit note was refunded, in UTC. It is empty when no refund was made.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`items`})}),_jsx(_components.td,{children:`json`}),_jsxs(_components.td,{children:[`Items of the credit note, as an array of objects with the keys `,_jsx(_components.code,{children:`lago_id`}),`, `,_jsx(_components.code,{children:`amount_cents`}),`, `,_jsx(_components.code,{children:`amount_currency`}),` and `,_jsx(_components.code,{children:`lago_fee_id`}),` (the fee credited by the item).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`metadata`})}),_jsx(_components.td,{children:`json`}),_jsxs(_components.td,{children:[`Metadata attached to the credit note, as an array of objects with the keys `,_jsx(_components.code,{children:`key`}),` and `,_jsx(_components.code,{children:`value`}),`. It is empty when the credit note has no metadata.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`error_details`})}),_jsx(_components.td,{children:`json`}),_jsxs(_components.td,{children:[`Errors raised while the credit note was issued, as an array of objects with the keys `,_jsx(_components.code,{children:`lago_id`}),`, `,_jsx(_components.code,{children:`error_code`}),` and `,_jsx(_components.code,{children:`details`}),`. It is empty when no error was raised.`]})]})]})]})]})}),`\n`,_jsx(Heading,{level:`2`,id:`payments`,children:`Payments`}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`payment_requests`,id:`payment-requests`,children:[_jsx(_components.p,{children:`One row per payment request.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization the payment request belongs to, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the payment request, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_customer_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the customer the payment request is for, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`payment_attempts`})}),_jsx(_components.td,{children:`int`}),_jsx(_components.td,{children:`Number of payment attempts made for the payment request.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Amount the payment request collects, in cents.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount_currency`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Currency of the payment request.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`email`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Email address used for sending dunning notifications. It defaults to the customer’s email address.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ready_for_payment_processing`})}),_jsx(_components.td,{children:`boolean`}),_jsxs(_components.td,{children:[`Whether a new payment can be started for the payment request. It is `,_jsx(_components.code,{children:`false`}),` once a payment is in progress or has succeeded.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`payment_status`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Payment status of the payment request. Possible values are `,_jsx(_components.code,{children:`pending`}),`, `,_jsx(_components.code,{children:`succeeded`}),` or `,_jsx(_components.code,{children:`failed`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the payment request was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the payment request was last updated, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invoice_ids`})}),_jsx(_components.td,{children:`json`}),_jsx(_components.td,{children:`The Lago identifiers of the invoices the payment request collects payment for, as an array.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`payment_ids`})}),_jsx(_components.td,{children:`json`}),_jsx(_components.td,{children:`The Lago identifiers of the payments made for the payment request, as an array ordered by creation date.`})]})]})]})]}),_jsxs(Accordion,{title:`payments`,id:`payments`,children:[_jsx(_components.p,{children:`One row per payment.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization the payment belongs to, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the payment, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Amount of the payment, in cents.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount_currency`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Currency of the payment.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`payment_status`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Payment status, normalized by Lago so it is the same for every payment provider. Possible values are `,_jsx(_components.code,{children:`pending`}),`, `,_jsx(_components.code,{children:`processing`}),`, `,_jsx(_components.code,{children:`succeeded`}),` or `,_jsx(_components.code,{children:`failed`}),`. It is empty when Lago has not recorded a normalized status for the payment.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`payment_type`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Type of payment. Possible values are `,_jsx(_components.code,{children:`provider`}),`, `,_jsx(_components.code,{children:`manual`}),` or `,_jsx(_components.code,{children:`x402`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reference`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Reference of the payment. It is set on manual payments only and empty for other payments.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`external_payment_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the payment within the payment provider, if applicable.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the payment was created in Lago, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the payment was last updated, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invoice_ids`})}),_jsx(_components.td,{children:`json`}),_jsx(_components.td,{children:`The Lago identifiers of the invoices the payment applies to, as an array. For a payment on a payment request, it lists the invoices of that request.`})]})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`wallets`,children:`Wallets`}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`wallet_transaction_consumptions`,id:`wallet-transaction-consumptions`,children:[_jsx(_components.p,{children:`One row per amount of an inbound wallet transaction consumed by an outbound wallet transaction. Only recorded for traceable wallets.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the wallet transaction consumption, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_inbound_wallet_transaction_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the inbound wallet transaction the credits were consumed from, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_outbound_wallet_transaction_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the outbound wallet transaction that consumed the credits, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`consumed_amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Amount consumed from the inbound wallet transaction, in cents.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the consumption was recorded, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the consumption was last updated, in UTC.`})]})]})]})]}),_jsxs(Accordion,{title:`wallet_transactions`,id:`wallet-transactions`,children:[_jsx(_components.p,{children:`One row per wallet transaction, either crediting (inbound) or debiting (outbound) a wallet.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the wallet transaction, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_wallet_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the wallet, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`status`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Status of the wallet transaction: `,_jsx(_components.code,{children:`pending`}),`, `,_jsx(_components.code,{children:`settled`}),` or `,_jsx(_components.code,{children:`failed`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`source`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Origin of the wallet transaction: `,_jsx(_components.code,{children:`manual`}),`, `,_jsx(_components.code,{children:`interval`}),` (recurring top-up rule), `,_jsx(_components.code,{children:`threshold`}),` (top-up rule triggered by a balance threshold) or `,_jsx(_components.code,{children:`x402`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`transaction_status`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Transaction status of the wallet transaction: `,_jsx(_components.code,{children:`purchased`}),`, `,_jsx(_components.code,{children:`granted`}),`, `,_jsx(_components.code,{children:`voided`}),` or `,_jsx(_components.code,{children:`invoiced`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`transaction_type`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Type of transaction: `,_jsx(_components.code,{children:`inbound`}),` (increasing the balance) or `,_jsx(_components.code,{children:`outbound`}),` (decreasing the balance).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount`})}),_jsx(_components.td,{children:`decimal`}),_jsx(_components.td,{children:`Amount of the transaction in the wallet currency, based on the credits and the wallet rate.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`credit_amount`})}),_jsx(_components.td,{children:`decimal`}),_jsx(_components.td,{children:`Number of credits of the transaction.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`settled_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the wallet transaction was settled, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`failed_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the wallet transaction failed, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the wallet transaction was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the wallet transaction was last updated, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invoice_requires_successful_payment`})}),_jsx(_components.td,{children:`boolean`}),_jsxs(_components.td,{children:[`When `,_jsx(_components.code,{children:`true`}),`, the invoice for this top-up is issued only once its payment succeeds. When `,_jsx(_components.code,{children:`false`}),`, it is issued immediately.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`metadata`})}),_jsx(_components.td,{children:`json`}),_jsxs(_components.td,{children:[`JSON array of key-value pairs holding additional information about the transaction. Each item holds `,_jsx(_components.code,{children:`key`}),` and `,_jsx(_components.code,{children:`value`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_invoice_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the invoice associated with the wallet transaction, assigned by Lago. For an inbound transaction it is the top-up invoice, for an outbound transaction the invoice the credits were applied to. Empty when there is none.`})]})]})]})]}),_jsxs(Accordion,{title:`wallets`,id:`wallets`,children:[_jsx(_components.p,{children:`One row per customer wallet holding prepaid credits.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the wallet, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_customer_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the customer, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`status`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Status of the wallet: `,_jsx(_components.code,{children:`active`}),` or `,_jsx(_components.code,{children:`terminated`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`currency`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Currency of the wallet.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Name of the wallet.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`rate_amount`})}),_jsx(_components.td,{children:`decimal`}),_jsx(_components.td,{children:`Conversion rate between credits and the wallet currency: the value of one credit in the currency.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`credits_balance`})}),_jsx(_components.td,{children:`decimal`}),_jsx(_components.td,{children:`Current wallet balance in credits, after all transactions are settled.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`credits_ongoing_balance`})}),_jsx(_components.td,{children:`decimal`}),_jsxs(_components.td,{children:[`Ongoing wallet balance in credits: `,_jsx(_components.code,{children:`credits_balance`}),` minus `,_jsx(_components.code,{children:`credits_ongoing_usage_balance`}),`, accounting for current usage including taxes.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`credits_ongoing_usage_balance`})}),_jsx(_components.td,{children:`decimal`}),_jsx(_components.td,{children:`Ongoing usage of the wallet in credits, covering all current usage and draft invoices including taxes.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`balance_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Current wallet balance, after all transactions are settled, in cents.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ongoing_balance_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsxs(_components.td,{children:[`Ongoing wallet balance in cents: `,_jsx(_components.code,{children:`balance_cents`}),` minus `,_jsx(_components.code,{children:`ongoing_usage_balance_cents`}),`, accounting for current usage including taxes.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ongoing_usage_balance_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Ongoing usage of the wallet in cents, covering all current usage and draft invoices including taxes.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`consumed_credits`})}),_jsx(_components.td,{children:`decimal`}),_jsx(_components.td,{children:`Number of credits consumed from the wallet.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the wallet was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the wallet was last updated, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`terminated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the wallet was terminated, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`last_balance_sync_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time of the last balance top-up, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`last_consumed_credit_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time of the last credits consumption, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invoice_requires_successful_payment`})}),_jsx(_components.td,{children:`boolean`}),_jsxs(_components.td,{children:[`When `,_jsx(_components.code,{children:`true`}),`, the invoice for a wallet top-up is issued only once its payment succeeds. When `,_jsx(_components.code,{children:`false`}),`, it is issued immediately.`]})]})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`coupons`,children:`Coupons`}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`applied_coupons`,id:`applied-coupons`,children:[_jsx(_components.p,{children:`One row per coupon applied to a customer.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the applied coupon, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_coupon_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the coupon, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_customer_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the customer, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`status`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Status of the applied coupon: `,_jsx(_components.code,{children:`active`}),` or `,_jsx(_components.code,{children:`terminated`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsxs(_components.td,{children:[`Amount of the coupon, in cents. Set for `,_jsx(_components.code,{children:`fixed_amount`}),` coupons.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount_cents_remaining`})}),_jsx(_components.td,{children:`bigint`}),_jsxs(_components.td,{children:[`Coupon `,_jsx(_components.code,{children:`amount_cents`}),` minus the sum of the credits it applied, in cents. Only computed for `,_jsx(_components.code,{children:`fixed_amount`}),` coupons with a `,_jsx(_components.code,{children:`forever`}),` frequency that have applied at least one credit, empty otherwise.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount_currency`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Currency of the coupon amount. Set for `,_jsx(_components.code,{children:`fixed_amount`}),` coupons.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`percentage_rate`})}),_jsx(_components.td,{children:`decimal`}),_jsxs(_components.td,{children:[`Percentage rate of the coupon. Set for `,_jsx(_components.code,{children:`percentage`}),` coupons.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`frequency`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Frequency of the applied coupon: `,_jsx(_components.code,{children:`once`}),`, `,_jsx(_components.code,{children:`recurring`}),` or `,_jsx(_components.code,{children:`forever`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`frequency_duration`})}),_jsx(_components.td,{children:`integer`}),_jsxs(_components.td,{children:[`Number of billing periods to which the coupon applies. Set when the frequency is `,_jsx(_components.code,{children:`recurring`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`frequency_duration_remaining`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Remaining number of billing periods to which the coupon applies.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the coupon was applied to the customer, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`terminated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the coupon was fully used or removed from the customer, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the applied coupon was last updated, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`credits`})}),_jsx(_components.td,{children:`json`}),_jsxs(_components.td,{children:[`JSON array of the credits the coupon applied to invoices. Each item holds `,_jsx(_components.code,{children:`lago_id`}),`, `,_jsx(_components.code,{children:`amount_cents`}),`, `,_jsx(_components.code,{children:`amount_currency`}),` and `,_jsx(_components.code,{children:`before_taxes`}),`. Empty when the coupon has not been applied to an invoice yet.`]})]})]})]})]}),_jsxs(Accordion,{title:`coupons`,id:`coupons`,children:[_jsx(_components.p,{children:`One row per coupon, including deleted coupons.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the coupon, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Name of the coupon.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique code used to identify the coupon.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`description`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Description of the coupon.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`coupon_type`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Type of the coupon: `,_jsx(_components.code,{children:`fixed_amount`}),` for a fixed amount discount or `,_jsx(_components.code,{children:`percentage`}),` for a percentage-based discount.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsxs(_components.td,{children:[`Amount of the coupon, in cents. Set only for `,_jsx(_components.code,{children:`fixed_amount`}),` coupons.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount_currency`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Currency of the coupon. Set only for `,_jsx(_components.code,{children:`fixed_amount`}),` coupons.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`percentage_rate`})}),_jsx(_components.td,{children:`decimal`}),_jsxs(_components.td,{children:[`Percentage rate of the coupon. Set only for `,_jsx(_components.code,{children:`percentage`}),` coupons.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`frequency`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Frequency of the coupon: `,_jsx(_components.code,{children:`once`}),` (applies to a single invoice), `,_jsx(_components.code,{children:`recurring`}),` (applies for a number of billing periods) or `,_jsx(_components.code,{children:`forever`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`frequency_duration`})}),_jsx(_components.td,{children:`integer`}),_jsxs(_components.td,{children:[`Number of billing periods to which the coupon applies. Set only for `,_jsx(_components.code,{children:`recurring`}),` coupons.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reusable`})}),_jsx(_components.td,{children:`boolean`}),_jsxs(_components.td,{children:[`When `,_jsx(_components.code,{children:`true`}),`, the coupon can be applied several times to the same customer.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`limited_plans`})}),_jsx(_components.td,{children:`boolean`}),_jsxs(_components.td,{children:[`When `,_jsx(_components.code,{children:`true`}),`, the coupon only applies to specific plans.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`limited_billable_metrics`})}),_jsx(_components.td,{children:`boolean`}),_jsxs(_components.td,{children:[`When `,_jsx(_components.code,{children:`true`}),`, the coupon only applies to specific billable metrics.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_plan_ids`})}),_jsx(_components.td,{children:`json`}),_jsx(_components.td,{children:`JSON array of the unique identifiers of the plans the coupon is limited to, assigned by Lago. Empty array when the coupon is not limited to plans. Plans and subscriptions only.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_billable_metrics_ids`})}),_jsx(_components.td,{children:`json`}),_jsx(_components.td,{children:`JSON array of the unique identifiers of the billable metrics the coupon is limited to, assigned by Lago. Empty array when the coupon is not limited to billable metrics.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the coupon was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`expiration`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Type of expiration of the coupon: `,_jsx(_components.code,{children:`no_expiration`}),` or `,_jsx(_components.code,{children:`time_limit`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`expiration_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsxs(_components.td,{children:[`Date and time the coupon expires, in UTC. Set only when `,_jsx(_components.code,{children:`expiration`}),` is `,_jsx(_components.code,{children:`time_limit`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`terminated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the coupon was terminated, in UTC. A terminated coupon stays on the customers it was applied to but can no longer be applied.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the coupon was last updated, in UTC.`})]})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`taxes`,children:`Taxes`}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`billing_entities_taxes`,id:`billing-entities-taxes`,children:[_jsx(_components.p,{children:`One row per tax applied to a billing entity.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the billing entity tax, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_billing_entity_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the billing entity, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_tax_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the tax, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the row was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the row was last updated, in UTC.`})]})]})]})]}),_jsxs(Accordion,{title:`credit_notes_taxes`,id:`credit-notes-taxes`,children:[_jsx(_components.p,{children:`One row per tax applied to a credit note.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the credit note applied tax, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_tax_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the tax, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_credit_note_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the credit note, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tax_name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Name of the tax at the time it was applied.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tax_code`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Code of the tax at the time it was applied.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tax_rate`})}),_jsx(_components.td,{children:`float`}),_jsx(_components.td,{children:`Percentage rate of the tax at the time it was applied.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tax_description`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Description of the tax at the time it was applied.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`base_amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Credit note amount on which the tax is applied, in cents.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Tax amount of the credit note for this tax, in cents.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount_currency`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Currency of the tax amount, in ISO 4217 format.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the row was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the row was last updated, in UTC.`})]})]})]})]}),_jsxs(Accordion,{title:`customers_taxes`,id:`customers-taxes`,children:[_jsx(_components.p,{children:`One row per tax applied to a customer.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the customer tax, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_customer_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the customer, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_tax_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the tax, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the row was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the row was last updated, in UTC.`})]})]})]})]}),_jsxs(Accordion,{title:`fees_taxes`,id:`fees-taxes`,children:[_jsx(_components.p,{children:`One row per tax applied to a fee.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the fee applied tax, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_fee_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the fee, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_tax_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the tax, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tax_name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Name of the tax at the time it was applied.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tax_code`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Code of the tax at the time it was applied.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tax_rate`})}),_jsx(_components.td,{children:`float`}),_jsx(_components.td,{children:`Percentage rate of the tax at the time it was applied.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tax_description`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Description of the tax at the time it was applied.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Tax amount of the fee for this tax, in cents.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount_currency`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Currency of the tax amount, in ISO 4217 format.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the row was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the row was last updated, in UTC.`})]})]})]})]}),_jsxs(Accordion,{title:`invoices_taxes`,id:`invoices-taxes`,children:[_jsx(_components.p,{children:`One row per tax applied to an invoice. Taxes of deleted invoices are excluded.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the invoice applied tax, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_invoice_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the invoice, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_tax_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the tax, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tax_name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Name of the tax at the time it was applied.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tax_code`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Code of the tax at the time it was applied.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tax_rate`})}),_jsx(_components.td,{children:`float`}),_jsx(_components.td,{children:`Percentage rate of the tax at the time it was applied.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tax_description`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Description of the tax at the time it was applied.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Tax amount of the invoice for this tax, in cents.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount_currency`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Currency of the tax amount, in ISO 4217 format.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fees_amount_cents`})}),_jsx(_components.td,{children:`bigint`}),_jsx(_components.td,{children:`Total amount of the invoice fees on which the tax is applied, in cents.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the row was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the row was last updated, in UTC.`})]})]})]})]}),_jsxs(Accordion,{title:`plans_taxes`,id:`plans-taxes`,children:[_jsx(_components.p,{children:`One row per tax applied to a plan or a catalog plan.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the plan tax, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_plan_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the plan, assigned by Lago. Empty when the tax is applied to a catalog plan. Plans and subscriptions only.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_catalog_plan_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the catalog plan, assigned by Lago. Empty when the tax is applied to a plan. Product catalog only.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_tax_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the tax, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the row was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the row was last updated, in UTC.`})]})]})]})]}),_jsxs(Accordion,{title:`rate_cards_taxes`,id:`rate-cards-taxes`,children:[_jsx(_components.p,{children:`One row per tax applied to a rate card.`}),_jsx(_components.p,{children:`Product catalog only: empty for organizations billing with plans and subscriptions.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the rate card tax, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_rate_card_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the rate card, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_tax_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the tax, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the row was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the row was last updated, in UTC.`})]})]})]})]}),_jsxs(Accordion,{title:`taxes`,id:`taxes`,children:[_jsx(_components.p,{children:`One row per tax.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the tax, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Name of the tax.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique code of the tax.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`rate`})}),_jsx(_components.td,{children:`float`}),_jsx(_components.td,{children:`Percentage rate of the tax.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`description`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Internal description of the tax.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`applied_to_organization`})}),_jsx(_components.td,{children:`boolean`}),_jsxs(_components.td,{children:[`Deprecated. Whether the tax is applied to the organization’s default billing entity. Use `,_jsx(_components.code,{children:`billing_entities_taxes`}),` instead.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the tax was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the tax was last updated, in UTC.`})]})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`entitlements`,children:`Entitlements`}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`entitlement_entitlement_values`,id:`entitlement-entitlement-values`,children:[_jsx(_components.p,{children:`One row per privilege value set on an entitlement, including deleted values.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the entitlement value, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_entitlement_entitlement_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the entitlement the value belongs to, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_entitlement_privilege_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the feature privilege the value is set for, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`value`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Value assigned to the privilege in the entitlement, stored as text. Its type depends on the privilege value type (integer, boolean, string or select).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`deleted_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the value was deleted, in UTC. Empty while the value exists.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the value was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the value was last updated, in UTC.`})]})]})]})]}),_jsxs(Accordion,{title:`entitlement_entitlements`,id:`entitlement-entitlements`,children:[_jsx(_components.p,{children:`One row per feature granted to a plan or to a single subscription, including deleted entitlements.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the entitlement, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_entitlement_feature_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the feature granted, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_plan_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the plan the entitlement belongs to, assigned by Lago. Empty for an entitlement set on a single subscription or on a product catalog plan. Plans and subscriptions only.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_subscription_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the subscription the entitlement belongs to, assigned by Lago. Set when the entitlement overrides the plan for a single subscription, empty otherwise. Plans and subscriptions only.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`deleted_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the entitlement was deleted, in UTC. Empty while the entitlement exists.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the entitlement was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the entitlement was last updated, in UTC.`})]})]})]})]}),_jsxs(Accordion,{title:`entitlement_features`,id:`entitlement-features`,children:[_jsx(_components.p,{children:`One row per feature, including deleted features.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the feature, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique code used to identify the feature.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Name of the feature.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`description`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Description of the feature.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`deleted_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the feature was deleted, in UTC. Empty while the feature exists.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the feature was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the feature was last updated, in UTC.`})]})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`usage-monitoring`,children:`Usage monitoring`}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`usage_monitoring_alert_thresholds`,id:`usage-monitoring-alert-thresholds`,children:[_jsx(_components.p,{children:`One row per threshold of a subscription or wallet alert.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the alert threshold, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_alert_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the alert the threshold belongs to, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`value`})}),_jsx(_components.td,{children:`decimal`}),_jsx(_components.td,{children:`Value that triggers the alert. Its unit depends on the alert type: units for usage units alerts, credits for wallet credits alerts, and cents for all other types.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Code identifying the threshold inside the alert.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`recurring`})}),_jsx(_components.td,{children:`boolean`}),_jsxs(_components.td,{children:[`When `,_jsx(_components.code,{children:`true`}),`, the alert is triggered again each time this value is reached after the last non-recurring threshold. An alert has at most one recurring threshold.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the threshold was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the threshold was last updated, in UTC.`})]})]})]})]}),_jsxs(Accordion,{title:`usage_monitoring_triggered_alerts`,id:`usage-monitoring-triggered-alerts`,children:[_jsx(_components.p,{children:`One row per time a subscription or wallet alert was triggered.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the triggered alert, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_alert_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the alert, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_subscription_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the subscription, assigned by Lago. Empty when the alert is attached to a wallet. Plans and subscriptions only.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_wallet_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the wallet, assigned by Lago. Empty when the alert is attached to a subscription.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`current_value`})}),_jsx(_components.td,{children:`decimal`}),_jsx(_components.td,{children:`Value checked against the thresholds when the alert was triggered.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`previous_value`})}),_jsx(_components.td,{children:`decimal`}),_jsx(_components.td,{children:`Value retrieved during the previous check of the alert.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`crossed_thresholds`})}),_jsx(_components.td,{children:`json`}),_jsxs(_components.td,{children:[`JSON array of the threshold lines crossed since the previous check. Each item holds `,_jsx(_components.code,{children:`code`}),`, `,_jsx(_components.code,{children:`value`}),` and `,_jsx(_components.code,{children:`recurring`}),`; a recurring threshold can appear several times.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`triggered_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the alert was triggered, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the record was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the record was last updated, in UTC.`})]})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`integrations`,children:`Integrations`}),`\n`,_jsx(AccordionGroup,{children:_jsxs(Accordion,{title:`integration_customers`,id:`integration-customers`,children:[_jsx(_components.p,{children:`One row per link between a customer and an accounting, tax or CRM integration.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the integration customer, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_customer_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the customer, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_integration_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the integration connection, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`external_customer_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Customer ID within the integration’s system. Empty when the customer has not been created in that system yet.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`type`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Type of integration: `,_jsx(_components.code,{children:`IntegrationCustomers::NetsuiteCustomer`}),`, `,_jsx(_components.code,{children:`IntegrationCustomers::XeroCustomer`}),`, `,_jsx(_components.code,{children:`IntegrationCustomers::QuickbooksCustomer`}),`, `,_jsx(_components.code,{children:`IntegrationCustomers::AnrokCustomer`}),`, `,_jsx(_components.code,{children:`IntegrationCustomers::AvalaraCustomer`}),`, `,_jsx(_components.code,{children:`IntegrationCustomers::HubspotCustomer`}),` or `,_jsx(_components.code,{children:`IntegrationCustomers::SalesforceCustomer`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`settings`})}),_jsx(_components.td,{children:`json`}),_jsxs(_components.td,{children:[`Integration-specific settings, such as `,_jsx(_components.code,{children:`sync_with_provider`}),`, `,_jsx(_components.code,{children:`subsidiary_id`}),` (NetSuite) or `,_jsx(_components.code,{children:`targeted_object`}),` and `,_jsx(_components.code,{children:`email`}),` (HubSpot).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the row was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the row was last updated, in UTC.`})]})]})]})]})}),`\n`,_jsx(Heading,{level:`2`,id:`deleted-records`,children:`Deleted records`}),`\n`,_jsx(AccordionGroup,{children:_jsxs(Accordion,{title:`record_deletions`,id:`record-deletions`,children:[_jsx(_components.p,{children:`One row per hard-deleted record of a tracked table, kept for one month so the deletion can be applied to your copy of the data.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the organization, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier of the deletion record, assigned by Lago.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`table_name`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Table the deleted record belonged to: `,_jsx(_components.code,{children:`fees`}),`, `,_jsx(_components.code,{children:`fees_taxes`}),`, `,_jsx(_components.code,{children:`invoice_subscriptions`}),`, `,_jsx(_components.code,{children:`invoices_taxes`}),`, `,_jsx(_components.code,{children:`credit_notes_taxes`}),`, `,_jsx(_components.code,{children:`billing_entities_taxes`}),`, `,_jsx(_components.code,{children:`customers_taxes`}),`, `,_jsx(_components.code,{children:`rate_cards_taxes`}),`, `,_jsx(_components.code,{children:`plans_taxes`}),` or `,_jsx(_components.code,{children:`contract_rate_cards_terms`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lago_record_id`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Unique identifier of the deleted record, matching its `,_jsx(_components.code,{children:`lago_id`}),` in `,_jsx(_components.code,{children:`table_name`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`deleted_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the record was deleted, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the row was created, in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updated_at`})}),_jsx(_components.td,{children:`timestamp`}),_jsx(_components.td,{children:`Date and time the row was last updated, in UTC.`})]})]})]})]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Data Pipeline schema","description":"Every table and column synced by Lago Data Pipeline","href":"/integrations/data/lago-data-pipeline-schema"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Billing entities","slug":"billing-entities","depth":2,"children":[]},{"title":"Customers","slug":"customers","depth":2,"children":[]},{"title":"Billable metrics","slug":"billable-metrics","depth":2,"children":[]},{"title":"Plans and subscriptions","slug":"plans-and-subscriptions","depth":2,"children":[]},{"title":"Product catalog","slug":"product-catalog","depth":2,"children":[]},{"title":"Contracts","slug":"contracts","depth":2,"children":[]},{"title":"Usage","slug":"usage","depth":2,"children":[]},{"title":"Invoices and fees","slug":"invoices-and-fees","depth":2,"children":[]},{"title":"Credit notes","slug":"credit-notes","depth":2,"children":[]},{"title":"Payments","slug":"payments","depth":2,"children":[]},{"title":"Wallets","slug":"wallets","depth":2,"children":[]},{"title":"Coupons","slug":"coupons","depth":2,"children":[]},{"title":"Taxes","slug":"taxes","depth":2,"children":[]},{"title":"Entitlements","slug":"entitlements","depth":2,"children":[]},{"title":"Usage monitoring","slug":"usage-monitoring","depth":2,"children":[]},{"title":"Integrations","slug":"integrations","depth":2,"children":[]},{"title":"Deleted records","slug":"deleted-records","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/lago-docs/a0e77058367d9146/canonical.js","/docs/_mintlify/custom/lago-docs/fa2446312177e9c6/loader.js","/docs/_mintlify/custom/lago-docs/c55d8403f7fc83ad/changelog-anchor-redirect.js","/docs/_mintlify/custom/lago-docs/8c326c8b67b47933/changelog-month-nav.js","/docs/_mintlify/custom/lago-docs/103c90943d27f62a/webmcp.js","/docs/_mintlify/custom/lago-docs/1219fb859e5c496e/github-outbound.js"],"subdomain":"lago-docs","siteName":"Lago","title":"Data Pipeline schema - Lago","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-27T16:15:58.284Z","originalFileLocation":"integrations/data/lago-data-pipeline-schema.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Every table and column synced by Lago Data Pipeline\">\u003cmeta data-mint-head name=\"keywords\" content=\"Lago API, billing API, usage metering API, OpenAPI, billing SDK, Lago MCP\">\u003cmeta data-mint-head name=\"application-name\" content=\"Lago\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/lago-docs/PXUAhcpsneOuo3Dn/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/lago-docs/PXUAhcpsneOuo3Dn/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/lago-docs/PXUAhcpsneOuo3Dn/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/lago-docs/PXUAhcpsneOuo3Dn/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/lago-docs/PXUAhcpsneOuo3Dn/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/lago-docs/PXUAhcpsneOuo3Dn/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/lago-docs/PXUAhcpsneOuo3Dn/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/lago-docs/PXUAhcpsneOuo3Dn/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/lago-docs/PXUAhcpsneOuo3Dn/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Data Pipeline schema - Lago\">\u003cmeta data-mint-head property=\"og:description\" content=\"Every table and column synced by Lago Data Pipeline\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Lago\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://getlago.com/docs/integrations/data/lago-data-pipeline-schema\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://lago-docs.mintlify.site/docs/_mintlify/api/og/v2?division=Data+exports\u0026amp;title=Data+Pipeline+schema\u0026amp;description=Every+table+and+column+synced+by+Lago+Data+Pipeline\u0026amp;theme=e69bad9b2f17285816711238\u0026amp;signature=18f2cf6db2254f25fc9af9c4cca7720b3f9d1ee28b1e8a74be95de3f86aab36a\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Data Pipeline schema - Lago\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Every table and column synced by Lago Data Pipeline\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://lago-docs.mintlify.site/docs/_mintlify/api/og/v2?division=Data+exports\u0026amp;title=Data+Pipeline+schema\u0026amp;description=Every+table+and+column+synced+by+Lago+Data+Pipeline\u0026amp;theme=e69bad9b2f17285816711238\u0026amp;signature=18f2cf6db2254f25fc9af9c4cca7720b3f9d1ee28b1e8a74be95de3f86aab36a\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/lago-docs/PXUAhcpsneOuo3Dn/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Lago\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#006CFA\">\u003clink data-mint-head rel=\"canonical\" href=\"https://getlago.com/docs/integrations/data/lago-data-pipeline-schema\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/integrations/data/lago-data-pipeline-schema.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://getlago.com/#organization\",\"name\":\"Lago\",\"legalName\":\"Get Lago Corp.\",\"url\":\"https://getlago.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://getlago.com/docs/logo/light.svg\"},\"sameAs\":[\"https://github.com/getlago\",\"https://www.linkedin.com/company/getlago\",\"https://x.com/GetLago\",\"https://www.youtube.com/channel/UCp6ltp7n3SgDVsmerJ7O7ZA\"]},{\"@type\":\"WebSite\",\"@id\":\"https://getlago.com/docs#website\",\"name\":\"Lago\",\"url\":\"https://getlago.com/docs\",\"publisher\":{\"@id\":\"https://getlago.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://getlago.com/docs/integrations/data/lago-data-pipeline-schema#webpage\",\"url\":\"https://getlago.com/docs/integrations/data/lago-data-pipeline-schema\",\"name\":\"Data Pipeline schema\",\"description\":\"Every table and column synced by Lago Data Pipeline\",\"dateModified\":\"2026-11-27T16:15:58.284Z\",\"isPartOf\":{\"@id\":\"https://getlago.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://getlago.com/docs/integrations/data/lago-data-pipeline-schema#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://getlago.com/docs/integrations/data/lago-data-pipeline-schema#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Data \u0026 Analytics\",\"item\":\"https://getlago.com/docs/guide/webhooks\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Data exports\",\"item\":\"https://getlago.com/docs/guide/invoicing/export\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Data Pipeline schema\",\"item\":\"https://getlago.com/docs/integrations/data/lago-data-pipeline-schema\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://getlago.com/docs/integrations/data/lago-data-pipeline-schema#article\",\"headline\":\"Data Pipeline schema\",\"name\":\"Data Pipeline schema\",\"description\":\"Every table and column synced by Lago Data Pipeline\",\"url\":\"https://getlago.com/docs/integrations/data/lago-data-pipeline-schema\",\"mainEntityOfPage\":{\"@id\":\"https://getlago.com/docs/integrations/data/lago-data-pipeline-schema#webpage\"},\"dateModified\":\"2026-11-27T16:15:58.284Z\",\"publisher\":{\"@id\":\"https://getlago.com/#organization\"},\"isPartOf\":{\"@id\":\"https://getlago.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Lago\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Lago\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/integrations/data/lago-data-pipeline-schema.md","siteName":"Lago","nav":{"global":{"anchors":[{"anchor":"Blog","icon":"newspaper","href":"https://getlago.com/blog"},{"anchor":"Community","icon":"slack","href":"https://getlago.com/slack"},{"anchor":"GitHub","icon":"github","href":"https://github.com/getlago/lago"},{"anchor":"Status","icon":"signal-bars","href":"https://status.getlago.com/"}]},"tabs":[{"tab":"Home","pages":[{"title":"Home","href":"/welcome"}]},{"tab":"Guide","groups":[{"group":"Introduction","pages":[{"title":"Welcome to Lago","href":"/guide/introduction/welcome-to-lago"},{"title":"Why billing is a nightmare","href":"/guide/introduction/why-billing-is-a-nightmare"}]},{"group":"Get started","pages":[{"title":"Lago Cloud","href":"/guide/lago-cloud"},{"group":"Lago Self-hosted","pages":[{"title":"Self-hosting overview","sidebarTitle":"Overview","href":"/guide/lago-self-hosted/overview"},{"title":"Docker","href":"/guide/lago-self-hosted/docker"},{"title":"Kubernetes","href":"/guide/lago-self-hosted/kubernetes"},{"title":"Compatibility matrix","href":"/guide/lago-self-hosted/compatibility-matrix"},{"title":"Database maintenance","href":"/guide/lago-self-hosted/database-maintenance"},{"title":"Tracking and analytics","href":"/guide/lago-self-hosted/tracking-analytics"},{"title":"Versions update","href":"/guide/lago-self-hosted/update-instance"},{"title":"Useful commands","href":"/guide/lago-self-hosted/commands"}]}]},{"group":"Events \u0026 Usage Components","pages":[{"group":"Billable metrics","pages":[{"title":"Create billable metrics","href":"/guide/billable-metrics/create-billable-metrics"},{"group":"Aggregation types","pages":[{"title":"Aggregation types: how usage is measured and counted","sidebarTitle":"Overview","href":"/guide/billable-metrics/aggregation-types/overview"},{"title":"Count","href":"/guide/billable-metrics/aggregation-types/count"},{"title":"Count unique","href":"/guide/billable-metrics/aggregation-types/count-unique"},{"title":"Latest","href":"/guide/billable-metrics/aggregation-types/latest"},{"title":"Max","href":"/guide/billable-metrics/aggregation-types/max"},{"title":"Sum","href":"/guide/billable-metrics/aggregation-types/sum"},{"title":"Weighted sum","href":"/guide/billable-metrics/aggregation-types/weighted-sum"},{"title":"Custom","href":"/guide/billable-metrics/aggregation-types/custom-agg"},{"title":"Aggregation examples","href":"/guide/billable-metrics/aggregation-types/aggregation-examples"}]},{"title":"Recurring vs metered","href":"/guide/billable-metrics/recurring-vs-metered"},{"title":"SQL expressions","href":"/guide/billable-metrics/sql-expressions"},{"title":"Rounding","href":"/guide/billable-metrics/rounding"},{"title":"Filters and dimensions","href":"/guide/billable-metrics/filters"},{"title":"Delete billable metrics","href":"/guide/billable-metrics/delete-billable-metrics"}]},{"group":"Usage ingestion","pages":[{"title":"Ingest usage","href":"/guide/events/ingesting-usage"},{"title":"Performance and optimization","href":"/guide/events/usage-performances"},{"title":"Metering ingestion sources","href":"/guide/events/metering-source"},{"title":"Retrieve usage","href":"/guide/events/retrieve-usage"},{"title":"Real-time usage: act on balances in seconds","sidebarTitle":"Real-time usage","href":"/guide/events/real-time-usage"}]},{"group":"Governance","pages":[{"title":"Governance overview","href":"/guide/governance/overview"},{"title":"Core concepts","href":"/guide/governance/core-concepts"},{"title":"Set up governance","href":"/guide/governance/setting-up"},{"title":"Send attributed events","href":"/guide/governance/sending-events"},{"title":"Query attributed usage","href":"/guide/governance/query"}]},{"group":"Alerts","pages":[{"title":"Usage alerts","href":"/guide/alerts/usage-alerts"},{"title":"Credits consumption alerts","href":"/guide/alerts/credits-consumption-alerts"},{"title":"Real-time wallet alerts: act while it still matters","sidebarTitle":"Real-time wallet alerts","href":"/guide/alerts/real-time-alerts"},{"title":"Alert resolution","href":"/guide/alerts/alert-resolution"}]}]},{"group":"Pricing \u0026 Subscriptions","pages":[{"group":"Plans","pages":[{"title":"Plans: price subscriptions, usage and hybrid models","sidebarTitle":"Overview","href":"/guide/plans/overview"},{"title":"Plan model","href":"/guide/plans/plan-model"},{"group":"Charges","pages":[{"title":"Usage based charge","href":"/guide/plans/charges/usage-based-charges"},{"title":"Fixed charge","href":"/guide/plans/charges/fixed-charges"},{"group":"Charge models","pages":[{"title":"Standard","href":"/guide/plans/charges/charge-models/standard"},{"title":"Graduated","href":"/guide/plans/charges/charge-models/graduated"},{"title":"Package","href":"/guide/plans/charges/charge-models/package"},{"title":"Percentage","href":"/guide/plans/charges/charge-models/percentage"},{"title":"Volume","href":"/guide/plans/charges/charge-models/volume"},{"title":"Graduated percentage","href":"/guide/plans/charges/charge-models/graduated-percentage"},{"title":"Dynamic","href":"/guide/plans/charges/charge-models/dynamic"},{"title":"Custom price","href":"/guide/plans/charges/charge-models/custom-price"}]},{"title":"Metered vs Recurring","href":"/guide/plans/charges/metered-vs-recurring"},{"title":"Arrears vs Advance","href":"/guide/plans/charges/arrears-vs-advance"},{"title":"Prorated vs Full","href":"/guide/plans/charges/prorated-vs-full"},{"title":"Spending minimums","href":"/guide/plans/charges/spending-minimum"},{"title":"Invoiceable vs Uninvoiceable","href":"/guide/plans/charges/invoiceable-vs-noninvoiceable"},{"title":"Charges with filters","href":"/guide/plans/charges/charges-with-filters"},{"title":"Group keys","href":"/guide/plans/charges/grouping"}]},{"title":"Custom pricing units","href":"/guide/plans/custom-pricing-units"},{"title":"Commitments","href":"/guide/plans/commitment"},{"title":"Progressive billing","href":"/guide/plans/progressive-billing"}]},{"group":"Customers","pages":[{"title":"Customer management","href":"/guide/customers/customer-management"},{"title":"Customer metadata","href":"/guide/customers/customer-metadata"},{"title":"Invoice a customer","href":"/guide/customers/invoice-customer"},{"title":"The customer portal","href":"/guide/customers/customer-portal"}]},{"title":"Billing entities","href":"/guide/billing-entities"},{"group":"Subscriptions","pages":[{"title":"Assign a plan to a customer","href":"/guide/subscriptions/assign-plan"},{"title":"Activation rules","href":"/guide/subscriptions/activation-rules"},{"title":"Upgrades and downgrades","href":"/guide/subscriptions/upgrades-downgrades"},{"title":"Edit a subscription","href":"/guide/subscriptions/edit-subscription"},{"title":"Terminate a subscription","href":"/guide/subscriptions/terminate-subscription"}]},{"title":"Coupons","href":"/guide/coupons"},{"title":"Entitlements","href":"/guide/entitlements"},{"title":"Emails","href":"/guide/emails"}]},{"group":"Quotes \u0026 Order Forms","pages":[{"title":"Quotes and order forms: from proposal to provisioned billing","sidebarTitle":"Overview","href":"/guide/quotes/overview"},{"title":"Creating a quote","href":"/guide/quotes/create-a-quote"},{"title":"Writing the quote content","href":"/guide/quotes/quote-editor"},{"title":"Order forms","href":"/guide/quotes/order-forms"},{"title":"Orders","href":"/guide/quotes/orders"},{"title":"Limitations","href":"/guide/quotes/limitations"}]},{"group":"Invoicing","pages":[{"group":"Invoices","pages":[{"title":"Invoicing: generate invoices from plans and usage","sidebarTitle":"Overview","href":"/guide/invoicing/overview"},{"group":"Invoicing settings","pages":[{"title":"Invoicing settings: customize invoices per billing entity","sidebarTitle":"Overview","href":"/guide/invoicing/invoicing-settings/overview"},{"title":"Invoice numbering","href":"/guide/invoicing/invoicing-settings/invoice-numbering"},{"title":"Grace period","href":"/guide/invoicing/invoicing-settings/grace-period"},{"title":"Payment terms","href":"/guide/invoicing/invoicing-settings/payment-term"},{"title":"Empty invoice generation","href":"/guide/invoicing/invoicing-settings/empty-invoices"},{"title":"Issuing date preferences","href":"/guide/invoicing/invoicing-settings/issuing_date"},{"title":"Taxes","href":"/guide/invoicing/invoicing-settings/taxes"}]},{"title":"Fees","href":"/guide/invoicing/fees"},{"title":"Draft invoices","href":"/guide/invoicing/draft-invoices"},{"title":"Download invoices","href":"/guide/invoicing/download-invoices"},{"title":"Invoice metadata","href":"/guide/invoicing/invoice-metadata"},{"title":"Preview an invoice","href":"/guide/invoicing/previews"},{"title":"Void invoices","href":"/guide/invoicing/void"}]},{"group":"One-off invoices","pages":[{"title":"Create add-ons","href":"/guide/one-off-invoices/create-add-ons"},{"title":"Issue one-off invoices","href":"/guide/one-off-invoices/create-one-off-invoices"}]},{"group":"Credit notes","pages":[{"title":"Credit notes: correct an invoice without losing the record","sidebarTitle":"Overview","href":"/guide/invoicing/credit-notes/overview"},{"title":"Credit note metadata","href":"/guide/invoicing/credit-notes/credit-note-metadata"}]},{"title":"Revenue share","href":"/guide/revenue-share"},{"group":"E-invoicing","pages":[{"title":"E-invoicing: generate invoices that comply by country","sidebarTitle":"Overview","href":"/guide/invoicing/e-invoicing/overview"},{"title":"E-Invoicing contributions","href":"/guide/invoicing/e-invoicing/contributions"}]}]},{"group":"Payments \u0026 Cash Collection","pages":[{"group":"Payments","pages":[{"title":"Payment provider integrations","href":"/guide/payments/payment-providers"},{"title":"Payment methods","href":"/guide/payments/payment-methods"},{"title":"Record manual payments","href":"/guide/payments/record-manual-payments"},{"title":"Payment pre-authorization","href":"/guide/payments/payment-authorization"},{"title":"Payment retries","href":"/guide/payments/payment-retries"},{"title":"Payment receipts","href":"/guide/payments/receipts"}]},{"group":"Dunning","pages":[{"title":"Manual dunning","href":"/guide/dunning/manual-dunning"},{"title":"Automatic dunning","href":"/guide/dunning/automatic-dunning"}]},{"group":"Wallets and prepaid credits","pages":[{"title":"Prepaid credits and wallets: bill usage against a balance","sidebarTitle":"Overview","href":"/guide/wallet-and-prepaid-credits/overview"},{"title":"Top-up and void credits","href":"/guide/wallet-and-prepaid-credits/wallet-top-up-and-void"},{"title":"Wallet transaction traceability","sidebarTitle":"Traceability","href":"/guide/wallet-and-prepaid-credits/traceability"}]}]},{"group":"AI Agents and MCP","pages":[{"title":"AI tools for Lago","sidebarTitle":"AI tools","href":"/guide/ai-agents/for-agents"},{"title":"Build Lago billing with a coding agent","sidebarTitle":"Build with a coding agent","href":"/guide/ai-agents/coding-agents"},{"group":"Lago Agent SDK","pages":[{"title":"Agent SDK: bill LLM token usage from your application","sidebarTitle":"Overview","href":"/guide/ai-agents/agent-sdk/overview"},{"title":"Billing","href":"/guide/ai-agents/agent-sdk/billing"},{"group":"Providers","pages":[{"title":"OpenAI","href":"/guide/ai-agents/agent-sdk/openai"},{"title":"Anthropic","href":"/guide/ai-agents/agent-sdk/anthropic"},{"title":"AWS Bedrock","href":"/guide/ai-agents/agent-sdk/bedrock"},{"title":"Google Gemini","href":"/guide/ai-agents/agent-sdk/gemini"},{"title":"Mistral","href":"/guide/ai-agents/agent-sdk/mistral"}]},{"group":"Gateways","pages":[{"title":"Cloudflare AI Gateway","href":"/guide/ai-agents/agent-sdk/cloudflare"},{"title":"Databricks AI Gateway","href":"/guide/ai-agents/agent-sdk/databricks"},{"title":"Snowflake Cortex","href":"/guide/ai-agents/agent-sdk/snowflake"},{"title":"Ramp Router","href":"/guide/ai-agents/agent-sdk/ramp-router"}]},{"title":"Reference","href":"/guide/ai-agents/agent-sdk/reference"}]},{"title":"The Billing Assistant","href":"/guide/ai-agents/billing-assistant"},{"title":"The Finance Assistant","href":"/guide/ai-agents/finance-assistant"},{"title":"The Dunning Agent","href":"/guide/ai-agents/dunning-agent"},{"title":"MCP server for billing: connect coding agents to usage and invoices","sidebarTitle":"Lago MCP Server","href":"/guide/ai-agents/mcp-server"}]},{"group":"Data \u0026 Analytics","pages":[{"title":"Webhooks","href":"/guide/webhooks"},{"group":"Analytics","pages":[{"group":"Reports","pages":[{"title":"Billing analytics: read revenue, usage and invoice reports","sidebarTitle":"Overview","href":"/guide/analytics/overview"},{"group":"Subscriptions","pages":[{"title":"Active subscriptions","href":"/guide/analytics/subscriptions/active"},{"title":"New subscriptions","href":"/guide/analytics/subscriptions/new"},{"title":"Churn","href":"/guide/analytics/subscriptions/churn"}]},{"group":"Revenue","pages":[{"title":"Revenue streams","href":"/guide/analytics/revenue/revenue-streams"},{"title":"MRR","href":"/guide/analytics/revenue/mrr"}]},{"title":"Credit ledgers","href":"/guide/analytics/credit-ledgers"},{"title":"Usage","href":"/guide/analytics/usage"},{"group":"Cash collection","pages":[{"title":"Payments","href":"/guide/analytics/cash-collection/payments"},{"title":"Dunnings","href":"/guide/analytics/cash-collection/dunnings"}]},{"title":"Invoices","href":"/guide/analytics/invoices"}]},{"title":"Forecasted usage","href":"/guide/analytics/forecasted-usage"}]},{"group":"Data exports","pages":[{"title":"Export invoices","href":"/guide/invoicing/export"},{"title":"Lago Data Pipeline","description":"Sync your Lago data with your data warehouse or cloud storage","href":"/integrations/data/lago-data-pipeline"},{"title":"Data Pipeline schema","href":"/integrations/data/lago-data-pipeline-schema"}]}]},{"group":"Revenue recognition","tag":"Private beta","pages":[{"title":"Revenue recognition: turn billing into accrual-basis revenue","sidebarTitle":"Overview","description":"Turn your billing data into accrual-basis revenue you can report, period by period.","href":"/guide/revenue-recognition/overview"},{"group":"How it works","pages":[{"title":"Methodology","href":"/guide/revenue-recognition/how-it-works/methodology"},{"title":"Subscriptions","href":"/guide/revenue-recognition/how-it-works/subscriptions"},{"title":"Usage-based charges","href":"/guide/revenue-recognition/how-it-works/usage-based-charges"},{"title":"Minimum commitments","href":"/guide/revenue-recognition/how-it-works/minimum-commitments"},{"title":"Taxes","href":"/guide/revenue-recognition/how-it-works/taxes"},{"title":"Payments","href":"/guide/revenue-recognition/how-it-works/payments"},{"title":"Credit notes and adjustments","href":"/guide/revenue-recognition/how-it-works/credit-notes-and-adjustments"},{"title":"Disputes and failed payments","href":"/guide/revenue-recognition/how-it-works/disputes-and-failed-payments"},{"title":"Wallets and prepaid credits","href":"/guide/revenue-recognition/how-it-works/wallets-and-prepaid-credits"}]},{"group":"Get started","pages":[{"title":"Enable revenue recognition","href":"/guide/revenue-recognition/get-started/enable"},{"title":"Prepare your billing data","href":"/guide/revenue-recognition/get-started/prepare-billing-data"},{"title":"Review your first reporting period","href":"/guide/revenue-recognition/get-started/review-first-period"},{"title":"Export revenue recognition data","href":"/guide/revenue-recognition/get-started/export"}]},{"group":"Reports","pages":[{"title":"Recognized Revenue","href":"/guide/revenue-recognition/reports/recognized-revenue"},{"title":"Deferred Revenue","href":"/guide/revenue-recognition/reports/deferred-revenue"},{"title":"Revenue Waterfall","href":"/guide/revenue-recognition/reports/revenue-waterfall"},{"title":"Statements","href":"/guide/revenue-recognition/reports/statements"},{"title":"Journal Entry Details","href":"/guide/revenue-recognition/reports/journal-entry-details"}]},{"group":"Examples","pages":[{"title":"Full lifecycle example","href":"/guide/revenue-recognition/examples/full-lifecycle"}]}]},{"group":"Resources","pages":[{"group":"Security","pages":[{"title":"Audit logs","href":"/guide/security/audit-logs"},{"title":"Security logs","href":"/guide/security/security-logs"},{"title":"API Keys","href":"/guide/security/api-keys"},{"title":"RBAC - Role-Based Access Control","href":"/guide/security/rbac"},{"title":"Single Sign-On (SSO)","href":"/guide/security/sso"},{"title":"SOC 2 Type 2","href":"/guide/security/soc"}]},{"title":"Integration testing","href":"/guide/integration-testing"},{"title":"Lago OpenAPI","href":"/guide/lago-open-api"},{"group":"Lago CLI","pages":[{"title":"Lago CLI: the billing API from your terminal","sidebarTitle":"Overview","href":"/guide/lago-cli/overview"},{"group":"Command reference","pages":[{"title":"Command reference","href":"/guide/lago-cli/commands/overview"},{"title":"Setup and diagnostics","href":"/guide/lago-cli/commands/setup"},{"title":"Helpers","href":"/guide/lago-cli/commands/helpers"},{"title":"Billable metrics","href":"/guide/lago-cli/commands/billable-metrics"},{"title":"Plans","href":"/guide/lago-cli/commands/plans"},{"title":"Features and entitlements","href":"/guide/lago-cli/commands/features-and-entitlements"},{"title":"Customers","href":"/guide/lago-cli/commands/customers"},{"title":"Subscriptions","href":"/guide/lago-cli/commands/subscriptions"},{"title":"Events","href":"/guide/lago-cli/commands/events"},{"title":"Invoices","href":"/guide/lago-cli/commands/invoices"},{"title":"Credit notes","href":"/guide/lago-cli/commands/credit-notes"},{"title":"Coupons and add-ons","href":"/guide/lago-cli/commands/coupons-and-add-ons"},{"title":"Wallets","href":"/guide/lago-cli/commands/wallets"},{"title":"Taxes and fees","href":"/guide/lago-cli/commands/taxes-and-fees"},{"title":"Payments","href":"/guide/lago-cli/commands/payments"},{"title":"Webhooks","href":"/guide/lago-cli/commands/webhooks"},{"title":"Analytics and logs","href":"/guide/lago-cli/commands/analytics-and-logs"},{"title":"Organization","href":"/guide/lago-cli/commands/organization"},{"title":"Quotes and orders","href":"/guide/lago-cli/commands/quotes-and-orders"}]}]},{"group":"Migrations","pages":[{"title":"Migration to v1.57.0","href":"/guide/migration/migration-to-v1.57.0"},{"title":"Migration to v1.56.0","href":"/guide/migration/migration-to-v1.56.0"},{"title":"Migration to v1.54.0","href":"/guide/migration/migration-to-v1.54.0"},{"title":"Migration to v1.52.0","href":"/guide/migration/migration-to-v1.52.0"},{"title":"Migration to v1.50.0","href":"/guide/migration/migration-to-v1.50.0"},{"title":"Migration to v1.45.0","href":"/guide/migration/migration-to-v1.45.0"},{"title":"Migration to v1.44.0","href":"/guide/migration/migration-to-v1.44.0"},{"title":"Migration to v1.43.0","href":"/guide/migration/migration-to-v1.43.0"},{"title":"Migration to v1.32.0","href":"/guide/migration/migration-to-v1.32.0"},{"title":"Migration to v1.31.0","href":"/guide/migration/migration-to-v1.31.0"},{"title":"Migration to v1.29.0","href":"/guide/migration/migration-to-v1.29.0"},{"title":"Migration to v1.28.1","href":"/guide/migration/migration-to-v1.28.1"},{"title":"Migration to v1.25.0","href":"/guide/migration/migration-to-v1.25.0"},{"title":"Migration to v1.20.0","href":"/guide/migration/migration-to-v1.20.0"},{"title":"Migration to v1.2.0","href":"/guide/migration/migration-to-v1.2.0"}]}]}]},{"tab":"API References","pages":[{"title":"API References","href":"/api-reference/intro"}]},{"tab":"Integrations","groups":[{"group":"Integrations","pages":[{"title":"Introduction","href":"/integrations/introduction"},{"group":"Official integrations","pages":[{"group":"Stripe","pages":[{"title":"Payments","href":"/integrations/payments/stripe/payments"},{"title":"Shared Payment Tokens","href":"/integrations/payments/stripe/shared-payment-tokens"}]},{"title":"GoCardless","href":"/integrations/payments/gocardless-integration"},{"title":"Adyen","href":"/integrations/payments/adyen-integration"},{"title":"Segment","href":"/integrations/usage/segment"},{"title":"Hightouch","href":"/integrations/usage/hightouch"},{"title":"NetSuite","href":"/integrations/accounting/netsuite"},{"title":"Xero","href":"/integrations/accounting/xero"},{"title":"Lago EU Taxes","href":"/integrations/taxes/lago-eu-taxes"},{"title":"Lago Data Pipeline","description":"Sync your Lago data with your data warehouse or cloud storage","href":"/integrations/data/lago-data-pipeline"},{"title":"Data Pipeline schema","href":"/integrations/data/lago-data-pipeline-schema"},{"title":"Anrok","description":"Update your invoices with tax amounts calculated by Anrok. Covers US and non-US obligations such as VAT.","href":"/integrations/taxes/anrok"},{"title":"Avalara","href":"/integrations/taxes/avalara"},{"title":"Salesforce CRM","href":"/integrations/crm/salesforce-crm"},{"title":"Salesforce CPQ","href":"/integrations/crm/salesforce-cpq"},{"title":"HubSpot","href":"/integrations/crm/hubspot"},{"title":"AWS Marketplace","href":"/integrations/marketplaces/aws-marketplace"},{"title":"Azure Marketplace","href":"/integrations/marketplaces/azure-marketplace"},{"title":"Google Cloud Marketplace","href":"/integrations/marketplaces/gcp-marketplace"},{"title":"Zapier","href":"/integrations/alerting/zapier"},{"title":"n8n","href":"/integrations/alerting/n8n"}]},{"group":"Community integrations","pages":[{"title":"Airbyte (ETL)","href":"/integrations/data/airbyte"},{"title":"Polytomic (ETL)","href":"/integrations/data/polytomic"},{"title":"Cashfree Payments","href":"/integrations/payments/cashfree-integration"},{"title":"MoneyHash","href":"/integrations/payments/moneyhash-integration"},{"title":"Oso","href":"/integrations/entitlements/osohq"},{"title":"QuickBooks","href":"/integrations/accounting/quickbooks"}]}]}]},{"tab":"Templates","pages":[{"title":"Templates","href":"/templates/introduction"}]},{"tab":"FAQ","pages":[{"title":"FAQ","href":"/faq/about-lago"}]},{"tab":"Knowledge Base","href":"https://knowledge.getlago.com"},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/product"}]}]},"basePath":"","title":"Data Pipeline schema - Lago","deploymentId":"dpl_3UWrZQodFHfxeNZNwJGtAN3LFPAW","buildId":"dpl_3UWrZQodFHfxeNZNwJGtAN3LFPAW","dynamics":[],"chunks":[]}