For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

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

Last updated