Upload Attachment
This endpoint is used to add attachment like Logo to invoice details
Method
POST https://api.ninjapay.me/webextension/api/v1/fiat/invoice/upload
Request Parameter
invoiceAttachment : (FILE, required)
- Select file to upload from your computer or Ninjapay Logo will be used as default
Response
{
"status": true,
"data": "https://<URL>",
"message": "upload path"
}
Code Example
const options = {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-api-key': 'API_KEY' //Invoice key required
}
};
fetch('https://api.ninjapay.me/webextension/api/v1/fiat/invoice/upload', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
Last updated