Documentation/Référence API

API REFERENCE

Retrait

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

Retrait

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

Request parameters6

Required fields first

提款

commandRequiredstringdata.commandpayout
amountRequirednumberdata.amount提款金额,2位小数,例如19.99
currencyRequiredstringdata.currency货币代码,ISO 4217,例如EUR,CHF
referenceRequiredstringdata.reference备注
notify_urlRequiredstringdata.notify_url异步通知地址
nonce_stringRequiredstringdata.nonce_string随机字符串,不长于32位

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

Paramètres

ParameterTypeDescriptionObligatoire
data.commandstringpayout✓
data.amountnumber提款金额,2位小数,例如19.99✓
data.currencystring货币代码,ISO 4217,例如EUR,CHF✓
data.referencestring备注✓
data.notify_urlstring异步通知地址✓
data.nonce_stringstring随机字符串,不长于32位✓

Cette API permet de retirer des fonds du solde du portefeuille YabandPay.

Conseil

  1. Le montant du retrait ne doit pas dépasser le solde disponible (utilisable).
  1. Seuls les comptes super administrateurs du marchand peuvent appeler cette API. Les comptes opérateur et caissier ne sont pas autorisés à l’appeler.
ParamètreTypeDescriptionObligatoire
userStringUID du compte super administrateurObligatoire
signStringSignatureObligatoire
methodStringv3.MerchantBalanceObligatoire
timeLongTimestampObligatoire
  • Parameters | Paramètre | Type | Description | Obligatoire | |:--- |:--- |:--- |:--- | | command | String | payout | Obligatoire | | amount | String | Montant du retrait, avec 2 décimales, par exemple 19.99 | Obligatoire | | currency | String | Code devise ISO 4217, par exemple EUR ou CHF | Obligatoire | | reference | String | Remarks | Obligatoire | | notify_url | String | URL de notification asynchrone | Obligatoire | | nonce_string | String | Chaîne aléatoire de 32 caractères maximum | Obligatoire |

Exemple de signature :

Paramètres triés et concaténés dans une chaîne de requête au format URL

"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"

Signer stringA avec secret_key

La signature obtenue est :

"YOUR_SIGNATURE"

Exemple de requête :

{
    "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"
    }
}

Exemple de réponse :

{
    "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": ""
}

Informations complémentaires :

Description des paramètres de réponse :
ParamètreTypeDescription
userStringUID du compte super administrateur
timeStringHorodatage actuel
gateway_nameStringNom de l’établissement de portefeuille
payout_idStringNuméro de l’ordre de versement
currencyStringCode devise, norme ISO 4217
amountStringMontant du retrait
referenceStringRemarks
notify_urlStringURL de notification asynchrone
stateStringStatut de la commande. Il existe actuellement 6 statuts : awaiting approval, pending, failed, completed, declined, cancelled