GetInvoice

Use this function to retrieve a specific invoice.

Properties

Authentication

Authentication values used to connect to the Xero server.

Invoice id / number

The InvoiceID or Number for the invoice to retrieve.

Return options

Select how the data is to be returned.

Possible values are:

  • JSON
  • PDF

Note: If set to JSON, the item is returned. If set to PDF, the item is downloaded as a PDF file and file path is returned. The file is saved in the default temporary folder of the user.


Output

Return type of Invoice

Details of the invoice as determined by the selected Return option (see above).


Xero Developer: Invoices (GET)