TransfersmileTransfersmile
  • EN
  • PT
  • ES
  • EN
  • PT
  • ES
  • Introduction
  • Payin API
    • Environments
    • Direct integration
      • Brazil
        • Credit Card
        • Pix
        • Lottery
        • Boleto
        • Deposit Express
        • Wallet
    • Notification
      • Security
    • Payin Detail
    • Refund
    • Plug-in & Tools
      • transfersmile JavaScript
      • transfersmile SDK
      • Get CreditCard Token
      • Supported Bank List Query
      • Installment Detail Query
    • Data
      • Payment Method
      • Data for test (Sandbox)
      • Payin Status
      • Icon of methods
    • API Code
  • Payout API
    • Environments
    • Security
    • Submit a payout
      • transfersmile Wallet
        • WebView Example
        • H5 Authorization
        • Native App Authorization
        • Send Prizes
      • Brazil
        • Pix
        • BankTransfer
    • Notification
    • Payout DryRun
    • Account Balance
    • Payout Status
    • Payout List
    • Payout Detail
    • Payment Method
    • Data for test
    • Bank Code
      • Bank in Brazil
    • API Code

Account Balance

How to get your account balance in transfersmile.

Post

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

Get your account balance in transfersmile

Parameters

Header

Content-Type*stringapplication/json; chartset=UTF-8
AppId*stringYour App ID in payout platform
Authorization*stringSHA256($sorted_params + $app_key)

Body

timestamp*Integerunix 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": {}
}

Example

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

Note: 94FAC**********************68548 is transfersmile's test merchant id for sandbox, and d6181db0d6548b94b162e75d095b59147172d914699f83b2bd17951a671b6302 is authorization token associated with the test App ID

Prev
Payout DryRun
Next
Payout Status