Get Customers
curl --request GET \
--url https://api.sandbox.sardine.ai/v1/customers \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.sandbox.sardine.ai/v1/customers"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.sandbox.sardine.ai/v1/customers', 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.sandbox.sardine.ai/v1/customers",
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: Basic <encoded-value>"
],
]);
$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.sandbox.sardine.ai/v1/customers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
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.sandbox.sardine.ai/v1/customers")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.sardine.ai/v1/customers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body[
{
"sessionKey": "280CBF35-B4B0-4193-A111",
"level": "low",
"status": "Success",
"customer": {
"score": 26,
"level": "low",
"signals": [
{
"key": "bankLevel",
"value": "low"
},
{
"key": "emailDomainLevel",
"value": "low"
},
{
"key": "emailLevel",
"value": "low",
"reasonCodes": [
"HST"
]
}
]
},
"transaction": {
"level": "low",
"amlLevel": "low",
"indemnification": {
"decision": "approved",
"instantLimit": 1000,
"holdAmount": 0,
"verificationCode": "string",
"holdTime": "1628169754124"
}
}
}
]Customers
Get Customers
Fetches list of all customers. Can be filtered by passing customerId
GET
/
customers
Get Customers
curl --request GET \
--url https://api.sandbox.sardine.ai/v1/customers \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.sandbox.sardine.ai/v1/customers"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.sandbox.sardine.ai/v1/customers', 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.sandbox.sardine.ai/v1/customers",
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: Basic <encoded-value>"
],
]);
$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.sandbox.sardine.ai/v1/customers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
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.sandbox.sardine.ai/v1/customers")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.sardine.ai/v1/customers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body[
{
"sessionKey": "280CBF35-B4B0-4193-A111",
"level": "low",
"status": "Success",
"customer": {
"score": 26,
"level": "low",
"signals": [
{
"key": "bankLevel",
"value": "low"
},
{
"key": "emailDomainLevel",
"value": "low"
},
{
"key": "emailLevel",
"value": "low",
"reasonCodes": [
"HST"
]
}
]
},
"transaction": {
"level": "low",
"amlLevel": "low",
"indemnification": {
"decision": "approved",
"instantLimit": 1000,
"holdAmount": 0,
"verificationCode": "string",
"holdTime": "1628169754124"
}
}
}
]Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Query Parameters
ID of Customer
Response
200 - application/json
OK
Minimum string length:
1Example:
"280CBF35-B4B0-4193-A111"
This is the ONLY field that a merchant needs to use to make decision on fraud. This field is set by our rules and the main rule is the rule using our "customer score" model.
Available options:
low, medium, high, very_high Minimum string length:
1Available options:
Success, Failure Minimum string length:
1Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I