# View PDF invoice from remote

When an admin or customer wants to view the invoice, your invoice synchronizer handler needs to integrate the viewInvoice() function which passes the invoice model as first parameter.

You can use the customFields to retrieve the invoice id on the remote. The function should return the raw PDF data. hostware then takes care that the data will be displayed as an actual pdf document.
