Skip to main content
GET

Authorizations

Authorization
string
header
required

Bearer API Key, for example Bearer sk_live_xxx.

X-StablePay-Timestamp
string
header
required

Unix timestamp in seconds. Must be within 5 minutes of the server time.

X-StablePay-Nonce
string
header
required

Random string for replay protection, 16–64 characters.

X-StablePay-Signature
string
header
required

HMAC-SHA256 signature computed using the merchant API Secret, encoded as lowercase hex.

Headers

X-StablePay-Timestamp
string
required

Unix timestamp in seconds. Must be within 5 minutes of the server time.

X-StablePay-Nonce
string
required

Random string for replay protection, 16–64 characters. A new UUID is recommended for each request.

Required string length: 16 - 64
X-StablePay-Signature
string
required

Compute HMAC-SHA256 over {timestamp}.{nonce}.{requestBody} using the merchant API Secret and encode the result as lowercase hex. For GET requests, requestBody is an empty string.

Path Parameters

account_no
string
required

An 8-digit account number.

Pattern: ^[0-9]{8}$

Response

Query successful.

account_no
string
required

Account number as an 8-digit string. Preserve leading zeros.

Pattern: ^[0-9]{8}$
Example:

"00000001"

account_name
string
required

Account display name.

Example:

"Default Account"

currency
string
required

Uppercase ledger currency or asset code, such as USD, USDT, or USDC.

Example:

"USDT"

status
enum<string>
required

Account availability status. Restricted accounts can still be queried; the relevant business endpoint determines whether fund operations are allowed.

Available options:
active,
restricted
is_system_default
boolean
required

Whether this is a system default account.

editable
boolean
required

Whether the merchant may edit the account display name. This endpoint does not support editing.

available_amount
integer<int64>
required

Available balance, expressed as an integer in the smallest unit of the ledger currency.

frozen_amount
integer<int64>
required

Frozen or reserved balance, expressed as an integer in the smallest unit of the ledger currency.

total_amount
integer<int64>
required

Total account balance. In the current version, this equals available_amount + frozen_amount.

created
integer<int64>
required

Account creation time in Unix seconds.

as_of
integer<int64>
required

Database observation time for this query, in Unix seconds. This is not a data version and does not guarantee that multiple requests share the same snapshot.

Last modified on October 13, 2026