Get customer
curl --request GET \
--url https://qa-api.endl.xyz/api/v0/customer/{userId} \
--header 'API-KEY: <api-key>'import requests
url = "https://qa-api.endl.xyz/api/v0/customer/{userId}"
headers = {"API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'API-KEY': '<api-key>'}};
fetch('https://qa-api.endl.xyz/api/v0/customer/{userId}', 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://qa-api.endl.xyz/api/v0/customer/{userId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://qa-api.endl.xyz/api/v0/customer/{userId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("API-KEY", "<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://qa-api.endl.xyz/api/v0/customer/{userId}")
.header("API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-api.endl.xyz/api/v0/customer/{userId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"userId": "6c4ba9af-978a-45ff-953f-729c593f14af",
"userType": "INDIVIDUAL",
"status": "INITIATED",
"sumsubApplicantId": "6a99986facbfab05e54c5719",
"email": "jane.doe@example.com",
"firstName": "Jane",
"lastName": "Doe",
"country": "ARE",
"dateOfBirth": "1990-01-01",
"active": true,
"deleted": false,
"documents": [],
"questionnaire": {}
}{
"code": "401",
"message": "Authentication Failed!",
"name": "PartnerOnboarding failed to process"
}{
"code": "403",
"message": "Onboarding is not permitted for this country",
"name": "PartnerOnboardingCreate failed to process"
}{
"code": "404",
"message": "Not found",
"name": "PartnerOnboardingGet failed to process"
}Get customer
Returns one customer — profile, documents and questionnaire.
GET
/
api
/
v0
/
customer
/
{userId}
Get customer
curl --request GET \
--url https://qa-api.endl.xyz/api/v0/customer/{userId} \
--header 'API-KEY: <api-key>'import requests
url = "https://qa-api.endl.xyz/api/v0/customer/{userId}"
headers = {"API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'API-KEY': '<api-key>'}};
fetch('https://qa-api.endl.xyz/api/v0/customer/{userId}', 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://qa-api.endl.xyz/api/v0/customer/{userId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://qa-api.endl.xyz/api/v0/customer/{userId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("API-KEY", "<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://qa-api.endl.xyz/api/v0/customer/{userId}")
.header("API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-api.endl.xyz/api/v0/customer/{userId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"userId": "6c4ba9af-978a-45ff-953f-729c593f14af",
"userType": "INDIVIDUAL",
"status": "INITIATED",
"sumsubApplicantId": "6a99986facbfab05e54c5719",
"email": "jane.doe@example.com",
"firstName": "Jane",
"lastName": "Doe",
"country": "ARE",
"dateOfBirth": "1990-01-01",
"active": true,
"deleted": false,
"documents": [],
"questionnaire": {}
}{
"code": "401",
"message": "Authentication Failed!",
"name": "PartnerOnboarding failed to process"
}{
"code": "403",
"message": "Onboarding is not permitted for this country",
"name": "PartnerOnboardingCreate failed to process"
}{
"code": "404",
"message": "Not found",
"name": "PartnerOnboardingGet failed to process"
}Authorizations
Your partner API key. The key must carry the onboarding permission.
Path Parameters
Endl's customer id, returned by create.
Response
The customer.
Available options:
INDIVIDUAL, BUSINESS Available options:
INITIATED, PENDING, COMPLETED, REJECTED Populated after uploads.
The schema plus the answers you submitted.