Wallet traceability lets you follow the credit flow between inbound (top-up) and outbound (usage deduction) transactions. For a given inbound transaction, you can see which outbound transactions consumed its credits — and for a given outbound transaction, you can see which inbound transactions funded it.Documentation Index
Fetch the complete documentation index at: https://lago-target-wallet.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Track how credits were consumed
For an inbound wallet transaction, you can see all outbound transactions that consumed credits from it.- Dashboard
- API
- Go to a specific customer;
- Open the “Wallets” tab and click on a specific wallet;
- Click on an inbound wallet transaction;
- Go to the “Consumptions” tab; and
- See all outbound wallet transactions linked to this top-up and the amount consumed by each.
Track how credits were funded
For an outbound wallet transaction, you can see all inbound transactions that funded it.- Dashboard
- API
- Go to a specific customer;
- Open the “Wallets” tab and click on a specific wallet;
- Click on an outbound wallet transaction;
- Go to the “Fundings” tab; and
- See all inbound wallet transactions that funded this deduction and the amount each provided.
Route events to a specific wallet
Overview
Events can target a specific wallet. When calculating usage or applying credits for such events, credits are drawn from the targeted wallet rather than following the standard wallet selection logic. If atarget_wallet_code refers to a wallet that does not exist, no credits will be applied for that event.
Requirements
To use wallet-targeted events, two things must be configured:- Update the charge to set:
accepts_target_wallets: true - Include
target_wallet_codein the event payload
Behavior
Charge accepts_target_wallets | Event target_wallet_code | Result |
|---|---|---|
true | Valid wallet code | Credits are drawn from the targeted wallet |
true | Invalid / non-existent wallet code | No credits are applied |
true | Not provided | Standard wallet selection logic is applied |
false | Any value | Standard wallet selection logic is applied (target is ignored) |
- A charge with
accepts_target_wallets: truedoes not require every event to carry atarget_wallet_code. Events without a target fall back to the standard logic. - Ensure the
target_wallet_codematches an existing wallet’s code on the customer, otherwise the event produces no credit application.