POST  Withdraw from Wallet


Resource

https://api.payant.ng/wallets/withdraw/:reference_code

Parameters

settlement_bank
required
String
Client's settlement bank
account_number
required
String
Client's account number
amount
required
String
Amount to send
passcode
required
String
Wallets's passcode

Example

curl https://api.payant.ng/wallets/withdraw/PMojL342gd \
-H "Content-Type: application/json" \
-H "Authorization: Bearer SECRET_KEY" \
-d '{ "settlement_bank": "044",
    "account_number": "0000000000",
    "amount": "1500.00",
    "passcode": "937347" }' \
-X POST 
            

Response

{
  "status": "success",
  "message": "Withdrawal successful.",
  "data": { 
    "company_id": "1",
    "wallet_id": "1",
    "wallet_reference_code": "PMojL342gd",
    "currency": "NGN",
    "amount": "1500.00",
    "reference_code": "v0rX5GbWsH4FZB63tnjh",
    "type": "Withdrawal",
    "channel": "Wallet",
    "status": "1",
    "disburse_recipients": "",
    "created_at": "2016-12-21 18:50:30",
    "updated_at": "2016-12-21 18:50:30",
    "id": 2
    "transaction_date": "2017-07-26T19:50:31.000Z",
    "payment_id": "",
    "referrer": "",
    "gateway_response": "Successful",
    "disburse_status": "1",
    "disburse_ref": "TTMW000345454546",
    "disburse_response": "Successful",
    "disburse_recipients_response": "",
    "settlement_bank": "044",
    "account_number": "0000000000",
    "account_name": "Test",
}
}