QR code support
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
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
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.
thanks, let's keep it mind for the future.
@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.
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 Thanks for the clarification.
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!
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.
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