View Invoice PDF This endpoint returns the PDF representation of a single invoice. Returns the PDF file for the requested invoice. The system locates the PDF as follows: - If the invoice was created manually (source_id_in_table = '00000000-0000-0000-0000-000000000000'), the PDF is retrieved from the invoice_files table using dbFactory.invoice.GetInvoicePDF(invoice_id). - If the invoice was not created manually (source_id_in_table <> '00000000-0000-0000-0000-000000000000') and the source is a contract or work order, the PDF is retrieved via dbFactory.job_files.get(id).

Request Information

URI Parameters :

NameDescriptionTypeAdditional information
id

Unique identifier of the invoice

globally unique identifier

Required

Body Parameters :

None.

Response Information

Resource Description :

Binary PDF content of the invoice file

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version
Content

HttpContent
StatusCode

HttpStatusCode
ReasonPhrase

string
Headers

Collection of Object
RequestMessage

HttpRequestMessage
IsSuccessStatusCode

boolean