Balance Inquiry

TIP

Check account balance and real-time status

Interface address

POST https://api.tokenpay.me/v1/merchant/balance

Interface parameters

Name
Location
Type
Required
Description

mch_id

body

string

Yes

Merchant ID, example value:12345678

chain

body

string

Yes

Owned public chain, example value:TRON

currency

body

string

Yes

Currency, example value:TRX. View supported currencies

Interface return

Name
Type
Description
Description

code

integer

Service status code. 0: success, non 0: indicate the specific cause reference msg

msg

string

Status service message

Status service message

request_id

string

Request ID

Request ID

data

array

Content

Return example

{
    "code": 0,
    "msg": "ok",
    "request_id": "08250916-a677-4a36-a090-323807ac644c",
    "data": {
     "merchant_id": 167,
        "mch_id": "12345678",
        "network": "TRC20",
        "chain": "TRON",
        "balance": "54670000",
        "currency": "USDT",
        "decimal": 6,
        "create_time": 1724237814113,
        "modify_time": 1724239248394,
        "cash_time": 0
    }
}

Example code

curl --location --request GET 'https://api.tokenpay.me/v1/merchant/balance
--header 'Authorization: '
--header 'User-Agent: Tokenpay API (https://tokenpay.me)'
--header 'Content-Type: application/json'
--data-raw ''

Last updated