Get Attached File from Invoice
Retrieves a file attached to an invoice.
GET
Authorizations
Most endpoints require an organization
token. Some endpoints require an application
token, and those endpoints are noted.
Path Parameters
Invoice ID
Example:
23548884
The filename in Payabli. Filename is zipName
in 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
}
]
}
Query Parameters
When true
, the request returns the file content as a Base64-encoded string.
Response
200
application/octet-stream
Success
When the query parameter returnObject
is false
, or null, the response returns the attached file in a binary string format. When returnObject
is true
, the response returns the attached file in a base64-encoded format.