Within the Xero Invoice action, the following functionality is available:
This document will document how to successully use them, including any enum values you may need and other information such at formatting rules.
When creating an invoice, the following fields are required as a minimum.
If only the minimum amount of fields are provided, then the invoice will sit in a "draft" state until it gets updated with the full information.
Whilst an invoice is in a "draft" state, actions such as fetching a URL will not work.
Updating invoices follows a very similar procedure to the "Create Invoice" operation. The only difference between the two is that an Invoice ID will be required to update an invoice. Failure to provide a Invoice ID may result in new invoices being created.
When fetching an invoice URL, the only information required is an invoice ID. There is also an optional checkbox to fetch a URL to the PDF version. The PDF URL can then be used with the ThinkAutomation "Download File" action, to save the the file locally.
When providing any dates for invoices, they must be in the following format: YYYY-MM-DD. Failure to provide dates in this format may lead to errors when creating invoices, or inaccurate dates being used.
If an error occurs during any process, the response returned will be an empty string and any errors added to the automation log.
If you wish to mark an invoice as authorized, the following data is required: