Delete Template

Delete a template to create a new one.

Method


DELETE https://api.ninjapay.me/webextension/api/v1/fiat/realtime-payment-link/link/template/template_id

Path Parameter

  • template_id: String- Id of template.

Response

{
    "status": true,
    "data": [],
    "message": "Template deleted successfully!"
}

Code Example


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/template/TEMPmXXXXXXXXXXXXX', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
  

Last updated