How balances are calculated
The response provides these fields:A pending refund doesnβt raise
spendingPower. Refund value lands only when
the refund settles.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Read a userβs credit limit, pending and posted charges, balance due, and spending power. Use these metrics for managing user accounts and tracking spending.
| Field | Description |
|---|---|
creditLimit | The maximum credit assigned to the user. |
pendingCharges | Transactions that are authorized but not yet finalized. |
postedCharges | Transactions that have been finalized or settled. |
balanceDue | The total amount the user owes. |
spendingPower | The remaining credit available to the user: the credit limit minus everything outstanding (pending, posted, due, and any in-flight transfer or bill-pay holds). |
currency | The balance currency, when set for your program. |
timelockedWithdrawals | Informational: the total of the userβs initiated time-locked withdrawals. Not subtracted from spendingPower. |
spendingPowerWithWallet | Only on programs that pull funds from customer wallets at authorization time: spendingPower plus what Rain can currently pull from the userβs wallet allowance. |
spendingPower. Refund value lands only when
the refund settles.