Balance
Request
API URL: /merchant/balance
Header | Content | Description |
---|---|---|
Content-Type | text/plain | |
Authorization | {token_type} {access_token} | Concat token_type and access_token with whitespace. |
Param | Type | Required | Sign | Description |
---|---|---|---|---|
user_id | String | ✅ | ✅ | Merchant identification |
type | Integer | ❌ | ❌ | 0 = 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) |
sign | String | ✅ | ❌ | signature string |
Response
Param | Type | Required | Sign | Description |
---|---|---|---|---|
user_id | String | ✅ | ✅ | Merchant identification |
PHP | Array | ❌ | ❌ | PHP: { channel_name: channel_balance } (Support up to 6 decimal places) |
USD | Array | ❌ | ❌ | USD: { channel_name: channel_balance } (Support up to 6 decimal places) |
{currency} | Array | ❌ | ❌ | Any other currencies supported by our service. |
sign | String | ✅ | ❌ | Signature string |
Example
{
"code": "1000",
"message": "Accepted",
"data": {
"user_id": 1,
"PHP": {
"MAYA": 50000,
"DRAGON": 50000
},
"USD": {
"MAYA": 50000,
"DRAGON": 50000
},
"sign": "QHnRBlfzyIa72eaQmUGTfPCVNKLzels+..."
}
}