Remove Client

This endpoint is used to remove a client details for invoice plugin

Method

DELETE https://api.ninjapay.me/webextension/api/v1/fiat/invoice/client/{id}

Parameters

client_id : (integer, required) - Client ID

Request Body

Body (application/json)
{
  "client_id": 2,  // client ID
}

Response

{
    "status": true,
    "data": {},
    "message": "Client details updated successfully"
}

Code Example


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));
  

Last updated