Submit KYC
curl --request POST \
--url https://api.stablepay.global/v2/users/{userId}/kyc/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"legalName": "<string>",
"country": "<string>",
"proofOfIdentity": {},
"proofOfAddress": {},
"dob": "<string>",
"gender": "<string>",
"incomeRange": "<string>",
"isPep": true
}
'import requests
url = "https://api.stablepay.global/v2/users/{userId}/kyc/submit"
payload = {
"legalName": "<string>",
"country": "<string>",
"proofOfIdentity": {},
"proofOfAddress": {},
"dob": "<string>",
"gender": "<string>",
"incomeRange": "<string>",
"isPep": True
}
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({
legalName: '<string>',
country: '<string>',
proofOfIdentity: {},
proofOfAddress: {},
dob: '<string>',
gender: '<string>',
incomeRange: '<string>',
isPep: true
})
};
fetch('https://api.stablepay.global/v2/users/{userId}/kyc/submit', 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.global/v2/users/{userId}/kyc/submit",
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([
'legalName' => '<string>',
'country' => '<string>',
'proofOfIdentity' => [
],
'proofOfAddress' => [
],
'dob' => '<string>',
'gender' => '<string>',
'incomeRange' => '<string>',
'isPep' => true
]),
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.global/v2/users/{userId}/kyc/submit"
payload := strings.NewReader("{\n \"legalName\": \"<string>\",\n \"country\": \"<string>\",\n \"proofOfIdentity\": {},\n \"proofOfAddress\": {},\n \"dob\": \"<string>\",\n \"gender\": \"<string>\",\n \"incomeRange\": \"<string>\",\n \"isPep\": true\n}")
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.global/v2/users/{userId}/kyc/submit")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"legalName\": \"<string>\",\n \"country\": \"<string>\",\n \"proofOfIdentity\": {},\n \"proofOfAddress\": {},\n \"dob\": \"<string>\",\n \"gender\": \"<string>\",\n \"incomeRange\": \"<string>\",\n \"isPep\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stablepay.global/v2/users/{userId}/kyc/submit")
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 = "{\n \"legalName\": \"<string>\",\n \"country\": \"<string>\",\n \"proofOfIdentity\": {},\n \"proofOfAddress\": {},\n \"dob\": \"<string>\",\n \"gender\": \"<string>\",\n \"incomeRange\": \"<string>\",\n \"isPep\": true\n}"
response = http.request(request)
puts response.read_bodyKYC
Submit KYC
Submit user KYC data
POST
/
v2
/
users
/
{userId}
/
kyc
/
submit
Submit KYC
curl --request POST \
--url https://api.stablepay.global/v2/users/{userId}/kyc/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"legalName": "<string>",
"country": "<string>",
"proofOfIdentity": {},
"proofOfAddress": {},
"dob": "<string>",
"gender": "<string>",
"incomeRange": "<string>",
"isPep": true
}
'import requests
url = "https://api.stablepay.global/v2/users/{userId}/kyc/submit"
payload = {
"legalName": "<string>",
"country": "<string>",
"proofOfIdentity": {},
"proofOfAddress": {},
"dob": "<string>",
"gender": "<string>",
"incomeRange": "<string>",
"isPep": True
}
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({
legalName: '<string>',
country: '<string>',
proofOfIdentity: {},
proofOfAddress: {},
dob: '<string>',
gender: '<string>',
incomeRange: '<string>',
isPep: true
})
};
fetch('https://api.stablepay.global/v2/users/{userId}/kyc/submit', 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.global/v2/users/{userId}/kyc/submit",
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([
'legalName' => '<string>',
'country' => '<string>',
'proofOfIdentity' => [
],
'proofOfAddress' => [
],
'dob' => '<string>',
'gender' => '<string>',
'incomeRange' => '<string>',
'isPep' => true
]),
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.global/v2/users/{userId}/kyc/submit"
payload := strings.NewReader("{\n \"legalName\": \"<string>\",\n \"country\": \"<string>\",\n \"proofOfIdentity\": {},\n \"proofOfAddress\": {},\n \"dob\": \"<string>\",\n \"gender\": \"<string>\",\n \"incomeRange\": \"<string>\",\n \"isPep\": true\n}")
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.global/v2/users/{userId}/kyc/submit")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"legalName\": \"<string>\",\n \"country\": \"<string>\",\n \"proofOfIdentity\": {},\n \"proofOfAddress\": {},\n \"dob\": \"<string>\",\n \"gender\": \"<string>\",\n \"incomeRange\": \"<string>\",\n \"isPep\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stablepay.global/v2/users/{userId}/kyc/submit")
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 = "{\n \"legalName\": \"<string>\",\n \"country\": \"<string>\",\n \"proofOfIdentity\": {},\n \"proofOfAddress\": {},\n \"dob\": \"<string>\",\n \"gender\": \"<string>\",\n \"incomeRange\": \"<string>\",\n \"isPep\": true\n}"
response = http.request(request)
puts response.read_bodyBody Parameters
Full legal name (2–255 chars).
ISO 3166-1 alpha-3 country code (e.g.
USA, GBR, IND).{ docType, number, issuingCountry } or { docType, s3Key }. docType is free text; issuingCountry is ISO alpha-3.{ line1, line2?, city, state?, postalCode, country } or { s3Key }.YYYY-MM-DD.male, female, other.below_5l, 5l_to_10l, 10l_to_25l, 25l_to_50l, 50l_to_1cr, above_1cr.Politically Exposed Person. Optional; if
true, KYC is rejected.Request
curl -X POST https://api.stablepay.global/v2/users/usr_abc123/kyc/submit \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"legalName": "John Doe",
"country": "USA",
"proofOfIdentity": {
"docType": "driving_license",
"number": "DL-CA-99887766",
"issuingCountry": "USA"
},
"incomeRange": "10l_to_25l"
}'
Response
{
"success": true,
"data": { "submitted": true, "kycStatus": "verified", "kycLevel": "basic" }
}
Errors
error | Description |
|---|---|
Validation Error | Missing or invalid field |
Forbidden | Not enabled for your account |
Already Submitted | Already on file for this user |
Not Found | User not found |
⌘I
