Documentation Index
Fetch the complete documentation index at: https://docs.lux-core.io/llms.txt
Use this file to discover all available pages before exploring further.
Balance API
Use the Balance API to check your merchant account balance. This is especially important before initiating withdrawals to ensure sufficient funds.The Balance API requires the
balance.read or balance.view scope on your API key.Get Balance by Currency
Retrieve the balance for a specific currency.Query Parameters
| Parameter | Required | Default | Description |
|---|---|---|---|
currency | No | MXN | ISO 4217 currency code (ARS, AUD, MXN, UYU) |
balance_type | No | main | Balance type: main, deposit, withdrawal, commission, frozen |
Response
Get All Balances
Retrieve balances for all currencies at once.Response
Response Fields
| Field | Type | Description |
|---|---|---|
balance_type | string | Balance type: main, deposit, withdrawal, commission, or frozen |
balance_amount | string | Total balance amount in minor units (centavos) |
available_amount | string | Amount available for withdrawals, in minor units (centavos) |
frozen_amount | string | Amount frozen by pending withdrawals, in minor units |
new_balance | integer | Total balance as integer (same value as balance_amount) |
available_balance | integer | Available balance as integer (same value as available_amount) |
Available vs Frozen:
available_amount— funds you can use right now for new withdrawalsfrozen_amount— funds reserved by pending withdrawals that have not yet completed. These are temporarily locked and cannot be used for new operations
available_amount.Usage Example: Check Balance Before Withdrawal
How Balance Changes
| Event | Effect |
|---|---|
| Deposit completed | available_amount increases by net_amount (deposit amount minus fee) |
| Withdrawal created | frozen_amount increases, available_amount decreases by the same amount |
| Withdrawal completed | frozen_amount decreases (funds sent to recipient) |
| Withdrawal failed | frozen_amount decreases, available_amount increases (funds unfrozen) |
| Refund processed | available_amount decreases by refund amount |
