curl --request POST \
--url https://api.godiligent.ai/blocked-companies \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"website": "example.com",
"reason": "Fraudulent activity",
"email": "fulan@domain.com",
"legal_name": "PayLane ltd",
"address": "123 Imaginary St, 45678 Fictional City",
"external_id": "abc123 - my customer reference",
"vat_number": "BE09999999XX",
"register_number": "123546",
"notes": "Company engaged in fraudulent activity"
}
'import requests
url = "https://api.godiligent.ai/blocked-companies"
payload = {
"website": "example.com",
"reason": "Fraudulent activity",
"email": "fulan@domain.com",
"legal_name": "PayLane ltd",
"address": "123 Imaginary St, 45678 Fictional City",
"external_id": "abc123 - my customer reference",
"vat_number": "BE09999999XX",
"register_number": "123546",
"notes": "Company engaged in fraudulent activity"
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
website: 'example.com',
reason: 'Fraudulent activity',
email: 'fulan@domain.com',
legal_name: 'PayLane ltd',
address: '123 Imaginary St, 45678 Fictional City',
external_id: 'abc123 - my customer reference',
vat_number: 'BE09999999XX',
register_number: '123546',
notes: 'Company engaged in fraudulent activity'
})
};
fetch('https://api.godiligent.ai/blocked-companies', 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.godiligent.ai/blocked-companies",
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([
'website' => 'example.com',
'reason' => 'Fraudulent activity',
'email' => 'fulan@domain.com',
'legal_name' => 'PayLane ltd',
'address' => '123 Imaginary St, 45678 Fictional City',
'external_id' => 'abc123 - my customer reference',
'vat_number' => 'BE09999999XX',
'register_number' => '123546',
'notes' => 'Company engaged in fraudulent activity'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.godiligent.ai/blocked-companies"
payload := strings.NewReader("{\n \"website\": \"example.com\",\n \"reason\": \"Fraudulent activity\",\n \"email\": \"fulan@domain.com\",\n \"legal_name\": \"PayLane ltd\",\n \"address\": \"123 Imaginary St, 45678 Fictional City\",\n \"external_id\": \"abc123 - my customer reference\",\n \"vat_number\": \"BE09999999XX\",\n \"register_number\": \"123546\",\n \"notes\": \"Company engaged in fraudulent activity\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
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.godiligent.ai/blocked-companies")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"website\": \"example.com\",\n \"reason\": \"Fraudulent activity\",\n \"email\": \"fulan@domain.com\",\n \"legal_name\": \"PayLane ltd\",\n \"address\": \"123 Imaginary St, 45678 Fictional City\",\n \"external_id\": \"abc123 - my customer reference\",\n \"vat_number\": \"BE09999999XX\",\n \"register_number\": \"123546\",\n \"notes\": \"Company engaged in fraudulent activity\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.godiligent.ai/blocked-companies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"website\": \"example.com\",\n \"reason\": \"Fraudulent activity\",\n \"email\": \"fulan@domain.com\",\n \"legal_name\": \"PayLane ltd\",\n \"address\": \"123 Imaginary St, 45678 Fictional City\",\n \"external_id\": \"abc123 - my customer reference\",\n \"vat_number\": \"BE09999999XX\",\n \"register_number\": \"123546\",\n \"notes\": \"Company engaged in fraudulent activity\"\n}"
response = http.request(request)
puts response.read_body{
"id": "bc-a91a8416-0a38",
"reason": "Fraudulent activity",
"blocked_at": "2025-01-15T12:30:45Z",
"website": "example.com",
"email": "contact@example.com",
"legal_name": "Example Company Ltd",
"address": "123 Example Street, City",
"country_code": "DE",
"vat_number": "BE09999999XX",
"register_number": "123456789",
"notes": "Multiple reports of fraud from customers",
"external_id": "cust-12345"
}[
{
"errors": [
{
"path": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
]
}
]Block Company
Block company by various data points
curl --request POST \
--url https://api.godiligent.ai/blocked-companies \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"website": "example.com",
"reason": "Fraudulent activity",
"email": "fulan@domain.com",
"legal_name": "PayLane ltd",
"address": "123 Imaginary St, 45678 Fictional City",
"external_id": "abc123 - my customer reference",
"vat_number": "BE09999999XX",
"register_number": "123546",
"notes": "Company engaged in fraudulent activity"
}
'import requests
url = "https://api.godiligent.ai/blocked-companies"
payload = {
"website": "example.com",
"reason": "Fraudulent activity",
"email": "fulan@domain.com",
"legal_name": "PayLane ltd",
"address": "123 Imaginary St, 45678 Fictional City",
"external_id": "abc123 - my customer reference",
"vat_number": "BE09999999XX",
"register_number": "123546",
"notes": "Company engaged in fraudulent activity"
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
website: 'example.com',
reason: 'Fraudulent activity',
email: 'fulan@domain.com',
legal_name: 'PayLane ltd',
address: '123 Imaginary St, 45678 Fictional City',
external_id: 'abc123 - my customer reference',
vat_number: 'BE09999999XX',
register_number: '123546',
notes: 'Company engaged in fraudulent activity'
})
};
fetch('https://api.godiligent.ai/blocked-companies', 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.godiligent.ai/blocked-companies",
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([
'website' => 'example.com',
'reason' => 'Fraudulent activity',
'email' => 'fulan@domain.com',
'legal_name' => 'PayLane ltd',
'address' => '123 Imaginary St, 45678 Fictional City',
'external_id' => 'abc123 - my customer reference',
'vat_number' => 'BE09999999XX',
'register_number' => '123546',
'notes' => 'Company engaged in fraudulent activity'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.godiligent.ai/blocked-companies"
payload := strings.NewReader("{\n \"website\": \"example.com\",\n \"reason\": \"Fraudulent activity\",\n \"email\": \"fulan@domain.com\",\n \"legal_name\": \"PayLane ltd\",\n \"address\": \"123 Imaginary St, 45678 Fictional City\",\n \"external_id\": \"abc123 - my customer reference\",\n \"vat_number\": \"BE09999999XX\",\n \"register_number\": \"123546\",\n \"notes\": \"Company engaged in fraudulent activity\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
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.godiligent.ai/blocked-companies")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"website\": \"example.com\",\n \"reason\": \"Fraudulent activity\",\n \"email\": \"fulan@domain.com\",\n \"legal_name\": \"PayLane ltd\",\n \"address\": \"123 Imaginary St, 45678 Fictional City\",\n \"external_id\": \"abc123 - my customer reference\",\n \"vat_number\": \"BE09999999XX\",\n \"register_number\": \"123546\",\n \"notes\": \"Company engaged in fraudulent activity\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.godiligent.ai/blocked-companies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"website\": \"example.com\",\n \"reason\": \"Fraudulent activity\",\n \"email\": \"fulan@domain.com\",\n \"legal_name\": \"PayLane ltd\",\n \"address\": \"123 Imaginary St, 45678 Fictional City\",\n \"external_id\": \"abc123 - my customer reference\",\n \"vat_number\": \"BE09999999XX\",\n \"register_number\": \"123546\",\n \"notes\": \"Company engaged in fraudulent activity\"\n}"
response = http.request(request)
puts response.read_body{
"id": "bc-a91a8416-0a38",
"reason": "Fraudulent activity",
"blocked_at": "2025-01-15T12:30:45Z",
"website": "example.com",
"email": "contact@example.com",
"legal_name": "Example Company Ltd",
"address": "123 Example Street, City",
"country_code": "DE",
"vat_number": "BE09999999XX",
"register_number": "123456789",
"notes": "Multiple reports of fraud from customers",
"external_id": "cust-12345"
}[
{
"errors": [
{
"path": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
]
}
]Authorizations
Body
- Option 1
- Option 2
- Option 3
The website of the business
"example.com"
The reason for blocking the company
"Fraudulent activity"
The email of the business
"fulan@domain.com"
The legal name of the business
"PayLane ltd"
The address of the business, or partial address
"123 Imaginary St, 45678 Fictional City"
Reference to be used in the customer's system
"abc123 - my customer reference"
The VAT number of the business
"BE09999999XX"
The register number of the business
"123546"
Additional notes for blocking the company
"Company engaged in fraudulent activity"
Response
Successfully blocked company, returns the created record
Unique identifier for the blocked company record
"bc-a91a8416-0a38"
The reason for blocking the company
"Fraudulent activity"
When the company was blocked
"2025-01-15T12:30:45Z"
The website of the business (if provided)
"example.com"
The email of the business (if provided)
"contact@example.com"
The legal name of the business (if provided)
"Example Company Ltd"
The address of the business (if provided)
"123 Example Street, City"
Country code in ISO 3166-1 alpha-2 format (if provided)
"DE"
The VAT number of the business (if provided)
"BE09999999XX"
The registry number of the business (if provided)
"123456789"
Additional notes about the block
"Multiple reports of fraud from customers"
Reference ID from the customer's system (if provided)
"cust-12345"