Skip to main content

Credit purchases and top-ups

Lago automatically generates an invoice for each purchase. Taxes do not apply to credit purchases, which are considered as advance payments. Payment must be made in order for credits to be added to the customer’s wallet (the payment status of the top-up invoice must be succeeded).
On a paid top-up, Lago rounds the top-up credits to the nearest cent, to comply with the decimal rounding rules for amounts. This does not affect free credits.
To top up a wallet through the user interface:
  1. Open the “Wallets” tab and click “Edit wallet” on the right;
  2. Select “Top up credits”;
  3. Enter the number of credits to be purchased and/or granted for free;
  4. Define transaction metadata (optional & available only via API);
  5. Determine whether the wallet transaction generates an invoice after a top-up or only following a successful payment; and
  6. Click “Top up credits” to confirm.
Coupons do not apply to credit purchases and top-ups.

Invoicing top-up after successful payment option

When enabled, this option delays issuing an invoice for a wallet top-up until a successful payment is made. If disabled, the invoice is issued immediately upon the wallet top-up, regardless of the payment status. This setting can be applied to individual transactions.

Void credits

You can deduct an exact number of credits from the balance of a wallet. This action is instantaneous and cannot be undone.
To void credits through the user interface:
  1. Open the “Wallets” tab and click “Edit wallet” on the right;
  2. Select “Void credits”;
  3. Enter the number of credits to void;
  4. Define transaction metadata (optional & available only via API); and
  5. Click “Void credits” to confirm.

Setup recurring top-ups

Recurring top-up rules require Lago Premium. For automatic collection of paid top-ups through Stripe, connect Stripe and collect a payment method for the customer. Purchased credits become available only after the purchase invoice is marked succeeded.
When you create or edit a wallet, you can enable recurring top-ups. Two methods are available, fixed and target. Both are triggered either by an interval or by a threshold. The start date of a recurring top-up is ignored when it is the same as the creation date of the wallet. For example, if you create a wallet on Jan 1st, 2026, and set a monthly recurring top-up to start on Jan 1st, 2026, the top-up does not trigger until Feb 1st, 2026.

Fixed recurring top-up

A fixed recurring top-up adds a predetermined number of credits to the wallet, either purchased or granted for free.

Target recurring top-up

A target recurring top-up adds a variable number of credits to the wallet to reach a target balance. The number of credits comes from the gap between the ongoing balance at the moment of the trigger and the target balance. Set the target with target_ongoing_balance. It must be greater than or equal to threshold_credits when the rule is triggered by a threshold.
Set a target recurring top-up on creation

Interval trigger

For an interval trigger, specify the frequency of the automatic top-up: weekly, monthly, quarterly, semiannual or yearly. Once the interval is defined, Lago performs a top-up:
  • Weekly, on the same day each week (e.g., every Monday).
  • Monthly, on the same date each month (e.g., every 2nd of the month).
  • Quarterly, on the same date every three months (e.g., every 2nd of the quarter).
  • Semiannual, on the same date every six months (e.g., every 2nd of the semester).
  • Yearly, on the same date every year (e.g., every 2nd of January).
To set up an interval recurring top-up through the user interface:
  1. Create or edit a wallet;
  2. Click “Add a recurring top-up rule”;
  3. Select interval as recurring type;
  4. Define your interval;
  5. Define when the rule should start; and
  6. Define transaction metadata for the top-ups (optional & available only via API);

Threshold trigger

With a threshold trigger, set a specific number of credits that will trigger an automatic top-up. Lago monitors the ongoing balance, and if it falls to or below the defined credit threshold, an automatic top-up is initiated.
To set up a threshold recurring top-up through the user interface:
  1. Create or edit a wallet;
  2. Click “Add a recurring top-up rule”;
  3. Select threshold as recurring type;
  4. Define the credits threshold; and
  5. Define transaction metadata for the top-ups (optional & available only via API);

Expiration date

Define an expiration date for your recurring transaction rule. Once that date is reached, the rule is terminated and generates no further top-up.