Wallet

Call the Wallet API to request balance wallet.


GET /balance

Request

# Without parameters

curl -v --location --request GET 'https://sandbox.smartfastpay.com/balance' \
    --header 'Content-Type: application/json' \
    --header 'Authorization: Bearer <Access-Token>' \'
# With parameters

curl -v --location --request GET 'https://sandbox.smartfastpay.com/balance?currency=USD' \
    --header 'Content-Type: application/json' \
    --header 'Authorization: Bearer <Access-Token>' \'

Parameters details

Parameter
Type
Description

currency

string (3) min: 3 | max: 3

This parameter is optional, if currency isn't provided it will return all currencies. Eg.: USD

Response

# All Currencies
{
    "requestId": "167ffff1-b58b-4d1b-909e-ff714c594967",
    "data": [
        {
            "currency": "BRL",
            "balance": 517488.21
        },
        {
            "currency": "USD",
            "balance": 53.62
        }
    ]
}
# One Currency
{
    "requestId": "167ffff1-b58b-4d1b-909e-ff714c594967",
    "data": [
        {
            "currency": "BRL",
            "balance": 517488.21
        }
    ]
}

Response details

Parameter
Description

currency

The currency type that the amount.

balance

Balance value.