市场平台收款方
创建 Onboarding
启动新的 onboarding,向支付服务提供商注册收款方,用于拆分 payout
POST
/
recipients
/
{recipient_id}
/
onboardings
创建 Onboarding
curl --request POST \
--url https://api-sandbox.y.uno/v1/recipients/{recipient_id}/onboardings \
--header 'Content-Type: application/json' \
--header 'private-secret-key: <api-key>' \
--header 'public-api-key: <api-key>' \
--data '
{
"account_id": "{{account-code}}",
"type": "PREVIOUSLY_ONBOARDED",
"workflow": "DIRECT",
"callback_url": "https://merchant.example.com/webhook/onboarding",
"provider": {
"id": "VR",
"connection_id": "{{connection_id}}",
"recipient_id": "test01",
"recipient_type": "MULTI_BENEFITS"
},
"documentation": [
{
"file_name": "onboarding.pdf",
"content_type": "application/pdf",
"content_category": "IDENTIFICATION_DOCUMENT",
"content": "VGV4dG8gZGUgZWplbXBsbyBwYXJhIEJhc2U2NA=="
}
],
"withdrawal_methods": {
"bank": {
"code": "002",
"branch": "002",
"account": "9876543210",
"account_type": "CHECKINGS",
"country": "US",
"currency": "USD",
"routing": "021000022"
}
},
"terms_of_service": {
"acceptance": true,
"date": "2025-07-21T20:43:54.786342Z",
"ip": "129.21.111.11"
}
}
'import requests
url = "https://api-sandbox.y.uno/v1/recipients/{recipient_id}/onboardings"
payload = {
"account_id": "{{account-code}}",
"type": "PREVIOUSLY_ONBOARDED",
"workflow": "DIRECT",
"callback_url": "https://merchant.example.com/webhook/onboarding",
"provider": {
"id": "VR",
"connection_id": "{{connection_id}}",
"recipient_id": "test01",
"recipient_type": "MULTI_BENEFITS"
},
"documentation": [
{
"file_name": "onboarding.pdf",
"content_type": "application/pdf",
"content_category": "IDENTIFICATION_DOCUMENT",
"content": "VGV4dG8gZGUgZWplbXBsbyBwYXJhIEJhc2U2NA=="
}
],
"withdrawal_methods": { "bank": {
"code": "002",
"branch": "002",
"account": "9876543210",
"account_type": "CHECKINGS",
"country": "US",
"currency": "USD",
"routing": "021000022"
} },
"terms_of_service": {
"acceptance": True,
"date": "2025-07-21T20:43:54.786342Z",
"ip": "129.21.111.11"
}
}
headers = {
"public-api-key": "<api-key>",
"private-secret-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'public-api-key': '<api-key>',
'private-secret-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
account_id: '{{account-code}}',
type: 'PREVIOUSLY_ONBOARDED',
workflow: 'DIRECT',
callback_url: 'https://merchant.example.com/webhook/onboarding',
provider: {
id: 'VR',
connection_id: '{{connection_id}}',
recipient_id: 'test01',
recipient_type: 'MULTI_BENEFITS'
},
documentation: [
{
file_name: 'onboarding.pdf',
content_type: 'application/pdf',
content_category: 'IDENTIFICATION_DOCUMENT',
content: 'VGV4dG8gZGUgZWplbXBsbyBwYXJhIEJhc2U2NA=='
}
],
withdrawal_methods: {
bank: {
code: '002',
branch: '002',
account: '9876543210',
account_type: 'CHECKINGS',
country: 'US',
currency: 'USD',
routing: '021000022'
}
},
terms_of_service: {acceptance: true, date: '2025-07-21T20:43:54.786342Z', ip: '129.21.111.11'}
})
};
fetch('https://api-sandbox.y.uno/v1/recipients/{recipient_id}/onboardings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-sandbox.y.uno/v1/recipients/{recipient_id}/onboardings",
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([
'account_id' => '{{account-code}}',
'type' => 'PREVIOUSLY_ONBOARDED',
'workflow' => 'DIRECT',
'callback_url' => 'https://merchant.example.com/webhook/onboarding',
'provider' => [
'id' => 'VR',
'connection_id' => '{{connection_id}}',
'recipient_id' => 'test01',
'recipient_type' => 'MULTI_BENEFITS'
],
'documentation' => [
[
'file_name' => 'onboarding.pdf',
'content_type' => 'application/pdf',
'content_category' => 'IDENTIFICATION_DOCUMENT',
'content' => 'VGV4dG8gZGUgZWplbXBsbyBwYXJhIEJhc2U2NA=='
]
],
'withdrawal_methods' => [
'bank' => [
'code' => '002',
'branch' => '002',
'account' => '9876543210',
'account_type' => 'CHECKINGS',
'country' => 'US',
'currency' => 'USD',
'routing' => '021000022'
]
],
'terms_of_service' => [
'acceptance' => true,
'date' => '2025-07-21T20:43:54.786342Z',
'ip' => '129.21.111.11'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"private-secret-key: <api-key>",
"public-api-key: <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 := "https://api-sandbox.y.uno/v1/recipients/{recipient_id}/onboardings"
payload := strings.NewReader("{\n \"account_id\": \"{{account-code}}\",\n \"type\": \"PREVIOUSLY_ONBOARDED\",\n \"workflow\": \"DIRECT\",\n \"callback_url\": \"https://merchant.example.com/webhook/onboarding\",\n \"provider\": {\n \"id\": \"VR\",\n \"connection_id\": \"{{connection_id}}\",\n \"recipient_id\": \"test01\",\n \"recipient_type\": \"MULTI_BENEFITS\"\n },\n \"documentation\": [\n {\n \"file_name\": \"onboarding.pdf\",\n \"content_type\": \"application/pdf\",\n \"content_category\": \"IDENTIFICATION_DOCUMENT\",\n \"content\": \"VGV4dG8gZGUgZWplbXBsbyBwYXJhIEJhc2U2NA==\"\n }\n ],\n \"withdrawal_methods\": {\n \"bank\": {\n \"code\": \"002\",\n \"branch\": \"002\",\n \"account\": \"9876543210\",\n \"account_type\": \"CHECKINGS\",\n \"country\": \"US\",\n \"currency\": \"USD\",\n \"routing\": \"021000022\"\n }\n },\n \"terms_of_service\": {\n \"acceptance\": true,\n \"date\": \"2025-07-21T20:43:54.786342Z\",\n \"ip\": \"129.21.111.11\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("public-api-key", "<api-key>")
req.Header.Add("private-secret-key", "<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("https://api-sandbox.y.uno/v1/recipients/{recipient_id}/onboardings")
.header("public-api-key", "<api-key>")
.header("private-secret-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"account_id\": \"{{account-code}}\",\n \"type\": \"PREVIOUSLY_ONBOARDED\",\n \"workflow\": \"DIRECT\",\n \"callback_url\": \"https://merchant.example.com/webhook/onboarding\",\n \"provider\": {\n \"id\": \"VR\",\n \"connection_id\": \"{{connection_id}}\",\n \"recipient_id\": \"test01\",\n \"recipient_type\": \"MULTI_BENEFITS\"\n },\n \"documentation\": [\n {\n \"file_name\": \"onboarding.pdf\",\n \"content_type\": \"application/pdf\",\n \"content_category\": \"IDENTIFICATION_DOCUMENT\",\n \"content\": \"VGV4dG8gZGUgZWplbXBsbyBwYXJhIEJhc2U2NA==\"\n }\n ],\n \"withdrawal_methods\": {\n \"bank\": {\n \"code\": \"002\",\n \"branch\": \"002\",\n \"account\": \"9876543210\",\n \"account_type\": \"CHECKINGS\",\n \"country\": \"US\",\n \"currency\": \"USD\",\n \"routing\": \"021000022\"\n }\n },\n \"terms_of_service\": {\n \"acceptance\": true,\n \"date\": \"2025-07-21T20:43:54.786342Z\",\n \"ip\": \"129.21.111.11\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.y.uno/v1/recipients/{recipient_id}/onboardings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["public-api-key"] = '<api-key>'
request["private-secret-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"account_id\": \"{{account-code}}\",\n \"type\": \"PREVIOUSLY_ONBOARDED\",\n \"workflow\": \"DIRECT\",\n \"callback_url\": \"https://merchant.example.com/webhook/onboarding\",\n \"provider\": {\n \"id\": \"VR\",\n \"connection_id\": \"{{connection_id}}\",\n \"recipient_id\": \"test01\",\n \"recipient_type\": \"MULTI_BENEFITS\"\n },\n \"documentation\": [\n {\n \"file_name\": \"onboarding.pdf\",\n \"content_type\": \"application/pdf\",\n \"content_category\": \"IDENTIFICATION_DOCUMENT\",\n \"content\": \"VGV4dG8gZGUgZWplbXBsbyBwYXJhIEJhc2U2NA==\"\n }\n ],\n \"withdrawal_methods\": {\n \"bank\": {\n \"code\": \"002\",\n \"branch\": \"002\",\n \"account\": \"9876543210\",\n \"account_type\": \"CHECKINGS\",\n \"country\": \"US\",\n \"currency\": \"USD\",\n \"routing\": \"021000022\"\n }\n },\n \"terms_of_service\": {\n \"acceptance\": true,\n \"date\": \"2025-07-21T20:43:54.786342Z\",\n \"ip\": \"129.21.111.11\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "61df26d9-3750-4206-baab-f2e20683f35b",
"type": "PREVIOUSLY_ONBOARDED",
"workflow": "DIRECT",
"status": "SUCCEEDED",
"callback_url": "https://merchant.example.com/webhook/onboarding",
"provider": {
"id": "STRIPE",
"connection_id": "8fee3cc6-f3cb-455d-b139-973866111a03",
"recipient_id": "acct_1RvpogA4Jk50vKRE",
"redirect_url": null,
"onboarding_url": null,
"legal_entity": null
},
"documentation": [
{
"file_name": "recipient.pdf",
"content_type": "application/pdf",
"content_category": "IDENTIFICATION_DOCUMENT",
"content": "recipient.pdf-20ac42c2-ef01-4a0c-80dd-0f9f71c9cde7"
}
],
"legal_representatives": [
{
"merchant_reference": "ONB_001",
"first_name": "Tatiana",
"last_name": "González",
"email": "tatiana.gonzalez@example.com",
"date_of_birth": "1985-05-20",
"country": "BR",
"nationality": "BR",
"title": "CEO",
"publicly_exposed_person": false,
"ultimate_beneficial_owner": true,
"document": {
"document_type": "CC",
"document_number": "0987654321"
},
"phone": {
"number": "3109876543",
"country_code": "+57"
},
"address": {
"address_line_1": "Calle 26 # 13-19",
"address_line_2": null,
"country": "CO",
"state": "Cundinamarca",
"city": "Bogotá",
"zip_code": "110311"
}
}
],
"requirements": [],
"withdrawal_methods": {
"bank": {
"code": "003",
"branch": "003",
"branch_digit": null,
"account": "9876543210",
"account_digit": null,
"account_type": "CHECKINGS",
"routing": "021000022",
"country": "US",
"currency": "USD"
}
},
"terms_of_service": {
"acceptance": true,
"date": "2025-07-21T20:43:54.786342Z",
"ip": "129.21.111.11"
},
"recipient": {
"id": "5a37f0c0-7689-4065-8348-4b5ff5bf9cc7",
"account_id": "c24d6c92-99a7-40bb-bc7b-efc40337f9f4",
"merchant_recipient_id": "MERCHANT_85ac5f5d-a169-46b3-bd87-80c0df2e6591",
"national_entity": "INDIVIDUAL",
"entity_type": "PRIVATE",
"first_name": "Stebann",
"last_name": "Castro",
"legal_name": "Steban Castro",
"email": "juan.perez@example.com",
"date_of_birth": "1992-01-21",
"country": "CO",
"website": "https://juanperez.com",
"industry": "Technology",
"merchant_category_code": "5740",
"document": {
"document_number": "09082160000100",
"document_type": "CNPJ"
},
"phone": {
"country_code": "57",
"number": "3001234567"
},
"address": {
"address_line_1": "Carrera 7 # 32-16",
"address_line_2": "Oficina 201",
"city": "Bogotá",
"country": "CO",
"state": "Cundinamarca",
"zip_code": "110311",
"neighborhood": "Centro"
},
"legal_representatives": [
{
"merchant_reference": "REP_001",
"first_name": "María",
"last_name": "González",
"email": "maria.gonzalez@example.com",
"date_of_birth": "1985-05-20",
"country": "CO",
"nationality": "CO",
"title": "CEO",
"publicly_exposed_person": false,
"ultimate_beneficial_owner": true,
"document": {
"document_type": "CC",
"document_number": "0987654321"
},
"phone": {
"number": "3109876543",
"country_code": "+57"
},
"address": {
"address_line_1": "Calle 26 # 13-19",
"address_line_2": null,
"country": "CO",
"state": "Cundinamarca",
"city": "Bogotá",
"zip_code": "110311"
}
}
],
"withdrawal_methods": {
"bank": {
"code": "001",
"branch": "004",
"branch_digit": "123",
"account": "1234567890",
"account_digit": "123",
"account_type": "SAVINGS",
"routing": "021000021",
"country": "CO",
"currency": "COP"
}
},
"documentation": [
{
"file_name": "recipient.pdf",
"content_type": "application/pdf",
"content_category": "IDENTIFICATION_DOCUMENT",
"content": "recipient.pdf-2bf73b44-33e3-49c7-b777-34a5178cfb45"
}
],
"created_at": "2025-08-22T17:54:05.711545Z",
"updated_at": "2025-08-22T17:54:05.711561Z"
},
"history": {
"id": "61df26d9-3750-4206-baab-f2e20683f35b",
"type": "PREVIOUSLY_ONBOARDED",
"workflow": "DIRECT",
"status": "SUCCEEDED",
"callback_url": "https://merchant.example.com/webhook/onboarding",
"provider": {
"id": "STRIPE",
"connection_id": "8fee3cc6-f3cb-455d-b139-973866111a03",
"recipient_id": "acct_1RvpogA4Jk50vKRE",
"redirect_url": null
},
"documentation": [
{
"file_name": "recipient.pdf",
"content_type": "application/pdf",
"content_category": "IDENTIFICATION_DOCUMENT",
"content": "recipient.pdf-20ac42c2-ef01-4a0c-80dd-0f9f71c9cde7"
}
],
"legal_representatives": [
{
"merchant_reference": "ONB_001",
"first_name": "Tatiana",
"last_name": "González",
"email": "tatiana.gonzalez@example.com",
"date_of_birth": "1985-05-20",
"country": "BR",
"nationality": "BR",
"title": "CEO",
"publicly_exposed_person": false,
"ultimate_beneficial_owner": true,
"document": {
"document_type": "CC",
"document_number": "0987654321"
},
"phone": {
"number": "3109876543",
"country_code": "+57"
},
"address": {
"address_line_1": "Calle 26 # 13-19",
"address_line_2": null,
"country": "CO",
"state": "Cundinamarca",
"city": "Bogotá",
"zip_code": "110311"
}
}
],
"requirements": [],
"withdrawal_methods": {
"bank": {
"code": "003",
"branch": "003",
"branch_digit": null,
"account": "9876543210",
"account_digit": null,
"account_type": "CHECKINGS",
"routing": "021000022",
"country": "US",
"currency": "USD"
}
},
"terms_of_service": {
"acceptance": true,
"date": "2025-07-21T20:43:54.786342Z",
"ip": "129.21.111.11"
},
"recipient": {
"id": "5a37f0c0-7689-4065-8348-4b5ff5bf9cc7",
"account_id": "c24d6c92-99a7-40bb-bc7b-efc40337f9f4",
"merchant_recipient_id": "MERCHANT_85ac5f5d-a169-46b3-bd87-80c0df2e6591",
"national_entity": "INDIVIDUAL",
"entity_type": "PRIVATE",
"first_name": "Stebann",
"last_name": "Castro",
"legal_name": "Steban Castro",
"email": "juan.perez@example.com",
"date_of_birth": "1992-01-21",
"country": "CO",
"website": "https://juanperez.com",
"industry": "Technology",
"merchant_category_code": "5740",
"document": {
"document_number": "09082160000100",
"document_type": "CNPJ"
},
"phone": {
"country_code": "57",
"number": "3001234567"
},
"address": {
"address_line_1": "Carrera 7 # 32-16",
"address_line_2": "Oficina 201",
"city": "Bogotá",
"country": "CO",
"state": "Cundinamarca",
"zip_code": "110311",
"neighborhood": "Centro"
},
"legal_representatives": [
{
"merchant_reference": "REP_001",
"first_name": "María",
"last_name": "González",
"email": "maria.gonzalez@example.com",
"date_of_birth": "1985-05-20",
"country": "CO",
"nationality": "CO",
"title": "CEO",
"publicly_exposed_person": false,
"ultimate_beneficial_owner": true,
"document": {
"document_type": "CC",
"document_number": "0987654321"
},
"phone": {
"number": "3109876543",
"country_code": "+57"
},
"address": {
"address_line_1": "Calle 26 # 13-19",
"address_line_2": null,
"country": "CO",
"state": "Cundinamarca",
"city": "Bogotá",
"zip_code": "110311"
}
}
],
"withdrawal_methods": {
"bank": {
"code": "001",
"branch": "004",
"branch_digit": "123",
"account": "1234567890",
"account_digit": "123",
"account_type": "SAVINGS",
"routing": "021000021",
"country": "CO",
"currency": "COP"
}
},
"documentation": [
{
"file_name": "recipient.pdf",
"content_type": "application/pdf",
"content_category": "IDENTIFICATION_DOCUMENT",
"content": "recipient.pdf-2bf73b44-33e3-49c7-b777-34a5178cfb45"
}
],
"created_at": "2025-08-22T17:54:05.711545Z",
"updated_at": "2025-08-22T17:54:05.711561Z"
},
"created_at": "2025-08-22T17:57:58.460711Z",
"updated_at": "2025-08-22T17:57:58.460724Z"
},
"created_at": "2025-08-22T17:57:58.460711Z",
"updated_at": "2025-08-22T17:57:58.460724Z"
}
为收款方创建 onboarding。
此 endpoint 为收款方创建 onboarding,使子商户能够与支付服务提供商集成,用于拆分支付场景。使用此 endpoint 注册新的子商户,或在收款方能够接收拆分支付之前完成设置。
服务提供商需要其中哪些 id 由其集成决定。请发送服务提供商用于标识账户的所有 id。
后续流程取决于服务提供商集成是否支持采用现有账户:
概述
Onboarding 是拆分支付 Marketplace工作流的第一步。每个收款方(子商户)都必须先在支付服务提供商处完成 onboarding,才能接收拆分支付。 Onboarding 支持两种方式:- 已完成 onboarding 的账户:适用于已在服务提供商处注册的子商户。使用
type: "PREVIOUSLY_ONBOARDED"并发送provider.recipient_id,此类型必须提供该字段。请参阅之前已完成 onboarding 的账户。 - 动态 onboarding:适用于新子商户注册,包括 KYC/KYB(Know Your Customer/Know Your Business)验证。使用
type: "ONE_STEP_ONBOARDING"或type: "TWO_STEP_ONBOARDING"(以前为type: "ONBOARD_ONTO_PROVIDER")。
两步 Onboarding对于
type: "TWO_STEP_ONBOARDING" 流程,请在账户创建后使用继续 Onboarding endpoint 完成 KYC 流程。之前已完成 onboarding 的账户
使用type: "PREVIOUSLY_ONBOARDED" 关联子商户在服务提供商处已有的账户,这样 Yuno 就不会创建新账户。
在 provider 对象中发送服务提供商账户 id,同时发送 provider.id 和 provider.connection_id。Yuno 会将这些 id 按原样转发给服务提供商集成:
| 字段 | 描述 |
|---|---|
provider.recipient_id | 收款方在服务提供商处的账户 id。此类型必填。 |
provider.recipient_additional_id | 附加账户 id,适用于使用多个 id 标识账户的服务提供商。 |
provider.balance_account_id | 收款方在服务提供商处的余额账户。 |
provider.legal_entity | 收款方在服务提供商处的法律实体。 |
provider.recipient_type | 服务提供商的收款方类型。 |
- 集成支持采用现有账户:Yuno 向服务提供商注册该账户。响应为
201,状态为CREATED,之后 onboarding 变为:SUCCEEDED:服务提供商接受该账户时。您会收到onboarding.succeededwebhook。ERROR:服务提供商驳回该账户时,例如该账户 id 在服务提供商处不存在。服务提供商的消息位于response_message中,您会收到onboarding.errorwebhook。如需修复,请使用正确的 id 重新注册账户。
- 其他任何服务提供商:onboarding 会立即记录为
SUCCEEDED,且不会调用服务提供商。这些 id 按原样存储,不会在服务提供商处验证,因此请确保其正确无误。
授权
请求体
application/json
onboarding 流程的类型。PREVIOUSLY_ONBOARDED 用于关联提供商处已存在的账户,ONE_STEP_ONBOARDING 用于一步完成账户创建和 KYC,TWO_STEP_ONBOARDING 用于先创建账户,之后再进行 KYC。
对于 PREVIOUSLY_ONBOARDED,当提供商集成支持采用已有账户时,Yuno 会使用 provider 中的 id 在提供商处注册该账户:响应为 201,状态为 CREATED,之后 onboarding 会变为 SUCCEEDED(webhook onboarding.succeeded)或 ERROR,提供商的消息会放在 response_message 中(webhook onboarding.error)。对于其他任何提供商,onboarding 会立即记录为 SUCCEEDED,不会调用提供商,也不会校验这些 id。哪些提供商采用已有账户属于 Yuno 侧按环境进行的配置,而不是 API 字段;请咨询您的客户经理(Key Account Manager)。
可用选项:
PREVIOUSLY_ONBOARDED, ONE_STEP_ONBOARDING, TWO_STEP_ONBOARDING 示例:
"PREVIOUSLY_ONBOARDED"
响应
Created
此页面对您有帮助吗?
⌘I
创建 Onboarding
curl --request POST \
--url https://api-sandbox.y.uno/v1/recipients/{recipient_id}/onboardings \
--header 'Content-Type: application/json' \
--header 'private-secret-key: <api-key>' \
--header 'public-api-key: <api-key>' \
--data '
{
"account_id": "{{account-code}}",
"type": "PREVIOUSLY_ONBOARDED",
"workflow": "DIRECT",
"callback_url": "https://merchant.example.com/webhook/onboarding",
"provider": {
"id": "VR",
"connection_id": "{{connection_id}}",
"recipient_id": "test01",
"recipient_type": "MULTI_BENEFITS"
},
"documentation": [
{
"file_name": "onboarding.pdf",
"content_type": "application/pdf",
"content_category": "IDENTIFICATION_DOCUMENT",
"content": "VGV4dG8gZGUgZWplbXBsbyBwYXJhIEJhc2U2NA=="
}
],
"withdrawal_methods": {
"bank": {
"code": "002",
"branch": "002",
"account": "9876543210",
"account_type": "CHECKINGS",
"country": "US",
"currency": "USD",
"routing": "021000022"
}
},
"terms_of_service": {
"acceptance": true,
"date": "2025-07-21T20:43:54.786342Z",
"ip": "129.21.111.11"
}
}
'import requests
url = "https://api-sandbox.y.uno/v1/recipients/{recipient_id}/onboardings"
payload = {
"account_id": "{{account-code}}",
"type": "PREVIOUSLY_ONBOARDED",
"workflow": "DIRECT",
"callback_url": "https://merchant.example.com/webhook/onboarding",
"provider": {
"id": "VR",
"connection_id": "{{connection_id}}",
"recipient_id": "test01",
"recipient_type": "MULTI_BENEFITS"
},
"documentation": [
{
"file_name": "onboarding.pdf",
"content_type": "application/pdf",
"content_category": "IDENTIFICATION_DOCUMENT",
"content": "VGV4dG8gZGUgZWplbXBsbyBwYXJhIEJhc2U2NA=="
}
],
"withdrawal_methods": { "bank": {
"code": "002",
"branch": "002",
"account": "9876543210",
"account_type": "CHECKINGS",
"country": "US",
"currency": "USD",
"routing": "021000022"
} },
"terms_of_service": {
"acceptance": True,
"date": "2025-07-21T20:43:54.786342Z",
"ip": "129.21.111.11"
}
}
headers = {
"public-api-key": "<api-key>",
"private-secret-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'public-api-key': '<api-key>',
'private-secret-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
account_id: '{{account-code}}',
type: 'PREVIOUSLY_ONBOARDED',
workflow: 'DIRECT',
callback_url: 'https://merchant.example.com/webhook/onboarding',
provider: {
id: 'VR',
connection_id: '{{connection_id}}',
recipient_id: 'test01',
recipient_type: 'MULTI_BENEFITS'
},
documentation: [
{
file_name: 'onboarding.pdf',
content_type: 'application/pdf',
content_category: 'IDENTIFICATION_DOCUMENT',
content: 'VGV4dG8gZGUgZWplbXBsbyBwYXJhIEJhc2U2NA=='
}
],
withdrawal_methods: {
bank: {
code: '002',
branch: '002',
account: '9876543210',
account_type: 'CHECKINGS',
country: 'US',
currency: 'USD',
routing: '021000022'
}
},
terms_of_service: {acceptance: true, date: '2025-07-21T20:43:54.786342Z', ip: '129.21.111.11'}
})
};
fetch('https://api-sandbox.y.uno/v1/recipients/{recipient_id}/onboardings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-sandbox.y.uno/v1/recipients/{recipient_id}/onboardings",
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([
'account_id' => '{{account-code}}',
'type' => 'PREVIOUSLY_ONBOARDED',
'workflow' => 'DIRECT',
'callback_url' => 'https://merchant.example.com/webhook/onboarding',
'provider' => [
'id' => 'VR',
'connection_id' => '{{connection_id}}',
'recipient_id' => 'test01',
'recipient_type' => 'MULTI_BENEFITS'
],
'documentation' => [
[
'file_name' => 'onboarding.pdf',
'content_type' => 'application/pdf',
'content_category' => 'IDENTIFICATION_DOCUMENT',
'content' => 'VGV4dG8gZGUgZWplbXBsbyBwYXJhIEJhc2U2NA=='
]
],
'withdrawal_methods' => [
'bank' => [
'code' => '002',
'branch' => '002',
'account' => '9876543210',
'account_type' => 'CHECKINGS',
'country' => 'US',
'currency' => 'USD',
'routing' => '021000022'
]
],
'terms_of_service' => [
'acceptance' => true,
'date' => '2025-07-21T20:43:54.786342Z',
'ip' => '129.21.111.11'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"private-secret-key: <api-key>",
"public-api-key: <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 := "https://api-sandbox.y.uno/v1/recipients/{recipient_id}/onboardings"
payload := strings.NewReader("{\n \"account_id\": \"{{account-code}}\",\n \"type\": \"PREVIOUSLY_ONBOARDED\",\n \"workflow\": \"DIRECT\",\n \"callback_url\": \"https://merchant.example.com/webhook/onboarding\",\n \"provider\": {\n \"id\": \"VR\",\n \"connection_id\": \"{{connection_id}}\",\n \"recipient_id\": \"test01\",\n \"recipient_type\": \"MULTI_BENEFITS\"\n },\n \"documentation\": [\n {\n \"file_name\": \"onboarding.pdf\",\n \"content_type\": \"application/pdf\",\n \"content_category\": \"IDENTIFICATION_DOCUMENT\",\n \"content\": \"VGV4dG8gZGUgZWplbXBsbyBwYXJhIEJhc2U2NA==\"\n }\n ],\n \"withdrawal_methods\": {\n \"bank\": {\n \"code\": \"002\",\n \"branch\": \"002\",\n \"account\": \"9876543210\",\n \"account_type\": \"CHECKINGS\",\n \"country\": \"US\",\n \"currency\": \"USD\",\n \"routing\": \"021000022\"\n }\n },\n \"terms_of_service\": {\n \"acceptance\": true,\n \"date\": \"2025-07-21T20:43:54.786342Z\",\n \"ip\": \"129.21.111.11\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("public-api-key", "<api-key>")
req.Header.Add("private-secret-key", "<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("https://api-sandbox.y.uno/v1/recipients/{recipient_id}/onboardings")
.header("public-api-key", "<api-key>")
.header("private-secret-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"account_id\": \"{{account-code}}\",\n \"type\": \"PREVIOUSLY_ONBOARDED\",\n \"workflow\": \"DIRECT\",\n \"callback_url\": \"https://merchant.example.com/webhook/onboarding\",\n \"provider\": {\n \"id\": \"VR\",\n \"connection_id\": \"{{connection_id}}\",\n \"recipient_id\": \"test01\",\n \"recipient_type\": \"MULTI_BENEFITS\"\n },\n \"documentation\": [\n {\n \"file_name\": \"onboarding.pdf\",\n \"content_type\": \"application/pdf\",\n \"content_category\": \"IDENTIFICATION_DOCUMENT\",\n \"content\": \"VGV4dG8gZGUgZWplbXBsbyBwYXJhIEJhc2U2NA==\"\n }\n ],\n \"withdrawal_methods\": {\n \"bank\": {\n \"code\": \"002\",\n \"branch\": \"002\",\n \"account\": \"9876543210\",\n \"account_type\": \"CHECKINGS\",\n \"country\": \"US\",\n \"currency\": \"USD\",\n \"routing\": \"021000022\"\n }\n },\n \"terms_of_service\": {\n \"acceptance\": true,\n \"date\": \"2025-07-21T20:43:54.786342Z\",\n \"ip\": \"129.21.111.11\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.y.uno/v1/recipients/{recipient_id}/onboardings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["public-api-key"] = '<api-key>'
request["private-secret-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"account_id\": \"{{account-code}}\",\n \"type\": \"PREVIOUSLY_ONBOARDED\",\n \"workflow\": \"DIRECT\",\n \"callback_url\": \"https://merchant.example.com/webhook/onboarding\",\n \"provider\": {\n \"id\": \"VR\",\n \"connection_id\": \"{{connection_id}}\",\n \"recipient_id\": \"test01\",\n \"recipient_type\": \"MULTI_BENEFITS\"\n },\n \"documentation\": [\n {\n \"file_name\": \"onboarding.pdf\",\n \"content_type\": \"application/pdf\",\n \"content_category\": \"IDENTIFICATION_DOCUMENT\",\n \"content\": \"VGV4dG8gZGUgZWplbXBsbyBwYXJhIEJhc2U2NA==\"\n }\n ],\n \"withdrawal_methods\": {\n \"bank\": {\n \"code\": \"002\",\n \"branch\": \"002\",\n \"account\": \"9876543210\",\n \"account_type\": \"CHECKINGS\",\n \"country\": \"US\",\n \"currency\": \"USD\",\n \"routing\": \"021000022\"\n }\n },\n \"terms_of_service\": {\n \"acceptance\": true,\n \"date\": \"2025-07-21T20:43:54.786342Z\",\n \"ip\": \"129.21.111.11\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "61df26d9-3750-4206-baab-f2e20683f35b",
"type": "PREVIOUSLY_ONBOARDED",
"workflow": "DIRECT",
"status": "SUCCEEDED",
"callback_url": "https://merchant.example.com/webhook/onboarding",
"provider": {
"id": "STRIPE",
"connection_id": "8fee3cc6-f3cb-455d-b139-973866111a03",
"recipient_id": "acct_1RvpogA4Jk50vKRE",
"redirect_url": null,
"onboarding_url": null,
"legal_entity": null
},
"documentation": [
{
"file_name": "recipient.pdf",
"content_type": "application/pdf",
"content_category": "IDENTIFICATION_DOCUMENT",
"content": "recipient.pdf-20ac42c2-ef01-4a0c-80dd-0f9f71c9cde7"
}
],
"legal_representatives": [
{
"merchant_reference": "ONB_001",
"first_name": "Tatiana",
"last_name": "González",
"email": "tatiana.gonzalez@example.com",
"date_of_birth": "1985-05-20",
"country": "BR",
"nationality": "BR",
"title": "CEO",
"publicly_exposed_person": false,
"ultimate_beneficial_owner": true,
"document": {
"document_type": "CC",
"document_number": "0987654321"
},
"phone": {
"number": "3109876543",
"country_code": "+57"
},
"address": {
"address_line_1": "Calle 26 # 13-19",
"address_line_2": null,
"country": "CO",
"state": "Cundinamarca",
"city": "Bogotá",
"zip_code": "110311"
}
}
],
"requirements": [],
"withdrawal_methods": {
"bank": {
"code": "003",
"branch": "003",
"branch_digit": null,
"account": "9876543210",
"account_digit": null,
"account_type": "CHECKINGS",
"routing": "021000022",
"country": "US",
"currency": "USD"
}
},
"terms_of_service": {
"acceptance": true,
"date": "2025-07-21T20:43:54.786342Z",
"ip": "129.21.111.11"
},
"recipient": {
"id": "5a37f0c0-7689-4065-8348-4b5ff5bf9cc7",
"account_id": "c24d6c92-99a7-40bb-bc7b-efc40337f9f4",
"merchant_recipient_id": "MERCHANT_85ac5f5d-a169-46b3-bd87-80c0df2e6591",
"national_entity": "INDIVIDUAL",
"entity_type": "PRIVATE",
"first_name": "Stebann",
"last_name": "Castro",
"legal_name": "Steban Castro",
"email": "juan.perez@example.com",
"date_of_birth": "1992-01-21",
"country": "CO",
"website": "https://juanperez.com",
"industry": "Technology",
"merchant_category_code": "5740",
"document": {
"document_number": "09082160000100",
"document_type": "CNPJ"
},
"phone": {
"country_code": "57",
"number": "3001234567"
},
"address": {
"address_line_1": "Carrera 7 # 32-16",
"address_line_2": "Oficina 201",
"city": "Bogotá",
"country": "CO",
"state": "Cundinamarca",
"zip_code": "110311",
"neighborhood": "Centro"
},
"legal_representatives": [
{
"merchant_reference": "REP_001",
"first_name": "María",
"last_name": "González",
"email": "maria.gonzalez@example.com",
"date_of_birth": "1985-05-20",
"country": "CO",
"nationality": "CO",
"title": "CEO",
"publicly_exposed_person": false,
"ultimate_beneficial_owner": true,
"document": {
"document_type": "CC",
"document_number": "0987654321"
},
"phone": {
"number": "3109876543",
"country_code": "+57"
},
"address": {
"address_line_1": "Calle 26 # 13-19",
"address_line_2": null,
"country": "CO",
"state": "Cundinamarca",
"city": "Bogotá",
"zip_code": "110311"
}
}
],
"withdrawal_methods": {
"bank": {
"code": "001",
"branch": "004",
"branch_digit": "123",
"account": "1234567890",
"account_digit": "123",
"account_type": "SAVINGS",
"routing": "021000021",
"country": "CO",
"currency": "COP"
}
},
"documentation": [
{
"file_name": "recipient.pdf",
"content_type": "application/pdf",
"content_category": "IDENTIFICATION_DOCUMENT",
"content": "recipient.pdf-2bf73b44-33e3-49c7-b777-34a5178cfb45"
}
],
"created_at": "2025-08-22T17:54:05.711545Z",
"updated_at": "2025-08-22T17:54:05.711561Z"
},
"history": {
"id": "61df26d9-3750-4206-baab-f2e20683f35b",
"type": "PREVIOUSLY_ONBOARDED",
"workflow": "DIRECT",
"status": "SUCCEEDED",
"callback_url": "https://merchant.example.com/webhook/onboarding",
"provider": {
"id": "STRIPE",
"connection_id": "8fee3cc6-f3cb-455d-b139-973866111a03",
"recipient_id": "acct_1RvpogA4Jk50vKRE",
"redirect_url": null
},
"documentation": [
{
"file_name": "recipient.pdf",
"content_type": "application/pdf",
"content_category": "IDENTIFICATION_DOCUMENT",
"content": "recipient.pdf-20ac42c2-ef01-4a0c-80dd-0f9f71c9cde7"
}
],
"legal_representatives": [
{
"merchant_reference": "ONB_001",
"first_name": "Tatiana",
"last_name": "González",
"email": "tatiana.gonzalez@example.com",
"date_of_birth": "1985-05-20",
"country": "BR",
"nationality": "BR",
"title": "CEO",
"publicly_exposed_person": false,
"ultimate_beneficial_owner": true,
"document": {
"document_type": "CC",
"document_number": "0987654321"
},
"phone": {
"number": "3109876543",
"country_code": "+57"
},
"address": {
"address_line_1": "Calle 26 # 13-19",
"address_line_2": null,
"country": "CO",
"state": "Cundinamarca",
"city": "Bogotá",
"zip_code": "110311"
}
}
],
"requirements": [],
"withdrawal_methods": {
"bank": {
"code": "003",
"branch": "003",
"branch_digit": null,
"account": "9876543210",
"account_digit": null,
"account_type": "CHECKINGS",
"routing": "021000022",
"country": "US",
"currency": "USD"
}
},
"terms_of_service": {
"acceptance": true,
"date": "2025-07-21T20:43:54.786342Z",
"ip": "129.21.111.11"
},
"recipient": {
"id": "5a37f0c0-7689-4065-8348-4b5ff5bf9cc7",
"account_id": "c24d6c92-99a7-40bb-bc7b-efc40337f9f4",
"merchant_recipient_id": "MERCHANT_85ac5f5d-a169-46b3-bd87-80c0df2e6591",
"national_entity": "INDIVIDUAL",
"entity_type": "PRIVATE",
"first_name": "Stebann",
"last_name": "Castro",
"legal_name": "Steban Castro",
"email": "juan.perez@example.com",
"date_of_birth": "1992-01-21",
"country": "CO",
"website": "https://juanperez.com",
"industry": "Technology",
"merchant_category_code": "5740",
"document": {
"document_number": "09082160000100",
"document_type": "CNPJ"
},
"phone": {
"country_code": "57",
"number": "3001234567"
},
"address": {
"address_line_1": "Carrera 7 # 32-16",
"address_line_2": "Oficina 201",
"city": "Bogotá",
"country": "CO",
"state": "Cundinamarca",
"zip_code": "110311",
"neighborhood": "Centro"
},
"legal_representatives": [
{
"merchant_reference": "REP_001",
"first_name": "María",
"last_name": "González",
"email": "maria.gonzalez@example.com",
"date_of_birth": "1985-05-20",
"country": "CO",
"nationality": "CO",
"title": "CEO",
"publicly_exposed_person": false,
"ultimate_beneficial_owner": true,
"document": {
"document_type": "CC",
"document_number": "0987654321"
},
"phone": {
"number": "3109876543",
"country_code": "+57"
},
"address": {
"address_line_1": "Calle 26 # 13-19",
"address_line_2": null,
"country": "CO",
"state": "Cundinamarca",
"city": "Bogotá",
"zip_code": "110311"
}
}
],
"withdrawal_methods": {
"bank": {
"code": "001",
"branch": "004",
"branch_digit": "123",
"account": "1234567890",
"account_digit": "123",
"account_type": "SAVINGS",
"routing": "021000021",
"country": "CO",
"currency": "COP"
}
},
"documentation": [
{
"file_name": "recipient.pdf",
"content_type": "application/pdf",
"content_category": "IDENTIFICATION_DOCUMENT",
"content": "recipient.pdf-2bf73b44-33e3-49c7-b777-34a5178cfb45"
}
],
"created_at": "2025-08-22T17:54:05.711545Z",
"updated_at": "2025-08-22T17:54:05.711561Z"
},
"created_at": "2025-08-22T17:57:58.460711Z",
"updated_at": "2025-08-22T17:57:58.460724Z"
},
"created_at": "2025-08-22T17:57:58.460711Z",
"updated_at": "2025-08-22T17:57:58.460724Z"
}