Register a partner account
curl --request POST \
--url https://api.rexmfbank.com/baas/api/v1/client/onboarding/register \
--header 'Content-Type: application/json' \
--data '
{
"business_name": "Acme Payments Ltd",
"email": "[email protected]",
"password": "correct-horse-battery-staple",
"password_confirmation": "correct-horse-battery-staple",
"phone": "+2348000000000"
}
'import requests
url = "https://api.rexmfbank.com/baas/api/v1/client/onboarding/register"
payload = {
"business_name": "Acme Payments Ltd",
"email": "[email protected]",
"password": "correct-horse-battery-staple",
"password_confirmation": "correct-horse-battery-staple",
"phone": "+2348000000000"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
business_name: 'Acme Payments Ltd',
email: '[email protected]',
password: 'correct-horse-battery-staple',
password_confirmation: 'correct-horse-battery-staple',
phone: '+2348000000000'
})
};
fetch('https://api.rexmfbank.com/baas/api/v1/client/onboarding/register', 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.rexmfbank.com/baas/api/v1/client/onboarding/register",
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([
'business_name' => 'Acme Payments Ltd',
'email' => '[email protected]',
'password' => 'correct-horse-battery-staple',
'password_confirmation' => 'correct-horse-battery-staple',
'phone' => '+2348000000000'
]),
CURLOPT_HTTPHEADER => [
"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.rexmfbank.com/baas/api/v1/client/onboarding/register"
payload := strings.NewReader("{\n \"business_name\": \"Acme Payments Ltd\",\n \"email\": \"[email protected]\",\n \"password\": \"correct-horse-battery-staple\",\n \"password_confirmation\": \"correct-horse-battery-staple\",\n \"phone\": \"+2348000000000\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.rexmfbank.com/baas/api/v1/client/onboarding/register")
.header("Content-Type", "application/json")
.body("{\n \"business_name\": \"Acme Payments Ltd\",\n \"email\": \"[email protected]\",\n \"password\": \"correct-horse-battery-staple\",\n \"password_confirmation\": \"correct-horse-battery-staple\",\n \"phone\": \"+2348000000000\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rexmfbank.com/baas/api/v1/client/onboarding/register")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"business_name\": \"Acme Payments Ltd\",\n \"email\": \"[email protected]\",\n \"password\": \"correct-horse-battery-staple\",\n \"password_confirmation\": \"correct-horse-battery-staple\",\n \"phone\": \"+2348000000000\"\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "OTP sent.",
"data": {
"company_id": 4821,
"email": "[email protected]"
}
}{
"status": "error",
"message": "Validation failed.",
"error_code": "VALIDATION_FAILED",
"errors": {
"email": [
"The email has already been taken."
]
}
}Authentication
Register a partner account
Creates your business’s Rex BaaS partner account and sends a 6-digit OTP to the email you provide. Verify it with Verify Registration OTP before logging in — an unverified account cannot log in.
POST
/
client
/
onboarding
/
register
Register a partner account
curl --request POST \
--url https://api.rexmfbank.com/baas/api/v1/client/onboarding/register \
--header 'Content-Type: application/json' \
--data '
{
"business_name": "Acme Payments Ltd",
"email": "[email protected]",
"password": "correct-horse-battery-staple",
"password_confirmation": "correct-horse-battery-staple",
"phone": "+2348000000000"
}
'import requests
url = "https://api.rexmfbank.com/baas/api/v1/client/onboarding/register"
payload = {
"business_name": "Acme Payments Ltd",
"email": "[email protected]",
"password": "correct-horse-battery-staple",
"password_confirmation": "correct-horse-battery-staple",
"phone": "+2348000000000"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
business_name: 'Acme Payments Ltd',
email: '[email protected]',
password: 'correct-horse-battery-staple',
password_confirmation: 'correct-horse-battery-staple',
phone: '+2348000000000'
})
};
fetch('https://api.rexmfbank.com/baas/api/v1/client/onboarding/register', 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.rexmfbank.com/baas/api/v1/client/onboarding/register",
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([
'business_name' => 'Acme Payments Ltd',
'email' => '[email protected]',
'password' => 'correct-horse-battery-staple',
'password_confirmation' => 'correct-horse-battery-staple',
'phone' => '+2348000000000'
]),
CURLOPT_HTTPHEADER => [
"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.rexmfbank.com/baas/api/v1/client/onboarding/register"
payload := strings.NewReader("{\n \"business_name\": \"Acme Payments Ltd\",\n \"email\": \"[email protected]\",\n \"password\": \"correct-horse-battery-staple\",\n \"password_confirmation\": \"correct-horse-battery-staple\",\n \"phone\": \"+2348000000000\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.rexmfbank.com/baas/api/v1/client/onboarding/register")
.header("Content-Type", "application/json")
.body("{\n \"business_name\": \"Acme Payments Ltd\",\n \"email\": \"[email protected]\",\n \"password\": \"correct-horse-battery-staple\",\n \"password_confirmation\": \"correct-horse-battery-staple\",\n \"phone\": \"+2348000000000\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rexmfbank.com/baas/api/v1/client/onboarding/register")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"business_name\": \"Acme Payments Ltd\",\n \"email\": \"[email protected]\",\n \"password\": \"correct-horse-battery-staple\",\n \"password_confirmation\": \"correct-horse-battery-staple\",\n \"phone\": \"+2348000000000\"\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "OTP sent.",
"data": {
"company_id": 4821,
"email": "[email protected]"
}
}{
"status": "error",
"message": "Validation failed.",
"error_code": "VALIDATION_FAILED",
"errors": {
"email": [
"The email has already been taken."
]
}
}Body
application/json
Maximum string length:
191Example:
"Acme Payments Ltd"
Example:
Minimum string length:
8Example:
"correct-horse-battery-staple"
Example:
"correct-horse-battery-staple"
Example:
"+2348000000000"
Response
OTP sent