Listing agreements of a visit type
curl --request GET \
--url https://api.vizito.eu/api/companies/{company_id}/visittypes/{visit_type_id}/agreements \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vizito.eu/api/companies/{company_id}/visittypes/{visit_type_id}/agreements', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.vizito.eu/api/companies/{company_id}/visittypes/{visit_type_id}/agreements"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vizito.eu/api/companies/{company_id}/visittypes/{visit_type_id}/agreements",
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;
}[
{
"_id": "5f2a1b9c4d3e2f0011223344",
"name": "<string>",
"active": true,
"type": "text",
"agreement_text": {},
"visit_types": [
"5f2a1b9c4d3e2f0011223344"
],
"version": 123,
"index": 123,
"expiry_days": 123,
"group_only": true
}
]{
"error": "Invalid API key"
}{
"message": "<string>"
}Agreements
Listing agreements of a visit type
The active agreements a visitor of that visit type has to sign.
GET
/
companies
/
{company_id}
/
visittypes
/
{visit_type_id}
/
agreements
Listing agreements of a visit type
curl --request GET \
--url https://api.vizito.eu/api/companies/{company_id}/visittypes/{visit_type_id}/agreements \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vizito.eu/api/companies/{company_id}/visittypes/{visit_type_id}/agreements', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.vizito.eu/api/companies/{company_id}/visittypes/{visit_type_id}/agreements"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vizito.eu/api/companies/{company_id}/visittypes/{visit_type_id}/agreements",
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;
}[
{
"_id": "5f2a1b9c4d3e2f0011223344",
"name": "<string>",
"active": true,
"type": "text",
"agreement_text": {},
"visit_types": [
"5f2a1b9c4d3e2f0011223344"
],
"version": 123,
"index": 123,
"expiry_days": 123,
"group_only": true
}
]{
"error": "Invalid API key"
}{
"message": "<string>"
}Authorizations
Path Parameters
Query Parameters
Response
The agreements.

