> For the complete documentation index, see [llms.txt](https://ninjapay.gitbook.io/ninjapay-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ninjapay.gitbook.io/ninjapay-api-docs/how-to/api-reference-upi/plugins/invoice/remove-client.md).

# Remove Client

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

#### Method

<pre><code><strong>DELETE https://api.ninjapay.me/webextension/api/v1/fiat/invoice/client/{id}
</strong></code></pre>

#### Parameters

**client\_id** : `(integer, required)` - Client ID

#### Request Body

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

#### Response

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

#### Code Example

```jsx

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