Get Review Settings
Your review settings, read only (change them in the portal; Admin only). api_clearance_requires_approval
is always true: a decision your API credential proposes that clears the subject waits for a person.
GET
/
v1
/
intelligence
/
reviews
/
settings
Retrieve review settings
curl --request GET \
--url https://api.antonpayments.com/v1/intelligence/reviews/settings \
--header 'Authorization: Bearer <token>' \
--header 'DPoP: <api-key>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>', DPoP: '<api-key>'}};
fetch('https://api.antonpayments.com/v1/intelligence/reviews/settings', 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.antonpayments.com/v1/intelligence/reviews/settings",
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>",
"DPoP: <api-key>"
],
]);
$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.antonpayments.com/v1/intelligence/reviews/settings"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("DPoP", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": {
"second_approver": "off",
"cleared_list_enabled": true,
"cleared_list_min_decisions": 123,
"cleared_list_months": 123,
"target_high_minutes": 123,
"target_medium_minutes": 123,
"target_low_minutes": 123,
"business_day_start_minute": 123,
"business_day_end_minute": 123,
"business_days": [
3
],
"timezone": "America/Toronto",
"auto_open": true,
"retention_years": 8,
"min_retention_years": 123,
"api_clearance_requires_approval": true
}
}{
"error": {
"code": "module_not_enabled",
"message": "this feature is not enabled for your account"
}
}Authorizations
Was this page helpful?
⌘I
Retrieve review settings
curl --request GET \
--url https://api.antonpayments.com/v1/intelligence/reviews/settings \
--header 'Authorization: Bearer <token>' \
--header 'DPoP: <api-key>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>', DPoP: '<api-key>'}};
fetch('https://api.antonpayments.com/v1/intelligence/reviews/settings', 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.antonpayments.com/v1/intelligence/reviews/settings",
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>",
"DPoP: <api-key>"
],
]);
$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.antonpayments.com/v1/intelligence/reviews/settings"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("DPoP", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": {
"second_approver": "off",
"cleared_list_enabled": true,
"cleared_list_min_decisions": 123,
"cleared_list_months": 123,
"target_high_minutes": 123,
"target_medium_minutes": 123,
"target_low_minutes": 123,
"business_day_start_minute": 123,
"business_day_end_minute": 123,
"business_days": [
3
],
"timezone": "America/Toronto",
"auto_open": true,
"retention_years": 8,
"min_retention_years": 123,
"api_clearance_requires_approval": true
}
}{
"error": {
"code": "module_not_enabled",
"message": "this feature is not enabled for your account"
}
}