curl --request POST \
--url https://api.stablepay.ai/v1/customers/{customerId}/verification \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.stablepay.ai/v1/customers/{customerId}/verification"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.stablepay.ai/v1/customers/{customerId}/verification', 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.stablepay.ai/v1/customers/{customerId}/verification",
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([
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.stablepay.ai/v1/customers/{customerId}/verification"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.stablepay.ai/v1/customers/{customerId}/verification")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stablepay.ai/v1/customers/{customerId}/verification")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body{
"id": "cus_01KXG3R0X8DXTKB849FFFEPT7Y",
"externalId": "user001",
"type": "individual",
"countryCode": "KE",
"kycStatus": "in_progress",
"kycAttempts": 2,
"riskLevel": null,
"metadata": {
"source": "kyc_retry"
},
"verifiedAt": null,
"createdAt": "2024-01-15T10:31:00.000Z",
"updatedAt": "2024-01-15T10:35:00.000Z",
"verificationUrl": "https://verify.didit.me/session/abcd1234",
"sessionId": "didit_session_abcd1234"
}{
"statusCode": 429,
"message": "KYC retry limit reached (3 retries). Contact support to reset."
}Reverify Customer
Start a new verification for a customer. Limited to three retries.
curl --request POST \
--url https://api.stablepay.ai/v1/customers/{customerId}/verification \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.stablepay.ai/v1/customers/{customerId}/verification"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.stablepay.ai/v1/customers/{customerId}/verification', 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.stablepay.ai/v1/customers/{customerId}/verification",
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([
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.stablepay.ai/v1/customers/{customerId}/verification"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.stablepay.ai/v1/customers/{customerId}/verification")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stablepay.ai/v1/customers/{customerId}/verification")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body{
"id": "cus_01KXG3R0X8DXTKB849FFFEPT7Y",
"externalId": "user001",
"type": "individual",
"countryCode": "KE",
"kycStatus": "in_progress",
"kycAttempts": 2,
"riskLevel": null,
"metadata": {
"source": "kyc_retry"
},
"verifiedAt": null,
"createdAt": "2024-01-15T10:31:00.000Z",
"updatedAt": "2024-01-15T10:35:00.000Z",
"verificationUrl": "https://verify.didit.me/session/abcd1234",
"sessionId": "didit_session_abcd1234"
}{
"statusCode": 429,
"message": "KYC retry limit reached (3 retries). Contact support to reset."
}Authorizations
Stablepay API key. Include as Authorization: Bearer <key>.
Path Parameters
Customer ID for the existing customer whose KYC should be restarted.
Body
Response
Verification started with a new session.
Prefixed ULID for this customer.
"cus_01KXG3R0X8DXTKB849FFFEPT7Y"
"user001"
individual, business One of none, pending, in_progress, review, approved, declined, soft_declined, expired, abandoned.
"approved"
1
"KE"
Hosted verification URL. Returned when a verification is started.
"https://verify.didit.me/session/XXXX"
The verified identity. Returned only with refresh=true.
Reasons why the customer isn't approved. This is surfaced to show your end-user why verification is stuck, declined, or needs action. Omitted when the customer is approved or in_progress. Returned with refresh=true, and also on the customer.kyc.updated webhook.
Show child attributes
Show child attributes
[
{
"code": "COULD_NOT_PERFORM_AML_SCREENING",
"severity": "error",
"feature": "aml_screenings",
"message": "Could not retrieve data from KYC for performing AML Screening."
}
]

