Companies

Create company

Create company

POST {base url}/v1/companies

Create company

Headers

Name
Type
Description

Authorization*

Bearer token

The bearer token is the API users Secret Key

Request Body

Name
Type
Description

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

Name
Type
Description

page

number

page to return

perPage

number

number of items per page

Headers

Name
Type
Description

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

Name
Type
Description

companyId*

string

Company’s Id

Headers

Name
Type
Description

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

Name
Type
Description

companyId*

string

Company’s Id

page

number

page to return

perPage

number

number of items per page

Headers

Name
Type
Description

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

Name
Type
Description

companyId*

string

company Id

page

number

page to return

perPage

number

number of items per page

Headers

Name
Type
Description

Authorization*

Bearer token

The bearer token is the API users Secret Key

Request Body

Name
Type
Description

companyId*

string

companys Id

Update company

Update company

PATCH {base url}/v1/companies?companyId={companyId}

Update company

Query Parameters

Name
Type
Description

companyId*

string

company Id

Headers

Name
Type
Description

Authorization*

Bearer token

The bearer token is the API users Secret Key

Request Body

Name
Type
Description

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

Name
Type
Description

companyId*

string

company Id

Headers

Name
Type
Description

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

Name
Type
Description

search*

string

search term

Headers

Name
Type
Description

Authorization

Bearer token

The bearer token is the API users Secret Key

Last updated

Was this helpful?