Uyum durum sorgusu (kayıt + sicil + doğrulama)
curl --request GET \
--url https://api.sarraf.pro/v1/customers/check \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.sarraf.pro/v1/customers/check"
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.sarraf.pro/v1/customers/check', 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.sarraf.pro/v1/customers/check",
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.sarraf.pro/v1/customers/check"
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.sarraf.pro/v1/customers/check")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sarraf.pro/v1/customers/check")
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{
"success": true,
"data": {
"exists": true,
"customer": {
"id": "<string>",
"idNo": "<string>",
"idType": "<string>",
"idCardType": "<string>",
"nameSurname": "<string>",
"recordLevel": 123,
"isVerify": true,
"isValid": true,
"createdDate": "2023-11-07T05:31:56Z",
"lastDate": "2023-11-07T05:31:56Z"
},
"recordLevel": 123,
"events": [
{
"id": "<string>",
"eventDate": "2023-11-07T05:31:56Z",
"recordLevel": 0,
"comment": "<string>"
}
],
"masak": {
"lastQueriedAt": "2023-11-07T05:31:56Z",
"types": [
"<string>"
],
"isError": true
},
"verification": {
"latestId": "<string>",
"isApproval": true,
"isSigned": true,
"lastFormAt": "2023-11-07T05:31:56Z",
"hasPendingForm": true
}
},
"meta": {
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"details": [
{
"field": "<string>",
"rule": "<string>"
}
]
},
"traceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"success": false,
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"details": [
{
"field": "<string>",
"rule": "<string>"
}
]
},
"traceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"success": false,
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"details": [
{
"field": "<string>",
"rule": "<string>"
}
]
},
"traceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Müşteriler
Uyum durum sorgusu (kayıt + sicil + doğrulama)
idNo veya ad soyad ile tek çağrıda uyum durumu döner: müşteri kaydı varsa dar kayıt + recordLevel + sicil olayları; yoksa exists=false. Ayrıca son MASAK sorgusu ve müşteri tanı formu durumu (onaylı/bekleyen) bilgisi döner. Bilinmeyen parametre yoktur; idNo veya nameSurname’den en az biri zorunludur.
GET
/
v1
/
customers
/
check
Uyum durum sorgusu (kayıt + sicil + doğrulama)
curl --request GET \
--url https://api.sarraf.pro/v1/customers/check \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.sarraf.pro/v1/customers/check"
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.sarraf.pro/v1/customers/check', 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.sarraf.pro/v1/customers/check",
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.sarraf.pro/v1/customers/check"
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.sarraf.pro/v1/customers/check")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sarraf.pro/v1/customers/check")
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{
"success": true,
"data": {
"exists": true,
"customer": {
"id": "<string>",
"idNo": "<string>",
"idType": "<string>",
"idCardType": "<string>",
"nameSurname": "<string>",
"recordLevel": 123,
"isVerify": true,
"isValid": true,
"createdDate": "2023-11-07T05:31:56Z",
"lastDate": "2023-11-07T05:31:56Z"
},
"recordLevel": 123,
"events": [
{
"id": "<string>",
"eventDate": "2023-11-07T05:31:56Z",
"recordLevel": 0,
"comment": "<string>"
}
],
"masak": {
"lastQueriedAt": "2023-11-07T05:31:56Z",
"types": [
"<string>"
],
"isError": true
},
"verification": {
"latestId": "<string>",
"isApproval": true,
"isSigned": true,
"lastFormAt": "2023-11-07T05:31:56Z",
"hasPendingForm": true
}
},
"meta": {
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"details": [
{
"field": "<string>",
"rule": "<string>"
}
]
},
"traceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"success": false,
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"details": [
{
"field": "<string>",
"rule": "<string>"
}
]
},
"traceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"success": false,
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"details": [
{
"field": "<string>",
"rule": "<string>"
}
]
},
"traceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Authorizations
Kullanıcı adı apiUserId, parola secretKey. Authorization: Basic base64(apiUserId:secretKey)
Query Parameters
TCKN/VKN/pasaport veya belge numarası (nameSurname ile birlikte en az biri zorunlu).
Ad soyad / ünvan (büyük-küçük harf duyarsız arama).
⌘I