Remove Subaccount
Remove subaccount on an existing payment link
PUT {{ BASE_URL }}/v1/corporate/remove-subaccount/{{slug}}
Body Parameters
Property
Data Type
Description
Example
Required
code
string
The subaccount code to be removed
"vpd648394tc"
Yes
import Axios from 'axios';
// set the api url
const API_URL = `${BASE_URL}/v1/corporate/remove-subaccount/${slug}`;
// define request body
const data = {
code: "vpd648394tc"
}
// 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