curl -X POST "https://api-sandbox.whitelabel.com/v1/recipients" \
-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",
"merchant_recipient_id": "AAAA01",
"national_entity": "INDIVIDUAL",
"entity_type": "PRIVATE",
"first_name": "John",
"last_name": "Doe",
"date_of_birth": "1990-02-28",
"legal_name": "Arcos dorados S.A.",
"email": "john.doe@email.com",
"country": "CO",
"website": "https://whitelabel.com",
"industry": "VIRTUAL_GOODS",
"merchant_category_code": "string",
"document": {
"document_number": "1093333333",
"document_type": "CC"
},
"phone": {
"country_code": "1",
"number": "5551234567"
},
"address": {
"address_line_1": "Calle 34 # 56 - 78",
"address_line_2": "Apartamento 502, Torre I",
"city": "Bogota",
"country": "CO",
"state": "Cundinamarca",
"zip_code": "111111",
"neighborhood": "Downtown"
},
"split_configuration": {
"calculation_type": "PERCENTAGE",
"percentage": 10.5,
"fixed_amount": 5,
"currency": "USD",
"rounding_mode": "STANDARD"
},
"legal_representatives": [
{
"merchant_reference": "string",
"first_name": "string",
"last_name": "string",
"email": "user@example.com",
"date_of_birth": "2024-01-01",
"country": "string",
"nationality": "string",
"title": "string",
"publicly_exposed_person": true,
"ultimate_beneficial_owner": true
}
],
"withdrawal_methods": {
"bank": {
"code": "246",
"branch": "XXXX",
"branch_digit": "string",
"account": "1093333333",
"account_digit": "string",
"account_type": "SAVINGS",
"routing": "XXXXYYYYC",
"country": "CO",
"currency": "COP",
"payout_schedule": "DAY"
}
},
"documentation": [
{
"file_name": "PDF",
"content_type": "application/pdf",
"content_category": "ACCOUNT_REQUIREMENT",
"content": "JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMiAwIFIKPj4KZW5kb2JqCg=="
}
],
"onboardings": [
{
"account_id": "string",
"type": "PREVIOUSLY_ONBOARDED",
"workflow": "HOSTED_BY_PROVIDER",
"description": "string",
"callback_url": "https://www.google.com",
"provider": {
"id": "PAGARME",
"connection_id": "string",
"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"
}
}
]
}
]
}' const response = await fetch ( `https://api-sandbox.whitelabel.com/v1/recipients` , {
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" ,
"merchant_recipient_id" : "AAAA01" ,
"national_entity" : "INDIVIDUAL" ,
"entity_type" : "PRIVATE" ,
"first_name" : "John" ,
"last_name" : "Doe" ,
"date_of_birth" : "1990-02-28" ,
"legal_name" : "Arcos dorados S.A." ,
"email" : "john.doe@email.com" ,
"country" : "CO" ,
"website" : "https://whitelabel.com" ,
"industry" : "VIRTUAL_GOODS" ,
"merchant_category_code" : "string" ,
"document" : {
"document_number" : "1093333333" ,
"document_type" : "CC"
},
"phone" : {
"country_code" : "1" ,
"number" : "5551234567"
},
"address" : {
"address_line_1" : "Calle 34 # 56 - 78" ,
"address_line_2" : "Apartamento 502, Torre I" ,
"city" : "Bogota" ,
"country" : "CO" ,
"state" : "Cundinamarca" ,
"zip_code" : "111111" ,
"neighborhood" : "Downtown"
},
"split_configuration" : {
"calculation_type" : "PERCENTAGE" ,
"percentage" : 10.5 ,
"fixed_amount" : 5 ,
"currency" : "USD" ,
"rounding_mode" : "STANDARD"
},
"legal_representatives" : [
{
"merchant_reference" : "string" ,
"first_name" : "string" ,
"last_name" : "string" ,
"email" : "user@example.com" ,
"date_of_birth" : "2024-01-01" ,
"country" : "string" ,
"nationality" : "string" ,
"title" : "string" ,
"publicly_exposed_person" : true ,
"ultimate_beneficial_owner" : true
}
],
"withdrawal_methods" : {
"bank" : {
"code" : "246" ,
"branch" : "XXXX" ,
"branch_digit" : "string" ,
"account" : "1093333333" ,
"account_digit" : "string" ,
"account_type" : "SAVINGS" ,
"routing" : "XXXXYYYYC" ,
"country" : "CO" ,
"currency" : "COP" ,
"payout_schedule" : "DAY"
}
},
"documentation" : [
{
"file_name" : "PDF" ,
"content_type" : "application/pdf" ,
"content_category" : "ACCOUNT_REQUIREMENT" ,
"content" : "JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMiAwIFIKPj4KZW5kb2JqCg=="
}
],
"onboardings" : [
{
"account_id" : "string" ,
"type" : "PREVIOUSLY_ONBOARDED" ,
"workflow" : "HOSTED_BY_PROVIDER" ,
"description" : "string" ,
"callback_url" : "https://www.google.com" ,
"provider" : {
"id" : "PAGARME" ,
"connection_id" : "string" ,
"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"
}
}
]
}
]
})
});
const data = await response. json (); import requests
response = requests.request(
"POST" ,
"https://api-sandbox.whitelabel.com/v1/recipients" ,
headers = { "public-api-key" : "<public-api-key>" , "private-secret-key" : "<private-secret-key>" },
json = {
"account_id" : "9104911d-5df9-429e-8488-ad41abea1a4b" ,
"merchant_recipient_id" : "AAAA01" ,
"national_entity" : "INDIVIDUAL" ,
"entity_type" : "PRIVATE" ,
"first_name" : "John" ,
"last_name" : "Doe" ,
"date_of_birth" : "1990-02-28" ,
"legal_name" : "Arcos dorados S.A." ,
"email" : "john.doe@email.com" ,
"country" : "CO" ,
"website" : "https://whitelabel.com" ,
"industry" : "VIRTUAL_GOODS" ,
"merchant_category_code" : "string" ,
"document" : {
"document_number" : "1093333333" ,
"document_type" : "CC"
},
"phone" : {
"country_code" : "1" ,
"number" : "5551234567"
},
"address" : {
"address_line_1" : "Calle 34 # 56 - 78" ,
"address_line_2" : "Apartamento 502, Torre I" ,
"city" : "Bogota" ,
"country" : "CO" ,
"state" : "Cundinamarca" ,
"zip_code" : "111111" ,
"neighborhood" : "Downtown"
},
"split_configuration" : {
"calculation_type" : "PERCENTAGE" ,
"percentage" : 10.5 ,
"fixed_amount" : 5 ,
"currency" : "USD" ,
"rounding_mode" : "STANDARD"
},
"legal_representatives" : [
{
"merchant_reference" : "string" ,
"first_name" : "string" ,
"last_name" : "string" ,
"email" : "user@example.com" ,
"date_of_birth" : "2024-01-01" ,
"country" : "string" ,
"nationality" : "string" ,
"title" : "string" ,
"publicly_exposed_person" : True ,
"ultimate_beneficial_owner" : True
}
],
"withdrawal_methods" : {
"bank" : {
"code" : "246" ,
"branch" : "XXXX" ,
"branch_digit" : "string" ,
"account" : "1093333333" ,
"account_digit" : "string" ,
"account_type" : "SAVINGS" ,
"routing" : "XXXXYYYYC" ,
"country" : "CO" ,
"currency" : "COP" ,
"payout_schedule" : "DAY"
}
},
"documentation" : [
{
"file_name" : "PDF" ,
"content_type" : "application/pdf" ,
"content_category" : "ACCOUNT_REQUIREMENT" ,
"content" : "JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMiAwIFIKPj4KZW5kb2JqCg=="
}
],
"onboardings" : [
{
"account_id" : "string" ,
"type" : "PREVIOUSLY_ONBOARDED" ,
"workflow" : "HOSTED_BY_PROVIDER" ,
"description" : "string" ,
"callback_url" : "https://www.google.com" ,
"provider" : {
"id" : "PAGARME" ,
"connection_id" : "string" ,
"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"
}
}
]
}
]
},
)
data = response.json() <? php
$ch = curl_init ();
curl_setopt ($ch, CURLOPT_URL , "https://api-sandbox.whitelabel.com/v1/recipients" );
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",
"merchant_recipient_id": "AAAA01",
"national_entity": "INDIVIDUAL",
"entity_type": "PRIVATE",
"first_name": "John",
"last_name": "Doe",
"date_of_birth": "1990-02-28",
"legal_name": "Arcos dorados S.A.",
"email": "john.doe@email.com",
"country": "CO",
"website": "https://whitelabel.com",
"industry": "VIRTUAL_GOODS",
"merchant_category_code": "string",
"document": {
"document_number": "1093333333",
"document_type": "CC"
},
"phone": {
"country_code": "1",
"number": "5551234567"
},
"address": {
"address_line_1": "Calle 34 # 56 - 78",
"address_line_2": "Apartamento 502, Torre I",
"city": "Bogota",
"country": "CO",
"state": "Cundinamarca",
"zip_code": "111111",
"neighborhood": "Downtown"
},
"split_configuration": {
"calculation_type": "PERCENTAGE",
"percentage": 10.5,
"fixed_amount": 5,
"currency": "USD",
"rounding_mode": "STANDARD"
},
"legal_representatives": [
{
"merchant_reference": "string",
"first_name": "string",
"last_name": "string",
"email": "user@example.com",
"date_of_birth": "2024-01-01",
"country": "string",
"nationality": "string",
"title": "string",
"publicly_exposed_person": true,
"ultimate_beneficial_owner": true
}
],
"withdrawal_methods": {
"bank": {
"code": "246",
"branch": "XXXX",
"branch_digit": "string",
"account": "1093333333",
"account_digit": "string",
"account_type": "SAVINGS",
"routing": "XXXXYYYYC",
"country": "CO",
"currency": "COP",
"payout_schedule": "DAY"
}
},
"documentation": [
{
"file_name": "PDF",
"content_type": "application/pdf",
"content_category": "ACCOUNT_REQUIREMENT",
"content": "JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMiAwIFIKPj4KZW5kb2JqCg=="
}
],
"onboardings": [
{
"account_id": "string",
"type": "PREVIOUSLY_ONBOARDED",
"workflow": "HOSTED_BY_PROVIDER",
"description": "string",
"callback_url": "https://www.google.com",
"provider": {
"id": "PAGARME",
"connection_id": "string",
"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"
}
}
]
}
]
}' );
$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" , strings. NewReader ( `{
"account_id": "9104911d-5df9-429e-8488-ad41abea1a4b",
"merchant_recipient_id": "AAAA01",
"national_entity": "INDIVIDUAL",
"entity_type": "PRIVATE",
"first_name": "John",
"last_name": "Doe",
"date_of_birth": "1990-02-28",
"legal_name": "Arcos dorados S.A.",
"email": "john.doe@email.com",
"country": "CO",
"website": "https://whitelabel.com",
"industry": "VIRTUAL_GOODS",
"merchant_category_code": "string",
"document": {
"document_number": "1093333333",
"document_type": "CC"
},
"phone": {
"country_code": "1",
"number": "5551234567"
},
"address": {
"address_line_1": "Calle 34 # 56 - 78",
"address_line_2": "Apartamento 502, Torre I",
"city": "Bogota",
"country": "CO",
"state": "Cundinamarca",
"zip_code": "111111",
"neighborhood": "Downtown"
},
"split_configuration": {
"calculation_type": "PERCENTAGE",
"percentage": 10.5,
"fixed_amount": 5,
"currency": "USD",
"rounding_mode": "STANDARD"
},
"legal_representatives": [
{
"merchant_reference": "string",
"first_name": "string",
"last_name": "string",
"email": "user@example.com",
"date_of_birth": "2024-01-01",
"country": "string",
"nationality": "string",
"title": "string",
"publicly_exposed_person": true,
"ultimate_beneficial_owner": true
}
],
"withdrawal_methods": {
"bank": {
"code": "246",
"branch": "XXXX",
"branch_digit": "string",
"account": "1093333333",
"account_digit": "string",
"account_type": "SAVINGS",
"routing": "XXXXYYYYC",
"country": "CO",
"currency": "COP",
"payout_schedule": "DAY"
}
},
"documentation": [
{
"file_name": "PDF",
"content_type": "application/pdf",
"content_category": "ACCOUNT_REQUIREMENT",
"content": "JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMiAwIFIKPj4KZW5kb2JqCg=="
}
],
"onboardings": [
{
"account_id": "string",
"type": "PREVIOUSLY_ONBOARDED",
"workflow": "HOSTED_BY_PROVIDER",
"description": "string",
"callback_url": "https://www.google.com",
"provider": {
"id": "PAGARME",
"connection_id": "string",
"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"
}
}
]
}
]
}` ))
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" ))
. 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 \" merchant_recipient_id \" : \" AAAA01 \" , \n \" national_entity \" : \" INDIVIDUAL \" , \n \" entity_type \" : \" PRIVATE \" , \n \" first_name \" : \" John \" , \n \" last_name \" : \" Doe \" , \n \" date_of_birth \" : \" 1990-02-28 \" , \n \" legal_name \" : \" Arcos dorados S.A. \" , \n \" email \" : \" john.doe@email.com \" , \n \" country \" : \" CO \" , \n \" website \" : \" https://whitelabel.com \" , \n \" industry \" : \" VIRTUAL_GOODS \" , \n \" merchant_category_code \" : \" string \" , \n \" document \" : { \n \" document_number \" : \" 1093333333 \" , \n \" document_type \" : \" CC \"\n }, \n \" phone \" : { \n \" country_code \" : \" 1 \" , \n \" number \" : \" 5551234567 \"\n }, \n \" address \" : { \n \" address_line_1 \" : \" Calle 34 # 56 - 78 \" , \n \" address_line_2 \" : \" Apartamento 502, Torre I \" , \n \" city \" : \" Bogota \" , \n \" country \" : \" CO \" , \n \" state \" : \" Cundinamarca \" , \n \" zip_code \" : \" 111111 \" , \n \" neighborhood \" : \" Downtown \"\n }, \n \" split_configuration \" : { \n \" calculation_type \" : \" PERCENTAGE \" , \n \" percentage \" : 10.5, \n \" fixed_amount \" : 5, \n \" currency \" : \" USD \" , \n \" rounding_mode \" : \" STANDARD \"\n }, \n \" legal_representatives \" : [ \n { \n \" merchant_reference \" : \" string \" , \n \" first_name \" : \" string \" , \n \" last_name \" : \" string \" , \n \" email \" : \" user@example.com \" , \n \" date_of_birth \" : \" 2024-01-01 \" , \n \" country \" : \" string \" , \n \" nationality \" : \" string \" , \n \" title \" : \" string \" , \n \" publicly_exposed_person \" : true, \n \" ultimate_beneficial_owner \" : true \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 \" payout_schedule \" : \" DAY \"\n } \n }, \n \" documentation \" : [ \n { \n \" file_name \" : \" PDF \" , \n \" content_type \" : \" application/pdf \" , \n \" content_category \" : \" ACCOUNT_REQUIREMENT \" , \n \" content \" : \" JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMiAwIFIKPj4KZW5kb2JqCg== \"\n } \n ], \n \" onboardings \" : [ \n { \n \" account_id \" : \" string \" , \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 \" : \" string \" , \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 { \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 ] \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/recipients" )
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 \" merchant_recipient_id \" : \" AAAA01 \" , \n \" national_entity \" : \" INDIVIDUAL \" , \n \" entity_type \" : \" PRIVATE \" , \n \" first_name \" : \" John \" , \n \" last_name \" : \" Doe \" , \n \" date_of_birth \" : \" 1990-02-28 \" , \n \" legal_name \" : \" Arcos dorados S.A. \" , \n \" email \" : \" john.doe@email.com \" , \n \" country \" : \" CO \" , \n \" website \" : \" https://whitelabel.com \" , \n \" industry \" : \" VIRTUAL_GOODS \" , \n \" merchant_category_code \" : \" string \" , \n \" document \" : { \n \" document_number \" : \" 1093333333 \" , \n \" document_type \" : \" CC \"\n }, \n \" phone \" : { \n \" country_code \" : \" 1 \" , \n \" number \" : \" 5551234567 \"\n }, \n \" address \" : { \n \" address_line_1 \" : \" Calle 34 # 56 - 78 \" , \n \" address_line_2 \" : \" Apartamento 502, Torre I \" , \n \" city \" : \" Bogota \" , \n \" country \" : \" CO \" , \n \" state \" : \" Cundinamarca \" , \n \" zip_code \" : \" 111111 \" , \n \" neighborhood \" : \" Downtown \"\n }, \n \" split_configuration \" : { \n \" calculation_type \" : \" PERCENTAGE \" , \n \" percentage \" : 10.5, \n \" fixed_amount \" : 5, \n \" currency \" : \" USD \" , \n \" rounding_mode \" : \" STANDARD \"\n }, \n \" legal_representatives \" : [ \n { \n \" merchant_reference \" : \" string \" , \n \" first_name \" : \" string \" , \n \" last_name \" : \" string \" , \n \" email \" : \" user@example.com \" , \n \" date_of_birth \" : \" 2024-01-01 \" , \n \" country \" : \" string \" , \n \" nationality \" : \" string \" , \n \" title \" : \" string \" , \n \" publicly_exposed_person \" : true, \n \" ultimate_beneficial_owner \" : true \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 \" payout_schedule \" : \" DAY \"\n } \n }, \n \" documentation \" : [ \n { \n \" file_name \" : \" PDF \" , \n \" content_type \" : \" application/pdf \" , \n \" content_category \" : \" ACCOUNT_REQUIREMENT \" , \n \" content \" : \" JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMiAwIFIKPj4KZW5kb2JqCg== \"\n } \n ], \n \" onboardings \" : [ \n { \n \" account_id \" : \" string \" , \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 \" : \" string \" , \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 { \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 ] \n } \n ] \n }"
response = http. request (request)
puts response. body ⧉