It says ‘an MD5 has “Account number, API Key and Submission Number’(3 values) as per this screen capture: Bank_CreateTransaction API ...
However, the API partners page here: API Partners says ‘This MD5 hash should be created by concatenating the end-users account number with your secret key’(2 values) using a colon ( as per screen capture here: API Partners - Google Chrom...
Which is the correct format to use?
If it helps, I’m using a nodejs/typescript function as below to create the Submission Number, and have added a second line for how the MD5 hash could be created, but could you please correct the MD5 hash with the correct variables and separator?
Hello @QFMathew ,
It’s not an app as such - just an automation using no code SAAS. I have fixed date/amount transactions every month with currency conversion, and wanted to do the conversion and entry into Quickfile automatically to avoid the manual conversion and entry, and save time every month.
So for personal use, and I’m using Account Settings > 3rd Party Integration > API, so using your example with the 3 values should work OK. Thanks for confirming there is no separator between the 3 values. I’ll try that and update you here.
@ian_roberts not sure what you mean by the plain string but yes, I had thought of using the concatenated string.
Posting in XML was causing errors which I couldn’t work out straight away. It may have been a syntax error that I wasn’t seeing at the time, so I tried JSON and that was OK.
And yes, I had discovered that the import was required to create the MD5 hash but thanks for spending the time to look into it and for the syntax. It’s appreciated.
So it all works OK in the test environment (& scheduled for live use on the appropriate day of month), automatically doing currency conversions, entering transactions into Quick File and then sending me an email alert with the transaction details and a link to the specific Quick File bank account page to manually tag the transactions, which takes a few seconds. I may look at automating that next, but manual tagging at the moment will help check the whole automation.
A quick question on the submission number… does this have to be unique for all API calls to the Quick File account, or unique to only to the endpoint, in this case /Bank/CreateTransaction ?
Thanks for your other help and if you or anyone require any time saving automation development or refinement then Id’ be happy to see how I can help.
Unique across the board, but note that despite the name “submission number” it’s not limited to just being numeric. What I tend to do is take a timestamp or generate a random number at the start of each run of my software, then append an incrementing serial number on each call within that session. So the first call in a given session might be 1718195659205_0000, the second call 1718195659205_0001, etc. - the timestamp ensures uniqueness across sessions, the serial ensures uniqueness within this session. An implementation of this approach in JS might look like: