Get Products

This endpoint is used to get all product details for invoice plugin

Method

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

Response

{
    "status": true,
    "data": [
        {
            "id": 10,
            "name": "Orange Gift Box",
            "price": "599.50",
            "description": "",
            "logo": "",
            "product_created_at": "2024-08-07T11:53:03.000Z",
            "currency": "INR"
        }
    ],
    "message": "Product list fetched successfully"
}

Code Example


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

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

Last updated