Enable Payment Link
Update an existing payment link on your Terraswitch account.
PUT {{ BASE_URL }}/v1/corporate/enable-payment/{{slug}}import Axios from 'axios';
// set the api url
const API_URL = `${BASE_URL}/v1/corporate/enable-payment/${slug}`;
// make request using axios
Axios({
method: "POST",
url: `${API_URL}`,
headers: {
lg: 'en',
ch: 'web'
Authorization: `Bearer ${API_KEY}`,
'Content-Type': 'application/json',
}
}).then((resp) => {
console.log(resp)
}).catch((err) => {
console.log(err)
}){
"error": false,
"errors": [],
"data": {
"name": "Donation Request",
"link": "https://staging-web.terraswitch.com/link/donation-request",
"isEnabled": true
},
"message": "successful",
"status": 200
}Last updated