Companies
Create company
Create company
POST
{base url}/v1/companies
Create company
Headers
Authorization*
Bearer token
The bearer token is the API users Secret Key
Request Body
registrationNumber
string
company registration number
name
string
company name
logo
string
company logo
address*
string
company address
city
string
company city
state*
string
company state
country*
string
company country
email*
string
company email
phoneNumber
string
company phone number
customData
object
company custom data
Get companies
Get companies
GET
{base url}/v1/companies?page={page}&perPage={perPage}
Returns paginated data of all companies
Query Parameters
page
number
page to return
perPage
number
number of items per page
Headers
Authorization*
Bearer token
The bearer token is the API users Secret Key
Get companies by id
Get companies by Id
GET
{base url}/v1/companies? companyId={companyId}
Return single company by Id
Query Parameters
companyId*
string
Company’s Id
Headers
Authorization*
Bearer token
The bearer token is the API users Secret Key
Get company loans
Get company loans
GET
{base url}/v1/companies/{companyId}/loans?page={page}&perPage={perPage}
Get company loans
Query Parameters
companyId*
string
Company’s Id
page
number
page to return
perPage
number
number of items per page
Headers
Authorization*
Bearer token
The bearer token is the API users Secret Key
Get company deposits
Get company deposits
GET
{base url}/v1/companies/{companyId}/deposits?page={page}&perPage={perPage}
Returns paginated list of company deposits
Query Parameters
companyId*
string
company Id
page
number
page to return
perPage
number
number of items per page
Headers
Authorization*
Bearer token
The bearer token is the API users Secret Key
Request Body
companyId*
string
companys Id
Update company
Update company
PATCH
{base url}/v1/companies?companyId={companyId}
Update company
Query Parameters
companyId*
string
company Id
Headers
Authorization*
Bearer token
The bearer token is the API users Secret Key
Request Body
registrationNumber
string
company registration number
name*
string
company name
address*
string
company address
city*
string
company city
state*
string
company state
country*
string
company country
email*
string
company email
phoneNumber
string
company phone number
status*
string
company status
customData
object
company custom data
Delete company
Delete company
DELETE
{base url}/v1/companies?companyId={companyId}
Delete a single company
Query Parameters
companyId*
string
company Id
Headers
Authorization*
Bearer token
The bearer token is the API users Secret Key
Search companies
Search company
GET
{base url}/v1/companies?search={search}
Search company
Query Parameters
search*
string
search term
Headers
Authorization
Bearer token
The bearer token is the API users Secret Key
Last updated
Was this helpful?