Send the receipts with the invoice
Attachment Guard builds one PDF for each Xero invoice: the invoice first, then the files attached to it, then the receipts behind its billable expenses, found on the bills and spend money transactions for you. It saves that PDF on the invoice in Xero, set to show with the online invoice.
First, add the Xero app details
This copy of Attachment Guard has no Xero app set up yet. It takes about five minutes:
- Sign in at developer.xero.com with your Xero login and choose New app.
- Integration type: Web app. Any name and company URL will do.
- Redirect URI, exactly:
http://localhost:8000/xero/callback - Create the app, then generate a client secret on its Configuration page.
- Put both values in the
.envfile in the project folder, then reload this page:
XERO_CLIENT_ID=your-client-id XERO_CLIENT_SECRET=your-client-secret
The .env file is ignored by git. Never paste the secret anywhere else.