createBusiness
curl --request POST \
--url https://sandbox.rollfi.xyz/companyOnboarding/createBusiness \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"method": "createBusiness",
"registration": {
"company": "Best LLC",
"businessWebsite": "www.schumm.com",
"doingBusinessAs": "Best",
"isTermsAccepted": true
},
"kybInformation": {
"ein": "109709569",
"entityType": "LLP",
"incorporationState": "Alabama",
"dateOfIncorporation": "2015-02-25",
"irsAssisgnedFederalFilingForm": "941",
"payrollRunThisYear": "Yes",
"formerPaidThisYear": "No"
},
"companyLocation": {
"companyLocation": "Main",
"address1": "8745 Colard Ln",
"address2": "",
"city": "Lyons",
"state": "CO",
"zipcode": "80540",
"phoneNumber": "9889890989",
"isWorkLocation": true,
"isMailingAddress": true,
"isFilingAddress": true
},
"businessUser": {
"firstName": "Manoj",
"middleName": "",
"lastName": "Deshmukh",
"phoneNumber": "9974574177",
"email": "manoje901@mailsac.com",
"address1": "8745 Colard Ln",
"address2": "",
"city": "Lyons",
"state": "CO",
"zipcode": "80540",
"ssn": "458756985",
"dateOfBirth": "2000-09-09",
"payrollAdmin": true,
"bookkeeper": true,
"beneficialOwner": true,
"ownershipPercentage": 25
}
}
'import requests
url = "https://sandbox.rollfi.xyz/companyOnboarding/createBusiness"
payload = {
"method": "createBusiness",
"registration": {
"company": "Best LLC",
"businessWebsite": "www.schumm.com",
"doingBusinessAs": "Best",
"isTermsAccepted": True
},
"kybInformation": {
"ein": "109709569",
"entityType": "LLP",
"incorporationState": "Alabama",
"dateOfIncorporation": "2015-02-25",
"irsAssisgnedFederalFilingForm": "941",
"payrollRunThisYear": "Yes",
"formerPaidThisYear": "No"
},
"companyLocation": {
"companyLocation": "Main",
"address1": "8745 Colard Ln",
"address2": "",
"city": "Lyons",
"state": "CO",
"zipcode": "80540",
"phoneNumber": "9889890989",
"isWorkLocation": True,
"isMailingAddress": True,
"isFilingAddress": True
},
"businessUser": {
"firstName": "Manoj",
"middleName": "",
"lastName": "Deshmukh",
"phoneNumber": "9974574177",
"email": "manoje901@mailsac.com",
"address1": "8745 Colard Ln",
"address2": "",
"city": "Lyons",
"state": "CO",
"zipcode": "80540",
"ssn": "458756985",
"dateOfBirth": "2000-09-09",
"payrollAdmin": True,
"bookkeeper": True,
"beneficialOwner": True,
"ownershipPercentage": 25
}
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
method: 'createBusiness',
registration: {
company: 'Best LLC',
businessWebsite: 'www.schumm.com',
doingBusinessAs: 'Best',
isTermsAccepted: true
},
kybInformation: {
ein: '109709569',
entityType: 'LLP',
incorporationState: 'Alabama',
dateOfIncorporation: '2015-02-25',
irsAssisgnedFederalFilingForm: '941',
payrollRunThisYear: 'Yes',
formerPaidThisYear: 'No'
},
companyLocation: {
companyLocation: 'Main',
address1: '8745 Colard Ln',
address2: '',
city: 'Lyons',
state: 'CO',
zipcode: '80540',
phoneNumber: '9889890989',
isWorkLocation: true,
isMailingAddress: true,
isFilingAddress: true
},
businessUser: {
firstName: 'Manoj',
middleName: '',
lastName: 'Deshmukh',
phoneNumber: '9974574177',
email: 'manoje901@mailsac.com',
address1: '8745 Colard Ln',
address2: '',
city: 'Lyons',
state: 'CO',
zipcode: '80540',
ssn: '458756985',
dateOfBirth: '2000-09-09',
payrollAdmin: true,
bookkeeper: true,
beneficialOwner: true,
ownershipPercentage: 25
}
})
};
fetch('https://sandbox.rollfi.xyz/companyOnboarding/createBusiness', 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://sandbox.rollfi.xyz/companyOnboarding/createBusiness",
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([
'method' => 'createBusiness',
'registration' => [
'company' => 'Best LLC',
'businessWebsite' => 'www.schumm.com',
'doingBusinessAs' => 'Best',
'isTermsAccepted' => true
],
'kybInformation' => [
'ein' => '109709569',
'entityType' => 'LLP',
'incorporationState' => 'Alabama',
'dateOfIncorporation' => '2015-02-25',
'irsAssisgnedFederalFilingForm' => '941',
'payrollRunThisYear' => 'Yes',
'formerPaidThisYear' => 'No'
],
'companyLocation' => [
'companyLocation' => 'Main',
'address1' => '8745 Colard Ln',
'address2' => '',
'city' => 'Lyons',
'state' => 'CO',
'zipcode' => '80540',
'phoneNumber' => '9889890989',
'isWorkLocation' => true,
'isMailingAddress' => true,
'isFilingAddress' => true
],
'businessUser' => [
'firstName' => 'Manoj',
'middleName' => '',
'lastName' => 'Deshmukh',
'phoneNumber' => '9974574177',
'email' => 'manoje901@mailsac.com',
'address1' => '8745 Colard Ln',
'address2' => '',
'city' => 'Lyons',
'state' => 'CO',
'zipcode' => '80540',
'ssn' => '458756985',
'dateOfBirth' => '2000-09-09',
'payrollAdmin' => true,
'bookkeeper' => true,
'beneficialOwner' => true,
'ownershipPercentage' => 25
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"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://sandbox.rollfi.xyz/companyOnboarding/createBusiness"
payload := strings.NewReader("{\n \"method\": \"createBusiness\",\n \"registration\": {\n \"company\": \"Best LLC\",\n \"businessWebsite\": \"www.schumm.com\",\n \"doingBusinessAs\": \"Best\",\n \"isTermsAccepted\": true\n },\n \"kybInformation\": {\n \"ein\": \"109709569\",\n \"entityType\": \"LLP\",\n \"incorporationState\": \"Alabama\",\n \"dateOfIncorporation\": \"2015-02-25\",\n \"irsAssisgnedFederalFilingForm\": \"941\",\n \"payrollRunThisYear\": \"Yes\",\n \"formerPaidThisYear\": \"No\"\n },\n \"companyLocation\": {\n \"companyLocation\": \"Main\",\n \"address1\": \"8745 Colard Ln\",\n \"address2\": \"\",\n \"city\": \"Lyons\",\n \"state\": \"CO\",\n \"zipcode\": \"80540\",\n \"phoneNumber\": \"9889890989\",\n \"isWorkLocation\": true,\n \"isMailingAddress\": true,\n \"isFilingAddress\": true\n },\n \"businessUser\": {\n \"firstName\": \"Manoj\",\n \"middleName\": \"\",\n \"lastName\": \"Deshmukh\",\n \"phoneNumber\": \"9974574177\",\n \"email\": \"manoje901@mailsac.com\",\n \"address1\": \"8745 Colard Ln\",\n \"address2\": \"\",\n \"city\": \"Lyons\",\n \"state\": \"CO\",\n \"zipcode\": \"80540\",\n \"ssn\": \"458756985\",\n \"dateOfBirth\": \"2000-09-09\",\n \"payrollAdmin\": true,\n \"bookkeeper\": true,\n \"beneficialOwner\": true,\n \"ownershipPercentage\": 25\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
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://sandbox.rollfi.xyz/companyOnboarding/createBusiness")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"method\": \"createBusiness\",\n \"registration\": {\n \"company\": \"Best LLC\",\n \"businessWebsite\": \"www.schumm.com\",\n \"doingBusinessAs\": \"Best\",\n \"isTermsAccepted\": true\n },\n \"kybInformation\": {\n \"ein\": \"109709569\",\n \"entityType\": \"LLP\",\n \"incorporationState\": \"Alabama\",\n \"dateOfIncorporation\": \"2015-02-25\",\n \"irsAssisgnedFederalFilingForm\": \"941\",\n \"payrollRunThisYear\": \"Yes\",\n \"formerPaidThisYear\": \"No\"\n },\n \"companyLocation\": {\n \"companyLocation\": \"Main\",\n \"address1\": \"8745 Colard Ln\",\n \"address2\": \"\",\n \"city\": \"Lyons\",\n \"state\": \"CO\",\n \"zipcode\": \"80540\",\n \"phoneNumber\": \"9889890989\",\n \"isWorkLocation\": true,\n \"isMailingAddress\": true,\n \"isFilingAddress\": true\n },\n \"businessUser\": {\n \"firstName\": \"Manoj\",\n \"middleName\": \"\",\n \"lastName\": \"Deshmukh\",\n \"phoneNumber\": \"9974574177\",\n \"email\": \"manoje901@mailsac.com\",\n \"address1\": \"8745 Colard Ln\",\n \"address2\": \"\",\n \"city\": \"Lyons\",\n \"state\": \"CO\",\n \"zipcode\": \"80540\",\n \"ssn\": \"458756985\",\n \"dateOfBirth\": \"2000-09-09\",\n \"payrollAdmin\": true,\n \"bookkeeper\": true,\n \"beneficialOwner\": true,\n \"ownershipPercentage\": 25\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.rollfi.xyz/companyOnboarding/createBusiness")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"method\": \"createBusiness\",\n \"registration\": {\n \"company\": \"Best LLC\",\n \"businessWebsite\": \"www.schumm.com\",\n \"doingBusinessAs\": \"Best\",\n \"isTermsAccepted\": true\n },\n \"kybInformation\": {\n \"ein\": \"109709569\",\n \"entityType\": \"LLP\",\n \"incorporationState\": \"Alabama\",\n \"dateOfIncorporation\": \"2015-02-25\",\n \"irsAssisgnedFederalFilingForm\": \"941\",\n \"payrollRunThisYear\": \"Yes\",\n \"formerPaidThisYear\": \"No\"\n },\n \"companyLocation\": {\n \"companyLocation\": \"Main\",\n \"address1\": \"8745 Colard Ln\",\n \"address2\": \"\",\n \"city\": \"Lyons\",\n \"state\": \"CO\",\n \"zipcode\": \"80540\",\n \"phoneNumber\": \"9889890989\",\n \"isWorkLocation\": true,\n \"isMailingAddress\": true,\n \"isFilingAddress\": true\n },\n \"businessUser\": {\n \"firstName\": \"Manoj\",\n \"middleName\": \"\",\n \"lastName\": \"Deshmukh\",\n \"phoneNumber\": \"9974574177\",\n \"email\": \"manoje901@mailsac.com\",\n \"address1\": \"8745 Colard Ln\",\n \"address2\": \"\",\n \"city\": \"Lyons\",\n \"state\": \"CO\",\n \"zipcode\": \"80540\",\n \"ssn\": \"458756985\",\n \"dateOfBirth\": \"2000-09-09\",\n \"payrollAdmin\": true,\n \"bookkeeper\": true,\n \"beneficialOwner\": true,\n \"ownershipPercentage\": 25\n }\n}"
response = http.request(request)
puts response.read_body{
"registration": {
"companyId": "98016CB2-FAA4-47E5-8173-DD6F29C7C397",
"kybInformationId": "32E9AE44-529A-4B4E-9C40-56DFCE99E712",
"businessUserId": "4B47C1DA-F279-40E8-ABF6-ADD82E7C2582",
"companyLocationId": "FB3B168C-62C2-43D0-A1EF-B3C6C5C6FAE3",
"status": "Registered",
"message": "A company with name Wise Wonders co is registered successfully and KYB verification is in progress."
}
}Company Onboarding
createBusiness
The createBusiness API offers a holistic solution for seamlessly integrating a new company into the system. This API is designed to streamline the onboarding process by consolidating multiple steps into a single, efficient call. This approach is ideal for businesses seeking a quick and straightforward onboarding experience.
Features of createBusiness API:
-
Company Registration
-
KYB Information
-
Location Setup
-
Admin User Addition
-
KYB Process Initiation
Notes:
- For beneficial owners all fields in the businessUser object are mandatory, since we are required to collect address and personal information for compliance
- companyLocation should be a filing address for the first location edded here
POST
/
companyOnboarding
/
createBusiness
createBusiness
curl --request POST \
--url https://sandbox.rollfi.xyz/companyOnboarding/createBusiness \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"method": "createBusiness",
"registration": {
"company": "Best LLC",
"businessWebsite": "www.schumm.com",
"doingBusinessAs": "Best",
"isTermsAccepted": true
},
"kybInformation": {
"ein": "109709569",
"entityType": "LLP",
"incorporationState": "Alabama",
"dateOfIncorporation": "2015-02-25",
"irsAssisgnedFederalFilingForm": "941",
"payrollRunThisYear": "Yes",
"formerPaidThisYear": "No"
},
"companyLocation": {
"companyLocation": "Main",
"address1": "8745 Colard Ln",
"address2": "",
"city": "Lyons",
"state": "CO",
"zipcode": "80540",
"phoneNumber": "9889890989",
"isWorkLocation": true,
"isMailingAddress": true,
"isFilingAddress": true
},
"businessUser": {
"firstName": "Manoj",
"middleName": "",
"lastName": "Deshmukh",
"phoneNumber": "9974574177",
"email": "manoje901@mailsac.com",
"address1": "8745 Colard Ln",
"address2": "",
"city": "Lyons",
"state": "CO",
"zipcode": "80540",
"ssn": "458756985",
"dateOfBirth": "2000-09-09",
"payrollAdmin": true,
"bookkeeper": true,
"beneficialOwner": true,
"ownershipPercentage": 25
}
}
'import requests
url = "https://sandbox.rollfi.xyz/companyOnboarding/createBusiness"
payload = {
"method": "createBusiness",
"registration": {
"company": "Best LLC",
"businessWebsite": "www.schumm.com",
"doingBusinessAs": "Best",
"isTermsAccepted": True
},
"kybInformation": {
"ein": "109709569",
"entityType": "LLP",
"incorporationState": "Alabama",
"dateOfIncorporation": "2015-02-25",
"irsAssisgnedFederalFilingForm": "941",
"payrollRunThisYear": "Yes",
"formerPaidThisYear": "No"
},
"companyLocation": {
"companyLocation": "Main",
"address1": "8745 Colard Ln",
"address2": "",
"city": "Lyons",
"state": "CO",
"zipcode": "80540",
"phoneNumber": "9889890989",
"isWorkLocation": True,
"isMailingAddress": True,
"isFilingAddress": True
},
"businessUser": {
"firstName": "Manoj",
"middleName": "",
"lastName": "Deshmukh",
"phoneNumber": "9974574177",
"email": "manoje901@mailsac.com",
"address1": "8745 Colard Ln",
"address2": "",
"city": "Lyons",
"state": "CO",
"zipcode": "80540",
"ssn": "458756985",
"dateOfBirth": "2000-09-09",
"payrollAdmin": True,
"bookkeeper": True,
"beneficialOwner": True,
"ownershipPercentage": 25
}
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
method: 'createBusiness',
registration: {
company: 'Best LLC',
businessWebsite: 'www.schumm.com',
doingBusinessAs: 'Best',
isTermsAccepted: true
},
kybInformation: {
ein: '109709569',
entityType: 'LLP',
incorporationState: 'Alabama',
dateOfIncorporation: '2015-02-25',
irsAssisgnedFederalFilingForm: '941',
payrollRunThisYear: 'Yes',
formerPaidThisYear: 'No'
},
companyLocation: {
companyLocation: 'Main',
address1: '8745 Colard Ln',
address2: '',
city: 'Lyons',
state: 'CO',
zipcode: '80540',
phoneNumber: '9889890989',
isWorkLocation: true,
isMailingAddress: true,
isFilingAddress: true
},
businessUser: {
firstName: 'Manoj',
middleName: '',
lastName: 'Deshmukh',
phoneNumber: '9974574177',
email: 'manoje901@mailsac.com',
address1: '8745 Colard Ln',
address2: '',
city: 'Lyons',
state: 'CO',
zipcode: '80540',
ssn: '458756985',
dateOfBirth: '2000-09-09',
payrollAdmin: true,
bookkeeper: true,
beneficialOwner: true,
ownershipPercentage: 25
}
})
};
fetch('https://sandbox.rollfi.xyz/companyOnboarding/createBusiness', 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://sandbox.rollfi.xyz/companyOnboarding/createBusiness",
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([
'method' => 'createBusiness',
'registration' => [
'company' => 'Best LLC',
'businessWebsite' => 'www.schumm.com',
'doingBusinessAs' => 'Best',
'isTermsAccepted' => true
],
'kybInformation' => [
'ein' => '109709569',
'entityType' => 'LLP',
'incorporationState' => 'Alabama',
'dateOfIncorporation' => '2015-02-25',
'irsAssisgnedFederalFilingForm' => '941',
'payrollRunThisYear' => 'Yes',
'formerPaidThisYear' => 'No'
],
'companyLocation' => [
'companyLocation' => 'Main',
'address1' => '8745 Colard Ln',
'address2' => '',
'city' => 'Lyons',
'state' => 'CO',
'zipcode' => '80540',
'phoneNumber' => '9889890989',
'isWorkLocation' => true,
'isMailingAddress' => true,
'isFilingAddress' => true
],
'businessUser' => [
'firstName' => 'Manoj',
'middleName' => '',
'lastName' => 'Deshmukh',
'phoneNumber' => '9974574177',
'email' => 'manoje901@mailsac.com',
'address1' => '8745 Colard Ln',
'address2' => '',
'city' => 'Lyons',
'state' => 'CO',
'zipcode' => '80540',
'ssn' => '458756985',
'dateOfBirth' => '2000-09-09',
'payrollAdmin' => true,
'bookkeeper' => true,
'beneficialOwner' => true,
'ownershipPercentage' => 25
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"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://sandbox.rollfi.xyz/companyOnboarding/createBusiness"
payload := strings.NewReader("{\n \"method\": \"createBusiness\",\n \"registration\": {\n \"company\": \"Best LLC\",\n \"businessWebsite\": \"www.schumm.com\",\n \"doingBusinessAs\": \"Best\",\n \"isTermsAccepted\": true\n },\n \"kybInformation\": {\n \"ein\": \"109709569\",\n \"entityType\": \"LLP\",\n \"incorporationState\": \"Alabama\",\n \"dateOfIncorporation\": \"2015-02-25\",\n \"irsAssisgnedFederalFilingForm\": \"941\",\n \"payrollRunThisYear\": \"Yes\",\n \"formerPaidThisYear\": \"No\"\n },\n \"companyLocation\": {\n \"companyLocation\": \"Main\",\n \"address1\": \"8745 Colard Ln\",\n \"address2\": \"\",\n \"city\": \"Lyons\",\n \"state\": \"CO\",\n \"zipcode\": \"80540\",\n \"phoneNumber\": \"9889890989\",\n \"isWorkLocation\": true,\n \"isMailingAddress\": true,\n \"isFilingAddress\": true\n },\n \"businessUser\": {\n \"firstName\": \"Manoj\",\n \"middleName\": \"\",\n \"lastName\": \"Deshmukh\",\n \"phoneNumber\": \"9974574177\",\n \"email\": \"manoje901@mailsac.com\",\n \"address1\": \"8745 Colard Ln\",\n \"address2\": \"\",\n \"city\": \"Lyons\",\n \"state\": \"CO\",\n \"zipcode\": \"80540\",\n \"ssn\": \"458756985\",\n \"dateOfBirth\": \"2000-09-09\",\n \"payrollAdmin\": true,\n \"bookkeeper\": true,\n \"beneficialOwner\": true,\n \"ownershipPercentage\": 25\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
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://sandbox.rollfi.xyz/companyOnboarding/createBusiness")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"method\": \"createBusiness\",\n \"registration\": {\n \"company\": \"Best LLC\",\n \"businessWebsite\": \"www.schumm.com\",\n \"doingBusinessAs\": \"Best\",\n \"isTermsAccepted\": true\n },\n \"kybInformation\": {\n \"ein\": \"109709569\",\n \"entityType\": \"LLP\",\n \"incorporationState\": \"Alabama\",\n \"dateOfIncorporation\": \"2015-02-25\",\n \"irsAssisgnedFederalFilingForm\": \"941\",\n \"payrollRunThisYear\": \"Yes\",\n \"formerPaidThisYear\": \"No\"\n },\n \"companyLocation\": {\n \"companyLocation\": \"Main\",\n \"address1\": \"8745 Colard Ln\",\n \"address2\": \"\",\n \"city\": \"Lyons\",\n \"state\": \"CO\",\n \"zipcode\": \"80540\",\n \"phoneNumber\": \"9889890989\",\n \"isWorkLocation\": true,\n \"isMailingAddress\": true,\n \"isFilingAddress\": true\n },\n \"businessUser\": {\n \"firstName\": \"Manoj\",\n \"middleName\": \"\",\n \"lastName\": \"Deshmukh\",\n \"phoneNumber\": \"9974574177\",\n \"email\": \"manoje901@mailsac.com\",\n \"address1\": \"8745 Colard Ln\",\n \"address2\": \"\",\n \"city\": \"Lyons\",\n \"state\": \"CO\",\n \"zipcode\": \"80540\",\n \"ssn\": \"458756985\",\n \"dateOfBirth\": \"2000-09-09\",\n \"payrollAdmin\": true,\n \"bookkeeper\": true,\n \"beneficialOwner\": true,\n \"ownershipPercentage\": 25\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.rollfi.xyz/companyOnboarding/createBusiness")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"method\": \"createBusiness\",\n \"registration\": {\n \"company\": \"Best LLC\",\n \"businessWebsite\": \"www.schumm.com\",\n \"doingBusinessAs\": \"Best\",\n \"isTermsAccepted\": true\n },\n \"kybInformation\": {\n \"ein\": \"109709569\",\n \"entityType\": \"LLP\",\n \"incorporationState\": \"Alabama\",\n \"dateOfIncorporation\": \"2015-02-25\",\n \"irsAssisgnedFederalFilingForm\": \"941\",\n \"payrollRunThisYear\": \"Yes\",\n \"formerPaidThisYear\": \"No\"\n },\n \"companyLocation\": {\n \"companyLocation\": \"Main\",\n \"address1\": \"8745 Colard Ln\",\n \"address2\": \"\",\n \"city\": \"Lyons\",\n \"state\": \"CO\",\n \"zipcode\": \"80540\",\n \"phoneNumber\": \"9889890989\",\n \"isWorkLocation\": true,\n \"isMailingAddress\": true,\n \"isFilingAddress\": true\n },\n \"businessUser\": {\n \"firstName\": \"Manoj\",\n \"middleName\": \"\",\n \"lastName\": \"Deshmukh\",\n \"phoneNumber\": \"9974574177\",\n \"email\": \"manoje901@mailsac.com\",\n \"address1\": \"8745 Colard Ln\",\n \"address2\": \"\",\n \"city\": \"Lyons\",\n \"state\": \"CO\",\n \"zipcode\": \"80540\",\n \"ssn\": \"458756985\",\n \"dateOfBirth\": \"2000-09-09\",\n \"payrollAdmin\": true,\n \"bookkeeper\": true,\n \"beneficialOwner\": true,\n \"ownershipPercentage\": 25\n }\n}"
response = http.request(request)
puts response.read_body{
"registration": {
"companyId": "98016CB2-FAA4-47E5-8173-DD6F29C7C397",
"kybInformationId": "32E9AE44-529A-4B4E-9C40-56DFCE99E712",
"businessUserId": "4B47C1DA-F279-40E8-ABF6-ADD82E7C2582",
"companyLocationId": "FB3B168C-62C2-43D0-A1EF-B3C6C5C6FAE3",
"status": "Registered",
"message": "A company with name Wise Wonders co is registered successfully and KYB verification is in progress."
}
}Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body
application/json
Response
Show child attributes
Show child attributes
⌘I
