Add Tracking Details

This endpoint is used to add a tracking details for invoice plugin

Method

POST https://api.ninjapay.me/webextension/api/v1/fiat/invoice/add-tracking

Parameters

  • invoice_uuid : (string, required) - Invoice uuid can be fetched from get invoice api

  • tracking_number : (string, required) - Add Tracking number

  • tracking_url: (string) - Add Tracking URL

Request Body

Body (application/json)
{
    "invoice_uuid": "98396072", //invoice_uuid
    "tracking_number": "123456", // tracking_number
    "tracking_url": "https://tinyurl.com/12345" // tracking_url
}

Response

{
    "status": true,
    "data": {},
    "message": "Tracking details updated successfully"
}

Code Example


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));
  

Last updated