Get Client

This endpoint is used to get client details for invoice plugin

Method

GET https://api.ninjapay.me/webextension/api/v1/fiat/invoice/client

Response

{
  "status": true,
  "data": [
    {
      "name": "Aman A",
      "phone_code": "91",
      "phone": "9876543211",
      "email": "aman2@gmail.com",
      "website": "https://amanwebsite.com",
      "street_address": "1234 Elm Street",
      "state": "Maharashtra",
      "city": "Mumbai",
      "country": "India",
      "zip_code": "400001",
      "details": [
        {
          "PAN": "ABCDE1234F"
        },
        {
          "GST": "27ABCDE1234F1Z5"
        }
      ]
    }
  ],
  "message": "Client list retrieved successfully"
}

Code Example


const options = {
  method: 'GET',
  headers: {
    'Content-Type': 'application/json',
    'x-api-key': 'API_KEY' //Invoice key required
  },
  body: {}
};

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