Skip to main content

wallet/balance

wallet/balance

If you have wallets used for payouts, you can 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: 6eaf1e9cfa15f011e02c0a126187fe327a71e9d79be5e3fdb3f69dc5dfcd9871' \
-d '{
"request_datetime":"2024-04-10T19:53:00+03:00"
}'

Response parameters

NameMandatoryTypeDescription
status+stringStatus. Options: error, ok
wallets-WalletDetailsList of wallet accounts available in Smart Glocal
error-ErrorError

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"
}