How to download expense data

Rae
Rae Expensify Customer Posts: 5 Expensify Newcomer

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

  • Rae
    Rae Expensify Customer Posts: 5 Expensify Newcomer
    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