curl --request POST \
--url https://business-api.userivo.co/business/v1/virtual-accounts/usd \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"birthDate": "1990-01-01",
"nationality": "USA",
"reference": "ref_usd_123"
}
'import requests
url = "https://business-api.userivo.co/business/v1/virtual-accounts/usd"
payload = {
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"birthDate": "1990-01-01",
"nationality": "USA",
"reference": "ref_usd_123"
}
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({
firstName: 'John',
lastName: 'Doe',
email: 'john.doe@example.com',
birthDate: '1990-01-01',
nationality: 'USA',
reference: 'ref_usd_123'
})
};
fetch('https://business-api.userivo.co/business/v1/virtual-accounts/usd', 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://business-api.userivo.co/business/v1/virtual-accounts/usd",
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([
'firstName' => 'John',
'lastName' => 'Doe',
'email' => 'john.doe@example.com',
'birthDate' => '1990-01-01',
'nationality' => 'USA',
'reference' => 'ref_usd_123'
]),
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://business-api.userivo.co/business/v1/virtual-accounts/usd"
payload := strings.NewReader("{\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"email\": \"john.doe@example.com\",\n \"birthDate\": \"1990-01-01\",\n \"nationality\": \"USA\",\n \"reference\": \"ref_usd_123\"\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://business-api.userivo.co/business/v1/virtual-accounts/usd")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"email\": \"john.doe@example.com\",\n \"birthDate\": \"1990-01-01\",\n \"nationality\": \"USA\",\n \"reference\": \"ref_usd_123\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://business-api.userivo.co/business/v1/virtual-accounts/usd")
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 \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"email\": \"john.doe@example.com\",\n \"birthDate\": \"1990-01-01\",\n \"nationality\": \"USA\",\n \"reference\": \"ref_usd_123\"\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "pending and under review",
"data": {
"reference": "ref_usd_123",
"status": "pending and under review"
}
}Create USD Virtual Account
Request a USD virtual account for a customer. The request is reviewed asynchronously; Rivo sends virtual-account.created when the account is ready or virtual-account.rejected if it is rejected. On staging the review completes about 3 seconds later with dummy bank details, and a reference containing reject simulates a rejection.
curl --request POST \
--url https://business-api.userivo.co/business/v1/virtual-accounts/usd \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"birthDate": "1990-01-01",
"nationality": "USA",
"reference": "ref_usd_123"
}
'import requests
url = "https://business-api.userivo.co/business/v1/virtual-accounts/usd"
payload = {
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"birthDate": "1990-01-01",
"nationality": "USA",
"reference": "ref_usd_123"
}
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({
firstName: 'John',
lastName: 'Doe',
email: 'john.doe@example.com',
birthDate: '1990-01-01',
nationality: 'USA',
reference: 'ref_usd_123'
})
};
fetch('https://business-api.userivo.co/business/v1/virtual-accounts/usd', 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://business-api.userivo.co/business/v1/virtual-accounts/usd",
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([
'firstName' => 'John',
'lastName' => 'Doe',
'email' => 'john.doe@example.com',
'birthDate' => '1990-01-01',
'nationality' => 'USA',
'reference' => 'ref_usd_123'
]),
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://business-api.userivo.co/business/v1/virtual-accounts/usd"
payload := strings.NewReader("{\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"email\": \"john.doe@example.com\",\n \"birthDate\": \"1990-01-01\",\n \"nationality\": \"USA\",\n \"reference\": \"ref_usd_123\"\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://business-api.userivo.co/business/v1/virtual-accounts/usd")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"email\": \"john.doe@example.com\",\n \"birthDate\": \"1990-01-01\",\n \"nationality\": \"USA\",\n \"reference\": \"ref_usd_123\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://business-api.userivo.co/business/v1/virtual-accounts/usd")
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 \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"email\": \"john.doe@example.com\",\n \"birthDate\": \"1990-01-01\",\n \"nationality\": \"USA\",\n \"reference\": \"ref_usd_123\"\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "pending and under review",
"data": {
"reference": "ref_usd_123",
"status": "pending and under review"
}
}Authorizations
Your Business API Key
Body
"John"
"Doe"
"john.doe@example.com"
Date of birth in format yyyy-mm-dd. Must be at least 18 years old.
10"1990-01-01"
What is the primary purpose of the customer's account?
charitable_donations, ecommerce_retail_payments, investment_purposes, operating_a_company, other, payments_to_friends_or_family_abroad, personal_or_living_expenses, protect_wealth, purchase_goods_and_services, receive_payment_for_freelancing, receive_salary What is the customer's current employment status? Required for high risk customers.
employed, homemaker, retired, self_employed, student, unemployed The individuals source of funds, e.g. government_benefits, investments_loans, salary, etc. Required for high risk customers.
company_funds, ecommerce_reseller, gambling_proceeds, gifts, government_benefits, inheritance, investments_loans, pension_retirement, salary, sale_of_assets_real_estate, savings, someone_elses_funds Legacy single nationality as ISO 3166-1 alpha-3.
"USA"
"ref_usd_123"
Response
USD virtual account creation pending.
