Wallet

Call the Wallet API to request balance wallet.


GET /v1/balance

Request

# Without parameters

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

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

Parameters details

ParameterTypeDescription

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

ParameterDescription

currency

The currency type that the amount.

balance

Balance value.

Last updated