Documentation/API Reference

API REFERENCE

Query balance

POSThttps://mapi.yabandpay.com/Payments
Live API
API PLAYGROUND · Live API

Query balance

POSThttps://mapi.yabandpay.com/Payments
Automatically signed with your credentials

Request parameters3

Required fields first

Query balance

commandRequiredstringdata.commandgetBalance
currencyRequiredstringdata.currencyISO 4217 currency code, for example EUR or CHF
nonce_stringRequiredstringdata.nonce_stringRandom string, no longer than 32 characters

Credentials stay on this page. Your secret key is never stored or sent to the documentation server.

This API queries the YabandPay wallet balance.

Tip

Only merchant super administrator accounts can call this API. Operator and cashier accounts are not authorized to call it.

ParameterTypeDescriptionRequired
userStringUID of the super administrator account
signStringSignatureRequired
methodStringv3.MerchantBalanceRequired
timeLongTimestampRequired
  • Parameters
ParameterTypeDescriptionRequired
commandStringgetBalanceRequired
currencyStringISO 4217 currency code, for example EUR or CHFRequired
nonce_stringStringRandom string, no longer than 32 charactersRequired

Signature example:

Sorted parameters concatenated into a URL-style query string

"command=getBalance&currency=EUR&method=v3.MerchantBalance&nonce_string=tw5be5b7sry5prm96s&time=1708422208&user=036870"

Sign stringA using secret_key

The resulting signature is:

"YOUR_SIGNATURE"

Request example:

{
    "user": "036870",
    "sign": "YOUR_SIGNATURE",
    "method": "v3.MerchantBalance",
    "time": 1708422208,
    "data": {
        "command": "getBalance",
        "nonce_string": "tw5be5b7sry5prm96s",
        "currency": "EUR"
    }
}

Response example:

{
    "status": true,
    "code": "200",
    "data": {
        "user": "036870",
        "time": 1708422208,
        "gateway_name": "YabandPay",
        "wallet_id": "WA156227511825",
        "currency": "EUR",
        "available": "9999788.98",
        "reserve": "200.00",
        "usable": "9999988.98",
        "deposit": "20.00"
    },
    "message": ""
}

Additional information:

Response parameter descriptions:
ParameterTypeDescription
userStringUID of the super administrator account
timeStringCurrent timestamp
gateway_nameStringInstitution name
wallet_idStringWallet ID
currencyStringCurrency code, ISO 4217
availableStringAvailable balance
reserveStringReserve balance
usableStringSpendable amount, equal to vailable - reserve
depositStringFrozen balance