# Saldo da Conta

Como obter o saldo de sua conta em transfersmile..

# Post

https://sandbox.transfersmile.com/api/balance

# Obtenha o saldo de sua conta em transfersmile

# Parameters

Content-Type* string application/json; chartset=UTF-8
AppId* string Seu App ID na plataforma de payout
Authorization* string SHA256($sorted_params + $app_key)

# Body

timestamp* Integer unix timestamp, e.g. 1628512575

# Responses

200: OK
{
    "code": 200,
    "msg": "success",
    "time": 1642075813,
    "data": [
        {
            "currency": "USD",
            "amount": "551.38"
        },
        {
            "currency": "GBP",
            "amount": "0"
        },
        {
            "currency": "EUR",
            "amount": "0"
        },
        {
            "currency": "BRL",
            "amount": "99002.23"
        },
        {
            "currency": "MXN",
            "amount": "0"
        }
    ]
}
400: Bad Request
{
    "code": 4001000,
    "msg": "invalid parameter",
    "time": 1642078510,
    "data": {
        "err": "request has expired"
    }
}
401: Unauthorized
{
    "code": 4004003,
    "msg": "permission denied",
    "time": 1642074682,
    "data": {}
}

# Exemplo

curl --location --request POST 'https://sandbox.transfersmile.com/api/balance' \
--header 'AppId: 94FAC**********************68548' \
--header 'Authorization: d6181db0d6548b94b162e75d095b59147172d914699f83b2bd17951a671b6302' \
--header 'Content-Type: application/json' \
--data-raw '{
   * "timestamp": 1642075807
}'

TIP

Importante: 94FAC**********************68548 é o App Id de teste transfersmile para o ambiente de sandbox, e d6181db0d6548b94b162e75d095b59147172d914699f83b2bd17951a671b6302 é o token de autorização associado ao App Id de teste.