Get invoice attachment
Retrieves a file attached to an invoice.
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“.
idInvoice
Invoice ID
Headers
requestToken
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