Single order Id trx list

Transaction id .

Method

GET https://api.ninjapay.me/webextension/api/v1/fiat/realtime-payment-link/link/trx/:id

Id - string- This could be the super order id or link id.

Note: If super order is passed then all the transaction related to super order id will come and if passed link id then all the transaction included all the transaction in all super order id under one link id will come. One link id can contain multiple super order id if link is multi paid.

Response

{
    "status": true,
    "data": {
        "id": 9,
        "brand_color": "#ff9c1405",
        "accent_color": "#ffe52d2d",
        "currency": "INR",
        "enable_tips": true,
        "redirect_url": "https://www.ninjapay.me",
        "is_dark_theme": true
    },
    "message": "Template details"
}

Code Example

const params = new URLSearchParams({ page: 1 });

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

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

Last updated