Expiry List

Get the list of expiry value to pass while creating real time payment links.

Method


POST https://api.ninjapay.me/webextension/api/v1/fiat/realtime-payment-link/link/expiry-list

Response

{
    "status": true,
    "data": [
        {
            "id": 1,
            "name": "No Expiry"
        },
        {
            "id": 2,
            "name": "Monthly"
        },
    ]

    "message": "List of expiry!"
}

Code Example


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/link/expiry-list', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
  

Last updated