POST https://api.ninjapay.me/webextension/api/v1/fiat/invoice/add-tracking
Body (application/json)
{
"invoice_uuid": "98396072", //invoice_uuid
"tracking_number": "123456", // tracking_number
"tracking_url": "https://tinyurl.com/12345" // tracking_url
}
{
"status": true,
"data": {},
"message": "Tracking details updated successfully"
}
const options = {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-api-key': 'API_KEY' //Invoice key required
},
body: {
"invoice_uuid": "98396072", //invoice_uuid
"tracking_number": "123456", // tracking_number
"tracking_url": "https://tinyurl.com/12345" // tracking_url
}
};
fetch('https://api.ninjapay.me/webextension/api/v1/fiat/invoice/add-tracking', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));