Withdraw Money

Send money to a NGN bank account already added to your Terraswitch account.

POST {{ BASE_URL }}/v1/corporate/withdraw

Body Parameters

Property
Data Type
Description
Example
Required

amount

number

The amount you want to withdraw

2000

Yes

accountNo

string

An account number from the list of banks you already added to your Vacepay account. Get list of your banks using the Get Banks endpoint. Also you can add a new bank using the Add Bank endpoint

N/A

Yes

pin

string

Your 4-digit transaction PIN

"0000"

Yes

reference

string

Your preferred transaction reference

"txref_09376384ACC"

No

import Axios from 'axios';

// set the api url
const API_URL = `${BASE_URL}/v1/corporate/withdraw`;

// define request data
const data = {
    amount: 2000,
    accountNo: "0252872742"
    pin: "0000",
    reference: "txref_09376384ACC"
}

// make request using axios
Axios({
    method: "POST",
    url: `${API_URL}`,
    headers: {
        lg: 'en',
        ch: 'web'
        Authorization: `Bearer ${API_KEY}`,
        'Content-Type': 'application/json',
    },
    data: data
}).then((resp) => {
    console.log(resp)
}).catch((err) => {
    console.log(err)
})

Last updated