curl --request POST \
--url http://127.0.0.1:8083/api/customers/create \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'X-API-Secret: <api-key>' \
--data '
{
"partner_customer_id": "<string>",
"business_details": {
"business_name_english": "<string>",
"business_identifier_number": "<string>",
"business_identifier_country_code": "US",
"business_name": "<string>",
"website": "https://www.example.com",
"business_identifier_start_date": "2023-11-07T05:31:56Z",
"business_identifier_expiry_date": "2023-11-07T05:31:56Z",
"business_identifier_document_list": [
"<string>"
]
},
"registration_address": {
"registration_address_line1": "<string>",
"registration_address_city": "<string>",
"registration_address_state": "<string>",
"registration_address_postcode": "<string>",
"registration_address_country_code": "US"
},
"account_usage": {
"operating_country": "US",
"goods_service_description": "<string>",
"industry_category_code": "<string>",
"estimated_monthly_revenue_currency": "USD",
"estimated_monthly_revenue_amount": 99.99
},
"primary_contact": {
"contact_phone": "+8613800138000",
"contact_email": "service@gemini.com"
},
"business_person_list": [
{
"basic_info": {
"first_name_english": "<string>",
"last_name_english": "<string>",
"birth_date": "2023-11-07T05:31:56Z",
"nationality": "US",
"first_name": "<string>",
"last_name": "<string>"
},
"identification": {
"id_number": "<string>",
"id_issuing_country_code": "US",
"id_expiration_date": "2023-11-07T05:31:56Z",
"id_issue_date": "2023-11-07T05:31:56Z",
"id_document_front_file_id": "<string>",
"id_document_back_file_id": "<string>"
},
"residential_address": {
"residential_address_line1": "<string>",
"residential_address_city": "<string>",
"residential_address_postcode": "<string>",
"residential_address_country_code": "US",
"residential_address_state": "<string>"
}
}
]
}
'import requests
url = "http://127.0.0.1:8083/api/customers/create"
payload = {
"partner_customer_id": "<string>",
"business_details": {
"business_name_english": "<string>",
"business_identifier_number": "<string>",
"business_identifier_country_code": "US",
"business_name": "<string>",
"website": "https://www.example.com",
"business_identifier_start_date": "2023-11-07T05:31:56Z",
"business_identifier_expiry_date": "2023-11-07T05:31:56Z",
"business_identifier_document_list": ["<string>"]
},
"registration_address": {
"registration_address_line1": "<string>",
"registration_address_city": "<string>",
"registration_address_state": "<string>",
"registration_address_postcode": "<string>",
"registration_address_country_code": "US"
},
"account_usage": {
"operating_country": "US",
"goods_service_description": "<string>",
"industry_category_code": "<string>",
"estimated_monthly_revenue_currency": "USD",
"estimated_monthly_revenue_amount": 99.99
},
"primary_contact": {
"contact_phone": "+8613800138000",
"contact_email": "service@gemini.com"
},
"business_person_list": [
{
"basic_info": {
"first_name_english": "<string>",
"last_name_english": "<string>",
"birth_date": "2023-11-07T05:31:56Z",
"nationality": "US",
"first_name": "<string>",
"last_name": "<string>"
},
"identification": {
"id_number": "<string>",
"id_issuing_country_code": "US",
"id_expiration_date": "2023-11-07T05:31:56Z",
"id_issue_date": "2023-11-07T05:31:56Z",
"id_document_front_file_id": "<string>",
"id_document_back_file_id": "<string>"
},
"residential_address": {
"residential_address_line1": "<string>",
"residential_address_city": "<string>",
"residential_address_postcode": "<string>",
"residential_address_country_code": "US",
"residential_address_state": "<string>"
}
}
]
}
headers = {
"X-API-Key": "<api-key>",
"X-API-Secret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-API-Key': '<api-key>',
'X-API-Secret': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
partner_customer_id: '<string>',
business_details: {
business_name_english: '<string>',
business_identifier_number: '<string>',
business_identifier_country_code: 'US',
business_name: '<string>',
website: 'https://www.example.com',
business_identifier_start_date: '2023-11-07T05:31:56Z',
business_identifier_expiry_date: '2023-11-07T05:31:56Z',
business_identifier_document_list: ['<string>']
},
registration_address: {
registration_address_line1: '<string>',
registration_address_city: '<string>',
registration_address_state: '<string>',
registration_address_postcode: '<string>',
registration_address_country_code: 'US'
},
account_usage: {
operating_country: 'US',
goods_service_description: '<string>',
industry_category_code: '<string>',
estimated_monthly_revenue_currency: 'USD',
estimated_monthly_revenue_amount: 99.99
},
primary_contact: {contact_phone: '+8613800138000', contact_email: 'service@gemini.com'},
business_person_list: [
{
basic_info: {
first_name_english: '<string>',
last_name_english: '<string>',
birth_date: '2023-11-07T05:31:56Z',
nationality: 'US',
first_name: '<string>',
last_name: '<string>'
},
identification: {
id_number: '<string>',
id_issuing_country_code: 'US',
id_expiration_date: '2023-11-07T05:31:56Z',
id_issue_date: '2023-11-07T05:31:56Z',
id_document_front_file_id: '<string>',
id_document_back_file_id: '<string>'
},
residential_address: {
residential_address_line1: '<string>',
residential_address_city: '<string>',
residential_address_postcode: '<string>',
residential_address_country_code: 'US',
residential_address_state: '<string>'
}
}
]
})
};
fetch('http://127.0.0.1:8083/api/customers/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8083",
CURLOPT_URL => "http://127.0.0.1:8083/api/customers/create",
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([
'partner_customer_id' => '<string>',
'business_details' => [
'business_name_english' => '<string>',
'business_identifier_number' => '<string>',
'business_identifier_country_code' => 'US',
'business_name' => '<string>',
'website' => 'https://www.example.com',
'business_identifier_start_date' => '2023-11-07T05:31:56Z',
'business_identifier_expiry_date' => '2023-11-07T05:31:56Z',
'business_identifier_document_list' => [
'<string>'
]
],
'registration_address' => [
'registration_address_line1' => '<string>',
'registration_address_city' => '<string>',
'registration_address_state' => '<string>',
'registration_address_postcode' => '<string>',
'registration_address_country_code' => 'US'
],
'account_usage' => [
'operating_country' => 'US',
'goods_service_description' => '<string>',
'industry_category_code' => '<string>',
'estimated_monthly_revenue_currency' => 'USD',
'estimated_monthly_revenue_amount' => 99.99
],
'primary_contact' => [
'contact_phone' => '+8613800138000',
'contact_email' => 'service@gemini.com'
],
'business_person_list' => [
[
'basic_info' => [
'first_name_english' => '<string>',
'last_name_english' => '<string>',
'birth_date' => '2023-11-07T05:31:56Z',
'nationality' => 'US',
'first_name' => '<string>',
'last_name' => '<string>'
],
'identification' => [
'id_number' => '<string>',
'id_issuing_country_code' => 'US',
'id_expiration_date' => '2023-11-07T05:31:56Z',
'id_issue_date' => '2023-11-07T05:31:56Z',
'id_document_front_file_id' => '<string>',
'id_document_back_file_id' => '<string>'
],
'residential_address' => [
'residential_address_line1' => '<string>',
'residential_address_city' => '<string>',
'residential_address_postcode' => '<string>',
'residential_address_country_code' => 'US',
'residential_address_state' => '<string>'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>",
"X-API-Secret: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "http://127.0.0.1:8083/api/customers/create"
payload := strings.NewReader("{\n \"partner_customer_id\": \"<string>\",\n \"business_details\": {\n \"business_name_english\": \"<string>\",\n \"business_identifier_number\": \"<string>\",\n \"business_identifier_country_code\": \"US\",\n \"business_name\": \"<string>\",\n \"website\": \"https://www.example.com\",\n \"business_identifier_start_date\": \"2023-11-07T05:31:56Z\",\n \"business_identifier_expiry_date\": \"2023-11-07T05:31:56Z\",\n \"business_identifier_document_list\": [\n \"<string>\"\n ]\n },\n \"registration_address\": {\n \"registration_address_line1\": \"<string>\",\n \"registration_address_city\": \"<string>\",\n \"registration_address_state\": \"<string>\",\n \"registration_address_postcode\": \"<string>\",\n \"registration_address_country_code\": \"US\"\n },\n \"account_usage\": {\n \"operating_country\": \"US\",\n \"goods_service_description\": \"<string>\",\n \"industry_category_code\": \"<string>\",\n \"estimated_monthly_revenue_currency\": \"USD\",\n \"estimated_monthly_revenue_amount\": 99.99\n },\n \"primary_contact\": {\n \"contact_phone\": \"+8613800138000\",\n \"contact_email\": \"service@gemini.com\"\n },\n \"business_person_list\": [\n {\n \"basic_info\": {\n \"first_name_english\": \"<string>\",\n \"last_name_english\": \"<string>\",\n \"birth_date\": \"2023-11-07T05:31:56Z\",\n \"nationality\": \"US\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\"\n },\n \"identification\": {\n \"id_number\": \"<string>\",\n \"id_issuing_country_code\": \"US\",\n \"id_expiration_date\": \"2023-11-07T05:31:56Z\",\n \"id_issue_date\": \"2023-11-07T05:31:56Z\",\n \"id_document_front_file_id\": \"<string>\",\n \"id_document_back_file_id\": \"<string>\"\n },\n \"residential_address\": {\n \"residential_address_line1\": \"<string>\",\n \"residential_address_city\": \"<string>\",\n \"residential_address_postcode\": \"<string>\",\n \"residential_address_country_code\": \"US\",\n \"residential_address_state\": \"<string>\"\n }\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("X-API-Secret", "<api-key>")
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("http://127.0.0.1:8083/api/customers/create")
.header("X-API-Key", "<api-key>")
.header("X-API-Secret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"partner_customer_id\": \"<string>\",\n \"business_details\": {\n \"business_name_english\": \"<string>\",\n \"business_identifier_number\": \"<string>\",\n \"business_identifier_country_code\": \"US\",\n \"business_name\": \"<string>\",\n \"website\": \"https://www.example.com\",\n \"business_identifier_start_date\": \"2023-11-07T05:31:56Z\",\n \"business_identifier_expiry_date\": \"2023-11-07T05:31:56Z\",\n \"business_identifier_document_list\": [\n \"<string>\"\n ]\n },\n \"registration_address\": {\n \"registration_address_line1\": \"<string>\",\n \"registration_address_city\": \"<string>\",\n \"registration_address_state\": \"<string>\",\n \"registration_address_postcode\": \"<string>\",\n \"registration_address_country_code\": \"US\"\n },\n \"account_usage\": {\n \"operating_country\": \"US\",\n \"goods_service_description\": \"<string>\",\n \"industry_category_code\": \"<string>\",\n \"estimated_monthly_revenue_currency\": \"USD\",\n \"estimated_monthly_revenue_amount\": 99.99\n },\n \"primary_contact\": {\n \"contact_phone\": \"+8613800138000\",\n \"contact_email\": \"service@gemini.com\"\n },\n \"business_person_list\": [\n {\n \"basic_info\": {\n \"first_name_english\": \"<string>\",\n \"last_name_english\": \"<string>\",\n \"birth_date\": \"2023-11-07T05:31:56Z\",\n \"nationality\": \"US\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\"\n },\n \"identification\": {\n \"id_number\": \"<string>\",\n \"id_issuing_country_code\": \"US\",\n \"id_expiration_date\": \"2023-11-07T05:31:56Z\",\n \"id_issue_date\": \"2023-11-07T05:31:56Z\",\n \"id_document_front_file_id\": \"<string>\",\n \"id_document_back_file_id\": \"<string>\"\n },\n \"residential_address\": {\n \"residential_address_line1\": \"<string>\",\n \"residential_address_city\": \"<string>\",\n \"residential_address_postcode\": \"<string>\",\n \"residential_address_country_code\": \"US\",\n \"residential_address_state\": \"<string>\"\n }\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://127.0.0.1:8083/api/customers/create")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["X-API-Secret"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"partner_customer_id\": \"<string>\",\n \"business_details\": {\n \"business_name_english\": \"<string>\",\n \"business_identifier_number\": \"<string>\",\n \"business_identifier_country_code\": \"US\",\n \"business_name\": \"<string>\",\n \"website\": \"https://www.example.com\",\n \"business_identifier_start_date\": \"2023-11-07T05:31:56Z\",\n \"business_identifier_expiry_date\": \"2023-11-07T05:31:56Z\",\n \"business_identifier_document_list\": [\n \"<string>\"\n ]\n },\n \"registration_address\": {\n \"registration_address_line1\": \"<string>\",\n \"registration_address_city\": \"<string>\",\n \"registration_address_state\": \"<string>\",\n \"registration_address_postcode\": \"<string>\",\n \"registration_address_country_code\": \"US\"\n },\n \"account_usage\": {\n \"operating_country\": \"US\",\n \"goods_service_description\": \"<string>\",\n \"industry_category_code\": \"<string>\",\n \"estimated_monthly_revenue_currency\": \"USD\",\n \"estimated_monthly_revenue_amount\": 99.99\n },\n \"primary_contact\": {\n \"contact_phone\": \"+8613800138000\",\n \"contact_email\": \"service@gemini.com\"\n },\n \"business_person_list\": [\n {\n \"basic_info\": {\n \"first_name_english\": \"<string>\",\n \"last_name_english\": \"<string>\",\n \"birth_date\": \"2023-11-07T05:31:56Z\",\n \"nationality\": \"US\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\"\n },\n \"identification\": {\n \"id_number\": \"<string>\",\n \"id_issuing_country_code\": \"US\",\n \"id_expiration_date\": \"2023-11-07T05:31:56Z\",\n \"id_issue_date\": \"2023-11-07T05:31:56Z\",\n \"id_document_front_file_id\": \"<string>\",\n \"id_document_back_file_id\": \"<string>\"\n },\n \"residential_address\": {\n \"residential_address_line1\": \"<string>\",\n \"residential_address_city\": \"<string>\",\n \"residential_address_postcode\": \"<string>\",\n \"residential_address_country_code\": \"US\",\n \"residential_address_state\": \"<string>\"\n }\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"partner_customer_id": "<string>",
"business_details": {
"business_name_english": "<string>",
"website": "https://www.example.com",
"business_identifier_number": "<string>",
"business_identifier_country_code": "US",
"business_identifier_document_list": [
"<string>"
],
"business_name": "<string>",
"business_identifier_start_date": "2023-11-07T05:31:56Z",
"business_identifier_expiry_date": "2023-11-07T05:31:56Z"
},
"registration_address": {
"registration_address_line1": "<string>",
"registration_address_city": "<string>",
"registration_address_state": "<string>",
"registration_address_postcode": "<string>",
"registration_address_country_code": "US"
},
"customer_id": "cus_79fb361a05074629bf1ecf0d14cd244e",
"status": "active",
"created_at": "2023-11-07T05:31:56Z",
"account_usage": {
"operating_country": "US",
"goods_service_description": "<string>",
"industry_category_code": "<string>",
"estimated_monthly_revenue_currency": "USD",
"estimated_monthly_revenue_amount": 99.99
},
"primary_contact": {
"contact_phone": "+8613800138000",
"contact_email": "service@gemini.com"
},
"business_person_list": [
{
"basic_info": {
"first_name_english": "<string>",
"last_name_english": "<string>",
"birth_date": "2023-11-07T05:31:56Z",
"nationality": "US",
"first_name": "<string>",
"last_name": "<string>"
},
"residential_address": {
"residential_address_line1": "<string>",
"residential_address_city": "<string>",
"residential_address_postcode": "<string>",
"residential_address_country_code": "US",
"residential_address_state": "<string>"
},
"identification": {
"id_number": "<string>",
"id_issuing_country_code": "US",
"id_expiration_date": "2023-11-07T05:31:56Z",
"id_issue_date": "2023-11-07T05:31:56Z",
"id_document_front_file_id": "<string>",
"id_document_back_file_id": "<string>"
}
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "Invalid organizationId",
"code": "ORG_ID_INVALID"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}Create Customer
Create a new customer to be stored on the AxisFI platform.
curl --request POST \
--url http://127.0.0.1:8083/api/customers/create \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'X-API-Secret: <api-key>' \
--data '
{
"partner_customer_id": "<string>",
"business_details": {
"business_name_english": "<string>",
"business_identifier_number": "<string>",
"business_identifier_country_code": "US",
"business_name": "<string>",
"website": "https://www.example.com",
"business_identifier_start_date": "2023-11-07T05:31:56Z",
"business_identifier_expiry_date": "2023-11-07T05:31:56Z",
"business_identifier_document_list": [
"<string>"
]
},
"registration_address": {
"registration_address_line1": "<string>",
"registration_address_city": "<string>",
"registration_address_state": "<string>",
"registration_address_postcode": "<string>",
"registration_address_country_code": "US"
},
"account_usage": {
"operating_country": "US",
"goods_service_description": "<string>",
"industry_category_code": "<string>",
"estimated_monthly_revenue_currency": "USD",
"estimated_monthly_revenue_amount": 99.99
},
"primary_contact": {
"contact_phone": "+8613800138000",
"contact_email": "service@gemini.com"
},
"business_person_list": [
{
"basic_info": {
"first_name_english": "<string>",
"last_name_english": "<string>",
"birth_date": "2023-11-07T05:31:56Z",
"nationality": "US",
"first_name": "<string>",
"last_name": "<string>"
},
"identification": {
"id_number": "<string>",
"id_issuing_country_code": "US",
"id_expiration_date": "2023-11-07T05:31:56Z",
"id_issue_date": "2023-11-07T05:31:56Z",
"id_document_front_file_id": "<string>",
"id_document_back_file_id": "<string>"
},
"residential_address": {
"residential_address_line1": "<string>",
"residential_address_city": "<string>",
"residential_address_postcode": "<string>",
"residential_address_country_code": "US",
"residential_address_state": "<string>"
}
}
]
}
'import requests
url = "http://127.0.0.1:8083/api/customers/create"
payload = {
"partner_customer_id": "<string>",
"business_details": {
"business_name_english": "<string>",
"business_identifier_number": "<string>",
"business_identifier_country_code": "US",
"business_name": "<string>",
"website": "https://www.example.com",
"business_identifier_start_date": "2023-11-07T05:31:56Z",
"business_identifier_expiry_date": "2023-11-07T05:31:56Z",
"business_identifier_document_list": ["<string>"]
},
"registration_address": {
"registration_address_line1": "<string>",
"registration_address_city": "<string>",
"registration_address_state": "<string>",
"registration_address_postcode": "<string>",
"registration_address_country_code": "US"
},
"account_usage": {
"operating_country": "US",
"goods_service_description": "<string>",
"industry_category_code": "<string>",
"estimated_monthly_revenue_currency": "USD",
"estimated_monthly_revenue_amount": 99.99
},
"primary_contact": {
"contact_phone": "+8613800138000",
"contact_email": "service@gemini.com"
},
"business_person_list": [
{
"basic_info": {
"first_name_english": "<string>",
"last_name_english": "<string>",
"birth_date": "2023-11-07T05:31:56Z",
"nationality": "US",
"first_name": "<string>",
"last_name": "<string>"
},
"identification": {
"id_number": "<string>",
"id_issuing_country_code": "US",
"id_expiration_date": "2023-11-07T05:31:56Z",
"id_issue_date": "2023-11-07T05:31:56Z",
"id_document_front_file_id": "<string>",
"id_document_back_file_id": "<string>"
},
"residential_address": {
"residential_address_line1": "<string>",
"residential_address_city": "<string>",
"residential_address_postcode": "<string>",
"residential_address_country_code": "US",
"residential_address_state": "<string>"
}
}
]
}
headers = {
"X-API-Key": "<api-key>",
"X-API-Secret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-API-Key': '<api-key>',
'X-API-Secret': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
partner_customer_id: '<string>',
business_details: {
business_name_english: '<string>',
business_identifier_number: '<string>',
business_identifier_country_code: 'US',
business_name: '<string>',
website: 'https://www.example.com',
business_identifier_start_date: '2023-11-07T05:31:56Z',
business_identifier_expiry_date: '2023-11-07T05:31:56Z',
business_identifier_document_list: ['<string>']
},
registration_address: {
registration_address_line1: '<string>',
registration_address_city: '<string>',
registration_address_state: '<string>',
registration_address_postcode: '<string>',
registration_address_country_code: 'US'
},
account_usage: {
operating_country: 'US',
goods_service_description: '<string>',
industry_category_code: '<string>',
estimated_monthly_revenue_currency: 'USD',
estimated_monthly_revenue_amount: 99.99
},
primary_contact: {contact_phone: '+8613800138000', contact_email: 'service@gemini.com'},
business_person_list: [
{
basic_info: {
first_name_english: '<string>',
last_name_english: '<string>',
birth_date: '2023-11-07T05:31:56Z',
nationality: 'US',
first_name: '<string>',
last_name: '<string>'
},
identification: {
id_number: '<string>',
id_issuing_country_code: 'US',
id_expiration_date: '2023-11-07T05:31:56Z',
id_issue_date: '2023-11-07T05:31:56Z',
id_document_front_file_id: '<string>',
id_document_back_file_id: '<string>'
},
residential_address: {
residential_address_line1: '<string>',
residential_address_city: '<string>',
residential_address_postcode: '<string>',
residential_address_country_code: 'US',
residential_address_state: '<string>'
}
}
]
})
};
fetch('http://127.0.0.1:8083/api/customers/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8083",
CURLOPT_URL => "http://127.0.0.1:8083/api/customers/create",
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([
'partner_customer_id' => '<string>',
'business_details' => [
'business_name_english' => '<string>',
'business_identifier_number' => '<string>',
'business_identifier_country_code' => 'US',
'business_name' => '<string>',
'website' => 'https://www.example.com',
'business_identifier_start_date' => '2023-11-07T05:31:56Z',
'business_identifier_expiry_date' => '2023-11-07T05:31:56Z',
'business_identifier_document_list' => [
'<string>'
]
],
'registration_address' => [
'registration_address_line1' => '<string>',
'registration_address_city' => '<string>',
'registration_address_state' => '<string>',
'registration_address_postcode' => '<string>',
'registration_address_country_code' => 'US'
],
'account_usage' => [
'operating_country' => 'US',
'goods_service_description' => '<string>',
'industry_category_code' => '<string>',
'estimated_monthly_revenue_currency' => 'USD',
'estimated_monthly_revenue_amount' => 99.99
],
'primary_contact' => [
'contact_phone' => '+8613800138000',
'contact_email' => 'service@gemini.com'
],
'business_person_list' => [
[
'basic_info' => [
'first_name_english' => '<string>',
'last_name_english' => '<string>',
'birth_date' => '2023-11-07T05:31:56Z',
'nationality' => 'US',
'first_name' => '<string>',
'last_name' => '<string>'
],
'identification' => [
'id_number' => '<string>',
'id_issuing_country_code' => 'US',
'id_expiration_date' => '2023-11-07T05:31:56Z',
'id_issue_date' => '2023-11-07T05:31:56Z',
'id_document_front_file_id' => '<string>',
'id_document_back_file_id' => '<string>'
],
'residential_address' => [
'residential_address_line1' => '<string>',
'residential_address_city' => '<string>',
'residential_address_postcode' => '<string>',
'residential_address_country_code' => 'US',
'residential_address_state' => '<string>'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>",
"X-API-Secret: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "http://127.0.0.1:8083/api/customers/create"
payload := strings.NewReader("{\n \"partner_customer_id\": \"<string>\",\n \"business_details\": {\n \"business_name_english\": \"<string>\",\n \"business_identifier_number\": \"<string>\",\n \"business_identifier_country_code\": \"US\",\n \"business_name\": \"<string>\",\n \"website\": \"https://www.example.com\",\n \"business_identifier_start_date\": \"2023-11-07T05:31:56Z\",\n \"business_identifier_expiry_date\": \"2023-11-07T05:31:56Z\",\n \"business_identifier_document_list\": [\n \"<string>\"\n ]\n },\n \"registration_address\": {\n \"registration_address_line1\": \"<string>\",\n \"registration_address_city\": \"<string>\",\n \"registration_address_state\": \"<string>\",\n \"registration_address_postcode\": \"<string>\",\n \"registration_address_country_code\": \"US\"\n },\n \"account_usage\": {\n \"operating_country\": \"US\",\n \"goods_service_description\": \"<string>\",\n \"industry_category_code\": \"<string>\",\n \"estimated_monthly_revenue_currency\": \"USD\",\n \"estimated_monthly_revenue_amount\": 99.99\n },\n \"primary_contact\": {\n \"contact_phone\": \"+8613800138000\",\n \"contact_email\": \"service@gemini.com\"\n },\n \"business_person_list\": [\n {\n \"basic_info\": {\n \"first_name_english\": \"<string>\",\n \"last_name_english\": \"<string>\",\n \"birth_date\": \"2023-11-07T05:31:56Z\",\n \"nationality\": \"US\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\"\n },\n \"identification\": {\n \"id_number\": \"<string>\",\n \"id_issuing_country_code\": \"US\",\n \"id_expiration_date\": \"2023-11-07T05:31:56Z\",\n \"id_issue_date\": \"2023-11-07T05:31:56Z\",\n \"id_document_front_file_id\": \"<string>\",\n \"id_document_back_file_id\": \"<string>\"\n },\n \"residential_address\": {\n \"residential_address_line1\": \"<string>\",\n \"residential_address_city\": \"<string>\",\n \"residential_address_postcode\": \"<string>\",\n \"residential_address_country_code\": \"US\",\n \"residential_address_state\": \"<string>\"\n }\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("X-API-Secret", "<api-key>")
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("http://127.0.0.1:8083/api/customers/create")
.header("X-API-Key", "<api-key>")
.header("X-API-Secret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"partner_customer_id\": \"<string>\",\n \"business_details\": {\n \"business_name_english\": \"<string>\",\n \"business_identifier_number\": \"<string>\",\n \"business_identifier_country_code\": \"US\",\n \"business_name\": \"<string>\",\n \"website\": \"https://www.example.com\",\n \"business_identifier_start_date\": \"2023-11-07T05:31:56Z\",\n \"business_identifier_expiry_date\": \"2023-11-07T05:31:56Z\",\n \"business_identifier_document_list\": [\n \"<string>\"\n ]\n },\n \"registration_address\": {\n \"registration_address_line1\": \"<string>\",\n \"registration_address_city\": \"<string>\",\n \"registration_address_state\": \"<string>\",\n \"registration_address_postcode\": \"<string>\",\n \"registration_address_country_code\": \"US\"\n },\n \"account_usage\": {\n \"operating_country\": \"US\",\n \"goods_service_description\": \"<string>\",\n \"industry_category_code\": \"<string>\",\n \"estimated_monthly_revenue_currency\": \"USD\",\n \"estimated_monthly_revenue_amount\": 99.99\n },\n \"primary_contact\": {\n \"contact_phone\": \"+8613800138000\",\n \"contact_email\": \"service@gemini.com\"\n },\n \"business_person_list\": [\n {\n \"basic_info\": {\n \"first_name_english\": \"<string>\",\n \"last_name_english\": \"<string>\",\n \"birth_date\": \"2023-11-07T05:31:56Z\",\n \"nationality\": \"US\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\"\n },\n \"identification\": {\n \"id_number\": \"<string>\",\n \"id_issuing_country_code\": \"US\",\n \"id_expiration_date\": \"2023-11-07T05:31:56Z\",\n \"id_issue_date\": \"2023-11-07T05:31:56Z\",\n \"id_document_front_file_id\": \"<string>\",\n \"id_document_back_file_id\": \"<string>\"\n },\n \"residential_address\": {\n \"residential_address_line1\": \"<string>\",\n \"residential_address_city\": \"<string>\",\n \"residential_address_postcode\": \"<string>\",\n \"residential_address_country_code\": \"US\",\n \"residential_address_state\": \"<string>\"\n }\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://127.0.0.1:8083/api/customers/create")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["X-API-Secret"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"partner_customer_id\": \"<string>\",\n \"business_details\": {\n \"business_name_english\": \"<string>\",\n \"business_identifier_number\": \"<string>\",\n \"business_identifier_country_code\": \"US\",\n \"business_name\": \"<string>\",\n \"website\": \"https://www.example.com\",\n \"business_identifier_start_date\": \"2023-11-07T05:31:56Z\",\n \"business_identifier_expiry_date\": \"2023-11-07T05:31:56Z\",\n \"business_identifier_document_list\": [\n \"<string>\"\n ]\n },\n \"registration_address\": {\n \"registration_address_line1\": \"<string>\",\n \"registration_address_city\": \"<string>\",\n \"registration_address_state\": \"<string>\",\n \"registration_address_postcode\": \"<string>\",\n \"registration_address_country_code\": \"US\"\n },\n \"account_usage\": {\n \"operating_country\": \"US\",\n \"goods_service_description\": \"<string>\",\n \"industry_category_code\": \"<string>\",\n \"estimated_monthly_revenue_currency\": \"USD\",\n \"estimated_monthly_revenue_amount\": 99.99\n },\n \"primary_contact\": {\n \"contact_phone\": \"+8613800138000\",\n \"contact_email\": \"service@gemini.com\"\n },\n \"business_person_list\": [\n {\n \"basic_info\": {\n \"first_name_english\": \"<string>\",\n \"last_name_english\": \"<string>\",\n \"birth_date\": \"2023-11-07T05:31:56Z\",\n \"nationality\": \"US\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\"\n },\n \"identification\": {\n \"id_number\": \"<string>\",\n \"id_issuing_country_code\": \"US\",\n \"id_expiration_date\": \"2023-11-07T05:31:56Z\",\n \"id_issue_date\": \"2023-11-07T05:31:56Z\",\n \"id_document_front_file_id\": \"<string>\",\n \"id_document_back_file_id\": \"<string>\"\n },\n \"residential_address\": {\n \"residential_address_line1\": \"<string>\",\n \"residential_address_city\": \"<string>\",\n \"residential_address_postcode\": \"<string>\",\n \"residential_address_country_code\": \"US\",\n \"residential_address_state\": \"<string>\"\n }\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"partner_customer_id": "<string>",
"business_details": {
"business_name_english": "<string>",
"website": "https://www.example.com",
"business_identifier_number": "<string>",
"business_identifier_country_code": "US",
"business_identifier_document_list": [
"<string>"
],
"business_name": "<string>",
"business_identifier_start_date": "2023-11-07T05:31:56Z",
"business_identifier_expiry_date": "2023-11-07T05:31:56Z"
},
"registration_address": {
"registration_address_line1": "<string>",
"registration_address_city": "<string>",
"registration_address_state": "<string>",
"registration_address_postcode": "<string>",
"registration_address_country_code": "US"
},
"customer_id": "cus_79fb361a05074629bf1ecf0d14cd244e",
"status": "active",
"created_at": "2023-11-07T05:31:56Z",
"account_usage": {
"operating_country": "US",
"goods_service_description": "<string>",
"industry_category_code": "<string>",
"estimated_monthly_revenue_currency": "USD",
"estimated_monthly_revenue_amount": 99.99
},
"primary_contact": {
"contact_phone": "+8613800138000",
"contact_email": "service@gemini.com"
},
"business_person_list": [
{
"basic_info": {
"first_name_english": "<string>",
"last_name_english": "<string>",
"birth_date": "2023-11-07T05:31:56Z",
"nationality": "US",
"first_name": "<string>",
"last_name": "<string>"
},
"residential_address": {
"residential_address_line1": "<string>",
"residential_address_city": "<string>",
"residential_address_postcode": "<string>",
"residential_address_country_code": "US",
"residential_address_state": "<string>"
},
"identification": {
"id_number": "<string>",
"id_issuing_country_code": "US",
"id_expiration_date": "2023-11-07T05:31:56Z",
"id_issue_date": "2023-11-07T05:31:56Z",
"id_document_front_file_id": "<string>",
"id_document_back_file_id": "<string>"
}
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "Invalid organizationId",
"code": "ORG_ID_INVALID"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}Authorizations
Includes an API key in the HTTP headers to authenticate the client.
Includes an API secret in the HTTP headers to authenticate the client.
Body
Add Customer Request Vocabulary
Partner Assigned Customer ID
20 - 64Company Details Section
Show child attributes
Show child attributes
Registration Address Section
Show child attributes
Show child attributes
Business Details Section
Show child attributes
Show child attributes
Primary Contact Section
Show child attributes
Show child attributes
List of Legal Representatives
Show child attributes
Show child attributes
Response
Operation Successful
Customer Details Response Information
Partner Assigned Customer ID
20 - 64Company Details Section
Show child attributes
Show child attributes
Registration Address Section
Show child attributes
Show child attributes
Unique Customer ID
"cus_79fb361a05074629bf1ecf0d14cd244e"
Customer status
pending, active, rejected, suspended "active"
Customer created time
Business Details Section
Show child attributes
Show child attributes
Primary Contact Section
Show child attributes
Show child attributes
List of Legal Representatives
Show child attributes
Show child attributes

