Documentation/API Reference

API REFERENCE

Withdrawal

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

Withdrawal

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

Request parameters6

Required fields first

Withdrawal

commandRequiredstringdata.commandpayout
amountRequirednumberdata.amountWithdrawal amount with 2 decimal places, for example, 19.99
currencyRequiredstringdata.currencyISO 4217 currency code, for example EUR or CHF
referenceRequiredstringdata.referenceRemarks
notify_urlRequiredstringdata.notify_urlAsynchronous notification URL
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 withdraws funds from the YabandPay wallet balance.

Tip

  1. The withdrawal amount must not exceed the spendable balance (usable).
  1. 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 accountRequired
signStringSignatureRequired
methodStringv3.MerchantBalanceRequired
timeLongTimestampRequired
  • Parameters
ParameterTypeDescriptionRequired
commandStringpayoutRequired
amountStringWithdrawal amount with 2 decimal places, for example, 19.99Required
currencyStringISO 4217 currency code, such as EUR or CHFRequired
referenceStringRemarksRequired
notify_urlStringAsynchronous notification URLRequired
nonce_stringStringRandom string, no longer than 32 charactersRequired

Signature example:

Sorted parameters concatenated into a URL-style query string

"amount=100.01&command=payout&currency=EUR&method=v3.MerchantBalance&nonce_string=2yx20x4c6dswedikxs&notify_url=https://www.yabandpay.com/notify&reference=456789&time=1708482257&user=036870"

Sign stringA using secret_key

The resulting signature is:

"YOUR_SIGNATURE"

Request example:

{
    "user": "036870",
    "sign": "YOUR_SIGNATURE",
    "method": "v3.MerchantBalance",
    "time": 1708482257,
    "data": {
        "command": "payout",
        "nonce_string": "2yx20x4c6dswedikxs",
        "amount": 100.01,
        "currency": "EUR",
        "reference": "456789",
        "notify_url": "https://www.yabandpay.com/notify"
    }
}

Response example:

{
    "status": true,
    "code": "200",
    "data": {
        "user": "036870",
        "time": 1708482257,
        "gateway_name": "YabandPay",
        "payout_id": "0594bf99-fce7-3784-28f7-e8e76ad01989",
        "currency": "EUR",
        "amount": "100.01",
        "reference": "456789",
        "notify_url": "https://www.yabandpay.com/notify",
        "state": "awaiting approval"
    },
    "message": ""
}

Additional information:

Response parameter descriptions:
ParameterTypeDescription
userStringUID of the super administrator account
timeStringCurrent timestamp
gateway_nameStringWallet institution name
payout_idStringpayout order number
currencyStringCurrency code, ISO 4217
amountStringWithdrawal amount
referenceStringRemarks
notify_urlStringAsynchronous notification URL
stateStringOrder status. There are currently 6 statuses: awaiting approval, pending, failed, completed, declined, cancelled