Project endpoints
Get balance
The wallet balance of the key's project.
GET
https://watsy.me/v1/balancecurl https://watsy.me/v1/balance \
-H "Authorization: Bearer $WATSY_KEY"{
"object": "balance",
"mode": "live",
"currency": "IQD",
"balance_milli": 2980000,
"balance": 2980
}Authorization
Authorizationstring (header)requiredBearerfollowed by your project key:wsy_live_…orwsy_test_….
Headers
X-Request-IdstringOptional, 8 to 64 characters. Echoed back; generated when missing.
Response (200)
application/jsonobjectstringrequiredAlways
balance.modestringrequiredMode of the key used.
Values:
livetestcurrencystringrequiredAlways
IQD.balance_milliintegerrequiredBalance in milli-IQD.
balancenumberrequiredThe same balance in IQD.
A project has one wallet. A test key sees the same real balance but never charges it.