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
Name | Mandatory | Type | Description |
---|---|---|---|
request_datetime | + | string | Timestamp 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
Name | Mandatory | Type | Description |
---|---|---|---|
status | + | string | Status. Options: error , ok |
wallets | - | object | List of wallet accounts available in Smart Glocal |
error | - | object | Error 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"
}