Are you receiving SNAP/EBT benefits? The Expensify.org/SNAP-VAX campaign is live and accepting new members. Learn more about receiving $50 for submitting a SNAP receipt and $50 for getting your COVID-19 vaccine here and join today!

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
    Accepted 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