curl --request PATCH \
--url https://service.incaseof.law/openapi/customers/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"email": "[email protected]",
"partner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"phone": "<string>",
"metadata": {},
"uid": "<string>",
"partner_client_reference": "<string>",
"billing_email": "[email protected]",
"vat_deductible": true
}
'import requests
url = "https://service.incaseof.law/openapi/customers/{id}"
payload = {
"name": "<string>",
"email": "[email protected]",
"partner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"phone": "<string>",
"metadata": {},
"uid": "<string>",
"partner_client_reference": "<string>",
"billing_email": "[email protected]",
"vat_deductible": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
email: '[email protected]',
partner_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
phone: '<string>',
metadata: {},
uid: '<string>',
partner_client_reference: '<string>',
billing_email: '[email protected]',
vat_deductible: true
})
};
fetch('https://service.incaseof.law/openapi/customers/{id}', 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/customers/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'email' => '[email protected]',
'partner_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'phone' => '<string>',
'metadata' => [
],
'uid' => '<string>',
'partner_client_reference' => '<string>',
'billing_email' => '[email protected]',
'vat_deductible' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://service.incaseof.law/openapi/customers/{id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"email\": \"[email protected]\",\n \"partner_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"phone\": \"<string>\",\n \"metadata\": {},\n \"uid\": \"<string>\",\n \"partner_client_reference\": \"<string>\",\n \"billing_email\": \"[email protected]\",\n \"vat_deductible\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://service.incaseof.law/openapi/customers/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"email\": \"[email protected]\",\n \"partner_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"phone\": \"<string>\",\n \"metadata\": {},\n \"uid\": \"<string>\",\n \"partner_client_reference\": \"<string>\",\n \"billing_email\": \"[email protected]\",\n \"vat_deductible\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://service.incaseof.law/openapi/customers/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"email\": \"[email protected]\",\n \"partner_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"phone\": \"<string>\",\n \"metadata\": {},\n \"uid\": \"<string>\",\n \"partner_client_reference\": \"<string>\",\n \"billing_email\": \"[email protected]\",\n \"vat_deductible\": true\n}"
response = http.request(request)
puts response.read_bodyUpdate customer
Update a customer. Only send the fields you change. Use it to add partner_client_reference / uid to a
customer created without them; null clears a key. A key already held by another customer of your partner
account → 409.
curl --request PATCH \
--url https://service.incaseof.law/openapi/customers/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"email": "[email protected]",
"partner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"phone": "<string>",
"metadata": {},
"uid": "<string>",
"partner_client_reference": "<string>",
"billing_email": "[email protected]",
"vat_deductible": true
}
'import requests
url = "https://service.incaseof.law/openapi/customers/{id}"
payload = {
"name": "<string>",
"email": "[email protected]",
"partner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"phone": "<string>",
"metadata": {},
"uid": "<string>",
"partner_client_reference": "<string>",
"billing_email": "[email protected]",
"vat_deductible": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
email: '[email protected]',
partner_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
phone: '<string>',
metadata: {},
uid: '<string>',
partner_client_reference: '<string>',
billing_email: '[email protected]',
vat_deductible: true
})
};
fetch('https://service.incaseof.law/openapi/customers/{id}', 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/customers/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'email' => '[email protected]',
'partner_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'phone' => '<string>',
'metadata' => [
],
'uid' => '<string>',
'partner_client_reference' => '<string>',
'billing_email' => '[email protected]',
'vat_deductible' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://service.incaseof.law/openapi/customers/{id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"email\": \"[email protected]\",\n \"partner_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"phone\": \"<string>\",\n \"metadata\": {},\n \"uid\": \"<string>\",\n \"partner_client_reference\": \"<string>\",\n \"billing_email\": \"[email protected]\",\n \"vat_deductible\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://service.incaseof.law/openapi/customers/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"email\": \"[email protected]\",\n \"partner_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"phone\": \"<string>\",\n \"metadata\": {},\n \"uid\": \"<string>\",\n \"partner_client_reference\": \"<string>\",\n \"billing_email\": \"[email protected]\",\n \"vat_deductible\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://service.incaseof.law/openapi/customers/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"email\": \"[email protected]\",\n \"partner_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"phone\": \"<string>\",\n \"metadata\": {},\n \"uid\": \"<string>\",\n \"partner_client_reference\": \"<string>\",\n \"billing_email\": \"[email protected]\",\n \"vat_deductible\": true\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
An API key (ico_live_…), sent as Authorization: Bearer <key>. Not a JWT.
Path Parameters
Body
1 - 25550Postal address of the business — required. It becomes the creditor address on the collection letters and on
the court-fee invoice. Each line must be a non-empty string; a missing or empty line is a 400 VALIDATION_ERROR
naming it (e.g. address.zip is required).
Show child attributes
Show child attributes
Your own key-value data, stored with the customer for incaseof.law. It is not returned by the API.
EU VAT ID; null clears it
40null clears it
255The provider's legal form. German court filings need it.
gmbh, einzelunternehmen, pauschalierter_land_forstwirt, flexco, eingetragener_kaufmann, gbr, og_ohg, kg, gmbh_co_kg, ug, ag, se, eg, verein, praktiker, partg, kgaa Partner keys only. The provider's legal representative (gesetzlicher Vertreter), e.g. { "function": "Geschäftsführer", "name": "Dr. Anna Berger" } for a GmbH. For a sole trader (einzelunternehmen,
eingetragener_kaufmann, praktiker, pauschalierter_land_forstwirt) send owner instead — a German court
never takes the owner as the representative.
Show child attributes
Show child attributes
Partner keys only. The owner of a sole trader.
Show child attributes
Show child attributes
Where invoices from incaseof.law to the provider go
Whether the provider may deduct input VAT (Vorsteuerabzug). A German court filing declares it.