cURL
curl --request POST \
--url https://sandbox.finhub.cloud/api/v2.1/customer/individual/registration \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'X-Forwarded-For: <x-forwarded-for>' \
--header 'X-Forwarded-From: <x-forwarded-from>' \
--header 'X-Tenant-ID: <x-tenant-id>' \
--header 'deviceId: <deviceid>' \
--header 'platform: <platform>' \
--data '
{
"firstName": "John",
"lastName": "Customer",
"email": "customer.20260331114946-387074@testcorp.com",
"phone": "+37062767557",
"password": "SecurePass123!",
"matchingPassword": "SecurePass123!",
"dateOfBirth": "1990-05-15",
"gender": "MALE",
"nationality": "Lithuania",
"placeOfBirth": "Vilnius",
"pincode": "12345",
"roleIds": [
"ACCOUNT_OWNER",
"USER"
],
"customerCategory": {
"id": "fs-cat-b2c-low-001",
"name": "Individual Standard"
},
"individualCustomer": {
"customerName": "John Customer",
"tenantId": "97e7ff29-15f3-49ef-9681-3bbfcce4f6cd"
}
}
'import requests
url = "https://sandbox.finhub.cloud/api/v2.1/customer/individual/registration"
payload = {
"firstName": "John",
"lastName": "Customer",
"email": "customer.20260331114946-387074@testcorp.com",
"phone": "+37062767557",
"password": "SecurePass123!",
"matchingPassword": "SecurePass123!",
"dateOfBirth": "1990-05-15",
"gender": "MALE",
"nationality": "Lithuania",
"placeOfBirth": "Vilnius",
"pincode": "12345",
"roleIds": ["ACCOUNT_OWNER", "USER"],
"customerCategory": {
"id": "fs-cat-b2c-low-001",
"name": "Individual Standard"
},
"individualCustomer": {
"customerName": "John Customer",
"tenantId": "97e7ff29-15f3-49ef-9681-3bbfcce4f6cd"
}
}
headers = {
"X-Forwarded-For": "<x-forwarded-for>",
"X-Tenant-ID": "<x-tenant-id>",
"X-Forwarded-From": "<x-forwarded-from>",
"platform": "<platform>",
"deviceId": "<deviceid>",
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Forwarded-For': '<x-forwarded-for>',
'X-Tenant-ID': '<x-tenant-id>',
'X-Forwarded-From': '<x-forwarded-from>',
platform: '<platform>',
deviceId: '<deviceid>',
Authorization: '<authorization>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
firstName: 'John',
lastName: 'Customer',
email: 'customer.20260331114946-387074@testcorp.com',
phone: '+37062767557',
password: 'SecurePass123!',
matchingPassword: 'SecurePass123!',
dateOfBirth: '1990-05-15',
gender: 'MALE',
nationality: 'Lithuania',
placeOfBirth: 'Vilnius',
pincode: '12345',
roleIds: ['ACCOUNT_OWNER', 'USER'],
customerCategory: {id: 'fs-cat-b2c-low-001', name: 'Individual Standard'},
individualCustomer: {
customerName: 'John Customer',
tenantId: '97e7ff29-15f3-49ef-9681-3bbfcce4f6cd'
}
})
};
fetch('https://sandbox.finhub.cloud/api/v2.1/customer/individual/registration', 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://sandbox.finhub.cloud/api/v2.1/customer/individual/registration",
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([
'firstName' => 'John',
'lastName' => 'Customer',
'email' => 'customer.20260331114946-387074@testcorp.com',
'phone' => '+37062767557',
'password' => 'SecurePass123!',
'matchingPassword' => 'SecurePass123!',
'dateOfBirth' => '1990-05-15',
'gender' => 'MALE',
'nationality' => 'Lithuania',
'placeOfBirth' => 'Vilnius',
'pincode' => '12345',
'roleIds' => [
'ACCOUNT_OWNER',
'USER'
],
'customerCategory' => [
'id' => 'fs-cat-b2c-low-001',
'name' => 'Individual Standard'
],
'individualCustomer' => [
'customerName' => 'John Customer',
'tenantId' => '97e7ff29-15f3-49ef-9681-3bbfcce4f6cd'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json",
"X-Forwarded-For: <x-forwarded-for>",
"X-Forwarded-From: <x-forwarded-from>",
"X-Tenant-ID: <x-tenant-id>",
"deviceId: <deviceid>",
"platform: <platform>"
],
]);
$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://sandbox.finhub.cloud/api/v2.1/customer/individual/registration"
payload := strings.NewReader("{\n \"firstName\": \"John\",\n \"lastName\": \"Customer\",\n \"email\": \"customer.20260331114946-387074@testcorp.com\",\n \"phone\": \"+37062767557\",\n \"password\": \"SecurePass123!\",\n \"matchingPassword\": \"SecurePass123!\",\n \"dateOfBirth\": \"1990-05-15\",\n \"gender\": \"MALE\",\n \"nationality\": \"Lithuania\",\n \"placeOfBirth\": \"Vilnius\",\n \"pincode\": \"12345\",\n \"roleIds\": [\n \"ACCOUNT_OWNER\",\n \"USER\"\n ],\n \"customerCategory\": {\n \"id\": \"fs-cat-b2c-low-001\",\n \"name\": \"Individual Standard\"\n },\n \"individualCustomer\": {\n \"customerName\": \"John Customer\",\n \"tenantId\": \"97e7ff29-15f3-49ef-9681-3bbfcce4f6cd\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Forwarded-For", "<x-forwarded-for>")
req.Header.Add("X-Tenant-ID", "<x-tenant-id>")
req.Header.Add("X-Forwarded-From", "<x-forwarded-from>")
req.Header.Add("platform", "<platform>")
req.Header.Add("deviceId", "<deviceid>")
req.Header.Add("Authorization", "<authorization>")
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://sandbox.finhub.cloud/api/v2.1/customer/individual/registration")
.header("X-Forwarded-For", "<x-forwarded-for>")
.header("X-Tenant-ID", "<x-tenant-id>")
.header("X-Forwarded-From", "<x-forwarded-from>")
.header("platform", "<platform>")
.header("deviceId", "<deviceid>")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"firstName\": \"John\",\n \"lastName\": \"Customer\",\n \"email\": \"customer.20260331114946-387074@testcorp.com\",\n \"phone\": \"+37062767557\",\n \"password\": \"SecurePass123!\",\n \"matchingPassword\": \"SecurePass123!\",\n \"dateOfBirth\": \"1990-05-15\",\n \"gender\": \"MALE\",\n \"nationality\": \"Lithuania\",\n \"placeOfBirth\": \"Vilnius\",\n \"pincode\": \"12345\",\n \"roleIds\": [\n \"ACCOUNT_OWNER\",\n \"USER\"\n ],\n \"customerCategory\": {\n \"id\": \"fs-cat-b2c-low-001\",\n \"name\": \"Individual Standard\"\n },\n \"individualCustomer\": {\n \"customerName\": \"John Customer\",\n \"tenantId\": \"97e7ff29-15f3-49ef-9681-3bbfcce4f6cd\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.finhub.cloud/api/v2.1/customer/individual/registration")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Forwarded-For"] = '<x-forwarded-for>'
request["X-Tenant-ID"] = '<x-tenant-id>'
request["X-Forwarded-From"] = '<x-forwarded-from>'
request["platform"] = '<platform>'
request["deviceId"] = '<deviceid>'
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"firstName\": \"John\",\n \"lastName\": \"Customer\",\n \"email\": \"customer.20260331114946-387074@testcorp.com\",\n \"phone\": \"+37062767557\",\n \"password\": \"SecurePass123!\",\n \"matchingPassword\": \"SecurePass123!\",\n \"dateOfBirth\": \"1990-05-15\",\n \"gender\": \"MALE\",\n \"nationality\": \"Lithuania\",\n \"placeOfBirth\": \"Vilnius\",\n \"pincode\": \"12345\",\n \"roleIds\": [\n \"ACCOUNT_OWNER\",\n \"USER\"\n ],\n \"customerCategory\": {\n \"id\": \"fs-cat-b2c-low-001\",\n \"name\": \"Individual Standard\"\n },\n \"individualCustomer\": {\n \"customerName\": \"John Customer\",\n \"tenantId\": \"97e7ff29-15f3-49ef-9681-3bbfcce4f6cd\"\n }\n}"
response = http.request(request)
puts response.read_bodyIndividual (B2C)
Individual Registration
Register a new B2C individual customer
POST
/
api
/
v2.1
/
customer
/
individual
/
registration
cURL
curl --request POST \
--url https://sandbox.finhub.cloud/api/v2.1/customer/individual/registration \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'X-Forwarded-For: <x-forwarded-for>' \
--header 'X-Forwarded-From: <x-forwarded-from>' \
--header 'X-Tenant-ID: <x-tenant-id>' \
--header 'deviceId: <deviceid>' \
--header 'platform: <platform>' \
--data '
{
"firstName": "John",
"lastName": "Customer",
"email": "customer.20260331114946-387074@testcorp.com",
"phone": "+37062767557",
"password": "SecurePass123!",
"matchingPassword": "SecurePass123!",
"dateOfBirth": "1990-05-15",
"gender": "MALE",
"nationality": "Lithuania",
"placeOfBirth": "Vilnius",
"pincode": "12345",
"roleIds": [
"ACCOUNT_OWNER",
"USER"
],
"customerCategory": {
"id": "fs-cat-b2c-low-001",
"name": "Individual Standard"
},
"individualCustomer": {
"customerName": "John Customer",
"tenantId": "97e7ff29-15f3-49ef-9681-3bbfcce4f6cd"
}
}
'import requests
url = "https://sandbox.finhub.cloud/api/v2.1/customer/individual/registration"
payload = {
"firstName": "John",
"lastName": "Customer",
"email": "customer.20260331114946-387074@testcorp.com",
"phone": "+37062767557",
"password": "SecurePass123!",
"matchingPassword": "SecurePass123!",
"dateOfBirth": "1990-05-15",
"gender": "MALE",
"nationality": "Lithuania",
"placeOfBirth": "Vilnius",
"pincode": "12345",
"roleIds": ["ACCOUNT_OWNER", "USER"],
"customerCategory": {
"id": "fs-cat-b2c-low-001",
"name": "Individual Standard"
},
"individualCustomer": {
"customerName": "John Customer",
"tenantId": "97e7ff29-15f3-49ef-9681-3bbfcce4f6cd"
}
}
headers = {
"X-Forwarded-For": "<x-forwarded-for>",
"X-Tenant-ID": "<x-tenant-id>",
"X-Forwarded-From": "<x-forwarded-from>",
"platform": "<platform>",
"deviceId": "<deviceid>",
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Forwarded-For': '<x-forwarded-for>',
'X-Tenant-ID': '<x-tenant-id>',
'X-Forwarded-From': '<x-forwarded-from>',
platform: '<platform>',
deviceId: '<deviceid>',
Authorization: '<authorization>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
firstName: 'John',
lastName: 'Customer',
email: 'customer.20260331114946-387074@testcorp.com',
phone: '+37062767557',
password: 'SecurePass123!',
matchingPassword: 'SecurePass123!',
dateOfBirth: '1990-05-15',
gender: 'MALE',
nationality: 'Lithuania',
placeOfBirth: 'Vilnius',
pincode: '12345',
roleIds: ['ACCOUNT_OWNER', 'USER'],
customerCategory: {id: 'fs-cat-b2c-low-001', name: 'Individual Standard'},
individualCustomer: {
customerName: 'John Customer',
tenantId: '97e7ff29-15f3-49ef-9681-3bbfcce4f6cd'
}
})
};
fetch('https://sandbox.finhub.cloud/api/v2.1/customer/individual/registration', 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://sandbox.finhub.cloud/api/v2.1/customer/individual/registration",
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([
'firstName' => 'John',
'lastName' => 'Customer',
'email' => 'customer.20260331114946-387074@testcorp.com',
'phone' => '+37062767557',
'password' => 'SecurePass123!',
'matchingPassword' => 'SecurePass123!',
'dateOfBirth' => '1990-05-15',
'gender' => 'MALE',
'nationality' => 'Lithuania',
'placeOfBirth' => 'Vilnius',
'pincode' => '12345',
'roleIds' => [
'ACCOUNT_OWNER',
'USER'
],
'customerCategory' => [
'id' => 'fs-cat-b2c-low-001',
'name' => 'Individual Standard'
],
'individualCustomer' => [
'customerName' => 'John Customer',
'tenantId' => '97e7ff29-15f3-49ef-9681-3bbfcce4f6cd'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json",
"X-Forwarded-For: <x-forwarded-for>",
"X-Forwarded-From: <x-forwarded-from>",
"X-Tenant-ID: <x-tenant-id>",
"deviceId: <deviceid>",
"platform: <platform>"
],
]);
$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://sandbox.finhub.cloud/api/v2.1/customer/individual/registration"
payload := strings.NewReader("{\n \"firstName\": \"John\",\n \"lastName\": \"Customer\",\n \"email\": \"customer.20260331114946-387074@testcorp.com\",\n \"phone\": \"+37062767557\",\n \"password\": \"SecurePass123!\",\n \"matchingPassword\": \"SecurePass123!\",\n \"dateOfBirth\": \"1990-05-15\",\n \"gender\": \"MALE\",\n \"nationality\": \"Lithuania\",\n \"placeOfBirth\": \"Vilnius\",\n \"pincode\": \"12345\",\n \"roleIds\": [\n \"ACCOUNT_OWNER\",\n \"USER\"\n ],\n \"customerCategory\": {\n \"id\": \"fs-cat-b2c-low-001\",\n \"name\": \"Individual Standard\"\n },\n \"individualCustomer\": {\n \"customerName\": \"John Customer\",\n \"tenantId\": \"97e7ff29-15f3-49ef-9681-3bbfcce4f6cd\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Forwarded-For", "<x-forwarded-for>")
req.Header.Add("X-Tenant-ID", "<x-tenant-id>")
req.Header.Add("X-Forwarded-From", "<x-forwarded-from>")
req.Header.Add("platform", "<platform>")
req.Header.Add("deviceId", "<deviceid>")
req.Header.Add("Authorization", "<authorization>")
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://sandbox.finhub.cloud/api/v2.1/customer/individual/registration")
.header("X-Forwarded-For", "<x-forwarded-for>")
.header("X-Tenant-ID", "<x-tenant-id>")
.header("X-Forwarded-From", "<x-forwarded-from>")
.header("platform", "<platform>")
.header("deviceId", "<deviceid>")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"firstName\": \"John\",\n \"lastName\": \"Customer\",\n \"email\": \"customer.20260331114946-387074@testcorp.com\",\n \"phone\": \"+37062767557\",\n \"password\": \"SecurePass123!\",\n \"matchingPassword\": \"SecurePass123!\",\n \"dateOfBirth\": \"1990-05-15\",\n \"gender\": \"MALE\",\n \"nationality\": \"Lithuania\",\n \"placeOfBirth\": \"Vilnius\",\n \"pincode\": \"12345\",\n \"roleIds\": [\n \"ACCOUNT_OWNER\",\n \"USER\"\n ],\n \"customerCategory\": {\n \"id\": \"fs-cat-b2c-low-001\",\n \"name\": \"Individual Standard\"\n },\n \"individualCustomer\": {\n \"customerName\": \"John Customer\",\n \"tenantId\": \"97e7ff29-15f3-49ef-9681-3bbfcce4f6cd\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.finhub.cloud/api/v2.1/customer/individual/registration")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Forwarded-For"] = '<x-forwarded-for>'
request["X-Tenant-ID"] = '<x-tenant-id>'
request["X-Forwarded-From"] = '<x-forwarded-from>'
request["platform"] = '<platform>'
request["deviceId"] = '<deviceid>'
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"firstName\": \"John\",\n \"lastName\": \"Customer\",\n \"email\": \"customer.20260331114946-387074@testcorp.com\",\n \"phone\": \"+37062767557\",\n \"password\": \"SecurePass123!\",\n \"matchingPassword\": \"SecurePass123!\",\n \"dateOfBirth\": \"1990-05-15\",\n \"gender\": \"MALE\",\n \"nationality\": \"Lithuania\",\n \"placeOfBirth\": \"Vilnius\",\n \"pincode\": \"12345\",\n \"roleIds\": [\n \"ACCOUNT_OWNER\",\n \"USER\"\n ],\n \"customerCategory\": {\n \"id\": \"fs-cat-b2c-low-001\",\n \"name\": \"Individual Standard\"\n },\n \"individualCustomer\": {\n \"customerName\": \"John Customer\",\n \"tenantId\": \"97e7ff29-15f3-49ef-9681-3bbfcce4f6cd\"\n }\n}"
response = http.request(request)
puts response.read_bodyIndividual Registration
Creates an individual customer, linked person, and initial user inPENDING_ACTIVATION.
Endpoint
POST /api/v2.1/customer/individual/registration
Key Defaults (from B2C runner)
passwordandmatchingPassword:SecurePass123!- Category example:
fs-cat-b2c-low-001(Individual Standard) - Role IDs:
ACCOUNT_OWNER,USER
Required Headers
Example Request
{
"firstName": "John",
"lastName": "Customer",
"email": "customer.20260331114946-387074@testcorp.com",
"phone": "+37062767557",
"password": "SecurePass123!",
"matchingPassword": "SecurePass123!",
"dateOfBirth": "1990-05-15",
"gender": "MALE",
"nationality": "Lithuania",
"placeOfBirth": "Vilnius",
"pincode": "12345",
"roleIds": ["ACCOUNT_OWNER", "USER"],
"customerCategory": {
"id": "fs-cat-b2c-low-001",
"name": "Individual Standard"
}
}
cURL
curl -X POST "https://sandbox.finhub.cloud/api/v2.1/customer/individual/registration" \
-H "Content-Type: application/json" \
-H "X-Tenant-ID: 97e7ff29-15f3-49ef-9681-3bbfcce4f6cd" \
-H "Authorization: Bearer YOUR_ADMIN_TOKEN" \
-d @registration.json
Success Response
200
{
"code": 200,
"data": {
"id": "2dac1793-ab48-420c-b0b5-01292302e188",
"customerStatus": "CS_REGISTRATION_COMPLETED",
"user": {
"id": "0d488f57-57ef-4f9a-88a6-f89121cab838",
"email": "customer.20260331114946-387074@testcorp.com"
}
},
"message": "B2C individual account created successfully"
}
Used in B2C step runner Step 3 and mirrored in
individual-playground.crx.js.Headers
Body
application/json
Example:
"John"
Example:
"Customer"
Example:
"customer.20260331114946-387074@testcorp.com"
Example:
"+37062767557"
Example:
"SecurePass123!"
Example:
"SecurePass123!"
Example:
"1990-05-15"
Example:
"MALE"
Example:
"Lithuania"
Example:
"Vilnius"
Example:
"12345"
Example:
["ACCOUNT_OWNER", "USER"]
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
200
Registered
⌘I