curl -X PATCH "https://api-sandbox.whitelabel.com/v1/banking/entities/<entity_id>/onboardings/<onboarding_id>" \
-H "Content-Type: application/json" \
-H "public-api-key: <public-api-key>" \
-H "private-secret-key: <private-secret-key>" \
-d '{
"account_id": "550e8400-e29b-41d4-a716-446655440000",
"compliance_declaration": {
"terms_of_service": {
"accepted": true,
"version": "1.2.0",
"accepted_at": "2026-02-01T10:05:00Z",
"accepted_ip": "192.168.1.1"
},
"privacy_policy": {
"accepted": true,
"version": "2.1.0",
"accepted_at": "2026-02-01T10:05:00Z",
"accepted_ip": "192.168.1.1"
}
},
"risk_assessment": {
"assessed_at": "2026-02-01T10:05:00Z",
"pep_status": {
"is_pep": false,
"pep_level": null,
"position": null,
"country": null
},
"rca_status": {
"risk_level": "LOW",
"classified_at": "2026-02-01T10:05: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, supplemented by investment portfolio",
"estimated_annual_income": {
"amount": 175000,
"currency": "USD"
}
},
"documentation": [
{
"type": "BANK_STATEMENT"
}
]
}' const response = await fetch ( `https://api-sandbox.whitelabel.com/v1/banking/entities/${ entity_id }/onboardings/${ onboarding_id }` , {
method: 'PATCH' ,
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" ,
"compliance_declaration" : {
"terms_of_service" : {
"accepted" : true ,
"version" : "1.2.0" ,
"accepted_at" : "2026-02-01T10:05:00Z" ,
"accepted_ip" : "192.168.1.1"
},
"privacy_policy" : {
"accepted" : true ,
"version" : "2.1.0" ,
"accepted_at" : "2026-02-01T10:05:00Z" ,
"accepted_ip" : "192.168.1.1"
}
},
"risk_assessment" : {
"assessed_at" : "2026-02-01T10:05:00Z" ,
"pep_status" : {
"is_pep" : false ,
"pep_level" : null ,
"position" : null ,
"country" : null
},
"rca_status" : {
"risk_level" : "LOW" ,
"classified_at" : "2026-02-01T10:05: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, supplemented by investment portfolio" ,
"estimated_annual_income" : {
"amount" : 175000 ,
"currency" : "USD"
}
},
"documentation" : [
{
"type" : "BANK_STATEMENT"
}
]
})
});
const data = await response. json (); import requests
response = requests.request(
"PATCH" ,
"https://api-sandbox.whitelabel.com/v1/banking/entities/ {entity_id} /onboardings/ {onboarding_id} " ,
headers = { "public-api-key" : "<public-api-key>" , "private-secret-key" : "<private-secret-key>" },
json = {
"account_id" : "550e8400-e29b-41d4-a716-446655440000" ,
"compliance_declaration" : {
"terms_of_service" : {
"accepted" : True ,
"version" : "1.2.0" ,
"accepted_at" : "2026-02-01T10:05:00Z" ,
"accepted_ip" : "192.168.1.1"
},
"privacy_policy" : {
"accepted" : True ,
"version" : "2.1.0" ,
"accepted_at" : "2026-02-01T10:05:00Z" ,
"accepted_ip" : "192.168.1.1"
}
},
"risk_assessment" : {
"assessed_at" : "2026-02-01T10:05:00Z" ,
"pep_status" : {
"is_pep" : False ,
"pep_level" : None ,
"position" : None ,
"country" : None
},
"rca_status" : {
"risk_level" : "LOW" ,
"classified_at" : "2026-02-01T10:05: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, supplemented by investment portfolio" ,
"estimated_annual_income" : {
"amount" : 175000 ,
"currency" : "USD"
}
},
"documentation" : [
{
"type" : "BANK_STATEMENT"
}
]
},
)
data = response.json() <? php
$ch = curl_init ();
curl_setopt ($ch, CURLOPT_URL , "https://api-sandbox.whitelabel.com/v1/banking/entities/<entity_id>/onboardings/<onboarding_id>" );
curl_setopt ($ch, CURLOPT_RETURNTRANSFER , true );
curl_setopt ($ch, CURLOPT_CUSTOMREQUEST , "PATCH" );
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",
"compliance_declaration": {
"terms_of_service": {
"accepted": true,
"version": "1.2.0",
"accepted_at": "2026-02-01T10:05:00Z",
"accepted_ip": "192.168.1.1"
},
"privacy_policy": {
"accepted": true,
"version": "2.1.0",
"accepted_at": "2026-02-01T10:05:00Z",
"accepted_ip": "192.168.1.1"
}
},
"risk_assessment": {
"assessed_at": "2026-02-01T10:05:00Z",
"pep_status": {
"is_pep": false,
"pep_level": null,
"position": null,
"country": null
},
"rca_status": {
"risk_level": "LOW",
"classified_at": "2026-02-01T10:05: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, supplemented by investment portfolio",
"estimated_annual_income": {
"amount": 175000,
"currency": "USD"
}
},
"documentation": [
{
"type": "BANK_STATEMENT"
}
]
}' );
$response = curl_exec ($ch);
curl_close ($ch); package main
import (
" fmt "
" io "
" net/http "
" strings "
)
func main () {
req, _ := http. NewRequest ( "PATCH" , "https://api-sandbox.whitelabel.com/v1/banking/entities/<entity_id>/onboardings/<onboarding_id>" , strings. NewReader ( `{
"account_id": "550e8400-e29b-41d4-a716-446655440000",
"compliance_declaration": {
"terms_of_service": {
"accepted": true,
"version": "1.2.0",
"accepted_at": "2026-02-01T10:05:00Z",
"accepted_ip": "192.168.1.1"
},
"privacy_policy": {
"accepted": true,
"version": "2.1.0",
"accepted_at": "2026-02-01T10:05:00Z",
"accepted_ip": "192.168.1.1"
}
},
"risk_assessment": {
"assessed_at": "2026-02-01T10:05:00Z",
"pep_status": {
"is_pep": false,
"pep_level": null,
"position": null,
"country": null
},
"rca_status": {
"risk_level": "LOW",
"classified_at": "2026-02-01T10:05: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, supplemented by investment portfolio",
"estimated_annual_income": {
"amount": 175000,
"currency": "USD"
}
},
"documentation": [
{
"type": "BANK_STATEMENT"
}
]
}` ))
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/<onboarding_id>" ))
. header ( "Content-Type" , "application/json" )
. header ( "public-api-key" , "<public-api-key>" )
. header ( "private-secret-key" , "<private-secret-key>" )
. method ( "PATCH" , HttpRequest.BodyPublishers. ofString ( "{ \n \" account_id \" : \" 550e8400-e29b-41d4-a716-446655440000 \" , \n \" compliance_declaration \" : { \n \" terms_of_service \" : { \n \" accepted \" : true, \n \" version \" : \" 1.2.0 \" , \n \" accepted_at \" : \" 2026-02-01T10:05: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:05:00Z \" , \n \" accepted_ip \" : \" 192.168.1.1 \"\n } \n }, \n \" risk_assessment \" : { \n \" assessed_at \" : \" 2026-02-01T10:05: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:05: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, supplemented by investment portfolio \" , \n \" estimated_annual_income \" : { \n \" amount \" : 175000, \n \" currency \" : \" USD \"\n } \n }, \n \" documentation \" : [ \n { \n \" type \" : \" BANK_STATEMENT \"\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/<onboarding_id>" )
http = Net :: HTTP . new (uri. host , uri. port )
http. use_ssl = uri. scheme == "https"
request = Net :: HTTP :: Patch . 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 \" compliance_declaration \" : { \n \" terms_of_service \" : { \n \" accepted \" : true, \n \" version \" : \" 1.2.0 \" , \n \" accepted_at \" : \" 2026-02-01T10:05: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:05:00Z \" , \n \" accepted_ip \" : \" 192.168.1.1 \"\n } \n }, \n \" risk_assessment \" : { \n \" assessed_at \" : \" 2026-02-01T10:05: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:05: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, supplemented by investment portfolio \" , \n \" estimated_annual_income \" : { \n \" amount \" : 175000, \n \" currency \" : \" USD \"\n } \n }, \n \" documentation \" : [ \n { \n \" type \" : \" BANK_STATEMENT \"\n } \n ] \n }"
response = http. request (request)
puts response. body ⧉