Remove POS

This endpoint is used to remove the POS

Method

DELETE https://api.ninjapay.me/webextension/api/v1/fiat/upos

Parameter

pos_id: (string, required) // The ID of POS to be deleted.

Request body

Body (application/json)
{
    "pos_id":"POS99d445ba9bf92dcc" //REQUIRED POS ID
}

Response

{
    "status":true,
    "data":{},
    "message":"POS removed successfully"
}

Code Example


const options = {
  method: 'DELETE',
  headers: {
    'Content-Type': 'application/json',
    'x-api-key': 'API_KEY' 
  },
  body: {
    "pos_id":"POS99d445ba9bf92dcc"
}
};

fetch('https://api.ninjapay.me/webextension/api/v1/fiat/upos', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
  

200 OK

The request was successful, and the POS has been deleted.

400 Bad Request

The request was malformed or missing required parameters.

401 Unauthorized

Authentication failed or the user does not have permission to delete the POS.

404 Not Found

The POS ID provided does not exist.

500 Internal Server Error

An error occurred on the server.

Last updated