List customer groups
curl --request GET \
--url https://sigmacdd.sabipay.com/api/v1/cdd/customer-groups \
--header 'apiKey: <api-key>' \
--header 'apiSecret: <api-key>'import requests
url = "https://sigmacdd.sabipay.com/api/v1/cdd/customer-groups"
headers = {
"apiKey": "<api-key>",
"apiSecret": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {apiKey: '<api-key>', apiSecret: '<api-key>'}};
fetch('https://sigmacdd.sabipay.com/api/v1/cdd/customer-groups', 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://sigmacdd.sabipay.com/api/v1/cdd/customer-groups",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"apiKey: <api-key>",
"apiSecret: <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://sigmacdd.sabipay.com/api/v1/cdd/customer-groups"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("apiKey", "<api-key>")
req.Header.Add("apiSecret", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sigmacdd.sabipay.com/api/v1/cdd/customer-groups")
.header("apiKey", "<api-key>")
.header("apiSecret", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sigmacdd.sabipay.com/api/v1/cdd/customer-groups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["apiKey"] = '<api-key>'
request["apiSecret"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"message": "Customer groups retrieved successfully",
"count": 14,
"pageNumber": 1,
"data": [
{
"_id": "6a3d1c713edcfd7d9517ebbf",
"name": "corporate 2",
"accountType": "corporate"
},
{
"_id": "6a3a415c34490b82412eeb26",
"name": "test",
"accountType": "corporate"
},
{
"_id": "6a353e05afde9616ed9246d3",
"name": "New Testing Group",
"accountType": "individual"
},
{
"_id": "6a2035872fcc53f863502240",
"name": "First CDD Testttt",
"accountType": "individual"
},
{
"_id": "6a1d785f230b92484bc1db3e",
"name": "marchant",
"accountType": "corporate"
},
{
"_id": "69f2203229b2a80b0f0be47b",
"name": "Onboarding flow",
"accountType": "individual"
},
{
"_id": "69e236eed2bd5c97f3cf03bd",
"name": "teer individual",
"accountType": "individual"
},
{
"_id": "69de281db41ebf9f31cad54c",
"name": "Jaiz bank group",
"accountType": "individual"
},
{
"_id": "69ddfbf7b41ebf9f31caa6c9",
"name": "Taj bank group",
"accountType": "individual"
},
{
"_id": "69c759084b9d0d93e8751ed1",
"name": "cssffd",
"accountType": "individual"
},
{
"_id": "69c129fa98f1c0c82cf5581f",
"name": "My group",
"accountType": "individual"
},
{
"_id": "69aeb8ac71e2866399bcf3e6",
"name": "Test group",
"accountType": "corporate"
},
{
"_id": "69aeb88975e51de323b9bb9c",
"name": "The 9ice group",
"accountType": "individual"
},
{
"_id": "69aac397a1bcc7ca3019a77f",
"name": "General"
}
]
}Customer Due Diligence
List Customer Groups
GET api/v1/cdd/customer-groups
List customer groups
curl --request GET \
--url https://sigmacdd.sabipay.com/api/v1/cdd/customer-groups \
--header 'apiKey: <api-key>' \
--header 'apiSecret: <api-key>'import requests
url = "https://sigmacdd.sabipay.com/api/v1/cdd/customer-groups"
headers = {
"apiKey": "<api-key>",
"apiSecret": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {apiKey: '<api-key>', apiSecret: '<api-key>'}};
fetch('https://sigmacdd.sabipay.com/api/v1/cdd/customer-groups', 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://sigmacdd.sabipay.com/api/v1/cdd/customer-groups",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"apiKey: <api-key>",
"apiSecret: <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://sigmacdd.sabipay.com/api/v1/cdd/customer-groups"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("apiKey", "<api-key>")
req.Header.Add("apiSecret", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sigmacdd.sabipay.com/api/v1/cdd/customer-groups")
.header("apiKey", "<api-key>")
.header("apiSecret", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sigmacdd.sabipay.com/api/v1/cdd/customer-groups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["apiKey"] = '<api-key>'
request["apiSecret"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"message": "Customer groups retrieved successfully",
"count": 14,
"pageNumber": 1,
"data": [
{
"_id": "6a3d1c713edcfd7d9517ebbf",
"name": "corporate 2",
"accountType": "corporate"
},
{
"_id": "6a3a415c34490b82412eeb26",
"name": "test",
"accountType": "corporate"
},
{
"_id": "6a353e05afde9616ed9246d3",
"name": "New Testing Group",
"accountType": "individual"
},
{
"_id": "6a2035872fcc53f863502240",
"name": "First CDD Testttt",
"accountType": "individual"
},
{
"_id": "6a1d785f230b92484bc1db3e",
"name": "marchant",
"accountType": "corporate"
},
{
"_id": "69f2203229b2a80b0f0be47b",
"name": "Onboarding flow",
"accountType": "individual"
},
{
"_id": "69e236eed2bd5c97f3cf03bd",
"name": "teer individual",
"accountType": "individual"
},
{
"_id": "69de281db41ebf9f31cad54c",
"name": "Jaiz bank group",
"accountType": "individual"
},
{
"_id": "69ddfbf7b41ebf9f31caa6c9",
"name": "Taj bank group",
"accountType": "individual"
},
{
"_id": "69c759084b9d0d93e8751ed1",
"name": "cssffd",
"accountType": "individual"
},
{
"_id": "69c129fa98f1c0c82cf5581f",
"name": "My group",
"accountType": "individual"
},
{
"_id": "69aeb8ac71e2866399bcf3e6",
"name": "Test group",
"accountType": "corporate"
},
{
"_id": "69aeb88975e51de323b9bb9c",
"name": "The 9ice group",
"accountType": "individual"
},
{
"_id": "69aac397a1bcc7ca3019a77f",
"name": "General"
}
]
}⌘I