Create Account
curl --request POST \
--url https://api.rolla.xyz/api/v1/external/accounts \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"type": "business",
"name": "Beta Logistics LLC",
"email": "ops@betalogistics.com"
}
'import requests
url = "https://api.rolla.xyz/api/v1/external/accounts"
payload = {
"type": "business",
"name": "Beta Logistics LLC",
"email": "ops@betalogistics.com"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({type: 'business', name: 'Beta Logistics LLC', email: 'ops@betalogistics.com'})
};
fetch('https://api.rolla.xyz/api/v1/external/accounts', 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.rolla.xyz/api/v1/external/accounts",
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([
'type' => 'business',
'name' => 'Beta Logistics LLC',
'email' => 'ops@betalogistics.com'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-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.rolla.xyz/api/v1/external/accounts"
payload := strings.NewReader("{\n \"type\": \"business\",\n \"name\": \"Beta Logistics LLC\",\n \"email\": \"ops@betalogistics.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-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.rolla.xyz/api/v1/external/accounts")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"business\",\n \"name\": \"Beta Logistics LLC\",\n \"email\": \"ops@betalogistics.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rolla.xyz/api/v1/external/accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"business\",\n \"name\": \"Beta Logistics LLC\",\n \"email\": \"ops@betalogistics.com\"\n}"
response = http.request(request)
puts response.read_body{
"status": 201,
"message": "Account created successfully",
"success": true,
"data": {
"account": {
"id": "eec3cbed-79d8-4370-87a0-b6be9e287337",
"name": "Beta Logistics LLC",
"email": "ops@betalogistics.com",
"status": "created",
"entityType": "business"
},
"applicationId": "fbb45236-881a-4c58-8954-22759499eab4",
"applicationStatus": "draft"
}
}{
"status": 400,
"message": "Validation failed",
"errors": [
{
"path": [
"name"
],
"message": "Name: Business name is required for business accounts"
}
]
}{
"status": 400,
"message": "Validation failed",
"code": "ACCOUNT_RESTRICTED",
"errors": [
{
"path": [
"amount"
],
"message": "amount must be a whole number of smallest currency units (e.g. cents)"
}
]
}{
"status": 403,
"message": "This email address cannot be used. Please contact Support for assistance.",
"code": "EMAIL_BLOCKLISTED"
}{
"status": 409,
"message": "An account with this email already exists for this owner.",
"code": "ACCOUNT_EMAIL_EXISTS"
}Applications
Create Account
Creates an additional business or individual account under the same owner as your API key’s business. The new account starts as a draft KYB/KYC application that you complete via the other account onboarding endpoints.
POST
/
accounts
Create Account
curl --request POST \
--url https://api.rolla.xyz/api/v1/external/accounts \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"type": "business",
"name": "Beta Logistics LLC",
"email": "ops@betalogistics.com"
}
'import requests
url = "https://api.rolla.xyz/api/v1/external/accounts"
payload = {
"type": "business",
"name": "Beta Logistics LLC",
"email": "ops@betalogistics.com"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({type: 'business', name: 'Beta Logistics LLC', email: 'ops@betalogistics.com'})
};
fetch('https://api.rolla.xyz/api/v1/external/accounts', 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.rolla.xyz/api/v1/external/accounts",
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([
'type' => 'business',
'name' => 'Beta Logistics LLC',
'email' => 'ops@betalogistics.com'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-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.rolla.xyz/api/v1/external/accounts"
payload := strings.NewReader("{\n \"type\": \"business\",\n \"name\": \"Beta Logistics LLC\",\n \"email\": \"ops@betalogistics.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-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.rolla.xyz/api/v1/external/accounts")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"business\",\n \"name\": \"Beta Logistics LLC\",\n \"email\": \"ops@betalogistics.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rolla.xyz/api/v1/external/accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"business\",\n \"name\": \"Beta Logistics LLC\",\n \"email\": \"ops@betalogistics.com\"\n}"
response = http.request(request)
puts response.read_body{
"status": 201,
"message": "Account created successfully",
"success": true,
"data": {
"account": {
"id": "eec3cbed-79d8-4370-87a0-b6be9e287337",
"name": "Beta Logistics LLC",
"email": "ops@betalogistics.com",
"status": "created",
"entityType": "business"
},
"applicationId": "fbb45236-881a-4c58-8954-22759499eab4",
"applicationStatus": "draft"
}
}{
"status": 400,
"message": "Validation failed",
"errors": [
{
"path": [
"name"
],
"message": "Name: Business name is required for business accounts"
}
]
}{
"status": 400,
"message": "Validation failed",
"code": "ACCOUNT_RESTRICTED",
"errors": [
{
"path": [
"amount"
],
"message": "amount must be a whole number of smallest currency units (e.g. cents)"
}
]
}{
"status": 403,
"message": "This email address cannot be used. Please contact Support for assistance.",
"code": "EMAIL_BLOCKLISTED"
}{
"status": 409,
"message": "An account with this email already exists for this owner.",
"code": "ACCOUNT_EMAIL_EXISTS"
}Creates an additional business or individual account under the same owner as your API key’s business. The new account starts as a draft application that you complete with the other account onboarding endpoints.
White-label partners only. The entire account onboarding API (this endpoint and everything under
/accounts) is available only to businesses activated as white-label tenants. A non-tenant API key receives 403 Forbidden.Example Request
Business account
curl -X POST "https://api.rolla.xyz/api/v1/external/accounts" \
-H "X-API-Key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"type": "business",
"name": "Beta Logistics LLC",
"email": "ops@betalogistics.com"
}'
Individual account
curl -X POST "https://api.rolla.xyz/api/v1/external/accounts" \
-H "X-API-Key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"type": "individual",
"firstName": "Jane",
"lastName": "Doe",
"email": "jane.doe@example.com"
}'
Example Response
{
"status": 201,
"message": "Account created successfully",
"success": true,
"data": {
"account": {
"id": "eec3cbed-79d8-4370-87a0-b6be9e287337",
"name": "Beta Logistics LLC",
"email": "ops@betalogistics.com",
"status": "created",
"entityType": "business"
},
"applicationId": "fbb45236-881a-4c58-8954-22759499eab4",
"applicationStatus": "draft"
}
}
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | business or individual |
name | string | For business | Legal or trading name of the business |
firstName | string | No | Account holder first name (individual accounts); defaults to the owner’s name |
lastName | string | No | Account holder last name (individual accounts); defaults to the owner’s name |
email | string | Yes | The account’s own contact email. Required, and must be unique across your accounts — every account you onboard is a distinct customer with its own email. |
email is required and must be unique. Omitting it returns 400. Creating a
second account with the same email under your business returns 409 Conflict
with code: "ACCOUNT_EMAIL_EXISTS".An email on Rolla’s blocklist is refused with This is separate from the white-label
403 and code: "EMAIL_BLOCKLISTED":{
"status": 403,
"message": "This email address cannot be used. Please contact Support for assistance.",
"code": "EMAIL_BLOCKLISTED"
}
403 above, which has no code. Branch on code, not on the status alone.Authorizations
Your Rolla API key
Body
application/json
Type of account to create
Available options:
business, individual Example:
"business"
The account's own contact email. Required, and must be unique across your accounts — every account you onboard is a distinct customer with its own email
Example:
"ops@betalogistics.com"
Business name. Required when type is business, ignored for an individual account
Minimum string length:
1Example:
"Beta Logistics LLC"
Account holder first name (individual accounts). Defaults to the owner's name
Minimum string length:
1Example:
"Jane"
Account holder last name (individual accounts). Defaults to the owner's name
Minimum string length:
1Example:
"Doe"