# Lago ## Docs - [The add-on object](https://getlago.com/docs/api-reference/add-ons/add-on-object): This object represents an add-on, a one-time fee that can be applied on one-off invoices. - [Create an add-on](https://getlago.com/docs/api-reference/add-ons/create): This endpoint is used to create an add-on that can be then attached to a one-off invoice. - [Delete an add-on](https://getlago.com/docs/api-reference/add-ons/destroy): This endpoint is used to delete an existing add-on. - [List all add-ons](https://getlago.com/docs/api-reference/add-ons/get-all): This endpoint is used to list all existing add-ons. - [Retrieve an add-on](https://getlago.com/docs/api-reference/add-ons/get-specific): This endpoint is used to retrieve a specific add-on. - [Update an add-on](https://getlago.com/docs/api-reference/add-ons/update): This endpoint is used to update an existing add-on. - [Retrieve gross revenue](https://getlago.com/docs/api-reference/analytics/gross-revenue): Gross revenue is the sum of monthly `finalized` invoice payments and fees paid in advance that are not invoiceable. This total is calculated after deducting taxes and discounts. - [Retrieve invoice collection](https://getlago.com/docs/api-reference/analytics/invoice-collection): Represents a monthly aggregation, detailing both the total count and the cumulative amount of invoices that have been marked as `finalized`. This report sorts invoices categorically based on their `payment_status`. - [Retrieve invoiced usage](https://getlago.com/docs/api-reference/analytics/invoiced-usage): Reports a monthly analysis focused on the revenue generated from all usage-based fees. It exclusively accounts for revenue that has been formally invoiced. Importantly, this report does not include revenue related to the usage in the current billing period, limiting its scope to previously invoiced amounts. - [Retrieve MRR (monthly recurring revenue)](https://getlago.com/docs/api-reference/analytics/mrr): This endpoint is used to list MRR. - [Retrieve overdue balance](https://getlago.com/docs/api-reference/analytics/overdue-balance): Overdue balance is the total amount associated with overdue invoices (invoices with pending or failed payments which are past their due dates). - [Create a billable metric](https://getlago.com/docs/api-reference/billable-metrics/create): This endpoint creates a new billable metric representing a pricing component of your application. - [Delete a billable metric](https://getlago.com/docs/api-reference/billable-metrics/destroy): This endpoint deletes an existing billable metric representing a pricing component of your application. - [List all billable metrics](https://getlago.com/docs/api-reference/billable-metrics/get-all): This endpoint retrieves all existing billable metrics that represent pricing components of your application. - [List all billable metric groups](https://getlago.com/docs/api-reference/billable-metrics/get-all-groups) - [Retrieve a billable metric](https://getlago.com/docs/api-reference/billable-metrics/get-specific): This endpoint retrieves an existing billable metric that represents a pricing component of your application. The billable metric is identified by its unique code. - [The billable metric object](https://getlago.com/docs/api-reference/billable-metrics/object): This object represents a billable metric used to define how incoming events are aggregated in order to measure consumption. - [Update a billable metric](https://getlago.com/docs/api-reference/billable-metrics/update): This endpoint updates an existing billable metric representing a pricing component of your application. - [The applied coupon object](https://getlago.com/docs/api-reference/coupons/applied-coupon-object): This object represents a coupon applied to a customer. It can override the initial values of a coupon. - [Apply a coupon](https://getlago.com/docs/api-reference/coupons/apply): This endpoint is used to apply a specific coupon to a customer, before or during a subscription. - [The coupon object](https://getlago.com/docs/api-reference/coupons/coupon-object): This object represents a coupon used to applies discount on customer next invoices. This coupon can be applied to a customer with overriden values. - [Create a coupon](https://getlago.com/docs/api-reference/coupons/create): This endpoint is used to create a coupon that can be then attached to a customer to create a discount. - [Delete a coupon](https://getlago.com/docs/api-reference/coupons/destroy): This endpoint is used to delete a coupon. - [Delete an applied coupon](https://getlago.com/docs/api-reference/coupons/destroy-applied-coupon): This endpoint is used to delete a specific coupon that has been applied to a customer. - [List all coupons](https://getlago.com/docs/api-reference/coupons/get-all): This endpoint is used to list all existing coupons. - [List all applied coupons](https://getlago.com/docs/api-reference/coupons/get-all-applied): This endpoint is used to list all applied coupons. You can filter by coupon status and by customer. - [Retrieve a coupon](https://getlago.com/docs/api-reference/coupons/get-specific): This endpoint is used to retrieve a specific coupon. - [Update a coupon](https://getlago.com/docs/api-reference/coupons/update): This endpoint is used to update a coupon that can be then attached to a customer to create a discount. - [Create a credit note](https://getlago.com/docs/api-reference/credit-notes/create): This endpoint creates a new credit note. - [The credit note object](https://getlago.com/docs/api-reference/credit-notes/credit-note-object): This object represents a credit note, used to refund or credit back a customer for a fee or an invoice. - [Download a credit note](https://getlago.com/docs/api-reference/credit-notes/download): This endpoint downloads the PDF of an existing credit note. - [List all credit notes](https://getlago.com/docs/api-reference/credit-notes/get-all): This endpoint list all existing credit notes. - [Retrieve a credit note](https://getlago.com/docs/api-reference/credit-notes/get-specific): This endpoint retrieves an existing credit note. - [Update a credit note](https://getlago.com/docs/api-reference/credit-notes/update): This endpoint updates an existing credit note. - [Void available credit](https://getlago.com/docs/api-reference/credit-notes/void): This endpoint voids the available credit linked to a specific credit note. - [The customer usage object](https://getlago.com/docs/api-reference/customer-usage/customer-usage-object): This object represents the usage-based charges associated with one of your customers for a defined billing period. It allows you to monitor customer usage throughout the period. - [Retrieve current usage](https://getlago.com/docs/api-reference/customer-usage/get-current): Retrieve real-time customer usage data for the current open billing period. - [Retrieve past usage](https://getlago.com/docs/api-reference/customer-usage/get-past): Fetch historical customer usage data for closed billing periods. - [Create a customer](https://getlago.com/docs/api-reference/customers/create): This endpoint creates a new customer. - [Retrieve customer portal URL](https://getlago.com/docs/api-reference/customers/customer-portal): Retrieves an embeddable link for displaying a customer portal. This endpoint allows you to fetch the URL that can be embedded to provide customers access to a dedicated portal - [Delete a customer](https://getlago.com/docs/api-reference/customers/delete): This endpoint deletes an existing customer. - [List all customers](https://getlago.com/docs/api-reference/customers/get-all): This endpoint retrieves all existing customers. - [Retrieve a customer](https://getlago.com/docs/api-reference/customers/get-specific): This endpoint retrieves an existing customer. - [The customer object](https://getlago.com/docs/api-reference/customers/object): This object represents a customer of your business. It lets you create or update a customer, but also track usage and create invoices for the same customer. - [Regenerate checkout URL](https://getlago.com/docs/api-reference/customers/psp-checkout-url): This endpoint regenerates the Payment Provider Checkout URL of a Customer. - [Update a customer](https://getlago.com/docs/api-reference/customers/update): This endpoint creates a new customer. - [Batch usage events](https://getlago.com/docs/api-reference/events/batch): This endpoint can be used to send a batch of usage records. Each request may include up to 100 events. - [Estimate an upcoming fee](https://getlago.com/docs/api-reference/events/estimated-fee): Estimate the fees that would be created after reception of an event for a billable metric attached to one or multiple pay in advance charges. - [The event object](https://getlago.com/docs/api-reference/events/event-object): Events represents usage measurement sent to lago application that will then be aggregated into invoice line items. - [Retrieve an event](https://getlago.com/docs/api-reference/events/get-specific): This endpoint is used for retrieving a specific usage measurement event that has been sent to a customer or a subscription. - [List all events](https://getlago.com/docs/api-reference/events/list-events): This endpoint is used for retrieving all events. - [Send usage event](https://getlago.com/docs/api-reference/events/usage): This endpoint is used for transmitting usage measurement events to either a designated customer or a specific subscription. - [Delete a fee](https://getlago.com/docs/api-reference/fees/destroy-fee): This endpoint is used for deleting a specific fee that has not yet been invoiced - [The fee object](https://getlago.com/docs/api-reference/fees/fee-object): This object represents a line item of an invoice, handling amount, billed units and item description. - [List all fees](https://getlago.com/docs/api-reference/fees/list-fees): This endpoint is used for retrieving all fees that has been issued. - [Retrieve a fee](https://getlago.com/docs/api-reference/fees/retrieve-fee): This endpoint is used for retrieving a specific fee that has been issued. - [Update a fee](https://getlago.com/docs/api-reference/fees/update-fee): This endpoint is used for updating a specific fee that has been issued. - [Getting started](https://getlago.com/docs/api-reference/intro): Lago API allows your application to push customer information and metrics (events) from your application to the billing application. - [Create a one-off invoice](https://getlago.com/docs/api-reference/invoices/create-oneoff): This endpoint is used for issuing a one-off invoice. - [Download an invoice](https://getlago.com/docs/api-reference/invoices/download): This endpoint is used for downloading a specific invoice PDF document. - [Finalize an invoice](https://getlago.com/docs/api-reference/invoices/finalize): This endpoint is used for finalizing a draft invoice. - [List all invoices](https://getlago.com/docs/api-reference/invoices/get-all): This endpoint is used for retrieving all invoices. - [Retrieve an invoice](https://getlago.com/docs/api-reference/invoices/get-specific): This endpoint is used for retrieving a specific invoice that has been issued. - [The invoice object](https://getlago.com/docs/api-reference/invoices/invoice-object): This object represents an invoice generated by Lago for a specific customer. This invoice summarizes the fees generated by a subscription, usage-based charges, prepaid credit purchases, or one-off invoices. - [Generate a payment URL](https://getlago.com/docs/api-reference/invoices/payment-url): This endpoint generates a checkout link for a specific invoice. - [Refresh an invoice](https://getlago.com/docs/api-reference/invoices/refresh): This endpoint is used for refreshing a draft invoice. - [Retry an invoice payment](https://getlago.com/docs/api-reference/invoices/retry): This endpoint resends an invoice for collection and retry a payment. - [Retry an invoice finalization](https://getlago.com/docs/api-reference/invoices/retry_finalization): This endpoint is used for retrying to generate a failed invoice. - [Update an invoice](https://getlago.com/docs/api-reference/invoices/update): This endpoint is used for updating an existing invoice. - [Void an invoice](https://getlago.com/docs/api-reference/invoices/void): This endpoint is used for voiding an invoice. You can void an invoice only when it's in a `finalized` status, and the payment status is not `succeeded`. - [The organization object](https://getlago.com/docs/api-reference/organizations/organization-object): This object represents your organization. You can define all invoicing details and settings within it. - [Update your organization](https://getlago.com/docs/api-reference/organizations/update): This endpoint is used to update your own organization's settings. - [Create a payment request](https://getlago.com/docs/api-reference/payment-requests/create): This endpoint is used to create a payment request to collect payments of overdue invoices of a given customer - [List all payment requests](https://getlago.com/docs/api-reference/payment-requests/get-all): This endpoint is used to list all existing payment requests. - [The payment request object](https://getlago.com/docs/api-reference/payment-requests/payment-request-object): This object represents payment request of a group of overdue invoices for which a payment intent can be created, to settle the overdue balance. - [Create a plan](https://getlago.com/docs/api-reference/plans/create): This endpoint creates a plan with subscription and usage-based charges. It supports flexible billing cadence (in-advance or in-arrears) and allows for both recurring and metered charges. - [Delete a plan](https://getlago.com/docs/api-reference/plans/destroy): This endpoint deletes a specific plan. Note that this plan could be associated with active subscriptions. - [List all plans](https://getlago.com/docs/api-reference/plans/get-all-plans): This endpoint retrieves all existing plans. - [Retrieve a plan](https://getlago.com/docs/api-reference/plans/get-specific): This endpoint retrieves a specific plan. - [The plan object](https://getlago.com/docs/api-reference/plans/object): This object represents a plan. This plan can then be assigned to a customer. - [Update a plan](https://getlago.com/docs/api-reference/plans/update): This endpoint updates a specific plan with subscription and usage-based charges. It supports flexible billing cadence (in-advance or in-arrears) and allows for both recurring and metered charges. - [Currencies](https://getlago.com/docs/api-reference/resources/currencies): List of accepted currencies (ISO 4217). - [Document locales](https://getlago.com/docs/api-reference/resources/locales) - [Timezones](https://getlago.com/docs/api-reference/resources/timezones): List of accepted timezones (TZ database). - [Create a subscription](https://getlago.com/docs/api-reference/subscriptions/assign-plan): This endpoint assigns a plan to a customer, creating or modifying a subscription. Ideal for initial subscriptions or plan changes (upgrades/downgrades). - [List all subscriptions](https://getlago.com/docs/api-reference/subscriptions/get-all): This endpoint retrieves all active subscriptions. - [Retrieve subscription lifetime usage](https://getlago.com/docs/api-reference/subscriptions/get-lifetime-usage): This endpoint allows you to retrieve the total lifetime usage of a subscription. - [Retrieve a subscription](https://getlago.com/docs/api-reference/subscriptions/get-specific): This endpoint retrieves a specific subscription. - [The lifetime usage object](https://getlago.com/docs/api-reference/subscriptions/lifetime-usage-object): This object represents the total lifetime usage of a subscription, particularly useful for progressive billing. - [The subscription object](https://getlago.com/docs/api-reference/subscriptions/subscription-object): This object represents the assignation of plan to one of the customer of your business. - [Terminate a subscription](https://getlago.com/docs/api-reference/subscriptions/terminate): This endpoint allows you to terminate a subscription. - [Update a subscription](https://getlago.com/docs/api-reference/subscriptions/update): This endpoint allows you to update a subscription. - [Update subscription lifetime usage](https://getlago.com/docs/api-reference/subscriptions/update-lifetime-usage): This endpoint allows you to update the total lifetime usage of a subscription for migration purposes. - [Create a tax rate](https://getlago.com/docs/api-reference/taxes/create): This endpoint creates a new tax representing a customizable tax rate applicable to either the organization or a specific customer. - [Delete a tax rate](https://getlago.com/docs/api-reference/taxes/destroy): This endpoint is used to delete a tax. - [List all tax rates](https://getlago.com/docs/api-reference/taxes/get-all): This endpoint retrieves all existing taxes representing a customizable tax rate applicable to either the organization or a specific customer. - [Retrieve a tax rate](https://getlago.com/docs/api-reference/taxes/get-specific): This endpoint retrieves an existing tax representing a customizable tax rate applicable to either the organization or a specific customer. The tax is identified by its unique code. - [The tax object](https://getlago.com/docs/api-reference/taxes/tax-object): This object represents a customizable tax rate applicable to either the organization or a specific customer. - [Update a tax rate](https://getlago.com/docs/api-reference/taxes/update): This endpoint updates an existing tax representing a customizable tax rate applicable to either the organization or a specific customer. - [Create a wallet](https://getlago.com/docs/api-reference/wallets/create): This endpoint is used to create a wallet with prepaid credits. - [List all wallets](https://getlago.com/docs/api-reference/wallets/get-all): This endpoint is used to list all wallets with prepaid credits. - [List all wallet transactions](https://getlago.com/docs/api-reference/wallets/get-all-transactions): This endpoint is used to list all wallet transactions. - [Retrieve a wallet](https://getlago.com/docs/api-reference/wallets/get-specific): This endpoint is used to retrieve an existing wallet with prepaid credits. - [Terminate a wallet](https://getlago.com/docs/api-reference/wallets/terminate): This endpoint is used to terminate an existing wallet with prepaid credits. - [Top-up a wallet](https://getlago.com/docs/api-reference/wallets/top-up): This endpoint is used to top-up an active wallet. - [Update a wallet](https://getlago.com/docs/api-reference/wallets/update): This endpoint is used to update an existing wallet with prepaid credits. - [The wallet object](https://getlago.com/docs/api-reference/wallets/wallet-object): This object represents a wallet, holding free or prepaid credits. - [The wallet transaction object](https://getlago.com/docs/api-reference/wallets/wallet-transaction-object): This object represents a wallet transaction. It is used for topping up or voiding prepaid credits. - [Create a webhook endpoint](https://getlago.com/docs/api-reference/webhook-endpoints/create): This endpoint is used to create a webhook endpoint. - [Delete a webhook endpoint](https://getlago.com/docs/api-reference/webhook-endpoints/destroy) - [Retrieve a webhook endpoint](https://getlago.com/docs/api-reference/webhook-endpoints/get-all): This endpoint is used to list all webhook endpoints. - [List all webhook endpoints](https://getlago.com/docs/api-reference/webhook-endpoints/get-specific): This endpoint is used to retrieve an existing webhook endpoint. - [Update a webhook endpoint](https://getlago.com/docs/api-reference/webhook-endpoints/update): This endpoint is used to update an existing webhook endpoint. - [The webhook endpoint object](https://getlago.com/docs/api-reference/webhook-endpoints/webhook-endpoint-object): This object represents the webhook endpoint used for listening to Lago’s events - [Format & Signature](https://getlago.com/docs/api-reference/webhooks/format---signature): Webhooks are HTTP notifications sent from Lago to your application. - [Messages](https://getlago.com/docs/api-reference/webhooks/messages): Below is a list of the event types we currently send. Please note that additional event types may be introduced in the future, so your code should be flexible enough to accommodate new types as they arise. Our objective is to maintain a consistent and predictable event structure, making it easier to integrate and handle messages, along with the objects they affect. - [Product updates](https://getlago.com/docs/changelog/product): New updates and improvements to Lago. - [About Lago](https://getlago.com/docs/faq/about-lago) - [About the software](https://getlago.com/docs/faq/about-software) - [Community](https://getlago.com/docs/faq/community) - [Deployment](https://getlago.com/docs/faq/deployment) - [General](https://getlago.com/docs/faq/general) - [Pricing](https://getlago.com/docs/faq/pricing) - [Product features](https://getlago.com/docs/faq/product-features) - [Gross revenue](https://getlago.com/docs/guide/analytics/gross-revenue) - [Invoice collection](https://getlago.com/docs/guide/analytics/invoice-collection) - [Overdue invoices](https://getlago.com/docs/guide/analytics/invoice-overdue) - [Monthly Recurring Revenue (MRR)](https://getlago.com/docs/guide/analytics/mrr) - [Overview](https://getlago.com/docs/guide/analytics/overview) - [Aggregation examples](https://getlago.com/docs/guide/billable-metrics/aggregation-types/aggregation-examples) - [COUNT](https://getlago.com/docs/guide/billable-metrics/aggregation-types/count) - [UNIQUE COUNT](https://getlago.com/docs/guide/billable-metrics/aggregation-types/count-unique) - [CUSTOM](https://getlago.com/docs/guide/billable-metrics/aggregation-types/custom-agg) - [LATEST](https://getlago.com/docs/guide/billable-metrics/aggregation-types/latest) - [MAX](https://getlago.com/docs/guide/billable-metrics/aggregation-types/max) - [Overview](https://getlago.com/docs/guide/billable-metrics/aggregation-types/overview): Aggregation types will define how consumption will be measured. - [SUM](https://getlago.com/docs/guide/billable-metrics/aggregation-types/sum) - [WEIGHTED SUM](https://getlago.com/docs/guide/billable-metrics/aggregation-types/weighted-sum) - [Create billable metrics](https://getlago.com/docs/guide/billable-metrics/create-billable-metrics): Billable metrics define how incoming events are aggregated in order to measure consumption. - [Delete billable metrics](https://getlago.com/docs/guide/billable-metrics/delete-billable-metrics) - [Filters](https://getlago.com/docs/guide/billable-metrics/filters): When setting up your pricing, you may want to filters events according to their property. To do so, you can create filters for your billable metric. - [Recurring vs metered](https://getlago.com/docs/guide/billable-metrics/recurring-vs-metered) - [Rounding](https://getlago.com/docs/guide/billable-metrics/rounding): Lago aggregates your events in real time. You can add rounding rules to the final result. - [SQL Expressions](https://getlago.com/docs/guide/billable-metrics/sql-expressions): For more advanced calculations, you can use SQL custom expressions. These expressions are helpful when the aggregation results for a billable metric require complex calculations. - [Coupons](https://getlago.com/docs/guide/coupons): Coupons allow you to offer discounts to your customers. When you apply a coupon to a customer, its value will be deducted from their next subscription invoice(s). - [Credit notes](https://getlago.com/docs/guide/credit-notes) - [Customer management](https://getlago.com/docs/guide/customers/customer-management) - [Customer metadata](https://getlago.com/docs/guide/customers/customer-metadata) - [The customer portal](https://getlago.com/docs/guide/customers/customer-portal) - [Invoice a customer](https://getlago.com/docs/guide/customers/invoice-customer) - [Automatic dunning](https://getlago.com/docs/guide/dunning/automatic-dunning): Automate how to communicate with your customers to remind them of overdue invoices and attempt to recover their overdue balance using dunning campaigns. - [Manual dunning](https://getlago.com/docs/guide/dunning/manual-dunning): Dunning refers to the process of communicating with customers to remind them of overdue invoices and attempt to recover the outstanding amounts. - [Emails](https://getlago.com/docs/guide/emails): Send automatic emails when issuing an invoice or any billing documents. - [Entitlements](https://getlago.com/docs/guide/entitlements) - [Events list](https://getlago.com/docs/guide/events/events-list): By ingesting events, you can see them flowing in the Lago application by using the events list. It allows you to take a deeper look at ingested events and detect possible warnings. - [Ingesting usage](https://getlago.com/docs/guide/events/ingesting-usage): This guide explains how Lago ingests usage-based events coming from your application. - [Metering ingestion sources](https://getlago.com/docs/guide/events/metering-source): Here is a list of sources you can use to ingest usage data. Some of these sources are capable of handling up to 15,000 events per second with default settings. - [Retrieving usage](https://getlago.com/docs/guide/events/retrieve-usage): Learn how to retrieve usage data for both current and past billing periods. - [Integration testing](https://getlago.com/docs/guide/integration-testing): This step-by-step integration guide will help you get started with Lago. - [Welcome to Lago](https://getlago.com/docs/guide/introduction/welcome-to-lago): Lago is an open-source software for metering and usage-based billing. It's the best alternative to Chargebee, Recurly or Stripe Billing for companies that need to handle complex billing logic. - [Why billing is a nightmare](https://getlago.com/docs/guide/introduction/why-billing-is-a-nightmare) - [Download invoices](https://getlago.com/docs/guide/invoicing/download-invoices) - [Export invoices](https://getlago.com/docs/guide/invoicing/export): Lago enables you to filter invoices and export them as a simple or advanced CSV file, tailored to your needs. - [Fees](https://getlago.com/docs/guide/invoicing/fees): A fee is a line item in an invoice. - [Grace period](https://getlago.com/docs/guide/invoicing/grace-period) - [Invoice metadata](https://getlago.com/docs/guide/invoicing/invoice-metadata) - [Net payment term](https://getlago.com/docs/guide/invoicing/net-payment-term) - [Overview](https://getlago.com/docs/guide/invoicing/overview): Lago automatically generates invoices for each customer according to the plan model. - [Taxes](https://getlago.com/docs/guide/invoicing/taxes): When generating invoices, you may need to apply vat or other taxes. By creating taxes and applying them to the organization or/and customers, their invoices will be directly affected. - [Void invoices](https://getlago.com/docs/guide/invoicing/void) - [Lago Cloud](https://getlago.com/docs/guide/lago-cloud): Lago Cloud is the fully hosted version of our open-source billing API. - [Lago OpenAPI](https://getlago.com/docs/guide/lago-open-api) - [Migration to v1.2.0](https://getlago.com/docs/guide/migration/migration-to-v1.2.0) - [Create add-ons](https://getlago.com/docs/guide/one-off-invoices/create-add-ons): Add-ons are a useful feature that allows you to add a fixed charge that is not recurring to one-off invoices. This can be used to apply one-time fees such as a setup fee, one-time payment, or customer success fee. - [Issue one-off invoices](https://getlago.com/docs/guide/one-off-invoices/create-one-off-invoices): One-off invoices allow you to bill immediately one or several add-ons to a customer. This guide will show you how to create a one-off invoice for a specific customer using the add-ons. - [Adyen integration](https://getlago.com/docs/guide/payments/adyen-integration): Lago's native integration with Adyen allows you to collect payments automatically when new invoices are generated. - [GoCardless integration](https://getlago.com/docs/guide/payments/gocardless-integration): Lago's native integration with GoCardless allows you to collect payments via direct debit. - [Overview](https://getlago.com/docs/guide/payments/overview): Connect Lago to any payment providers by using native integrations or webhook messages. - [Payment retries](https://getlago.com/docs/guide/payments/payment-retries) - [Stripe integration](https://getlago.com/docs/guide/payments/stripe-integration): Lago's native integration with Stripe allows you to collect payments automatically when new invoices are generated. - [Arrears vs Advance](https://getlago.com/docs/guide/plans/charges/arrears-vs-advance): Usage-based charges can be either charged in advance or in arrears - [Custom price](https://getlago.com/docs/guide/plans/charges/charge-models/custom-price) - [Dynamic](https://getlago.com/docs/guide/plans/charges/charge-models/dynamic) - [Graduated](https://getlago.com/docs/guide/plans/charges/charge-models/graduated) - [Graduated percentage](https://getlago.com/docs/guide/plans/charges/charge-models/graduated-percentage) - [Package](https://getlago.com/docs/guide/plans/charges/charge-models/package) - [Percentage](https://getlago.com/docs/guide/plans/charges/charge-models/percentage) - [Standard](https://getlago.com/docs/guide/plans/charges/charge-models/standard) - [Volume](https://getlago.com/docs/guide/plans/charges/charge-models/volume) - [Charges with filters](https://getlago.com/docs/guide/plans/charges/charges-with-filters): Charge your customers by leveraging a combination of filters specified in the billable metric. - [Invoiceable vs Uninvoiceable](https://getlago.com/docs/guide/plans/charges/invoiceable-vs-noninvoiceable): In-advance charges can be either invoiceable or not. - [Metered vs Recurring](https://getlago.com/docs/guide/plans/charges/metered-vs-recurring): Usage-based charges can be either metered or recurring - [Overview](https://getlago.com/docs/guide/plans/charges/overview): In addition to the price of the plan, you can charge your customers for usage. - [Prorated vs Full](https://getlago.com/docs/guide/plans/charges/prorated-vs-full): Usage-based charges can be either bill fully or prorated based on the number of days used. - [Spending minimums](https://getlago.com/docs/guide/plans/charges/spending-minimum) - [Commitments](https://getlago.com/docs/guide/plans/commitment) - [Overview](https://getlago.com/docs/guide/plans/overview): If Billable metrics are made to measure customer usage, Plans are made to apply prices to this usage. - [Plan model](https://getlago.com/docs/guide/plans/plan-model): The plan model defines when and how much a customer is charged. - [Progressive billing](https://getlago.com/docs/guide/plans/progressive-billing): Progressive billing, also known as threshold billing, automatically triggers an invoice when a customer's cumulative usage reaches predefined thresholds. This method ensures that customers cannot exceed certain usage limits without ensuring payment is received, reducing the risk of unpaid services or fraud. - [RBAC - Role Base Access Control](https://getlago.com/docs/guide/security/rbac): Define user roles & permissions in Lago. - [SOC 2 Type 2](https://getlago.com/docs/guide/security/soc): Keeping your data secure. - [Single Sign-On (SSO)](https://getlago.com/docs/guide/security/sso) - [Useful commands](https://getlago.com/docs/guide/self-hosted/commands): Useful commands for self-hosted users. - [Docker](https://getlago.com/docs/guide/self-hosted/docker): Docker is the easiest way to get started with the self-hosted version of Lago. - [Overview](https://getlago.com/docs/guide/self-hosted/overview): Deploy Lago seamlessly on your infrastructure, compatible with both free and premium editions. - [Tracking & Analytics](https://getlago.com/docs/guide/self-hosted/tracking-analytics) - [Versions update](https://getlago.com/docs/guide/self-hosted/update-instance) - [Assign a plan to a customer](https://getlago.com/docs/guide/subscriptions/assign-plan): A subscription is created when a plan is assigned to a customer. You can assign a plan to a customer at any time (i.e. when the customer record is created or later on). - [Edit a subscription](https://getlago.com/docs/guide/subscriptions/edit-subscription): You can edit a subscription at any time, whether it's active or pending. - [Terminate a subscription](https://getlago.com/docs/guide/subscriptions/terminate-subscription): You can terminate a subscription at any time, whether it's active or pending. - [Upgrades and downgrades](https://getlago.com/docs/guide/subscriptions/upgrades-downgrades): Customers have the flexibility to easily upgrade or downgrade their plan at any given moment. - [Overview](https://getlago.com/docs/guide/wallet-and-prepaid-credits/overview): Since usage-based charges can be calculated at the end of the billing period, you often need to wait to collect payments. With prepaid credits, you can now unlock recurring revenue opportunities for pay-as-you-go pricing models. - [Top-up and void credits](https://getlago.com/docs/guide/wallet-and-prepaid-credits/wallet-top-up-and-void): Add and void credits, to the customer's wallet. - [Webhooks](https://getlago.com/docs/guide/webhooks) - [NetSuite](https://getlago.com/docs/integrations/accounting/netsuite): Lago seamlessly integrates with NetSuite, enabling real-time synchronization of billing data with your preferred accounting tool. - [Xero](https://getlago.com/docs/integrations/accounting/xero): Lago seamlessly integrates with Xero, enabling real-time synchronization of billing data with your preferred accounting tool. - [N8N](https://getlago.com/docs/integrations/alerting/n8n) - [Zapier](https://getlago.com/docs/integrations/alerting/zapier) - [HubSpot](https://getlago.com/docs/integrations/crm/hubspot): Lago syncs billing data to HubSpot in real-time. - [Salesforce CPQ](https://getlago.com/docs/integrations/crm/salesforce-cpq): Lago syncs billing data to Salesforce in real-time. - [Salesforce CRM](https://getlago.com/docs/integrations/crm/salesforce-crm): Lago syncs billing data to Salesforce in real-time. - [Airbyte (ETL)](https://getlago.com/docs/integrations/data/airbyte) - [Oso](https://getlago.com/docs/integrations/entitlements/osohq) - [Introduction](https://getlago.com/docs/integrations/introduction): Find all Lago native integrations with third party tools, whether it's related to payment providers, alerting systems or data integrations. - [AWS Marketplace](https://getlago.com/docs/integrations/marketplaces/aws-marketplace): Lago integrates with AWS marketplace through our partner Suger.io - [Azure Marketplace](https://getlago.com/docs/integrations/marketplaces/azure-marketplace): Lago integrates with Azure marketplace through our partner Suger.io - [GCP Marketplace](https://getlago.com/docs/integrations/marketplaces/gcp-marketplace): Lago integrates with GCP marketplace through our partner Suger.io - [Adyen](https://getlago.com/docs/integrations/payments/adyen-integration): Lago's native integration with Adyen allows you to collect payments automatically when new invoices are generated. - [GoCardless](https://getlago.com/docs/integrations/payments/gocardless-integration): Lago's native integration with GoCardless allows you to collect payments via direct debit. - [Stripe](https://getlago.com/docs/integrations/payments/stripe-integration): Lago's native integration with Stripe allows you to collect payments automatically when new invoices are generated. - [Anrok](https://getlago.com/docs/integrations/taxes/anrok): Lago's native integration with Anrok allows you to automatically update your invoices with tax amounts sourced directly from Anrok. This integration ensures compliance with international tax regulations by calculating taxes for US & non-US obligations, like VAT. - [Lago EU Taxes](https://getlago.com/docs/integrations/taxes/lago-eu-taxes) - [Hightouch](https://getlago.com/docs/integrations/usage/hightouch): Hightouch is a Data Activation platform that syncs data from sources (database, warehouses, spreadsheet and much more) to business applications and developer tools. This data can be sent to Lago, our usage-based billing platform, to automate your billing process and ensure accurate invoicing for your customers. - [Segment](https://getlago.com/docs/integrations/usage/segment): Segment is a powerful tool that allows you to track the usage of your customers, providing valuable insights that can help you make data-driven decisions. This data can be sent to Lago, our usage-based billing platform, to automate your billing process and ensure accurate invoicing for your customers. - [Clone Segment pricing](https://getlago.com/docs/templates/hybrid/segment): Replicate Segment's hybrid pricing model with Lago. - [Introduction](https://getlago.com/docs/templates/introduction): Replicate these popular B2B pricing templates to kickstart your journey with Lago. - [Clone Algolia pricing](https://getlago.com/docs/templates/payg/algolia): Replicate Algolia's pay-as-you-go pricing model with Lago. - [Clone Google BigQuery pricing](https://getlago.com/docs/templates/payg/bigquery): Replicate BigQuery's pay-as-you-go pricing model and offer free upfront credits with Lago. - [Clone Notion pricing](https://getlago.com/docs/templates/per-seat/notion): Replicate Notion's per-seat pricing model with Lago. - [Clone Mistral pricing](https://getlago.com/docs/templates/per-token/mistral): Replicate Mistral's per-token pricing model with Lago. - [Clone OpenAI pricing](https://getlago.com/docs/templates/per-token/openai): Replicate OpenAI's per-token pricing model with Lago. - [Clone Stripe pricing](https://getlago.com/docs/templates/per-transaction/stripe): Replicate Stripe's per-transaction pricing model with Lago. ## Optional - [Blog](https://www.getlago.com/blog) - [Community](https://www.getlago.com/slack) - [GitHub](https://github.com/getlago/lago) - [Status](https://status.getlago.com/)