Set the legal representative
curl --request POST \
--url https://api.invopop.com/apps/gov-de/v1/entry/{silo_entry_id}/representative \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"given": "Erika",
"surname": "Mustermann",
"email": "erika.mustermann@example.com",
"role": "Geschäftsführerin"
}
'import requests
url = "https://api.invopop.com/apps/gov-de/v1/entry/{silo_entry_id}/representative"
payload = {
"given": "Erika",
"surname": "Mustermann",
"email": "erika.mustermann@example.com",
"role": "Geschäftsführerin"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
given: 'Erika',
surname: 'Mustermann',
email: 'erika.mustermann@example.com',
role: 'Geschäftsführerin'
})
};
fetch('https://api.invopop.com/apps/gov-de/v1/entry/{silo_entry_id}/representative', 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://api.invopop.com/apps/gov-de/v1/entry/{silo_entry_id}/representative",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'given' => 'Erika',
'surname' => 'Mustermann',
'email' => 'erika.mustermann@example.com',
'role' => 'Geschäftsführerin'
]),
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://api.invopop.com/apps/gov-de/v1/entry/{silo_entry_id}/representative"
payload := strings.NewReader("{\n \"given\": \"Erika\",\n \"surname\": \"Mustermann\",\n \"email\": \"erika.mustermann@example.com\",\n \"role\": \"Geschäftsführerin\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.invopop.com/apps/gov-de/v1/entry/{silo_entry_id}/representative")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"given\": \"Erika\",\n \"surname\": \"Mustermann\",\n \"email\": \"erika.mustermann@example.com\",\n \"role\": \"Geschäftsführerin\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.invopop.com/apps/gov-de/v1/entry/{silo_entry_id}/representative")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"given\": \"Erika\",\n \"surname\": \"Mustermann\",\n \"email\": \"erika.mustermann@example.com\",\n \"role\": \"Geschäftsführerin\"\n}"
response = http.request(request)
puts response.read_body{
"error": "The view must be front, back or page."
}{
"error": "missing enrollment"
}{
"error": "no approval for this silo entry"
}{
"error": "Germany app is not enrolled for this workspace"
}{
"error": "fetching silo entry"
}Germany
Set representative
Set the legal representative of the company being onboarded.
POST
/
apps
/
gov-de
/
v1
/
entry
/
{silo_entry_id}
/
representative
Set the legal representative
curl --request POST \
--url https://api.invopop.com/apps/gov-de/v1/entry/{silo_entry_id}/representative \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"given": "Erika",
"surname": "Mustermann",
"email": "erika.mustermann@example.com",
"role": "Geschäftsführerin"
}
'import requests
url = "https://api.invopop.com/apps/gov-de/v1/entry/{silo_entry_id}/representative"
payload = {
"given": "Erika",
"surname": "Mustermann",
"email": "erika.mustermann@example.com",
"role": "Geschäftsführerin"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
given: 'Erika',
surname: 'Mustermann',
email: 'erika.mustermann@example.com',
role: 'Geschäftsführerin'
})
};
fetch('https://api.invopop.com/apps/gov-de/v1/entry/{silo_entry_id}/representative', 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://api.invopop.com/apps/gov-de/v1/entry/{silo_entry_id}/representative",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'given' => 'Erika',
'surname' => 'Mustermann',
'email' => 'erika.mustermann@example.com',
'role' => 'Geschäftsführerin'
]),
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://api.invopop.com/apps/gov-de/v1/entry/{silo_entry_id}/representative"
payload := strings.NewReader("{\n \"given\": \"Erika\",\n \"surname\": \"Mustermann\",\n \"email\": \"erika.mustermann@example.com\",\n \"role\": \"Geschäftsführerin\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.invopop.com/apps/gov-de/v1/entry/{silo_entry_id}/representative")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"given\": \"Erika\",\n \"surname\": \"Mustermann\",\n \"email\": \"erika.mustermann@example.com\",\n \"role\": \"Geschäftsführerin\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.invopop.com/apps/gov-de/v1/entry/{silo_entry_id}/representative")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"given\": \"Erika\",\n \"surname\": \"Mustermann\",\n \"email\": \"erika.mustermann@example.com\",\n \"role\": \"Geschäftsführerin\"\n}"
response = http.request(request)
puts response.read_body{
"error": "The view must be front, back or page."
}{
"error": "missing enrollment"
}{
"error": "no approval for this silo entry"
}{
"error": "Germany app is not enrolled for this workspace"
}{
"error": "fetching silo entry"
}Sets the legal representative who completes the onboarding, and their email. The email is required. Invopop uses it to contact the representative about the terms of service. Without this request, the onboarding uses the first person of the party, and it can only be confirmed when that person has an email.
The request also sends the current version of the party to the onboarding. A changed representative or party removes the documents uploaded so far.
Authorizations
Path Parameters
Body
application/json
Response
Representative stored.
Was this page helpful?