Skip to main content
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

One row per billing entity, including archived and deleted ones.

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.

Billable metrics

One row per billable metric. Deleted billable metrics are excluded.

Plans and subscriptions

One row per usage-based charge of a plan, including deleted charges.Plans and subscriptions only: empty for organizations billing with the product catalog.
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.
One row per subscription of a customer to a plan.Plans and subscriptions only: empty for organizations billing with the product catalog.
One row per progressive billing usage threshold, including deleted thresholds.Plans and subscriptions only: empty for organizations billing with the product catalog.

Product catalog

One row per plan of the product catalog.Product catalog only: empty for organizations billing with plans and subscriptions.
One row per rate card attached to a catalog plan.Product catalog only: empty for organizations billing with plans and subscriptions.
One row per pricing unit, a custom unit in which prices can be expressed instead of a currency.
One row per product category, used to group products.Product catalog only: empty for organizations billing with plans and subscriptions.
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.
One row per product of the product catalog.Product catalog only: empty for organizations billing with plans and subscriptions.
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.
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.
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.
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.

Contracts

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.
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.
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.

Usage

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.

Invoices and 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.
One row per settlement of an invoice by a payment or a credit note.
One row per subscription billed on an invoice.Plans and subscriptions only: empty for organizations billing with the product catalog.
One row per invoice.
One row per metadata object attached to a record.

Credit notes

One row per credit note.

Payments

One row per payment request.
One row per payment.

Wallets

One row per amount of an inbound wallet transaction consumed by an outbound wallet transaction. Only recorded for traceable wallets.
One row per wallet transaction, either crediting (inbound) or debiting (outbound) a wallet.
One row per customer wallet holding prepaid credits.

Coupons

One row per coupon applied to a customer.
One row per coupon, including deleted coupons.

Taxes

One row per tax applied to a billing entity.
One row per tax applied to a credit note.
One row per tax applied to a customer.
One row per tax applied to a fee.
One row per tax applied to an invoice. Taxes of deleted invoices are excluded.
One row per tax applied to a plan or a catalog plan.
One row per tax applied to a rate card.Product catalog only: empty for organizations billing with plans and subscriptions.
One row per tax.

Entitlements

One row per privilege value set on an entitlement, including deleted values.
One row per feature granted to a plan or to a single subscription, including deleted entitlements.
One row per feature, including deleted features.

Usage monitoring

One row per threshold of a subscription or wallet alert.
One row per time a subscription or wallet alert was triggered.

Integrations

One row per link between a customer and an accounting, tax or CRM integration.

Deleted records

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.