The short answer
Xero users report that editing a billable expense on an unpaid invoice shows its source bill. For a paid invoice, search bills and bank transactions using the invoice line’s description and amount.
Find the source in Xero
- Note the line’s description and amount on the invoice.
- If the invoice is unpaid, edit the billable expense to see the bill it came from. Those users report that the source bill no longer appears there after payment.
- If the invoice is paid, or editing the expense doesn’t show its source, search your bills and bank transactions using the line’s description and amount.
- Check the matching transaction’s files for a receipt. On a bill, follow the invoice link to confirm that it opens the invoice you started from.
Find it through the API
Xero’s Accounting API returns the links as LinkedTransactions. Ask for them with TargetTransactionID set to the invoice’s ID. Each link gives a SourceTransactionID and a SourceTransactionTypeCode: ACCPAY for a bill, SPEND for a bank transaction. Several links can share one invoice line, and each call returns up to 100.
Download Xero attachments with the API covers fetching the receipt files.
For every invoice at once
AllAttached follows these links for each invoice you pick, before or after it is paid. It puts the receipts from the bills and spend money after the invoice in one PDF.
See the finished pack.
Start with your own Xero invoices, or download an example made with sample data.