How to download expense data

I'm using Postman to test your API. I can successfully call the reconciliation job and have it return a .json or .csv file name. However; when I call the downloader job and pass in the file name I always get the {"responseMessage":"File not found","responseCode":404}.
I'm passing the below JSON in the body of the request, using form-data and requestJobDescription as the key.
{
"type":"download",
"credentials":{
"partnerUserID":"userid",
"partnerUserSecret":"secret"
}, "filename":"filename.json",
"fileSystem":"reconciliation"
}
What am I doing wrong here?
Best Answer
-
Thank you. I was able to resolve my issue by copying the curl request from the API documentation page and importing it as raw text into Postman. I did this for both the Reconciliation job and then calling the Downloader to retrieve the reconciliation file. I think part of the issue was that I was trying to use form-data instead of x-www-form-urlencoded.
Answers
-
This looks very similar to mine, but I do not use the fileSystem:reconciliation.
-
Hi Rae,
Can you please try to change the parameter name for the file name to
fileName
(with an uppercaseN
), and let me know if it works? -
Sheena Trepanier Expensify Team, Approved! Accountant, Expensify Student Ambassador Posts: 1,364 Expensify Team
Thanks for the update and solution you found @Rae, bravo!
-
Hello - can you share your reconciliation Postman Call? I am having issues getting the reconciliation data