Fetch the general terms
curl --request GET \
--url https://api.invopop.com/apps/gov-fr/v1/entry/{silo_entry_id}/terms \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.invopop.com/apps/gov-fr/v1/entry/{silo_entry_id}/terms"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.invopop.com/apps/gov-fr/v1/entry/{silo_entry_id}/terms', 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-fr/v1/entry/{silo_entry_id}/terms",
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://api.invopop.com/apps/gov-fr/v1/entry/{silo_entry_id}/terms"
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://api.invopop.com/apps/gov-fr/v1/entry/{silo_entry_id}/terms")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.invopop.com/apps/gov-fr/v1/entry/{silo_entry_id}/terms")
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<string>{
"error": "missing enrollment"
}{
"error": "directory API is only available for live workspaces"
}{
"error": "silo entry not found"
}{
"error": "draft party is missing signer details"
}{
"error": "internal server error"
}France
Fetch general terms
Fetch Invopop’s general terms for a silo entry as Markdown, to show the signer before they accept them.
GET
/
apps
/
gov-fr
/
v1
/
entry
/
{silo_entry_id}
/
terms
Fetch the general terms
curl --request GET \
--url https://api.invopop.com/apps/gov-fr/v1/entry/{silo_entry_id}/terms \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.invopop.com/apps/gov-fr/v1/entry/{silo_entry_id}/terms"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.invopop.com/apps/gov-fr/v1/entry/{silo_entry_id}/terms', 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-fr/v1/entry/{silo_entry_id}/terms",
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://api.invopop.com/apps/gov-fr/v1/entry/{silo_entry_id}/terms"
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://api.invopop.com/apps/gov-fr/v1/entry/{silo_entry_id}/terms")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.invopop.com/apps/gov-fr/v1/entry/{silo_entry_id}/terms")
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<string>{
"error": "missing enrollment"
}{
"error": "directory API is only available for live workspaces"
}{
"error": "silo entry not found"
}{
"error": "draft party is missing signer details"
}{
"error": "internal server error"
}Returns the general terms the signer accepts, as Markdown, so you can show them in your own interface. Once the signer has read them, accept them with
POST /sign, or with POST /agreement when uploading a mandate signed outside Invopop, then call POST /confirm.Authorizations
Path Parameters
Response
General terms as UTF-8 Markdown, served inline.
The response is of type string.
Was this page helpful?