OnBoard New Merchant
This endpoint allows merchants to create an account on the platform. It requires the following information.
//A code snippet on how to consume the API
var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
myHeaders.append("Content-Type", "application/json");
var raw = JSON.stringify({
"first_name": "Feranmi",
"last_name": "Emmanuel",
"user_type": "Merchant",
"email": "ep29--@exaeeey6mple.com",
"password": "password",
"password_confirmation": "password",
"business_name": "BUSINESS",
"phone": "08145986958",
"bvn": "222211277",
"bank_code": "044",
"account_no": "0767474393",
"settlement_bank_title": "Test",
"bank_name": "Access Bank",
"settlement_email": "example@example.com"
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://demo.backend.monicredit.com/core/auth/onboard-business", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
POST
{{BaseURL}}/core/auth/onboard
If the Onboarding is successful, the API will return a response with a 200
status code and a JSON object containing the data of the Merchant.
Request Body
Name
Type
Description
first_name*
String
Test
last_name*
String
Test
user_type*
String
Merchant
email*
String
test@test.com
password*
String
password
password_confirmation*
String
password
business_name*
String
Business
phone*
String
00000000
bvn*
String
000000000
bank_code*
String
0000
account_no*
String
00000000
settlement_bank_title*
String
Test
bank_name*
String
Test
settlement_email*
String
test@test.com
{
"success": true,
"message": "Merchant Onboarding Successfull",
"UserData": {
"id": "US000000",
"success": true,
"message": "Account Created."
},
"AccountData": {
"headers": {},
"original": {
"status": true,
"message": "Account created succesfully",
"data": {
"id": "ACC000000",
"user_id": "US000000",
"name": "Test",
"type": "MERCHANT",
"tier": "test",
"updated_at": "2022-09-13T16:28:20.000000Z",
"created_at": "2022-09-13T16:28:20.000000Z"
}
},
"exception": null
}
}
Last updated