Node.js SDK
Get Balances
Get how much your AI Agent can spend (per agent or per customer)
Check Balances
Two simple endpoints to check available balances - one for your customers and one for your AI Agent.
What gets returned
Both endpoints return a number representing the spendable balance in the currency’s units:
The balance only includes funds that:
- Have been verified as received
- Aren’t reserved for other tasks
Parameters
For Customer Balance:
-
customerId
: Either:- Your system’s customer ID
- Payman’s customer ID
-
currency: Currency code (e.g., “USD”)
For Agent Balance:
- currency: Currency code (e.g. “USD”)