Add Bank

Add a bank account to your Terraswitch account.

POST {{ BASE_URL }}/v1/corporate/bank

Body Parameters

Property
Data Type
Description
Example
Required

bankCode

string

The bank sort code. Use the List Banksarrow-up-right endpoint to get list of banks and their codes

"035"

Yes

accountNo

string

Your bank account number

"0125089414"

Yes

import Axios from 'axios';

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

// define request data
const data = {
    bankCode: "035",
    accountNo: "0125089414"
}

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