1. Authentication
The endpoint requires your LumiID API key. Include your API key in theAuthorization header using the Bearer authentication scheme.
2. Request parameters
No query parameters or request body are required.3. Example request
cURL4. Successful response
200 OK5. 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./api/wallet/balance/ route above is an example of your own backend proxy.
PHP
Flutter (Dart)
Install the HTTP package:8. Recommended use cases
- 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.