GET
/
Invoice
/
attachedFileFromInvoice
/
{idInvoice}
/
{filename}

Authorizations

requestToken
string
header
required

Most endpoints require an organization token. Some endpoints require an application token, and those endpoints are noted.

Path Parameters

idInvoice
integer
required

Invoice ID

filename
string
required

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

returnObject
boolean
default:
false

When true, the request returns the file content as a Base64-encoded string.

Response

200 - application/octet-stream

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.