Skip to main content

wallet/balance

wallet/balance

If you have wallets used for payouts, use this request to check your current Smart Glocal deposit balance.

The amount is returned in minor currency units (USD decimal format). If the value is 10000, the amount is 100 USD.

Endpoint

api/v1/wallet/balance

Request parameters

NameMandatoryTypeDescription
request_datetime+stringTimestamp of the request in ISO 8601
Request example
curl -X POST \
https://demo.smart-glocal.com/api/v1/wallet/balance \
-H 'content-type: application/json' \
-H 'X-PARTNER-PROJECT: your_project_name' \
-H 'X-PARTNER-SIGN: signature' \
-d '{
"request_datetime":"2024-04-10T19:53:00+03:00"
}'

Response parameters

NameMandatoryTypeDescription
status+stringStatus. Options: error, ok
wallets-objectList of wallet accounts available in Smart Glocal
error-objectError description
Successful response example
{
"status": "ok",
"wallets": [
{
"id": "310",
"amount_details": {
"amount": 13000,
"currency": "usd"
}
}
]
}
Unsuccessful response example
{
"error": {
"code": "error code",
"description": "error description"
},
"status": "error"
}