Skip to main content
The Wallet Balance API allows clients to retrieve their current LumiID wallet balance and associated account information programmatically. This endpoint is useful for monitoring available funds, implementing automated wallet monitoring, and checking account balances before initiating identity verification requests.GET

1. Authentication

The endpoint requires your LumiID API key. Include your API key in the Authorization header using the Bearer authentication scheme.

2. Request parameters

No query parameters or request body are required.

3. Example request

cURL

4. Successful response

200 OK

5. Response fields

Note: The balance is returned as a string to preserve decimal precision. Parse it using a decimal-safe numeric type when performing financial calculations.

6. Error responses

404 — Wallet not found

Returned when the authenticated organization does not have an associated wallet.

401 — Unauthorized

Returned when the API key is missing or invalid, assuming the authentication class returns this status.

7. Integration examples

React.js

For production applications, call this endpoint through your backend to protect your API key.
The /api/wallet/balance/ route above is an example of your own backend proxy.

PHP

Flutter (Dart)

Install the HTTP package:
Create a wallet service:
Example usage:
For production Flutter applications, retrieve the balance through your authenticated backend rather than embedding a permanent secret API key in the application.
  • Wallet monitoring: Periodically check available wallet funds.
  • Low-balance alerts: Notify administrators when the wallet balance falls below a configured threshold.
  • Dashboard integration: Display the current LumiID wallet balance in your application.
  • Transaction monitoring: Check available funds before initiating verification requests.
Important: This endpoint retrieves the current wallet balance. It does not fund the wallet, initiate transactions, or reserve funds for verification requests. Authentication is scoped to the organization associated with the API key.