Get invoice attachment
Retrieves a file attached to an invoice.
Authentication
requestTokenstring
API Key authentication via header
Path parameters
filename
The filename in Payabli. Filename is `zipName` in the response to a request to `/api/Invoice/{idInvoice}`. Here, the filename is `0_Bill.pdf``.
```
"DocumentsRef": {
"zipfile": "inva_269.zip",
"filelist": [
{
"originalName": "Bill.pdf",
"zipName": "0_Bill.pdf",
"descriptor": null
}
]
}
```
idInvoice
Invoice ID
Query parameters
returnObject
When true, the request returns the file content as a Base64-encoded string.
Response
A successful response returns a binary file when returnObject is false. When returnObject is true, the response contains the file content as a Base64-encoded string in an object. Due to technical limitations, only the object response is documented here.
fContent
Content of file, Base64-encoded. Ignored if furl is specified. Max upload size is 30 MB.
filename
The name of the attached file.
ftype
The MIME type of the file (if content is provided)
furl
Optional URL provided to show or download the file remotely