Get PDF Response
The request includes the following parameters.
Internal Id of the Transaction
Pass the type of the Xero Transaction (invoice/ bill/ purchaseorder/ creditnote).
Supported Transactions Types:
- Invoice - Pass the type as invoice
- Bill - Pass the type as bill
- Purchase Order - Pass the type as purchaseorder
- Credit Note - Pass the type as creditnote
Sample Usage of the response:
In the above code sample, we are using the Attachment object (attach the PDF to any Salesforce record).
You can even use the Document object in place of the Attachment object.