Skip to main content

Balance

Request

API URL: /merchant/balance

HeaderContentDescription
Content-Typetext/plain
Authorization{token_type} {access_token}Concat token_type and access_token with whitespace.
ParamTypeRequiredSignDescription
user_idStringMerchant identification
typeInteger0 = the returned balances represent the current balance in PTS. (Default)
1 = the returned balances represent the amount that can withdraw (The withdrawal amount in processing will be excluded)
signStringsignature string

Response

ParamTypeRequiredSignDescription
user_idStringMerchant identification
PHPArrayPHP: { channel_name: channel_balance } (Support up to 6 decimal places)
USDArrayUSD: { channel_name: channel_balance } (Support up to 6 decimal places)
{currency}ArrayAny other currencies supported by our service.
signStringSignature string

Example

{
"code": "1000",
"message": "Accepted",
"data": {
"user_id": 1,
"PHP": {
"MAYA": 50000,
"DRAGON": 50000
},
"USD": {
"MAYA": 50000,
"DRAGON": 50000
},
"sign": "QHnRBlfzyIa72eaQmUGTfPCVNKLzels+..."
}
}