curl --request POST \
--url https://api.next.orenda.finance/v1/applications/{applicationId}/ubos/actions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"action": "UBO_VERIFICATION_EMAIL",
"uboIds": [
"64f0c2a1e4b0a1b2c3d4e5f6",
"64f0c2a1e4b0a1b2c3d4e5f7"
],
"redirectSuccessUrl": "https://app.example.com/onboarding/ubo/success",
"redirectRejectUrl": "https://app.example.com/onboarding/ubo/rejected",
"ttlInSecs": 86400
}
'import requests
url = "https://api.next.orenda.finance/v1/applications/{applicationId}/ubos/actions"
payload = {
"action": "UBO_VERIFICATION_EMAIL",
"uboIds": ["64f0c2a1e4b0a1b2c3d4e5f6", "64f0c2a1e4b0a1b2c3d4e5f7"],
"redirectSuccessUrl": "https://app.example.com/onboarding/ubo/success",
"redirectRejectUrl": "https://app.example.com/onboarding/ubo/rejected",
"ttlInSecs": 86400
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
action: 'UBO_VERIFICATION_EMAIL',
uboIds: ['64f0c2a1e4b0a1b2c3d4e5f6', '64f0c2a1e4b0a1b2c3d4e5f7'],
redirectSuccessUrl: 'https://app.example.com/onboarding/ubo/success',
redirectRejectUrl: 'https://app.example.com/onboarding/ubo/rejected',
ttlInSecs: 86400
})
};
fetch('https://api.next.orenda.finance/v1/applications/{applicationId}/ubos/actions', 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.next.orenda.finance/v1/applications/{applicationId}/ubos/actions",
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([
'action' => 'UBO_VERIFICATION_EMAIL',
'uboIds' => [
'64f0c2a1e4b0a1b2c3d4e5f6',
'64f0c2a1e4b0a1b2c3d4e5f7'
],
'redirectSuccessUrl' => 'https://app.example.com/onboarding/ubo/success',
'redirectRejectUrl' => 'https://app.example.com/onboarding/ubo/rejected',
'ttlInSecs' => 86400
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.next.orenda.finance/v1/applications/{applicationId}/ubos/actions"
payload := strings.NewReader("{\n \"action\": \"UBO_VERIFICATION_EMAIL\",\n \"uboIds\": [\n \"64f0c2a1e4b0a1b2c3d4e5f6\",\n \"64f0c2a1e4b0a1b2c3d4e5f7\"\n ],\n \"redirectSuccessUrl\": \"https://app.example.com/onboarding/ubo/success\",\n \"redirectRejectUrl\": \"https://app.example.com/onboarding/ubo/rejected\",\n \"ttlInSecs\": 86400\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.next.orenda.finance/v1/applications/{applicationId}/ubos/actions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"action\": \"UBO_VERIFICATION_EMAIL\",\n \"uboIds\": [\n \"64f0c2a1e4b0a1b2c3d4e5f6\",\n \"64f0c2a1e4b0a1b2c3d4e5f7\"\n ],\n \"redirectSuccessUrl\": \"https://app.example.com/onboarding/ubo/success\",\n \"redirectRejectUrl\": \"https://app.example.com/onboarding/ubo/rejected\",\n \"ttlInSecs\": 86400\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.next.orenda.finance/v1/applications/{applicationId}/ubos/actions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"action\": \"UBO_VERIFICATION_EMAIL\",\n \"uboIds\": [\n \"64f0c2a1e4b0a1b2c3d4e5f6\",\n \"64f0c2a1e4b0a1b2c3d4e5f7\"\n ],\n \"redirectSuccessUrl\": \"https://app.example.com/onboarding/ubo/success\",\n \"redirectRejectUrl\": \"https://app.example.com/onboarding/ubo/rejected\",\n \"ttlInSecs\": 86400\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"action": "UBO_VERIFICATION_EMAIL",
"results": [
{
"uboId": "64f0c2a1e4b0a1b2c3d4e5f6",
"link": "https://…"
},
{
"uboId": "64f0c2a1e4b0a1b2c3d4e5f7",
"link": "https://…"
}
]
}
}UBO actions
Send verification emails to UBOs, or reset their verification.
curl --request POST \
--url https://api.next.orenda.finance/v1/applications/{applicationId}/ubos/actions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"action": "UBO_VERIFICATION_EMAIL",
"uboIds": [
"64f0c2a1e4b0a1b2c3d4e5f6",
"64f0c2a1e4b0a1b2c3d4e5f7"
],
"redirectSuccessUrl": "https://app.example.com/onboarding/ubo/success",
"redirectRejectUrl": "https://app.example.com/onboarding/ubo/rejected",
"ttlInSecs": 86400
}
'import requests
url = "https://api.next.orenda.finance/v1/applications/{applicationId}/ubos/actions"
payload = {
"action": "UBO_VERIFICATION_EMAIL",
"uboIds": ["64f0c2a1e4b0a1b2c3d4e5f6", "64f0c2a1e4b0a1b2c3d4e5f7"],
"redirectSuccessUrl": "https://app.example.com/onboarding/ubo/success",
"redirectRejectUrl": "https://app.example.com/onboarding/ubo/rejected",
"ttlInSecs": 86400
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
action: 'UBO_VERIFICATION_EMAIL',
uboIds: ['64f0c2a1e4b0a1b2c3d4e5f6', '64f0c2a1e4b0a1b2c3d4e5f7'],
redirectSuccessUrl: 'https://app.example.com/onboarding/ubo/success',
redirectRejectUrl: 'https://app.example.com/onboarding/ubo/rejected',
ttlInSecs: 86400
})
};
fetch('https://api.next.orenda.finance/v1/applications/{applicationId}/ubos/actions', 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.next.orenda.finance/v1/applications/{applicationId}/ubos/actions",
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([
'action' => 'UBO_VERIFICATION_EMAIL',
'uboIds' => [
'64f0c2a1e4b0a1b2c3d4e5f6',
'64f0c2a1e4b0a1b2c3d4e5f7'
],
'redirectSuccessUrl' => 'https://app.example.com/onboarding/ubo/success',
'redirectRejectUrl' => 'https://app.example.com/onboarding/ubo/rejected',
'ttlInSecs' => 86400
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.next.orenda.finance/v1/applications/{applicationId}/ubos/actions"
payload := strings.NewReader("{\n \"action\": \"UBO_VERIFICATION_EMAIL\",\n \"uboIds\": [\n \"64f0c2a1e4b0a1b2c3d4e5f6\",\n \"64f0c2a1e4b0a1b2c3d4e5f7\"\n ],\n \"redirectSuccessUrl\": \"https://app.example.com/onboarding/ubo/success\",\n \"redirectRejectUrl\": \"https://app.example.com/onboarding/ubo/rejected\",\n \"ttlInSecs\": 86400\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.next.orenda.finance/v1/applications/{applicationId}/ubos/actions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"action\": \"UBO_VERIFICATION_EMAIL\",\n \"uboIds\": [\n \"64f0c2a1e4b0a1b2c3d4e5f6\",\n \"64f0c2a1e4b0a1b2c3d4e5f7\"\n ],\n \"redirectSuccessUrl\": \"https://app.example.com/onboarding/ubo/success\",\n \"redirectRejectUrl\": \"https://app.example.com/onboarding/ubo/rejected\",\n \"ttlInSecs\": 86400\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.next.orenda.finance/v1/applications/{applicationId}/ubos/actions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"action\": \"UBO_VERIFICATION_EMAIL\",\n \"uboIds\": [\n \"64f0c2a1e4b0a1b2c3d4e5f6\",\n \"64f0c2a1e4b0a1b2c3d4e5f7\"\n ],\n \"redirectSuccessUrl\": \"https://app.example.com/onboarding/ubo/success\",\n \"redirectRejectUrl\": \"https://app.example.com/onboarding/ubo/rejected\",\n \"ttlInSecs\": 86400\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"action": "UBO_VERIFICATION_EMAIL",
"results": [
{
"uboId": "64f0c2a1e4b0a1b2c3d4e5f6",
"link": "https://…"
},
{
"uboId": "64f0c2a1e4b0a1b2c3d4e5f7",
"link": "https://…"
}
]
}
}UBO_VERIFICATION_EMAIL— emails each listed UBO a hosted verification link. You can setredirectSuccessUrl/redirectRejectUrlfor where they land afterwards, andttlInSecsfor link validity (seconds, default604800, 7 days).UBO_RESET— resets a UBO’s verification so they can resubmit (after a rejection, for example).
uboIds are the owners’ uboIds from application.ubos on
GET /v2/applications (on v1, their applicantId).
The response’s data carries the action and a results array, with one entry for each UBO
or none when data.error_code is set:
{
"success": true,
"data": {
"action": "UBO_VERIFICATION_EMAIL",
"results": [{ "uboId": "64f0c2a1e4b0a1b2c3d4e5f6", "link": "https://…" }]
}
}
includeUbos=true.
UBOs are processed in order. For UBO_VERIFICATION_EMAIL, if one can’t be processed, the
response is still 200, with results: [] and a data.error_code: UBO_EMAIL_MISSING when a
selected UBO has no email address, or APPLICATION_IDENTITY_MISSING, UBO_LEVEL_MISSING or
COMPANY_KYB_LEVEL_MISSING when the application or program isn’t set up for UBO verification
(contact support). UBOs before the failing one may already have been emailed. Fix the cause, check
verification status with includeUbos=true, and resend only
to the UBOs that haven’t verified yet. UBO_RESET doesn’t return an error_code.
Either action can answer a generic 500: UBO_RESET when a reset fails, and
UBO_VERIFICATION_EMAIL when generating a verification link or sending the email fails. After a
500, the UBOs listed before the one that failed may already have been emailed or reset. The API doesn’t record which UBOs were emailed, so a
retried UBO_VERIFICATION_EMAIL can email some of them twice. Leave out UBOs that have since
started or finished verification.
A body that fails validation is 400 VALIDATION_ERROR (for example body.action: Required). A
body that isn’t valid JSON, sent with a JSON Content-Type, is 415 UNSUPPORTED_MEDIA_TYPE. A
uboIds entry that isn’t one of the application’s UBOs fails the whole request with
422 UBO_NOT_FOUND_IN_APPLICATION.Authorizations
The user's access_token from authentication. The program and environment (sandbox/prod) are read from the token.
Path Parameters
The application id from create / get.
Body
Required.
UBO_VERIFICATION_EMAIL, UBO_RESET Required. The UBOs to act on: their uboId values from GET /v2/applications. An id that isn't one of the application's UBOs fails the whole request.
Optional. Where the verification flow sends the UBO on success.
Optional. Where it sends them on rejection.
Optional. How long the verification link stays valid, in seconds. Defaults to 604800 (7 days).
Response
Action results. For UBO_VERIFICATION_EMAIL, if data.error_code is present (UBO_EMAIL_MISSING: a selected UBO has no email address; APPLICATION_IDENTITY_MISSING, UBO_LEVEL_MISSING, COMPANY_KYB_LEVEL_MISSING: the application or program isn't set up for UBO verification, contact support), the action stopped part-way, results is empty, and UBOs processed before the failure may already have been emailed. UBO_RESET never returns an error_code: a failed reset answers 500.