👨‍💻
Beta Ramps - Documentation
  • Introduction
  • Getting Started
    • Onboarding
    • Set up your account
    • Processing limits
    • API Integration
  • API guide
    • Crypto and Fiat coverage
    • Authentication
    • Rate Limits
    • Webhooks
    • Errors
  • Request Payments
    • Crypto Payments Overview
    • Requesting a Crypto Quote
    • Crypto Payment Orders
    • Merchant's Account Balance
  • Registering Subaccounts
    • Subaccounts Overview
    • Registering Subaccounts
    • Wallet Addresses
    • Bank Account Information
  • Exchange Crypto to Fiat
    • Exchange Overview
    • Requesting a Quote
    • Buy/Sell Orders
    • Crypto and Fiat Deposits
    • Crypto and Fiat Withdrawal
    • Subaccount Balance
  • Pay anything from Crypto Wallet
    • 🚧Pay from Wallet Overview
Powered by GitBook
On this page
  1. Exchange Crypto to Fiat

Subaccount Balance

Retrieving crypto or fiat subaccount balances.

Your business must have a custodial services agreement with Beta Ramps to use this service.

Retrieve the balance of an specific asset for a specific account or subaccount

GET https://live.betaapp.com/v1/balance

Query Parameters

Name
Type
Description

asset*

String

Check Crypto and Fiat capabilities for more information

Headers

Name
Type
Description

Authorization*

String

Bearer {access_token}

x-sub-account-id*

String

Subaccount ID.

{
  "message": "string",
  "number_of_orders_associated": 0,
  "total_asset": "string",
  "total_amount": 0,
}
{
  "message": "string"
}

Request Example:

curl -X 'GET' \
  'https://live.betaapp.com/v1/balance?asset=BRL' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6InJlaEF1NURPY...ctfx2I4g'

Response Example:

{
  "total_amount": 18500,
  "total_fees": 185,
  "number_of_orders_associated": 22
}

The total_fees parameter represents the amount in fees that will be discounted during the settlement process.

PreviousCrypto and Fiat WithdrawalNextPay from Wallet Overview

Last updated 1 year ago