i see there's an API to download the reports of my expenses. although i need to download the receipt it self. can't find any API for that.
Hi there @agur - there's no specific API to download just the receipts, but if you're a dab-hand with Postman or cURL, I think it's probably enough to use the Expensify API to export a list of the direct receipt URL's and then build something yourself to capture them.
We don't think there should be necessity for this, as these images will always be stored in Expensify as long as you're using us and you can always provide a link back to them (that's what the URL's are for right!).
Let's face it, there are a thousand valid reasons for downloading your receipts. Things happen; maybe you have to hand the receipts off to a third-party auditor if yours is a publicly-traded company; my company just has a policy that just requires me to have all the receipts stored on our company servers, period.
Here is a Windows Powershell script that will automate the download for your receipts. Your company's policies may (and probably should!) prohibit running scripts that you "got off the internet" because they could do bad things like format your hard drive or install ransomware instead of downloading receipts... So, if you are not conversant in Powershell and browser cookies, you probably shouldn't use this script, as you need to be able to know what the script is doing before you run it -- without taking my word for it.😁 If you aren't conversant in Powershell, please consult your IT department before trying this.
That said, here are instructions:
Voila, your receipts will start appearing on your drive; it'll take a second or two per receipt on average. The script will tell you when it is complete.
Your solution worked great for me. I had over 1600 receipts to download and organize. Your PowerShell script downloaded each receipt in approximately 2 seconds. I hope others stumble onto your solution and it works for them as well.
Thank you so much for sharing your PowerShell script!!! I don't know what I would have done without it. Perhaps Expensify will promote your solution to their solution list, so others can benefit from it.
Thanks again for sharing with the community!! 🤗
©2008-2023 Expensify, Inc.
©The Expensify Visa® Commercial Card is issued by The Bancorp Bank, N.A., Member FDIC, pursuant to a license from Visa U.S.A. Inc. and may not be used at all merchants that accept Visa cards. Apple® and the Apple logo® are trademarks of Apple Inc., registered in the U.S. and other countries. App Store is a service mark of Apple Inc. Google Play and the Google Play logo are trademarks of Google LLC.