LogoLogo
Dev Portal
v1
v1
  • REST API
  • Overview
  • API REFERENCE
    • API Requests
    • Payments
    • Boletos
    • PicPay
    • Credit Card
    • Payouts
      • Payouts (Brazil)
      • Payouts (Colombia)
    • Transactions
    • Checkout
      • Checkout (Brazil)
      • Checkout (Colombia)
    • Wallet
    • Webhooks
      • Webhooks (Notification)
      • Webhooks (Signature)
      • Webhooks (Get Secret)
  • GUIDES
    • How to get the token
    • Our Status and Flow
    • Tests to validate your integration
Powered by GitBook
On this page
  1. API REFERENCE

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

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.

Last updated 7 months ago