Monicredit Api
  • 😊Hello
  • How to use this documentation
  • Demo vs Live Environment
  • Authentication
    • Login
  • OnBoarding
    • OnBoard New Merchant
  • Collection
    • Getting Started
    • Accept Payment (Inline)
    • Accept Payment (Standard)
    • Verify Payment
    • Virtual Accounts
    • Revenue Head
    • Settlement Bank
  • Transactions
    • Get Transactions
    • Get Initiated Transaction Info
    • Verify Transaction
    • Verify Payment
    • Transaction Virtual Account
    • Settlement Transactions
    • Initiate Transaction
  • Commercial
    • Calculate Commercials
  • Settlement Bank
    • Create Settlement Bank
    • List Settlement Banks
    • Update Settlement Bank
  • Revenue Heads
    • Create Revenue Head
    • Update Revenue Head
    • List Revenue Heads
    • Get Single Revenue Head
    • Search Revenue Head
    • Delete Revenue Head
  • Reports
    • Settlement Bank Report
    • Revenue Head Report
    • Merchant Report
  • Settlement
    • Get Settlements
    • Get Single Settlement
  • Wallets
    • Create Wallet
    • Update Wallet
    • Get Wallet Transactions
    • Get Single Customer Wallet
    • Get Account Wallets
    • Get All Wallets
    • Create Virtual Account
  • Customer Wallet
    • Create Customer Wallet
    • Get Customer Wallets
    • Create Customer Virtual Account
    • Update Customer Wallet
  • Beneficiary
    • Add Beneficiary
    • Update Beneficiary
    • Search Beneficiary
  • Disbursement
    • Single Fund Transfer
    • Transaction Settlement
    • Bank List
    • Name Enquiry
Powered by GitBook
On this page
  1. OnBoarding

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));
//A code snippet on how to consume the API

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://demo.backend.monicredit.com/core/auth/onboard-business',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "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"
}',
  CURLOPT_HTTPHEADER => array(
    'Accept: application/json',
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

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
    }
}
PreviousLoginNextGetting Started

Last updated 1 year ago