BonusPay Documents
English
English
  • Welcome
  • Get Started
  • Basic Fee Structure
  • API Rules
  • Creating an RSA Key
  • Products
  • Crypto TOPUP
    • Parameters
    • getAddress
    • queryCustomerDepositOrderPage
    • getCustomerDepositOrder
    • Notification (Callback)
  • Order Payment by API
    • Parameters
    • Place Order
    • Cancel Order
    • Accept Order
    • Get Order
    • Get PaymentEventList
    • Refund
    • Get Refund Order
    • Notification (Callback)
  • Order Payment by Checkout
    • Parameters
    • Place Order
    • Cancel Order
    • Accept Order
    • Get Order
    • Get PaymentEventList
    • Refund
    • Get Refund Order
    • Notification (Callback)
  • Withdraw
    • Parameters
    • Place Order
    • Get Order
    • Get Networks
    • Notification (Callback)
  • Transfer
    • Parameters
    • Place Order
    • Get Order
    • Get Networks
    • Notification (Callback)
  • Fx Rate
    • Parameters
    • getFxrate
  • Get Account Balance
    • Parameters
    • getAccountList
  • No Code Production
  • Fiat Settlement
    • Parameters
    • Place Order
    • Get Order
    • Notification (Callback)
  • Plug-and-Play
    • WooCommerce
Powered by GitBook
On this page
  • Request Parameters
  • Request Example
  • Response Parameters
  • Response Example
  1. Get Account Balance

getAccountList

PreviousParametersNextNo Code Production

Last updated 10 months ago

Interface URL

Sandbox URL:

PROD URL:

Request Parameters

HTTP Header

Field Name
Variable Name
Required
Type
Example
Description

Content-Language

Content-Language

Optional

String(10)

en

en-English (default)

Sign

sign

Required

String

-

Partner ID

Partner-Id

Required

String(12)

-

Http Body

Field Name
Variable Name
Required
Type
Example
Description

Request Time

requestTime

Required

Timestamp(3)

1581493898000

Business Content

bizContent

Required

GetAccountListRequest

-

Business Content

GetAccountListRequest

Field Name
Variable Name
Required
Type
Example
Description

Asset List

assetCodeList

Optional

List<string>

[ "USDT", "ETH" ]

Query account list request, if the request parameter assetCodeList is null, it will return a list of accounts in all the currencies.

Request Example

Http Header
{
    "Content-Language": "en",
    "Content-Type": "application/json",
    "sign": "IXJI/QicPQotIsIDBcSGIg6jtJUXs1rTuifQFZUNd3KDTl25GKmpYO7OrkaKkTV0shDRitLmkxJCe3Z60zHE2ZSeVczrhwrnmuMG+bX9N22Hw821H6MydsXetYHRnyf5dPbgpmVja582w49grA6jRlVFAVMYdxKJDPSCb2X/IpltvyrLQ1Wt+lqr+fnpYXvyON6/PIZIQIknC8BVddVahxJnaC6HEagvJf6gskz22/DFfPHT1mlMA9pg8qrbh4O7DYZahf8TB3nIzAPc/FHOUZkYYTT2c8m4eLL8740nJVK7D3IOSqSnBAU/iJ2omjPPFvRCCSqzz17pkGsT7AW91w==",
    "Partner-Id": "200000000888"
}

Http Body
{
    "bizContent":{
        "assetCodeList":[
            "USDT",
            "ETH"
        ]
    },
    "requestTime":1688630397732
}

Response Parameters

Http Header

Field Name
Variable Name
Required
Type
Example
Description

Sign

sign

Required

String

-

The body field in Http Body is only returned when applyStatus is SUCCESS and code is 0.

Http Body

Field Name
Variable Name
Required
Type
Example
Description

Response Header

head

Required

ResponseHeader

-

Response Body

body

Optional

GetAccountListResponse

-

GetAccountListResponse

Field Name
Variable Name
Required
Type
Example
Description

Asset List

assetCodeList

Optional

List<accounts>

[ { "availableBalance":{ "amount":100, "currency":"USDT" }, "balance":{ "amount":100, "currency":"USDT" }, "withdrawBalance":{ "amount":100, "currency":"USDT" }, "currencyCode":"USDT" }, { "availableBalance":{ "amount":100, "currency":"ETH" }, "balance":{ "amount":100, "currency":"ETH" }, "withdrawBalance":{ "amount":100, "currency":"ETH" }, "currencyCode":"ETH" } ]

Response Example

Http Header
{
  "sign": "JzWjVQ245trg3p0CyuwUUHN+Ck40q/HDaMvhqueHDP8YHqC/Uw3c9VWCw4gKsNbk+CRShjT+bvKkck8Fc3aAiRK8wIVQz6eu95sPkJgZp5A0P+tfMH/44F+3CrejtbEIkrHdSwhy98Tv9TYs9QFe7Yni/vEJ8P4OU6FZJOi8LGOMF6Nc8+S5qftc7qLA17cNJ7NJYC+EW8suGe/NmGA9c5NMK5BwHTHzXYOjXwXLx8mw4M3hiirl0wtVym3hrOmbkujYZCH56h8uOVF0FbHGu5uoq61NuniJitLLs9qyiEprQzUe8oWsJnHKXeGAgEr//fLXIXgYsRYb7AWoJzs6Eg=="
}

Http Body
{
    "body":{
        "accountList":[
            {
                "availableBalance":{
                    "amount":100,
                    "currency":"USDT"
                },
                "balance":{
                    "amount":100,
                    "currency":"USDT"
                },
                "withdrawBalance":{
                    "amount":100,
                    "currency":"USDT"
                },
          		"currencyCode":"USDT"
            },
            {
                "availableBalance":{
                    "amount":100,
                    "currency":"ETH"
                },
                "balance":{
                    "amount":100,
                    "currency":"ETH"
                },
                "withdrawBalance":{
                    "amount":100,
                    "currency":"ETH"
                },
          		"currencyCode":"ETH"
            }
        ]
    },
    "head":{
        "applyStatus":"SUCCESS",
        "code":"0",
        "msg":"SUCCESS",
        "traceCode":"000000"
    }
}

http://api.testbonuspay.network/sgs/api/account/getAccountList
https://api.bonuspay.network/sgs/api/account/getAccountList