DELETE https://api.ninjapay.me/webextension/api/v1/fiat/realtime-payment-link/link/link_id_here
{
"status": true,
"data": [],
"message": "Payment link deleted !"
}
const options = {
method: 'DELETE',
headers: {
'Content-Type': 'application/json',
'x-api-key':'API_KEY'
}
};
fetch('https://api.ninjapay.me/webextension/api/v1/fiat/realtime-payment-link/link/RTLmXXXXXXXXXXXXX', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));