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>",
"address": {
"street": "<string>",
"city": "<string>",
"zip": "<string>",
"country": "<string>"
},
"metadata": {},
"uid": "ATU12345678",
"partner_client_reference": "WIN-10457"
}
'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>",
"address": {
"street": "<string>",
"city": "<string>",
"zip": "<string>",
"country": "<string>"
},
"metadata": {},
"uid": "ATU12345678",
"partner_client_reference": "WIN-10457"
}
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>',
address: {street: '<string>', city: '<string>', zip: '<string>', country: '<string>'},
metadata: {},
uid: 'ATU12345678',
partner_client_reference: 'WIN-10457'
})
};
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>',
'address' => [
'street' => '<string>',
'city' => '<string>',
'zip' => '<string>',
'country' => '<string>'
],
'metadata' => [
],
'uid' => 'ATU12345678',
'partner_client_reference' => 'WIN-10457'
]),
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 \"address\": {\n \"street\": \"<string>\",\n \"city\": \"<string>\",\n \"zip\": \"<string>\",\n \"country\": \"<string>\"\n },\n \"metadata\": {},\n \"uid\": \"ATU12345678\",\n \"partner_client_reference\": \"WIN-10457\"\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 \"address\": {\n \"street\": \"<string>\",\n \"city\": \"<string>\",\n \"zip\": \"<string>\",\n \"country\": \"<string>\"\n },\n \"metadata\": {},\n \"uid\": \"ATU12345678\",\n \"partner_client_reference\": \"WIN-10457\"\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 \"address\": {\n \"street\": \"<string>\",\n \"city\": \"<string>\",\n \"zip\": \"<string>\",\n \"country\": \"<string>\"\n },\n \"metadata\": {},\n \"uid\": \"ATU12345678\",\n \"partner_client_reference\": \"WIN-10457\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"partner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "[email protected]",
"phone": "<string>",
"address": {},
"metadata": {},
"uid": "<string>",
"partner_client_reference": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}Update customer
Update customer information. All fields are optional.
If partner_id is changed, the new partner must belong to the same organization.
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>",
"address": {
"street": "<string>",
"city": "<string>",
"zip": "<string>",
"country": "<string>"
},
"metadata": {},
"uid": "ATU12345678",
"partner_client_reference": "WIN-10457"
}
'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>",
"address": {
"street": "<string>",
"city": "<string>",
"zip": "<string>",
"country": "<string>"
},
"metadata": {},
"uid": "ATU12345678",
"partner_client_reference": "WIN-10457"
}
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>',
address: {street: '<string>', city: '<string>', zip: '<string>', country: '<string>'},
metadata: {},
uid: 'ATU12345678',
partner_client_reference: 'WIN-10457'
})
};
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>',
'address' => [
'street' => '<string>',
'city' => '<string>',
'zip' => '<string>',
'country' => '<string>'
],
'metadata' => [
],
'uid' => 'ATU12345678',
'partner_client_reference' => 'WIN-10457'
]),
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 \"address\": {\n \"street\": \"<string>\",\n \"city\": \"<string>\",\n \"zip\": \"<string>\",\n \"country\": \"<string>\"\n },\n \"metadata\": {},\n \"uid\": \"ATU12345678\",\n \"partner_client_reference\": \"WIN-10457\"\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 \"address\": {\n \"street\": \"<string>\",\n \"city\": \"<string>\",\n \"zip\": \"<string>\",\n \"country\": \"<string>\"\n },\n \"metadata\": {},\n \"uid\": \"ATU12345678\",\n \"partner_client_reference\": \"WIN-10457\"\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 \"address\": {\n \"street\": \"<string>\",\n \"city\": \"<string>\",\n \"zip\": \"<string>\",\n \"country\": \"<string>\"\n },\n \"metadata\": {},\n \"uid\": \"ATU12345678\",\n \"partner_client_reference\": \"WIN-10457\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"partner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "[email protected]",
"phone": "<string>",
"address": {},
"metadata": {},
"uid": "<string>",
"partner_client_reference": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
UUID of the customer
Body
255Change the referring partner (must belong to the same organization)
50Show child attributes
Show child attributes
EU VAT ID (UID) of the business, e.g. ATU12345678. Spaces and the separators - . / are removed and letters uppercased; after that it must be a 2-letter country prefix plus 2–12 characters (otherwise 400). Unique per partner account. null clears it.
40"ATU12345678"
Your own ID for this business. Trimmed, matched exactly (case-sensitive). Unique per partner account; checked before uid. null clears it.
255"WIN-10457"