curl -X POST "https://api-sandbox.whitelabel.com/v1/banking/entities/<entity_id>/onboardings" \
-H "Content-Type: application/json" \
-H "x-idempotency-key: <x-idempotency-key>" \
-H "public-api-key: <public-api-key>" \
-H "private-secret-key: <private-secret-key>" \
-d '{
"account_id": "550e8400-e29b-41d4-a716-446655440000",
"yuno_connection_id": "conn_550e8400-e29b-41d4-a716-446655440001",
"onboarding_type": "ONE_STEP",
"compliance_declaration": {
"terms_of_service": {
"accepted": true,
"version": "1.2.0",
"accepted_at": "2026-02-01T10:00:00Z",
"accepted_ip": "192.168.1.1"
},
"privacy_policy": {
"accepted": true,
"version": "2.1.0",
"accepted_at": "2026-02-01T10:00:00Z",
"accepted_ip": "192.168.1.1"
}
},
"risk_assessment": {
"assessed_at": "2026-02-01T10:00:00Z",
"pep_status": {
"is_pep": false,
"pep_level": null,
"position": null,
"country": null
},
"rca_status": {
"risk_level": "LOW",
"classified_at": "2026-02-01T10:00:00Z",
"assessed_by": "Merchant Compliance Team"
},
"sanctions_screening": {
"appears_on_sanctions_list": false,
"sanctions_list_name": null,
"screened_at": "2026-02-01T09:00:00Z"
}
},
"source_of_funds": {
"primary_source": "EMPLOYMENT_SALARY",
"secondary_sources": [
"INVESTMENTS"
],
"description": "Primary income from full-time employment as software engineer, supplemented by stock portfolio dividends",
"estimated_annual_income": {
"amount": 175000,
"currency": "USD"
}
},
"documentation": [
{
"type": "IDENTITY_DOCUMENT",
"identity_document": {
"subtype": "DRIVERS_LICENSE",
"document_number": "D1234567",
"issuing_country": "US",
"issuing_state": "CA",
"issued_at": "2020-01-15",
"expires_at": "2028-01-15",
"front_image": {
"file_name": "license_front.jpg",
"content_type": "image/jpeg",
"content": "base64_encoded_content"
},
"back_image": {
"file_name": "license_back.jpg",
"content_type": "image/jpeg",
"content": "base64_encoded_content"
}
},
"proof_of_address": {
"subtype": "UTILITY_BILL",
"provider_name": "PG&E",
"bill_type": "ELECTRICITY",
"issued_at": "2026-01-01",
"account_number": "ACC-123456",
"verified_address": {
"address_line_1": "123 Main St",
"city": "San Francisco",
"state": "CA",
"zip_code": "94102",
"country": "US"
},
"file": {
"file_name": "utility_bill.pdf",
"content_type": "application/pdf",
"content": "base64_encoded_content"
}
},
"bank_statement": {
"bank_name": "Chase Bank",
"account_number_last_4": "1234",
"statement_period_start": "2025-12-01",
"statement_period_end": "2025-12-31",
"file": {
"file_name": "bank_statement_dec_2025.pdf",
"content_type": "application/pdf",
"content": "base64_encoded_content"
}
},
"business_document": {
"subtype": "ARTICLES_OF_INCORPORATION",
"registration_number": "REG-2020-12345",
"registered_at": "2020-01-15",
"issuing_state": "CA",
"issuing_authority": "California Secretary of State",
"file": {
"file_name": "articles_of_incorporation.pdf",
"content_type": "application/pdf",
"content": "base64_encoded_content"
}
},
"tax_information": {
"tax_records": [
{
"country": "US",
"tax_id": "123-45-6789",
"tax_id_type": "SSN",
"is_primary": true
}
],
"tax_document_type": "W9",
"tax_year": "2025",
"issuing_authority": "IRS",
"file": {
"file_name": "w9_form.pdf",
"content_type": "application/pdf",
"content": "base64_encoded_content"
}
},
"financial_document": {
"subtype": "BALANCE_SHEET",
"period_start": "2025-01-01",
"period_end": "2025-12-31",
"fiscal_year": "2025",
"audited": false,
"auditor_name": null,
"file": {
"file_name": "balance_sheet_2025.pdf",
"content_type": "application/pdf",
"content": "base64_encoded_content"
}
},
"biometric_verification": {
"verification_method": "FACIAL_RECOGNITION",
"capture_method": "LIVE_CAPTURE",
"capture_timestamp": "2026-02-01T10:00:00Z",
"liveness_check_passed": true,
"confidence_score": 0.98,
"verification_provider": "Onfido",
"live_image": {
"file_name": "live_capture.jpg",
"content_type": "image/jpeg",
"content": "base64_encoded_content"
},
"reference_image": {
"file_name": "id_photo_reference.jpg",
"content_type": "image/jpeg",
"content": "base64_encoded_content"
}
},
"employment_information": {
"status": "EMPLOYED",
"employer_name": "Tech Corp Inc",
"occupation": "Senior Software Engineer",
"industry": "TECHNOLOGY",
"started_at": "2020-03-15",
"annual_income": {
"amount": 150000,
"currency": "USD"
},
"verification_document": {
"file_name": "employment_letter.pdf",
"content_type": "application/pdf",
"content": "base64_encoded_content"
}
}
}
]
}' const response = await fetch ( `https://api-sandbox.whitelabel.com/v1/banking/entities/${ entity_id }/onboardings` , {
method: 'POST' ,
headers: { 'Content-Type' : 'application/json' , 'public-api-key' : '<public-api-key>' , 'private-secret-key' : '<private-secret-key>' },
body: JSON . stringify ({
"account_id" : "550e8400-e29b-41d4-a716-446655440000" ,
"yuno_connection_id" : "conn_550e8400-e29b-41d4-a716-446655440001" ,
"onboarding_type" : "ONE_STEP" ,
"compliance_declaration" : {
"terms_of_service" : {
"accepted" : true ,
"version" : "1.2.0" ,
"accepted_at" : "2026-02-01T10:00:00Z" ,
"accepted_ip" : "192.168.1.1"
},
"privacy_policy" : {
"accepted" : true ,
"version" : "2.1.0" ,
"accepted_at" : "2026-02-01T10:00:00Z" ,
"accepted_ip" : "192.168.1.1"
}
},
"risk_assessment" : {
"assessed_at" : "2026-02-01T10:00:00Z" ,
"pep_status" : {
"is_pep" : false ,
"pep_level" : null ,
"position" : null ,
"country" : null
},
"rca_status" : {
"risk_level" : "LOW" ,
"classified_at" : "2026-02-01T10:00:00Z" ,
"assessed_by" : "Merchant Compliance Team"
},
"sanctions_screening" : {
"appears_on_sanctions_list" : false ,
"sanctions_list_name" : null ,
"screened_at" : "2026-02-01T09:00:00Z"
}
},
"source_of_funds" : {
"primary_source" : "EMPLOYMENT_SALARY" ,
"secondary_sources" : [
"INVESTMENTS"
],
"description" : "Primary income from full-time employment as software engineer, supplemented by stock portfolio dividends" ,
"estimated_annual_income" : {
"amount" : 175000 ,
"currency" : "USD"
}
},
"documentation" : [
{
"type" : "IDENTITY_DOCUMENT" ,
"identity_document" : {
"subtype" : "DRIVERS_LICENSE" ,
"document_number" : "D1234567" ,
"issuing_country" : "US" ,
"issuing_state" : "CA" ,
"issued_at" : "2020-01-15" ,
"expires_at" : "2028-01-15" ,
"front_image" : {
"file_name" : "license_front.jpg" ,
"content_type" : "image/jpeg" ,
"content" : "base64_encoded_content"
},
"back_image" : {
"file_name" : "license_back.jpg" ,
"content_type" : "image/jpeg" ,
"content" : "base64_encoded_content"
}
},
"proof_of_address" : {
"subtype" : "UTILITY_BILL" ,
"provider_name" : "PG&E" ,
"bill_type" : "ELECTRICITY" ,
"issued_at" : "2026-01-01" ,
"account_number" : "ACC-123456" ,
"verified_address" : {
"address_line_1" : "123 Main St" ,
"city" : "San Francisco" ,
"state" : "CA" ,
"zip_code" : "94102" ,
"country" : "US"
},
"file" : {
"file_name" : "utility_bill.pdf" ,
"content_type" : "application/pdf" ,
"content" : "base64_encoded_content"
}
},
"bank_statement" : {
"bank_name" : "Chase Bank" ,
"account_number_last_4" : "1234" ,
"statement_period_start" : "2025-12-01" ,
"statement_period_end" : "2025-12-31" ,
"file" : {
"file_name" : "bank_statement_dec_2025.pdf" ,
"content_type" : "application/pdf" ,
"content" : "base64_encoded_content"
}
},
"business_document" : {
"subtype" : "ARTICLES_OF_INCORPORATION" ,
"registration_number" : "REG-2020-12345" ,
"registered_at" : "2020-01-15" ,
"issuing_state" : "CA" ,
"issuing_authority" : "California Secretary of State" ,
"file" : {
"file_name" : "articles_of_incorporation.pdf" ,
"content_type" : "application/pdf" ,
"content" : "base64_encoded_content"
}
},
"tax_information" : {
"tax_records" : [
{
"country" : "US" ,
"tax_id" : "123-45-6789" ,
"tax_id_type" : "SSN" ,
"is_primary" : true
}
],
"tax_document_type" : "W9" ,
"tax_year" : "2025" ,
"issuing_authority" : "IRS" ,
"file" : {
"file_name" : "w9_form.pdf" ,
"content_type" : "application/pdf" ,
"content" : "base64_encoded_content"
}
},
"financial_document" : {
"subtype" : "BALANCE_SHEET" ,
"period_start" : "2025-01-01" ,
"period_end" : "2025-12-31" ,
"fiscal_year" : "2025" ,
"audited" : false ,
"auditor_name" : null ,
"file" : {
"file_name" : "balance_sheet_2025.pdf" ,
"content_type" : "application/pdf" ,
"content" : "base64_encoded_content"
}
},
"biometric_verification" : {
"verification_method" : "FACIAL_RECOGNITION" ,
"capture_method" : "LIVE_CAPTURE" ,
"capture_timestamp" : "2026-02-01T10:00:00Z" ,
"liveness_check_passed" : true ,
"confidence_score" : 0.98 ,
"verification_provider" : "Onfido" ,
"live_image" : {
"file_name" : "live_capture.jpg" ,
"content_type" : "image/jpeg" ,
"content" : "base64_encoded_content"
},
"reference_image" : {
"file_name" : "id_photo_reference.jpg" ,
"content_type" : "image/jpeg" ,
"content" : "base64_encoded_content"
}
},
"employment_information" : {
"status" : "EMPLOYED" ,
"employer_name" : "Tech Corp Inc" ,
"occupation" : "Senior Software Engineer" ,
"industry" : "TECHNOLOGY" ,
"started_at" : "2020-03-15" ,
"annual_income" : {
"amount" : 150000 ,
"currency" : "USD"
},
"verification_document" : {
"file_name" : "employment_letter.pdf" ,
"content_type" : "application/pdf" ,
"content" : "base64_encoded_content"
}
}
}
]
})
});
const data = await response. json (); import requests
response = requests.request(
"POST" ,
"https://api-sandbox.whitelabel.com/v1/banking/entities/ {entity_id} /onboardings" ,
headers = { "public-api-key" : "<public-api-key>" , "private-secret-key" : "<private-secret-key>" },
json = {
"account_id" : "550e8400-e29b-41d4-a716-446655440000" ,
"yuno_connection_id" : "conn_550e8400-e29b-41d4-a716-446655440001" ,
"onboarding_type" : "ONE_STEP" ,
"compliance_declaration" : {
"terms_of_service" : {
"accepted" : True ,
"version" : "1.2.0" ,
"accepted_at" : "2026-02-01T10:00:00Z" ,
"accepted_ip" : "192.168.1.1"
},
"privacy_policy" : {
"accepted" : True ,
"version" : "2.1.0" ,
"accepted_at" : "2026-02-01T10:00:00Z" ,
"accepted_ip" : "192.168.1.1"
}
},
"risk_assessment" : {
"assessed_at" : "2026-02-01T10:00:00Z" ,
"pep_status" : {
"is_pep" : False ,
"pep_level" : None ,
"position" : None ,
"country" : None
},
"rca_status" : {
"risk_level" : "LOW" ,
"classified_at" : "2026-02-01T10:00:00Z" ,
"assessed_by" : "Merchant Compliance Team"
},
"sanctions_screening" : {
"appears_on_sanctions_list" : False ,
"sanctions_list_name" : None ,
"screened_at" : "2026-02-01T09:00:00Z"
}
},
"source_of_funds" : {
"primary_source" : "EMPLOYMENT_SALARY" ,
"secondary_sources" : [
"INVESTMENTS"
],
"description" : "Primary income from full-time employment as software engineer, supplemented by stock portfolio dividends" ,
"estimated_annual_income" : {
"amount" : 175000 ,
"currency" : "USD"
}
},
"documentation" : [
{
"type" : "IDENTITY_DOCUMENT" ,
"identity_document" : {
"subtype" : "DRIVERS_LICENSE" ,
"document_number" : "D1234567" ,
"issuing_country" : "US" ,
"issuing_state" : "CA" ,
"issued_at" : "2020-01-15" ,
"expires_at" : "2028-01-15" ,
"front_image" : {
"file_name" : "license_front.jpg" ,
"content_type" : "image/jpeg" ,
"content" : "base64_encoded_content"
},
"back_image" : {
"file_name" : "license_back.jpg" ,
"content_type" : "image/jpeg" ,
"content" : "base64_encoded_content"
}
},
"proof_of_address" : {
"subtype" : "UTILITY_BILL" ,
"provider_name" : "PG&E" ,
"bill_type" : "ELECTRICITY" ,
"issued_at" : "2026-01-01" ,
"account_number" : "ACC-123456" ,
"verified_address" : {
"address_line_1" : "123 Main St" ,
"city" : "San Francisco" ,
"state" : "CA" ,
"zip_code" : "94102" ,
"country" : "US"
},
"file" : {
"file_name" : "utility_bill.pdf" ,
"content_type" : "application/pdf" ,
"content" : "base64_encoded_content"
}
},
"bank_statement" : {
"bank_name" : "Chase Bank" ,
"account_number_last_4" : "1234" ,
"statement_period_start" : "2025-12-01" ,
"statement_period_end" : "2025-12-31" ,
"file" : {
"file_name" : "bank_statement_dec_2025.pdf" ,
"content_type" : "application/pdf" ,
"content" : "base64_encoded_content"
}
},
"business_document" : {
"subtype" : "ARTICLES_OF_INCORPORATION" ,
"registration_number" : "REG-2020-12345" ,
"registered_at" : "2020-01-15" ,
"issuing_state" : "CA" ,
"issuing_authority" : "California Secretary of State" ,
"file" : {
"file_name" : "articles_of_incorporation.pdf" ,
"content_type" : "application/pdf" ,
"content" : "base64_encoded_content"
}
},
"tax_information" : {
"tax_records" : [
{
"country" : "US" ,
"tax_id" : "123-45-6789" ,
"tax_id_type" : "SSN" ,
"is_primary" : True
}
],
"tax_document_type" : "W9" ,
"tax_year" : "2025" ,
"issuing_authority" : "IRS" ,
"file" : {
"file_name" : "w9_form.pdf" ,
"content_type" : "application/pdf" ,
"content" : "base64_encoded_content"
}
},
"financial_document" : {
"subtype" : "BALANCE_SHEET" ,
"period_start" : "2025-01-01" ,
"period_end" : "2025-12-31" ,
"fiscal_year" : "2025" ,
"audited" : False ,
"auditor_name" : None ,
"file" : {
"file_name" : "balance_sheet_2025.pdf" ,
"content_type" : "application/pdf" ,
"content" : "base64_encoded_content"
}
},
"biometric_verification" : {
"verification_method" : "FACIAL_RECOGNITION" ,
"capture_method" : "LIVE_CAPTURE" ,
"capture_timestamp" : "2026-02-01T10:00:00Z" ,
"liveness_check_passed" : True ,
"confidence_score" : 0.98 ,
"verification_provider" : "Onfido" ,
"live_image" : {
"file_name" : "live_capture.jpg" ,
"content_type" : "image/jpeg" ,
"content" : "base64_encoded_content"
},
"reference_image" : {
"file_name" : "id_photo_reference.jpg" ,
"content_type" : "image/jpeg" ,
"content" : "base64_encoded_content"
}
},
"employment_information" : {
"status" : "EMPLOYED" ,
"employer_name" : "Tech Corp Inc" ,
"occupation" : "Senior Software Engineer" ,
"industry" : "TECHNOLOGY" ,
"started_at" : "2020-03-15" ,
"annual_income" : {
"amount" : 150000 ,
"currency" : "USD"
},
"verification_document" : {
"file_name" : "employment_letter.pdf" ,
"content_type" : "application/pdf" ,
"content" : "base64_encoded_content"
}
}
}
]
},
)
data = response.json() <? php
$ch = curl_init ();
curl_setopt ($ch, CURLOPT_URL , "https://api-sandbox.whitelabel.com/v1/banking/entities/<entity_id>/onboardings" );
curl_setopt ($ch, CURLOPT_RETURNTRANSFER , true );
curl_setopt ($ch, CURLOPT_CUSTOMREQUEST , "POST" );
curl_setopt ($ch, CURLOPT_HTTPHEADER , [ "Content-Type: application/json" , "public-api-key: <public-api-key>" , "private-secret-key: <private-secret-key>" ]);
curl_setopt ($ch, CURLOPT_POSTFIELDS , '{
"account_id": "550e8400-e29b-41d4-a716-446655440000",
"yuno_connection_id": "conn_550e8400-e29b-41d4-a716-446655440001",
"onboarding_type": "ONE_STEP",
"compliance_declaration": {
"terms_of_service": {
"accepted": true,
"version": "1.2.0",
"accepted_at": "2026-02-01T10:00:00Z",
"accepted_ip": "192.168.1.1"
},
"privacy_policy": {
"accepted": true,
"version": "2.1.0",
"accepted_at": "2026-02-01T10:00:00Z",
"accepted_ip": "192.168.1.1"
}
},
"risk_assessment": {
"assessed_at": "2026-02-01T10:00:00Z",
"pep_status": {
"is_pep": false,
"pep_level": null,
"position": null,
"country": null
},
"rca_status": {
"risk_level": "LOW",
"classified_at": "2026-02-01T10:00:00Z",
"assessed_by": "Merchant Compliance Team"
},
"sanctions_screening": {
"appears_on_sanctions_list": false,
"sanctions_list_name": null,
"screened_at": "2026-02-01T09:00:00Z"
}
},
"source_of_funds": {
"primary_source": "EMPLOYMENT_SALARY",
"secondary_sources": [
"INVESTMENTS"
],
"description": "Primary income from full-time employment as software engineer, supplemented by stock portfolio dividends",
"estimated_annual_income": {
"amount": 175000,
"currency": "USD"
}
},
"documentation": [
{
"type": "IDENTITY_DOCUMENT",
"identity_document": {
"subtype": "DRIVERS_LICENSE",
"document_number": "D1234567",
"issuing_country": "US",
"issuing_state": "CA",
"issued_at": "2020-01-15",
"expires_at": "2028-01-15",
"front_image": {
"file_name": "license_front.jpg",
"content_type": "image/jpeg",
"content": "base64_encoded_content"
},
"back_image": {
"file_name": "license_back.jpg",
"content_type": "image/jpeg",
"content": "base64_encoded_content"
}
},
"proof_of_address": {
"subtype": "UTILITY_BILL",
"provider_name": "PG&E",
"bill_type": "ELECTRICITY",
"issued_at": "2026-01-01",
"account_number": "ACC-123456",
"verified_address": {
"address_line_1": "123 Main St",
"city": "San Francisco",
"state": "CA",
"zip_code": "94102",
"country": "US"
},
"file": {
"file_name": "utility_bill.pdf",
"content_type": "application/pdf",
"content": "base64_encoded_content"
}
},
"bank_statement": {
"bank_name": "Chase Bank",
"account_number_last_4": "1234",
"statement_period_start": "2025-12-01",
"statement_period_end": "2025-12-31",
"file": {
"file_name": "bank_statement_dec_2025.pdf",
"content_type": "application/pdf",
"content": "base64_encoded_content"
}
},
"business_document": {
"subtype": "ARTICLES_OF_INCORPORATION",
"registration_number": "REG-2020-12345",
"registered_at": "2020-01-15",
"issuing_state": "CA",
"issuing_authority": "California Secretary of State",
"file": {
"file_name": "articles_of_incorporation.pdf",
"content_type": "application/pdf",
"content": "base64_encoded_content"
}
},
"tax_information": {
"tax_records": [
{
"country": "US",
"tax_id": "123-45-6789",
"tax_id_type": "SSN",
"is_primary": true
}
],
"tax_document_type": "W9",
"tax_year": "2025",
"issuing_authority": "IRS",
"file": {
"file_name": "w9_form.pdf",
"content_type": "application/pdf",
"content": "base64_encoded_content"
}
},
"financial_document": {
"subtype": "BALANCE_SHEET",
"period_start": "2025-01-01",
"period_end": "2025-12-31",
"fiscal_year": "2025",
"audited": false,
"auditor_name": null,
"file": {
"file_name": "balance_sheet_2025.pdf",
"content_type": "application/pdf",
"content": "base64_encoded_content"
}
},
"biometric_verification": {
"verification_method": "FACIAL_RECOGNITION",
"capture_method": "LIVE_CAPTURE",
"capture_timestamp": "2026-02-01T10:00:00Z",
"liveness_check_passed": true,
"confidence_score": 0.98,
"verification_provider": "Onfido",
"live_image": {
"file_name": "live_capture.jpg",
"content_type": "image/jpeg",
"content": "base64_encoded_content"
},
"reference_image": {
"file_name": "id_photo_reference.jpg",
"content_type": "image/jpeg",
"content": "base64_encoded_content"
}
},
"employment_information": {
"status": "EMPLOYED",
"employer_name": "Tech Corp Inc",
"occupation": "Senior Software Engineer",
"industry": "TECHNOLOGY",
"started_at": "2020-03-15",
"annual_income": {
"amount": 150000,
"currency": "USD"
},
"verification_document": {
"file_name": "employment_letter.pdf",
"content_type": "application/pdf",
"content": "base64_encoded_content"
}
}
}
]
}' );
$response = curl_exec ($ch);
curl_close ($ch); package main
import (
" fmt "
" io "
" net/http "
" strings "
)
func main () {
req, _ := http. NewRequest ( "POST" , "https://api-sandbox.whitelabel.com/v1/banking/entities/<entity_id>/onboardings" , strings. NewReader ( `{
"account_id": "550e8400-e29b-41d4-a716-446655440000",
"yuno_connection_id": "conn_550e8400-e29b-41d4-a716-446655440001",
"onboarding_type": "ONE_STEP",
"compliance_declaration": {
"terms_of_service": {
"accepted": true,
"version": "1.2.0",
"accepted_at": "2026-02-01T10:00:00Z",
"accepted_ip": "192.168.1.1"
},
"privacy_policy": {
"accepted": true,
"version": "2.1.0",
"accepted_at": "2026-02-01T10:00:00Z",
"accepted_ip": "192.168.1.1"
}
},
"risk_assessment": {
"assessed_at": "2026-02-01T10:00:00Z",
"pep_status": {
"is_pep": false,
"pep_level": null,
"position": null,
"country": null
},
"rca_status": {
"risk_level": "LOW",
"classified_at": "2026-02-01T10:00:00Z",
"assessed_by": "Merchant Compliance Team"
},
"sanctions_screening": {
"appears_on_sanctions_list": false,
"sanctions_list_name": null,
"screened_at": "2026-02-01T09:00:00Z"
}
},
"source_of_funds": {
"primary_source": "EMPLOYMENT_SALARY",
"secondary_sources": [
"INVESTMENTS"
],
"description": "Primary income from full-time employment as software engineer, supplemented by stock portfolio dividends",
"estimated_annual_income": {
"amount": 175000,
"currency": "USD"
}
},
"documentation": [
{
"type": "IDENTITY_DOCUMENT",
"identity_document": {
"subtype": "DRIVERS_LICENSE",
"document_number": "D1234567",
"issuing_country": "US",
"issuing_state": "CA",
"issued_at": "2020-01-15",
"expires_at": "2028-01-15",
"front_image": {
"file_name": "license_front.jpg",
"content_type": "image/jpeg",
"content": "base64_encoded_content"
},
"back_image": {
"file_name": "license_back.jpg",
"content_type": "image/jpeg",
"content": "base64_encoded_content"
}
},
"proof_of_address": {
"subtype": "UTILITY_BILL",
"provider_name": "PG&E",
"bill_type": "ELECTRICITY",
"issued_at": "2026-01-01",
"account_number": "ACC-123456",
"verified_address": {
"address_line_1": "123 Main St",
"city": "San Francisco",
"state": "CA",
"zip_code": "94102",
"country": "US"
},
"file": {
"file_name": "utility_bill.pdf",
"content_type": "application/pdf",
"content": "base64_encoded_content"
}
},
"bank_statement": {
"bank_name": "Chase Bank",
"account_number_last_4": "1234",
"statement_period_start": "2025-12-01",
"statement_period_end": "2025-12-31",
"file": {
"file_name": "bank_statement_dec_2025.pdf",
"content_type": "application/pdf",
"content": "base64_encoded_content"
}
},
"business_document": {
"subtype": "ARTICLES_OF_INCORPORATION",
"registration_number": "REG-2020-12345",
"registered_at": "2020-01-15",
"issuing_state": "CA",
"issuing_authority": "California Secretary of State",
"file": {
"file_name": "articles_of_incorporation.pdf",
"content_type": "application/pdf",
"content": "base64_encoded_content"
}
},
"tax_information": {
"tax_records": [
{
"country": "US",
"tax_id": "123-45-6789",
"tax_id_type": "SSN",
"is_primary": true
}
],
"tax_document_type": "W9",
"tax_year": "2025",
"issuing_authority": "IRS",
"file": {
"file_name": "w9_form.pdf",
"content_type": "application/pdf",
"content": "base64_encoded_content"
}
},
"financial_document": {
"subtype": "BALANCE_SHEET",
"period_start": "2025-01-01",
"period_end": "2025-12-31",
"fiscal_year": "2025",
"audited": false,
"auditor_name": null,
"file": {
"file_name": "balance_sheet_2025.pdf",
"content_type": "application/pdf",
"content": "base64_encoded_content"
}
},
"biometric_verification": {
"verification_method": "FACIAL_RECOGNITION",
"capture_method": "LIVE_CAPTURE",
"capture_timestamp": "2026-02-01T10:00:00Z",
"liveness_check_passed": true,
"confidence_score": 0.98,
"verification_provider": "Onfido",
"live_image": {
"file_name": "live_capture.jpg",
"content_type": "image/jpeg",
"content": "base64_encoded_content"
},
"reference_image": {
"file_name": "id_photo_reference.jpg",
"content_type": "image/jpeg",
"content": "base64_encoded_content"
}
},
"employment_information": {
"status": "EMPLOYED",
"employer_name": "Tech Corp Inc",
"occupation": "Senior Software Engineer",
"industry": "TECHNOLOGY",
"started_at": "2020-03-15",
"annual_income": {
"amount": 150000,
"currency": "USD"
},
"verification_document": {
"file_name": "employment_letter.pdf",
"content_type": "application/pdf",
"content": "base64_encoded_content"
}
}
}
]
}` ))
req.Header. Set ( "Content-Type" , "application/json" )
req.Header. Set ( "public-api-key" , "<public-api-key>" )
req.Header. Set ( "private-secret-key" , "<private-secret-key>" )
resp, err := http.DefaultClient. Do (req)
if err != nil {
panic (err)
}
defer resp.Body. Close ()
data, _ := io. ReadAll (resp.Body)
fmt. Println ( string (data))
} HttpClient client = HttpClient. newHttpClient ();
HttpRequest request = HttpRequest. newBuilder ()
. uri (URI. create ( "https://api-sandbox.whitelabel.com/v1/banking/entities/<entity_id>/onboardings" ))
. header ( "Content-Type" , "application/json" )
. header ( "public-api-key" , "<public-api-key>" )
. header ( "private-secret-key" , "<private-secret-key>" )
. method ( "POST" , HttpRequest.BodyPublishers. ofString ( "{ \n \" account_id \" : \" 550e8400-e29b-41d4-a716-446655440000 \" , \n \" yuno_connection_id \" : \" conn_550e8400-e29b-41d4-a716-446655440001 \" , \n \" onboarding_type \" : \" ONE_STEP \" , \n \" compliance_declaration \" : { \n \" terms_of_service \" : { \n \" accepted \" : true, \n \" version \" : \" 1.2.0 \" , \n \" accepted_at \" : \" 2026-02-01T10:00:00Z \" , \n \" accepted_ip \" : \" 192.168.1.1 \"\n }, \n \" privacy_policy \" : { \n \" accepted \" : true, \n \" version \" : \" 2.1.0 \" , \n \" accepted_at \" : \" 2026-02-01T10:00:00Z \" , \n \" accepted_ip \" : \" 192.168.1.1 \"\n } \n }, \n \" risk_assessment \" : { \n \" assessed_at \" : \" 2026-02-01T10:00:00Z \" , \n \" pep_status \" : { \n \" is_pep \" : false, \n \" pep_level \" : null, \n \" position \" : null, \n \" country \" : null \n }, \n \" rca_status \" : { \n \" risk_level \" : \" LOW \" , \n \" classified_at \" : \" 2026-02-01T10:00:00Z \" , \n \" assessed_by \" : \" Merchant Compliance Team \"\n }, \n \" sanctions_screening \" : { \n \" appears_on_sanctions_list \" : false, \n \" sanctions_list_name \" : null, \n \" screened_at \" : \" 2026-02-01T09:00:00Z \"\n } \n }, \n \" source_of_funds \" : { \n \" primary_source \" : \" EMPLOYMENT_SALARY \" , \n \" secondary_sources \" : [ \n \" INVESTMENTS \"\n ], \n \" description \" : \" Primary income from full-time employment as software engineer, supplemented by stock portfolio dividends \" , \n \" estimated_annual_income \" : { \n \" amount \" : 175000, \n \" currency \" : \" USD \"\n } \n }, \n \" documentation \" : [ \n { \n \" type \" : \" IDENTITY_DOCUMENT \" , \n \" identity_document \" : { \n \" subtype \" : \" DRIVERS_LICENSE \" , \n \" document_number \" : \" D1234567 \" , \n \" issuing_country \" : \" US \" , \n \" issuing_state \" : \" CA \" , \n \" issued_at \" : \" 2020-01-15 \" , \n \" expires_at \" : \" 2028-01-15 \" , \n \" front_image \" : { \n \" file_name \" : \" license_front.jpg \" , \n \" content_type \" : \" image/jpeg \" , \n \" content \" : \" base64_encoded_content \"\n }, \n \" back_image \" : { \n \" file_name \" : \" license_back.jpg \" , \n \" content_type \" : \" image/jpeg \" , \n \" content \" : \" base64_encoded_content \"\n } \n }, \n \" proof_of_address \" : { \n \" subtype \" : \" UTILITY_BILL \" , \n \" provider_name \" : \" PG&E \" , \n \" bill_type \" : \" ELECTRICITY \" , \n \" issued_at \" : \" 2026-01-01 \" , \n \" account_number \" : \" ACC-123456 \" , \n \" verified_address \" : { \n \" address_line_1 \" : \" 123 Main St \" , \n \" city \" : \" San Francisco \" , \n \" state \" : \" CA \" , \n \" zip_code \" : \" 94102 \" , \n \" country \" : \" US \"\n }, \n \" file \" : { \n \" file_name \" : \" utility_bill.pdf \" , \n \" content_type \" : \" application/pdf \" , \n \" content \" : \" base64_encoded_content \"\n } \n }, \n \" bank_statement \" : { \n \" bank_name \" : \" Chase Bank \" , \n \" account_number_last_4 \" : \" 1234 \" , \n \" statement_period_start \" : \" 2025-12-01 \" , \n \" statement_period_end \" : \" 2025-12-31 \" , \n \" file \" : { \n \" file_name \" : \" bank_statement_dec_2025.pdf \" , \n \" content_type \" : \" application/pdf \" , \n \" content \" : \" base64_encoded_content \"\n } \n }, \n \" business_document \" : { \n \" subtype \" : \" ARTICLES_OF_INCORPORATION \" , \n \" registration_number \" : \" REG-2020-12345 \" , \n \" registered_at \" : \" 2020-01-15 \" , \n \" issuing_state \" : \" CA \" , \n \" issuing_authority \" : \" California Secretary of State \" , \n \" file \" : { \n \" file_name \" : \" articles_of_incorporation.pdf \" , \n \" content_type \" : \" application/pdf \" , \n \" content \" : \" base64_encoded_content \"\n } \n }, \n \" tax_information \" : { \n \" tax_records \" : [ \n { \n \" country \" : \" US \" , \n \" tax_id \" : \" 123-45-6789 \" , \n \" tax_id_type \" : \" SSN \" , \n \" is_primary \" : true \n } \n ], \n \" tax_document_type \" : \" W9 \" , \n \" tax_year \" : \" 2025 \" , \n \" issuing_authority \" : \" IRS \" , \n \" file \" : { \n \" file_name \" : \" w9_form.pdf \" , \n \" content_type \" : \" application/pdf \" , \n \" content \" : \" base64_encoded_content \"\n } \n }, \n \" financial_document \" : { \n \" subtype \" : \" BALANCE_SHEET \" , \n \" period_start \" : \" 2025-01-01 \" , \n \" period_end \" : \" 2025-12-31 \" , \n \" fiscal_year \" : \" 2025 \" , \n \" audited \" : false, \n \" auditor_name \" : null, \n \" file \" : { \n \" file_name \" : \" balance_sheet_2025.pdf \" , \n \" content_type \" : \" application/pdf \" , \n \" content \" : \" base64_encoded_content \"\n } \n }, \n \" biometric_verification \" : { \n \" verification_method \" : \" FACIAL_RECOGNITION \" , \n \" capture_method \" : \" LIVE_CAPTURE \" , \n \" capture_timestamp \" : \" 2026-02-01T10:00:00Z \" , \n \" liveness_check_passed \" : true, \n \" confidence_score \" : 0.98, \n \" verification_provider \" : \" Onfido \" , \n \" live_image \" : { \n \" file_name \" : \" live_capture.jpg \" , \n \" content_type \" : \" image/jpeg \" , \n \" content \" : \" base64_encoded_content \"\n }, \n \" reference_image \" : { \n \" file_name \" : \" id_photo_reference.jpg \" , \n \" content_type \" : \" image/jpeg \" , \n \" content \" : \" base64_encoded_content \"\n } \n }, \n \" employment_information \" : { \n \" status \" : \" EMPLOYED \" , \n \" employer_name \" : \" Tech Corp Inc \" , \n \" occupation \" : \" Senior Software Engineer \" , \n \" industry \" : \" TECHNOLOGY \" , \n \" started_at \" : \" 2020-03-15 \" , \n \" annual_income \" : { \n \" amount \" : 150000, \n \" currency \" : \" USD \"\n }, \n \" verification_document \" : { \n \" file_name \" : \" employment_letter.pdf \" , \n \" content_type \" : \" application/pdf \" , \n \" content \" : \" base64_encoded_content \"\n } \n } \n } \n ] \n }" ))
. build ();
HttpResponse < String > response = client. send (request, HttpResponse.BodyHandlers. ofString ());
System.out. println (response. body ()); require "net/http"
require "uri"
uri = URI ( "https://api-sandbox.whitelabel.com/v1/banking/entities/<entity_id>/onboardings" )
http = Net :: HTTP . new (uri. host , uri. port )
http. use_ssl = uri. scheme == "https"
request = Net :: HTTP :: Post . new (uri)
request[ "Content-Type" ] = "application/json"
request[ "public-api-key" ] = "<public-api-key>"
request[ "private-secret-key" ] = "<private-secret-key>"
request. body = "{ \n \" account_id \" : \" 550e8400-e29b-41d4-a716-446655440000 \" , \n \" yuno_connection_id \" : \" conn_550e8400-e29b-41d4-a716-446655440001 \" , \n \" onboarding_type \" : \" ONE_STEP \" , \n \" compliance_declaration \" : { \n \" terms_of_service \" : { \n \" accepted \" : true, \n \" version \" : \" 1.2.0 \" , \n \" accepted_at \" : \" 2026-02-01T10:00:00Z \" , \n \" accepted_ip \" : \" 192.168.1.1 \"\n }, \n \" privacy_policy \" : { \n \" accepted \" : true, \n \" version \" : \" 2.1.0 \" , \n \" accepted_at \" : \" 2026-02-01T10:00:00Z \" , \n \" accepted_ip \" : \" 192.168.1.1 \"\n } \n }, \n \" risk_assessment \" : { \n \" assessed_at \" : \" 2026-02-01T10:00:00Z \" , \n \" pep_status \" : { \n \" is_pep \" : false, \n \" pep_level \" : null, \n \" position \" : null, \n \" country \" : null \n }, \n \" rca_status \" : { \n \" risk_level \" : \" LOW \" , \n \" classified_at \" : \" 2026-02-01T10:00:00Z \" , \n \" assessed_by \" : \" Merchant Compliance Team \"\n }, \n \" sanctions_screening \" : { \n \" appears_on_sanctions_list \" : false, \n \" sanctions_list_name \" : null, \n \" screened_at \" : \" 2026-02-01T09:00:00Z \"\n } \n }, \n \" source_of_funds \" : { \n \" primary_source \" : \" EMPLOYMENT_SALARY \" , \n \" secondary_sources \" : [ \n \" INVESTMENTS \"\n ], \n \" description \" : \" Primary income from full-time employment as software engineer, supplemented by stock portfolio dividends \" , \n \" estimated_annual_income \" : { \n \" amount \" : 175000, \n \" currency \" : \" USD \"\n } \n }, \n \" documentation \" : [ \n { \n \" type \" : \" IDENTITY_DOCUMENT \" , \n \" identity_document \" : { \n \" subtype \" : \" DRIVERS_LICENSE \" , \n \" document_number \" : \" D1234567 \" , \n \" issuing_country \" : \" US \" , \n \" issuing_state \" : \" CA \" , \n \" issued_at \" : \" 2020-01-15 \" , \n \" expires_at \" : \" 2028-01-15 \" , \n \" front_image \" : { \n \" file_name \" : \" license_front.jpg \" , \n \" content_type \" : \" image/jpeg \" , \n \" content \" : \" base64_encoded_content \"\n }, \n \" back_image \" : { \n \" file_name \" : \" license_back.jpg \" , \n \" content_type \" : \" image/jpeg \" , \n \" content \" : \" base64_encoded_content \"\n } \n }, \n \" proof_of_address \" : { \n \" subtype \" : \" UTILITY_BILL \" , \n \" provider_name \" : \" PG&E \" , \n \" bill_type \" : \" ELECTRICITY \" , \n \" issued_at \" : \" 2026-01-01 \" , \n \" account_number \" : \" ACC-123456 \" , \n \" verified_address \" : { \n \" address_line_1 \" : \" 123 Main St \" , \n \" city \" : \" San Francisco \" , \n \" state \" : \" CA \" , \n \" zip_code \" : \" 94102 \" , \n \" country \" : \" US \"\n }, \n \" file \" : { \n \" file_name \" : \" utility_bill.pdf \" , \n \" content_type \" : \" application/pdf \" , \n \" content \" : \" base64_encoded_content \"\n } \n }, \n \" bank_statement \" : { \n \" bank_name \" : \" Chase Bank \" , \n \" account_number_last_4 \" : \" 1234 \" , \n \" statement_period_start \" : \" 2025-12-01 \" , \n \" statement_period_end \" : \" 2025-12-31 \" , \n \" file \" : { \n \" file_name \" : \" bank_statement_dec_2025.pdf \" , \n \" content_type \" : \" application/pdf \" , \n \" content \" : \" base64_encoded_content \"\n } \n }, \n \" business_document \" : { \n \" subtype \" : \" ARTICLES_OF_INCORPORATION \" , \n \" registration_number \" : \" REG-2020-12345 \" , \n \" registered_at \" : \" 2020-01-15 \" , \n \" issuing_state \" : \" CA \" , \n \" issuing_authority \" : \" California Secretary of State \" , \n \" file \" : { \n \" file_name \" : \" articles_of_incorporation.pdf \" , \n \" content_type \" : \" application/pdf \" , \n \" content \" : \" base64_encoded_content \"\n } \n }, \n \" tax_information \" : { \n \" tax_records \" : [ \n { \n \" country \" : \" US \" , \n \" tax_id \" : \" 123-45-6789 \" , \n \" tax_id_type \" : \" SSN \" , \n \" is_primary \" : true \n } \n ], \n \" tax_document_type \" : \" W9 \" , \n \" tax_year \" : \" 2025 \" , \n \" issuing_authority \" : \" IRS \" , \n \" file \" : { \n \" file_name \" : \" w9_form.pdf \" , \n \" content_type \" : \" application/pdf \" , \n \" content \" : \" base64_encoded_content \"\n } \n }, \n \" financial_document \" : { \n \" subtype \" : \" BALANCE_SHEET \" , \n \" period_start \" : \" 2025-01-01 \" , \n \" period_end \" : \" 2025-12-31 \" , \n \" fiscal_year \" : \" 2025 \" , \n \" audited \" : false, \n \" auditor_name \" : null, \n \" file \" : { \n \" file_name \" : \" balance_sheet_2025.pdf \" , \n \" content_type \" : \" application/pdf \" , \n \" content \" : \" base64_encoded_content \"\n } \n }, \n \" biometric_verification \" : { \n \" verification_method \" : \" FACIAL_RECOGNITION \" , \n \" capture_method \" : \" LIVE_CAPTURE \" , \n \" capture_timestamp \" : \" 2026-02-01T10:00:00Z \" , \n \" liveness_check_passed \" : true, \n \" confidence_score \" : 0.98, \n \" verification_provider \" : \" Onfido \" , \n \" live_image \" : { \n \" file_name \" : \" live_capture.jpg \" , \n \" content_type \" : \" image/jpeg \" , \n \" content \" : \" base64_encoded_content \"\n }, \n \" reference_image \" : { \n \" file_name \" : \" id_photo_reference.jpg \" , \n \" content_type \" : \" image/jpeg \" , \n \" content \" : \" base64_encoded_content \"\n } \n }, \n \" employment_information \" : { \n \" status \" : \" EMPLOYED \" , \n \" employer_name \" : \" Tech Corp Inc \" , \n \" occupation \" : \" Senior Software Engineer \" , \n \" industry \" : \" TECHNOLOGY \" , \n \" started_at \" : \" 2020-03-15 \" , \n \" annual_income \" : { \n \" amount \" : 150000, \n \" currency \" : \" USD \"\n }, \n \" verification_document \" : { \n \" file_name \" : \" employment_letter.pdf \" , \n \" content_type \" : \" application/pdf \" , \n \" content \" : \" base64_encoded_content \"\n } \n } \n } \n ] \n }"
response = http. request (request)
puts response. body ⧉