POST https://api.ninjapay.me/webextension/api/v1/fiat/realtime-payment-link/link/expiry-list
{
"status": true,
"data": [
{
"id": 1,
"name": "No Expiry"
},
{
"id": 2,
"name": "Monthly"
},
]
"message": "List of expiry!"
}
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));