Estimate the judicial step
curl --request GET \
--url https://service.incaseof.law/openapi/claims/{claim_id}/lawsuit-decision/estimate \
--header 'Authorization: Bearer <token>'import requests
url = "https://service.incaseof.law/openapi/claims/{claim_id}/lawsuit-decision/estimate"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://service.incaseof.law/openapi/claims/{claim_id}/lawsuit-decision/estimate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://service.incaseof.law/openapi/claims/{claim_id}/lawsuit-decision/estimate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://service.incaseof.law/openapi/claims/{claim_id}/lawsuit-decision/estimate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://service.incaseof.law/openapi/claims/{claim_id}/lawsuit-decision/estimate")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://service.incaseof.law/openapi/claims/{claim_id}/lawsuit-decision/estimate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"claim_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"collection_stage": "<string>",
"decision_open": true,
"decided": true,
"jurisdiction": "AT",
"streitwert": 123,
"court_fees": 123,
"lawyer_fees_net": 123,
"lawyer_fees_gross": 123,
"lawyer_required": true,
"lawyer_required_reason": "streitwert",
"lawyer_allowed": true
}
}Claims
Estimate the judicial step
What taking the claim to court would cost, and which rules a decision will be checked against. Call it when a
claim reaches dunning_action_recommended (the webhook tells you) and before you send a decision.
- Germany (
jurisdiction: DE): a Mahnbescheid — court fee under the GKG, no lawyer through the platform (lawyer_allowed: false). - Austria (
AT): a Mahnklage — a lawyer is required whenlawyer_requiredis true (streitwert: 5 000 EUR or above;no_org_cert: the creditor has no ERV certificate), and then the decision must name one.
Answers 400 when no Mahnverfahren is available for the debtor (a debtor outside the EU or in Denmark).
GET
/
openapi
/
claims
/
{claim_id}
/
lawsuit-decision
/
estimate
Estimate the judicial step
curl --request GET \
--url https://service.incaseof.law/openapi/claims/{claim_id}/lawsuit-decision/estimate \
--header 'Authorization: Bearer <token>'import requests
url = "https://service.incaseof.law/openapi/claims/{claim_id}/lawsuit-decision/estimate"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://service.incaseof.law/openapi/claims/{claim_id}/lawsuit-decision/estimate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://service.incaseof.law/openapi/claims/{claim_id}/lawsuit-decision/estimate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://service.incaseof.law/openapi/claims/{claim_id}/lawsuit-decision/estimate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://service.incaseof.law/openapi/claims/{claim_id}/lawsuit-decision/estimate")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://service.incaseof.law/openapi/claims/{claim_id}/lawsuit-decision/estimate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"claim_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"collection_stage": "<string>",
"decision_open": true,
"decided": true,
"jurisdiction": "AT",
"streitwert": 123,
"court_fees": 123,
"lawyer_fees_net": 123,
"lawyer_fees_gross": 123,
"lawyer_required": true,
"lawyer_required_reason": "streitwert",
"lawyer_allowed": true
}
}