Daniel Janus’s blog
Ever wanted to programmatically file a lawsuit? In Poland, you can.
21 March 2012
This has somehow escaped me: just over a year ago, the Sixth Civil Division of the Lublin-West Regional Court in Lublin, Poland, has opened its online branch. It serves the entire territory of Poland and is competent to recognize lawsuits concerning payment claims. There is basic information available in English. It has proven immensely popular, having processed about two million cases in its first year of operation.
And the really cool thing is, they have an API.
It’s SOAP-based and has a publicly available spec. (Due to the way their web site is constructed, I cannot link to the spec directly; this last link leads to a collection of files related to the web service. The spec is called
EpuWS_ver.1.14.1.pdf; it’s in Polish only, but it should be easy to run it through Google Translate.) There are a couple of XML schemas as well, plus the spec contains links to a WSDL and some code samples (in C#) at the end.
To actually use the API, you need to get yourself an account of the appropriate type (there are two types corresponding to two groups of methods one can use: that of a bailiff and of a mass plaintiff). You then log on to the system, where you can create an API key that is later used for authentication. They throttle the speed down to 1 req/s per user to mitigate DoS attacks.
The methods include
GetCaseHistory and so on (the actual names are in Polish). To give you an example, the
FileLawsuits method returns a structure that consists of, inter alia, the amount of court fee to pay, the value of the matter of dispute (both broken down into individual lawsuits), and a status code with a description.
iOS app, anyone?