financisto icon indicating copy to clipboard operation
financisto copied to clipboard

QR code support

Open dremovd opened this issue 7 years ago • 9 comments

I make an API to support working with QR code receipts in Russia If you are interested in using it for your project, please write to me

dremovd avatar Apr 27 '18 13:04 dremovd

Hi, Dmitry, what kind of API, is it android lib or what format? or if you have it on GitHub - please share link to take a look, thanks

yetanothercoder avatar Apr 27 '18 20:04 yetanothercoder

It's a REST API, you send a link you get from QR code and it returns JSON with a content of the receipt with some extra information. This page has description and couple of examples how to work with it (including Java): https://github.com/dremovd/rest-api-qr-check

If you need more information about API or backend, I will gladly answer.

dremovd avatar Apr 27 '18 20:04 dremovd

thanks, let's keep it mind for the future.

yetanothercoder avatar Apr 29 '18 21:04 yetanothercoder

@dremovd Any chance to make it work offline? I don't like the idea to rely on APIs, especially now when RKN is blocking the hell out of the internets.

nekromant avatar May 02 '18 13:05 nekromant

QR code encodes receipt sum, date and several technical ids. So you can get this info offline. In order to get receipt data you need to access TFS database (or OFD database) with info from QR code.

This is example of information encoded in QR code: t=20171007T1024&s=129.90&fn=8710000100240299&i=40143&fp=1324042032&n=1 t -> timestamp s -> total

Good news is that request endpoint, TFS database, probably wouldn't be blocked because it's a government server.

API I maintain making a request to TFS database. Additionally it does several post-processing steps to help a developer.

dremovd avatar May 02 '18 14:05 dremovd

@dremovd Thanks for the clarification.

nekromant avatar May 02 '18 15:05 nekromant

Hello, guys! Are there any plans to implement ability to scan russian checks and automaticaly add this info to DB? it would be great! And will remove most of handwork!

dk-dksoft avatar Mar 26 '19 08:03 dk-dksoft

A few months later, I decided to look at the list of issues from the main repository and came across this one. I am already working on this. In addition, I changed the interface a little. All changes are in my branch.

XaBbl4 avatar Sep 27 '19 13:09 XaBbl4

There are a few changes from the situation in 2018. An application needs to register as an agent in the electronic tax system. One could still use a personal account to obtain receipt information under the danger of a ban. Don't hesitate to ask questions

dremovd avatar Oct 24 '19 22:10 dremovd