Create a KYB case (dashboard)
curl --request POST \
--url https://api.example.com/webapi/v4/kyb/organization/{organizationId}/cases \
--header 'Content-Type: application/json' \
--cookie ds-prod-session= \
--data '
{
"external_id": "bolt-merchant-123",
"fields": {}
}
'import requests
url = "https://api.example.com/webapi/v4/kyb/organization/{organizationId}/cases"
payload = {
"external_id": "bolt-merchant-123",
"fields": {}
}
headers = {
"cookie": "ds-prod-session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'ds-prod-session=', 'Content-Type': 'application/json'},
body: JSON.stringify({external_id: 'bolt-merchant-123', fields: {}})
};
fetch('https://api.example.com/webapi/v4/kyb/organization/{organizationId}/cases', 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.example.com/webapi/v4/kyb/organization/{organizationId}/cases",
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([
'external_id' => 'bolt-merchant-123',
'fields' => [
]
]),
CURLOPT_COOKIE => "ds-prod-session=",
CURLOPT_HTTPHEADER => [
"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.example.com/webapi/v4/kyb/organization/{organizationId}/cases"
payload := strings.NewReader("{\n \"external_id\": \"bolt-merchant-123\",\n \"fields\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cookie", "ds-prod-session=")
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.example.com/webapi/v4/kyb/organization/{organizationId}/cases")
.header("cookie", "ds-prod-session=")
.header("Content-Type", "application/json")
.body("{\n \"external_id\": \"bolt-merchant-123\",\n \"fields\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/webapi/v4/kyb/organization/{organizationId}/cases")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["cookie"] = 'ds-prod-session='
request["Content-Type"] = 'application/json'
request.body = "{\n \"external_id\": \"bolt-merchant-123\",\n \"fields\": {}\n}"
response = http.request(request)
puts response.read_body{
"id": "019f179b-0fa7-72c8-818e-819652540477",
"public_id": "KYBC8274B9CF4907859",
"applicant_id": "019f1383-8f38-7d31-b921-39310a19b444",
"external_id": "bolt-merchant-123",
"status": "draft"
}{
"code": "external_id_required",
"message": "external_id is required"
}{
"id": "019f179b-0fa7-72c8-818e-819652540477",
"public_id": "KYBC8274B9CF4907859",
"applicant_id": "019f1383-8f38-7d31-b921-39310a19b444",
"external_id": "bolt-merchant-123",
"status": "draft"
}KYB Cases
Create a KYB case (dashboard)
Dashboard-facing twin of POST /api/v4/kyb/cases: creates (or reuses the in-flight) KYB case for a merchant identified by external_id, returning the public_id to embed in the widget flow. Same body and behavior as the API-key endpoint; the only difference is tenancy — the organization comes from the path (the web session must belong to it) and sandbox from the request (Ds-Sandbox header / host), not from an API key.
POST
/
webapi
/
v4
/
kyb
/
organization
/
{organizationId}
/
cases
Create a KYB case (dashboard)
curl --request POST \
--url https://api.example.com/webapi/v4/kyb/organization/{organizationId}/cases \
--header 'Content-Type: application/json' \
--cookie ds-prod-session= \
--data '
{
"external_id": "bolt-merchant-123",
"fields": {}
}
'import requests
url = "https://api.example.com/webapi/v4/kyb/organization/{organizationId}/cases"
payload = {
"external_id": "bolt-merchant-123",
"fields": {}
}
headers = {
"cookie": "ds-prod-session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'ds-prod-session=', 'Content-Type': 'application/json'},
body: JSON.stringify({external_id: 'bolt-merchant-123', fields: {}})
};
fetch('https://api.example.com/webapi/v4/kyb/organization/{organizationId}/cases', 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.example.com/webapi/v4/kyb/organization/{organizationId}/cases",
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([
'external_id' => 'bolt-merchant-123',
'fields' => [
]
]),
CURLOPT_COOKIE => "ds-prod-session=",
CURLOPT_HTTPHEADER => [
"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.example.com/webapi/v4/kyb/organization/{organizationId}/cases"
payload := strings.NewReader("{\n \"external_id\": \"bolt-merchant-123\",\n \"fields\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cookie", "ds-prod-session=")
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.example.com/webapi/v4/kyb/organization/{organizationId}/cases")
.header("cookie", "ds-prod-session=")
.header("Content-Type", "application/json")
.body("{\n \"external_id\": \"bolt-merchant-123\",\n \"fields\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/webapi/v4/kyb/organization/{organizationId}/cases")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["cookie"] = 'ds-prod-session='
request["Content-Type"] = 'application/json'
request.body = "{\n \"external_id\": \"bolt-merchant-123\",\n \"fields\": {}\n}"
response = http.request(request)
puts response.read_body{
"id": "019f179b-0fa7-72c8-818e-819652540477",
"public_id": "KYBC8274B9CF4907859",
"applicant_id": "019f1383-8f38-7d31-b921-39310a19b444",
"external_id": "bolt-merchant-123",
"status": "draft"
}{
"code": "external_id_required",
"message": "external_id is required"
}{
"id": "019f179b-0fa7-72c8-818e-819652540477",
"public_id": "KYBC8274B9CF4907859",
"applicant_id": "019f1383-8f38-7d31-b921-39310a19b444",
"external_id": "bolt-merchant-123",
"status": "draft"
}Authorizations
Session cookie for web dashboard authentication.
Path Parameters
Organization id.
Body
application/jsonapplication/xml
Request body for kyb.CreateCaseRequest
Response
Existing in-flight case reused for this external_id.
⌘I