API | Get Balance of merchant
Method name: api_get_shop_balance
. Get balance of merchant.
https://paykassa.app/api/0.9/index.php
Parameter
Field | Type | Description |
---|---|---|
func required | String |
Method name, must be: api_get_shop_balance Default value: |
api_id required | String |
API ID |
api_key required | String |
API Password |
shop_id required | String |
Merchant ID |
Success 200
Field | Type | Description |
---|---|---|
error required | Boolean |
false - Success |
Information required | String |
message |
data required | Object |
Extradata - cointain pairs key system name and currency name(ex. BinanceCoin BNB => "binancecoin_bnb") from https://coinmarketcap.com in lowercase, value current balance |
HTTP/1.1 200 OK
{
"error": false,
"message": "Balance store successfully received.",
"data": {
"bitcoin_btc": "6.19148781",
"ethereum_eth": "16.65759653",
"litecoin_ltc": "10.81039547",
"dogecoin_doge": "14055330.30324031",
"dash_dash": "62.08654262",
"bitcoincash_bch": "230.00235701",
"ripple_xrp": "130977.938830",
"tron_trx": "15003.120000",
"stellar_xlm": "150325.0002350",
"binancecoin_bnb": "1525.003350",
"tron_trc20_usdt": "100.0000",
"binancesmartchain_bep20_usdt": "100.0000",
"ethereum_erc20_usdt": "100.0000",
"binancesmartchain_bep20_usdc": "100.0000",
"binancesmartchain_bep20_ada": "100.0000",
"binancesmartchain_bep20_eos": "30.0000",
"binancesmartchain_bep20_btc": "0.002355",
"binancesmartchain_bep20_eth": "2.2342356",
"binancesmartchain_bep20_doge": "1100300.003423400"
}
}
Error 4xx
Name | Type | Description |
---|---|---|
error required | Boolean |
true - Fail |
message required | String |
Error description |
data required | Object |
Empty |
HTTP/1.1 200 OK
{
"error": true,
"message": "Access is denied. Error code: 10.",
"data": {}
}