curl -X POST "https://api-sandbox.whitelabel.com/v1/recipients/<recipient_id>/onboardings" \
-H "Content-Type: application/json" \
-H "public-api-key: <public-api-key>" \
-H "private-secret-key: <private-secret-key>" \
-d '{
"account_id": "9104911d-5df9-429e-8488-ad41abea1a4b",
"type": "PREVIOUSLY_ONBOARDED",
"workflow": "HOSTED_BY_PROVIDER",
"description": "string",
"callback_url": "https://www.google.com",
"provider": {
"id": "PAGARME",
"connection_id": "104911d-5df9-429e-8488-ad41abea1a4b",
"recipient_id": "AAAAA01",
"recipient_type": "MEAL"
},
"documentation": [
{
"file_name": "PDF",
"content_type": "application/pdf",
"content_category": "ACCOUNT_REQUIREMENT",
"content": "JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMiAwIFIKPj4KZW5kb2JqCg=="
}
],
"withdrawal_methods": {
"bank": {
"code": "246",
"branch": "XXXX",
"branch_digit": "string",
"account": "1093333333",
"account_digit": "string",
"account_type": "SAVINGS",
"routing": "XXXXYYYYC",
"country": "CO",
"currency": "COP"
}
},
"legal_representatives": [
{
"merchant_reference": "string",
"first_name": "John",
"last_name": "Doe",
"email": "john.doe@email.com",
"date_of_birth": "1990-02-28",
"country": "CO",
"nationality": "CO",
"title": "CTO",
"publicly_exposed_person": false,
"ultimate_beneficial_owner": false
}
],
"terms_of_service": {
"acceptance": true,
"date": "2025-07-21T20:43:54.786342Z",
"ip": "192.168.1.100"
}
}' const response = await fetch ( `https://api-sandbox.whitelabel.com/v1/recipients/${ recipient_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" : "9104911d-5df9-429e-8488-ad41abea1a4b" ,
"type" : "PREVIOUSLY_ONBOARDED" ,
"workflow" : "HOSTED_BY_PROVIDER" ,
"description" : "string" ,
"callback_url" : "https://www.google.com" ,
"provider" : {
"id" : "PAGARME" ,
"connection_id" : "104911d-5df9-429e-8488-ad41abea1a4b" ,
"recipient_id" : "AAAAA01" ,
"recipient_type" : "MEAL"
},
"documentation" : [
{
"file_name" : "PDF" ,
"content_type" : "application/pdf" ,
"content_category" : "ACCOUNT_REQUIREMENT" ,
"content" : "JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMiAwIFIKPj4KZW5kb2JqCg=="
}
],
"withdrawal_methods" : {
"bank" : {
"code" : "246" ,
"branch" : "XXXX" ,
"branch_digit" : "string" ,
"account" : "1093333333" ,
"account_digit" : "string" ,
"account_type" : "SAVINGS" ,
"routing" : "XXXXYYYYC" ,
"country" : "CO" ,
"currency" : "COP"
}
},
"legal_representatives" : [
{
"merchant_reference" : "string" ,
"first_name" : "John" ,
"last_name" : "Doe" ,
"email" : "john.doe@email.com" ,
"date_of_birth" : "1990-02-28" ,
"country" : "CO" ,
"nationality" : "CO" ,
"title" : "CTO" ,
"publicly_exposed_person" : false ,
"ultimate_beneficial_owner" : false
}
],
"terms_of_service" : {
"acceptance" : true ,
"date" : "2025-07-21T20:43:54.786342Z" ,
"ip" : "192.168.1.100"
}
})
});
const data = await response. json (); import requests
response = requests.request(
"POST" ,
"https://api-sandbox.whitelabel.com/v1/recipients/ {recipient_id} /onboardings" ,
headers = { "public-api-key" : "<public-api-key>" , "private-secret-key" : "<private-secret-key>" },
json = {
"account_id" : "9104911d-5df9-429e-8488-ad41abea1a4b" ,
"type" : "PREVIOUSLY_ONBOARDED" ,
"workflow" : "HOSTED_BY_PROVIDER" ,
"description" : "string" ,
"callback_url" : "https://www.google.com" ,
"provider" : {
"id" : "PAGARME" ,
"connection_id" : "104911d-5df9-429e-8488-ad41abea1a4b" ,
"recipient_id" : "AAAAA01" ,
"recipient_type" : "MEAL"
},
"documentation" : [
{
"file_name" : "PDF" ,
"content_type" : "application/pdf" ,
"content_category" : "ACCOUNT_REQUIREMENT" ,
"content" : "JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMiAwIFIKPj4KZW5kb2JqCg=="
}
],
"withdrawal_methods" : {
"bank" : {
"code" : "246" ,
"branch" : "XXXX" ,
"branch_digit" : "string" ,
"account" : "1093333333" ,
"account_digit" : "string" ,
"account_type" : "SAVINGS" ,
"routing" : "XXXXYYYYC" ,
"country" : "CO" ,
"currency" : "COP"
}
},
"legal_representatives" : [
{
"merchant_reference" : "string" ,
"first_name" : "John" ,
"last_name" : "Doe" ,
"email" : "john.doe@email.com" ,
"date_of_birth" : "1990-02-28" ,
"country" : "CO" ,
"nationality" : "CO" ,
"title" : "CTO" ,
"publicly_exposed_person" : False ,
"ultimate_beneficial_owner" : False
}
],
"terms_of_service" : {
"acceptance" : True ,
"date" : "2025-07-21T20:43:54.786342Z" ,
"ip" : "192.168.1.100"
}
},
)
data = response.json() <? php
$ch = curl_init ();
curl_setopt ($ch, CURLOPT_URL , "https://api-sandbox.whitelabel.com/v1/recipients/<recipient_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": "9104911d-5df9-429e-8488-ad41abea1a4b",
"type": "PREVIOUSLY_ONBOARDED",
"workflow": "HOSTED_BY_PROVIDER",
"description": "string",
"callback_url": "https://www.google.com",
"provider": {
"id": "PAGARME",
"connection_id": "104911d-5df9-429e-8488-ad41abea1a4b",
"recipient_id": "AAAAA01",
"recipient_type": "MEAL"
},
"documentation": [
{
"file_name": "PDF",
"content_type": "application/pdf",
"content_category": "ACCOUNT_REQUIREMENT",
"content": "JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMiAwIFIKPj4KZW5kb2JqCg=="
}
],
"withdrawal_methods": {
"bank": {
"code": "246",
"branch": "XXXX",
"branch_digit": "string",
"account": "1093333333",
"account_digit": "string",
"account_type": "SAVINGS",
"routing": "XXXXYYYYC",
"country": "CO",
"currency": "COP"
}
},
"legal_representatives": [
{
"merchant_reference": "string",
"first_name": "John",
"last_name": "Doe",
"email": "john.doe@email.com",
"date_of_birth": "1990-02-28",
"country": "CO",
"nationality": "CO",
"title": "CTO",
"publicly_exposed_person": false,
"ultimate_beneficial_owner": false
}
],
"terms_of_service": {
"acceptance": true,
"date": "2025-07-21T20:43:54.786342Z",
"ip": "192.168.1.100"
}
}' );
$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/recipients/<recipient_id>/onboardings" , strings. NewReader ( `{
"account_id": "9104911d-5df9-429e-8488-ad41abea1a4b",
"type": "PREVIOUSLY_ONBOARDED",
"workflow": "HOSTED_BY_PROVIDER",
"description": "string",
"callback_url": "https://www.google.com",
"provider": {
"id": "PAGARME",
"connection_id": "104911d-5df9-429e-8488-ad41abea1a4b",
"recipient_id": "AAAAA01",
"recipient_type": "MEAL"
},
"documentation": [
{
"file_name": "PDF",
"content_type": "application/pdf",
"content_category": "ACCOUNT_REQUIREMENT",
"content": "JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMiAwIFIKPj4KZW5kb2JqCg=="
}
],
"withdrawal_methods": {
"bank": {
"code": "246",
"branch": "XXXX",
"branch_digit": "string",
"account": "1093333333",
"account_digit": "string",
"account_type": "SAVINGS",
"routing": "XXXXYYYYC",
"country": "CO",
"currency": "COP"
}
},
"legal_representatives": [
{
"merchant_reference": "string",
"first_name": "John",
"last_name": "Doe",
"email": "john.doe@email.com",
"date_of_birth": "1990-02-28",
"country": "CO",
"nationality": "CO",
"title": "CTO",
"publicly_exposed_person": false,
"ultimate_beneficial_owner": false
}
],
"terms_of_service": {
"acceptance": true,
"date": "2025-07-21T20:43:54.786342Z",
"ip": "192.168.1.100"
}
}` ))
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/recipients/<recipient_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 \" : \" 9104911d-5df9-429e-8488-ad41abea1a4b \" , \n \" type \" : \" PREVIOUSLY_ONBOARDED \" , \n \" workflow \" : \" HOSTED_BY_PROVIDER \" , \n \" description \" : \" string \" , \n \" callback_url \" : \" https://www.google.com \" , \n \" provider \" : { \n \" id \" : \" PAGARME \" , \n \" connection_id \" : \" 104911d-5df9-429e-8488-ad41abea1a4b \" , \n \" recipient_id \" : \" AAAAA01 \" , \n \" recipient_type \" : \" MEAL \"\n }, \n \" documentation \" : [ \n { \n \" file_name \" : \" PDF \" , \n \" content_type \" : \" application/pdf \" , \n \" content_category \" : \" ACCOUNT_REQUIREMENT \" , \n \" content \" : \" JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMiAwIFIKPj4KZW5kb2JqCg== \"\n } \n ], \n \" withdrawal_methods \" : { \n \" bank \" : { \n \" code \" : \" 246 \" , \n \" branch \" : \" XXXX \" , \n \" branch_digit \" : \" string \" , \n \" account \" : \" 1093333333 \" , \n \" account_digit \" : \" string \" , \n \" account_type \" : \" SAVINGS \" , \n \" routing \" : \" XXXXYYYYC \" , \n \" country \" : \" CO \" , \n \" currency \" : \" COP \"\n } \n }, \n \" legal_representatives \" : [ \n { \n \" merchant_reference \" : \" string \" , \n \" first_name \" : \" John \" , \n \" last_name \" : \" Doe \" , \n \" email \" : \" john.doe@email.com \" , \n \" date_of_birth \" : \" 1990-02-28 \" , \n \" country \" : \" CO \" , \n \" nationality \" : \" CO \" , \n \" title \" : \" CTO \" , \n \" publicly_exposed_person \" : false, \n \" ultimate_beneficial_owner \" : false \n } \n ], \n \" terms_of_service \" : { \n \" acceptance \" : true, \n \" date \" : \" 2025-07-21T20:43:54.786342Z \" , \n \" ip \" : \" 192.168.1.100 \"\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/recipients/<recipient_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 \" : \" 9104911d-5df9-429e-8488-ad41abea1a4b \" , \n \" type \" : \" PREVIOUSLY_ONBOARDED \" , \n \" workflow \" : \" HOSTED_BY_PROVIDER \" , \n \" description \" : \" string \" , \n \" callback_url \" : \" https://www.google.com \" , \n \" provider \" : { \n \" id \" : \" PAGARME \" , \n \" connection_id \" : \" 104911d-5df9-429e-8488-ad41abea1a4b \" , \n \" recipient_id \" : \" AAAAA01 \" , \n \" recipient_type \" : \" MEAL \"\n }, \n \" documentation \" : [ \n { \n \" file_name \" : \" PDF \" , \n \" content_type \" : \" application/pdf \" , \n \" content_category \" : \" ACCOUNT_REQUIREMENT \" , \n \" content \" : \" JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMiAwIFIKPj4KZW5kb2JqCg== \"\n } \n ], \n \" withdrawal_methods \" : { \n \" bank \" : { \n \" code \" : \" 246 \" , \n \" branch \" : \" XXXX \" , \n \" branch_digit \" : \" string \" , \n \" account \" : \" 1093333333 \" , \n \" account_digit \" : \" string \" , \n \" account_type \" : \" SAVINGS \" , \n \" routing \" : \" XXXXYYYYC \" , \n \" country \" : \" CO \" , \n \" currency \" : \" COP \"\n } \n }, \n \" legal_representatives \" : [ \n { \n \" merchant_reference \" : \" string \" , \n \" first_name \" : \" John \" , \n \" last_name \" : \" Doe \" , \n \" email \" : \" john.doe@email.com \" , \n \" date_of_birth \" : \" 1990-02-28 \" , \n \" country \" : \" CO \" , \n \" nationality \" : \" CO \" , \n \" title \" : \" CTO \" , \n \" publicly_exposed_person \" : false, \n \" ultimate_beneficial_owner \" : false \n } \n ], \n \" terms_of_service \" : { \n \" acceptance \" : true, \n \" date \" : \" 2025-07-21T20:43:54.786342Z \" , \n \" ip \" : \" 192.168.1.100 \"\n } \n }"
response = http. request (request)
puts response. body ⧉