Remove Client
Last updated
const options = {
method: 'DELETE',
headers: {
'Content-Type': 'application/json',
'x-api-key': 'API_KEY' //Invoice key required
},
body: {
"client_id": 2, // client ID
}
};
fetch('https://api.ninjapay.me/webextension/api/v1/fiat/invoice/client', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));