Overview: Company is the top level entity for SmartApp, any businesses data is consolidated max upto Company Level(Top Level).
API Usage: This API can be used to get list of companies using SmartApp.
Signature:
// @desc Get all companies
// @route GET /api/v1/companies
// @access Public
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
Overview: Company is the top level entity for SmartApp, any businesses data is consolidated max upto Company Level(Top Level).
API Usage: This API can be used to get dedails of one company using SmartApp.
Signature:
// @desc Get single company
// @route GET /api/v1/companies/:id
// @access Public
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
Overview: Apps are used for Business Transactions within SmartApp.
API Usage: This API can be used to create new App for SmartApp.
Signature:
// @desc Create new app
// @route POST /api/v1/apps
// @access Private (Admin)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlOWNjNjE4MmFiNmQ5OWEwN2Y1ZDEyNSIsImlhdCI6MTU4NzM5MDQ0NiwiZXhwIjoxNTg5OTgyNDQ2fQ.KQz0NfA6i1FiNuGYSI_pZnF_xeVIMFg79qpYu8hKX4E |
Overview: Company is the top level entity for SmartApp, any businesses data is consolidated max upto Company Level(Top Level).
API Usage: This API can be used to update a company.
Signature:
// @desc Update company
// @route PUT /api/v1/companies/:id
// @access Private
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlOWNjNjE4MmFiNmQ5OWEwN2Y1ZDEyNSIsImlhdCI6MTU4NzM5MDQ0NiwiZXhwIjoxNTg5OTgyNDQ2fQ.KQz0NfA6i1FiNuGYSI_pZnF_xeVIMFg79qpYu8hKX4E |
Overview: Company is the top level entity for SmartApp, any businesses data is consolidated max upto Company Level(Top Level).
API Usage: This API can be used to update a company.
Signature:
// @desc Delete company
// @route DELETE /api/v1/companies/:id
// @access Private
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlOWNjNjE4MmFiNmQ5OWEwN2Y1ZDEyNSIsImlhdCI6MTU4NzM5MDQ0NiwiZXhwIjoxNTg5OTgyNDQ2fQ.KQz0NfA6i1FiNuGYSI_pZnF_xeVIMFg79qpYu8hKX4E |
| Key | Value | Description |
|---|---|---|
| file |
Title: Upload photo for company
Overview: Company is the top level entity for SmartApp, any businesses data is consolidated max upto Company Level(Top Level).
API Usage: This API can be used to upload company phots and pics.
Signature:
// @desc Upload photo for company
// @route PUT /api/v1/companies/:id/photo
// @access Private
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlOWNjNjE4MmFiNmQ5OWEwN2Y1ZDEyNSIsImlhdCI6MTU4NzM5MDQ0NiwiZXhwIjoxNTg5OTgyNDQ2fQ.KQz0NfA6i1FiNuGYSI_pZnF_xeVIMFg79qpYu8hKX4E |
| Key | Value | Description |
|---|---|---|
| file |
Title: Upload documents for the company
Overview: Company is the top level entity for SmartApp, any businesses data is consolidated max upto Company Level(Top Level).
API Usage: This API can be used to upload company documents(PDF, Word, Excel, Text).
Signature:
// @desc Upload documents for the company
// @route PUT /api/v1/companies/:id/document
// @access Private
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| file |
Overview: Company is the top level entity for SmartApp, any businesses data is consolidated max upto Company Level(Top Level).
API Usage: This API can be used to get list of companies using SmartApp.
Signature:
// @desc Get all companies
// @route GET /api/v1/companies
// @access Public
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| Key | Value | Description |
|---|---|---|
| limit | 5 | |
| page | 2 |
Overview: Company is the top level entity for SmartApp, any businesses data is consolidated max upto Company Level(Top Level).
API Usage: This API can be used to get dedails of one company using SmartApp.
Signature:
// @desc Get single company
// @route GET /api/v1/companies/:id
// @access Public
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
Overview: Apps are used for Business Transactions within SmartApp.
API Usage: This API can be used to create new App for SmartApp.
Signature:
// @desc Create new app
// @route POST /api/v1/apps
// @access Private (Admin)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlOWNjNjE4MmFiNmQ5OWEwN2Y1ZDEyNSIsImlhdCI6MTU4NzM5MDQ0NiwiZXhwIjoxNTg5OTgyNDQ2fQ.KQz0NfA6i1FiNuGYSI_pZnF_xeVIMFg79qpYu8hKX4E |
Overview: Company is the top level entity for SmartApp, any businesses data is consolidated max upto Company Level(Top Level).
API Usage: This API can be used to update a company.
Signature:
// @desc Update company
// @route PUT /api/v1/companies/:id
// @access Private
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlOWNjNjE4MmFiNmQ5OWEwN2Y1ZDEyNSIsImlhdCI6MTU4NzM5MDQ0NiwiZXhwIjoxNTg5OTgyNDQ2fQ.KQz0NfA6i1FiNuGYSI_pZnF_xeVIMFg79qpYu8hKX4E |
Overview: Company is the top level entity for SmartApp, any businesses data is consolidated max upto Company Level(Top Level).
API Usage: This API can be used to update a company.
Signature:
// @desc Delete company
// @route DELETE /api/v1/companies/:id
// @access Private
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlOWNjNjE4MmFiNmQ5OWEwN2Y1ZDEyNSIsImlhdCI6MTU4NzM5MDQ0NiwiZXhwIjoxNTg5OTgyNDQ2fQ.KQz0NfA6i1FiNuGYSI_pZnF_xeVIMFg79qpYu8hKX4E |
| Key | Value | Description |
|---|---|---|
| file |
Title: Upload photo for company
Overview: Company is the top level entity for SmartApp, any businesses data is consolidated max upto Company Level(Top Level).
API Usage: This API can be used to upload company phots and pics.
Signature:
// @desc Upload photo for company
// @route PUT /api/v1/companies/:id/photo
// @access Private
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlOWNjNjE4MmFiNmQ5OWEwN2Y1ZDEyNSIsImlhdCI6MTU4NzM5MDQ0NiwiZXhwIjoxNTg5OTgyNDQ2fQ.KQz0NfA6i1FiNuGYSI_pZnF_xeVIMFg79qpYu8hKX4E |
| Key | Value | Description |
|---|---|---|
| file |
Title: Upload documents for the company
Overview: Company is the top level entity for SmartApp, any businesses data is consolidated max upto Company Level(Top Level).
API Usage: This API can be used to upload company documents(PDF, Word, Excel, Text).
Signature:
// @desc Upload documents for the company
// @route PUT /api/v1/companies/:id/document
// @access Private
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| file |
/api/v1/appschema
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
/api/v1/appschema
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
Add Validation Rule
/api/v1/validationrule
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
Overview: Company is the top level entity for SmartApp, any businesses data is consolidated max upto Company Level(Top Level).
API Usage: This API can be used to get list of companies using SmartApp.
Signature:
// @desc Get all companies
// @route GET /api/v1/companies
// @access Public
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
Overview: Company is the top level entity for SmartApp, any businesses data is consolidated max upto Company Level(Top Level).
API Usage: This API can be used to get dedails of one company using SmartApp.
Signature:
// @desc Get single company
// @route GET /api/v1/companies/:id
// @access Public
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
Overview: Apps are used for Business Transactions within SmartApp.
API Usage: This API can be used to create new App for SmartApp.
Signature:
// @desc Create new app
// @route POST /api/v1/apps
// @access Private (Admin)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlOWNjNjE4MmFiNmQ5OWEwN2Y1ZDEyNSIsImlhdCI6MTU4NzM5MDQ0NiwiZXhwIjoxNTg5OTgyNDQ2fQ.KQz0NfA6i1FiNuGYSI_pZnF_xeVIMFg79qpYu8hKX4E |
Overview: Company is the top level entity for SmartApp, any businesses data is consolidated max upto Company Level(Top Level).
API Usage: This API can be used to update a company.
Signature:
// @desc Update company
// @route PUT /api/v1/companies/:id
// @access Private
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlOWNjNjE4MmFiNmQ5OWEwN2Y1ZDEyNSIsImlhdCI6MTU4NzM5MDQ0NiwiZXhwIjoxNTg5OTgyNDQ2fQ.KQz0NfA6i1FiNuGYSI_pZnF_xeVIMFg79qpYu8hKX4E |
Overview: Company is the top level entity for SmartApp, any businesses data is consolidated max upto Company Level(Top Level).
API Usage: This API can be used to update a company.
Signature:
// @desc Delete company
// @route DELETE /api/v1/companies/:id
// @access Private
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlOWNjNjE4MmFiNmQ5OWEwN2Y1ZDEyNSIsImlhdCI6MTU4NzM5MDQ0NiwiZXhwIjoxNTg5OTgyNDQ2fQ.KQz0NfA6i1FiNuGYSI_pZnF_xeVIMFg79qpYu8hKX4E |
| Key | Value | Description |
|---|---|---|
| file |
Title: Upload photo for company
Overview: Company is the top level entity for SmartApp, any businesses data is consolidated max upto Company Level(Top Level).
API Usage: This API can be used to upload company phots and pics.
Signature:
// @desc Upload photo for company
// @route PUT /api/v1/companies/:id/photo
// @access Private
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlOWNjNjE4MmFiNmQ5OWEwN2Y1ZDEyNSIsImlhdCI6MTU4NzM5MDQ0NiwiZXhwIjoxNTg5OTgyNDQ2fQ.KQz0NfA6i1FiNuGYSI_pZnF_xeVIMFg79qpYu8hKX4E |
| Key | Value | Description |
|---|---|---|
| file |
Title: Upload documents for the company
Overview: Company is the top level entity for SmartApp, any businesses data is consolidated max upto Company Level(Top Level).
API Usage: This API can be used to upload company documents(PDF, Word, Excel, Text).
Signature:
// @desc Upload documents for the company
// @route PUT /api/v1/companies/:id/document
// @access Private
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| file |
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| applicationid | EDU00097 |
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| applicationid | EMPACC01 |
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| applicationid | EMPBOK01 |
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| applicationid | EMP00006 |
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| businessrole | Student |
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| businessrole | Employee |
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| Key | Value | Description |
|---|---|---|
| file |
Overview: Branch is second level entity for SmartApp, Branch can be used to define access level for users. As an example: Company: XYZ Ltd Branch: XYZ London Office, XYZ Mumbai Office, XYZ Paris Office etc..
API Usage: This API can be used to get list of branches for a company using SmartApp.
Signature:
// @desc Get branches
// @route GET /api/v1/branches
// @route GET /api/v1/companies/:companyId/branches
// @access Private (Any one in the Company)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
Overview: Branch is second level entity for SmartApp, Branch can be used to define access level for users. As an example: Company: XYZ Ltd Branch: XYZ London Office, XYZ Mumbai Office, XYZ Paris Office etc..
API Usage: This API can be used to get the details of a branch for a company using SmartApp.
Signature:
// @desc Get single branch
// @route GET /api/v1/branches/:id
// @access Private (Any one in the Company)
Overview: Branch is second level entity for SmartApp, Branch can be used to define access level for users. As an example: Company: XYZ Ltd Branch: XYZ London Office, XYZ Mumbai Office, XYZ Paris Office etc..
API Usage: This API can be used to create a branch for a company using SmartApp.
Signature:
// @desc Add branch
// @route POST /api/v1/companies/:companyId/branches
// @access Private(Company Admin)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlOWNjNjE4MmFiNmQ5OWEwN2Y1ZDEyNSIsImlhdCI6MTU4NzM5MDQ0NiwiZXhwIjoxNTg5OTgyNDQ2fQ.KQz0NfA6i1FiNuGYSI_pZnF_xeVIMFg79qpYu8hKX4E |
Overview: Branch is second level entity for SmartApp, Branch can be used to define access level for users. As an example: Company: XYZ Ltd Branch: XYZ London Office, XYZ Mumbai Office, XYZ Paris Office etc..
API Usage: This API can be used to update branch for a company using SmartApp.
Signature:
// @desc Update branch
// @route PUT /api/v1/branches/:id
// @access Private(Company Admin)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlOWNjNjE4MmFiNmQ5OWEwN2Y1ZDEyNSIsImlhdCI6MTU4NzM5MDQ0NiwiZXhwIjoxNTg5OTgyNDQ2fQ.KQz0NfA6i1FiNuGYSI_pZnF_xeVIMFg79qpYu8hKX4E |
Overview: Branch is second level entity for SmartApp, Branch can be used to define access level for users. As an example: Company: XYZ Ltd Branch: XYZ London Office, XYZ Mumbai Office, XYZ Paris Office etc..
API Usage: This API can be used to delete branch for a company using SmartApp.
Signature:
// @desc Delete branch
// @route DELETE /api/v1/branches/:id
// @access Private(Company Admin)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
Title: Get branches within a radius
Overview: Company is the top level entity for SmartApp, any businesses data is consolidated max upto Company Level(Top Level).
API Usage: This API can be used to find branch withing specified radius.
Signature:
// @desc Get branches within a radius
// @route GET /api/v1/branches/radius/:zipcode/:distance
// @access Private(Anyone within Company)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
Title: Upload photo for company
Overview: Company is the top level entity for SmartApp, any businesses data is consolidated max upto Company Level(Top Level).
API Usage: This API can be used to upload company phots and pics.
Signature:
// @desc Upload photo for company
// @route PUT /api/v1/companies/:id/photo
// @access Private(Company Admin)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlOWNjNjE4MmFiNmQ5OWEwN2Y1ZDEyNSIsImlhdCI6MTU4NzM5MDQ0NiwiZXhwIjoxNTg5OTgyNDQ2fQ.KQz0NfA6i1FiNuGYSI_pZnF_xeVIMFg79qpYu8hKX4E |
| Key | Value | Description |
|---|---|---|
| file |
Title: Upload photo for company
Overview: Company is the top level entity for SmartApp, any businesses data is consolidated max upto Company Level(Top Level).
API Usage: This API can be used to upload company phots and pics.
Signature:
// @desc Upload photo for company
// @route PUT /api/v1/companies/:id/photo
// @access Private(Company Admin)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| file |
Overview: Business Area is second level entity for SmartApp, Business Area can be used to define access level for users. As an example: Company: XYZ Ltd Business Area: Purchasing, Sales, R&D, Marketing etc..
API Usage: This API can be used to get list of Business Area for a company using SmartApp.
Signature:
// @desc Get branches
// @route GET /api/v1/branches
// @route GET /api/v1/companies/:companyId/branches
// @access Private (Any one in the Company)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
Overview: Business Area is second level entity for SmartApp, Business Area can be used to define access level for users. As an example: Company: XYZ Ltd Business Area: Purchasing, Sales, R&D, Marketing etc..
API Usage: This API can be used to get list of Business Area for a company using SmartApp.
Signature:
// @desc Get single branch
// @route GET /api/v1/branches/:id
// @access Private (Any one in the Company)
Overview: Business Area is second level entity for SmartApp, Business Area can be used to define access level for users. As an example: Company: XYZ Ltd Business Area: Purchasing, Sales, R&D, Marketing etc..
API Usage: This API can be used to get list of Business Area for a company using SmartApp.
Signature:
// @desc Add branch
// @route POST /api/v1/companies/:companyId/branches
// @access Private(Company Admin)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlOWNjNjE4MmFiNmQ5OWEwN2Y1ZDEyNSIsImlhdCI6MTU4NzM5MDQ0NiwiZXhwIjoxNTg5OTgyNDQ2fQ.KQz0NfA6i1FiNuGYSI_pZnF_xeVIMFg79qpYu8hKX4E |
Overview: Business Area is second level entity for SmartApp, Business Area can be used to define access level for users. As an example: Company: XYZ Ltd Business Area: Purchasing, Sales, R&D, Marketing etc..
API Usage: This API can be used to get list of Business Area for a company using SmartApp.
Signature:
// @desc Update branch
// @route PUT /api/v1/branches/:id
// @access Private(Company Admin)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlOWNjNjE4MmFiNmQ5OWEwN2Y1ZDEyNSIsImlhdCI6MTU4NzM5MDQ0NiwiZXhwIjoxNTg5OTgyNDQ2fQ.KQz0NfA6i1FiNuGYSI_pZnF_xeVIMFg79qpYu8hKX4E |
Overview: Business Area is second level entity for SmartApp, Business Area can be used to define access level for users. As an example: Company: XYZ Ltd Business Area: Purchasing, Sales, R&D, Marketing etc..
API Usage: This API can be used to get list of Business Area for a company using SmartApp.
Signature:
// @desc Delete branch
// @route DELETE /api/v1/branches/:id
// @access Private(Company Admin)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
Title: Find Business Area within Radius (This may not be required!!)
Overview: Business Area is second level entity for SmartApp, Business Area can be used to define access level for users. As an example: Company: XYZ Ltd Business Area: Purchasing, Sales, R&D, Marketing etc..
API Usage: This API can be used to get list of Business Area for a company using SmartApp.
Signature:
// @desc Get branches within a radius
// @route GET /api/v1/branches/radius/:zipcode/:distance
// @access Private(Anyone within Company)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
Title: Upload documents for Business Area
Overview: Business Area is second level entity for SmartApp, Business Area can be used to define access level for users. As an example: Company: XYZ Ltd Business Area: Purchasing, Sales, R&D, Marketing etc..
API Usage: This API can be used to get list of Business Area for a company using SmartApp.
Signature:
// @desc Upload photo for company
// @route PUT /api/v1/companies/:id/photo
// @access Private(Company Admin)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| file |
Overview: Company is the top level entity for SmartApp, any businesses data is consolidated max upto Company Level(Top Level).
API Usage: This API can be used to get list of companies using SmartApp.
Signature:
// @desc Get all companies
// @route GET /api/v1/companies
// @access Public
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
Overview: Company is the top level entity for SmartApp, any businesses data is consolidated max upto Company Level(Top Level).
API Usage: This API can be used to get dedails of one company using SmartApp.
Signature:
// @desc Get single company
// @route GET /api/v1/companies/:id
// @access Public
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
Overview: Branch is second level entity for SmartApp, Branch can be used to define access level for users. As an example: Company: XYZ Ltd Branch: XYZ London Office, XYZ Mumbai Office, XYZ Paris Office etc..
API Usage: This API can be used to update branch for a company using SmartApp.
Signature:
// @desc Update branch
// @route PUT /api/v1/branches/:id
// @access Private(Company Admin)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlOWNjNjE4MmFiNmQ5OWEwN2Y1ZDEyNSIsImlhdCI6MTU4NzM5MDQ0NiwiZXhwIjoxNTg5OTgyNDQ2fQ.KQz0NfA6i1FiNuGYSI_pZnF_xeVIMFg79qpYu8hKX4E |
Overview: Company is the top level entity for SmartApp, any businesses data is consolidated max upto Company Level(Top Level).
API Usage: This API can be used to create one company SmartApp.
Signature:
// @desc Create new company
// @route POST /api/v1/companies
// @access Private (Admin)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlOWNjNjE4MmFiNmQ5OWEwN2Y1ZDEyNSIsImlhdCI6MTU4NzM5MDQ0NiwiZXhwIjoxNTg5OTgyNDQ2fQ.KQz0NfA6i1FiNuGYSI_pZnF_xeVIMFg79qpYu8hKX4E |
Overview: Company is the top level entity for SmartApp, any businesses data is consolidated max upto Company Level(Top Level).
API Usage: This API can be used to update a company.
Signature:
// @desc Delete company
// @route DELETE /api/v1/companies/:id
// @access Private (Admin)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
Title: Get companies within a radius
Overview: Company is the top level entity for SmartApp, any businesses data is consolidated max upto Company Level(Top Level).
API Usage: This API can be used to find company withing specified radius.
Signature:
// @desc Get companies within a radius
// @route GET /api/v1/companies/radius/:zipcode/:distance
// @access Private (Admin)
Title: Upload photo for company
Overview: Company is the top level entity for SmartApp, any businesses data is consolidated max upto Company Level(Top Level).
API Usage: This API can be used to upload company phots and pics.
Signature:
// @desc Upload photo for company
// @route PUT /api/v1/companies/:id/photo
// @access Private (Company Admin)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlOWNjNjE4MmFiNmQ5OWEwN2Y1ZDEyNSIsImlhdCI6MTU4NzM5MDQ0NiwiZXhwIjoxNTg5OTgyNDQ2fQ.KQz0NfA6i1FiNuGYSI_pZnF_xeVIMFg79qpYu8hKX4E | |
| file |
| Key | Value | Description |
|---|---|---|
| file |
Title: Upload documents for the company
Overview: Company is the top level entity for SmartApp, any businesses data is consolidated max upto Company Level(Top Level).
API Usage: This API can be used to upload company documents(PDF, Word, Excel, Text).
Signature:
// @desc Upload documents for the company
// @route PUT /api/v1/companies/:id/document
// @access Private (Company Admin)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| file |
Title: Upload logo for the company
Overview: Company is the top level entity for SmartApp, any businesses data is consolidated max upto Company Level(Top Level).
API Usage: This API can be used to upload company documents(PDF, Word, Excel, Text).
Signature:
// @desc Upload logo for the company
// @route PUT /api/v1/companies/:id/logo
// @access Private (Company Admin)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| file |
This API can be used for create or register new user for SmartApp
Important Information:
userType: internal or external
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
This API can be used for create or register new user for SmartApp
Important Information:
userType: internal or external
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
Update User Details
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| Authorization |
Update Branch of an User
This API can be used for user login authentication for SmartApp
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
Get Logged In user from Token
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlOWNjNjE4MmFiNmQ5OWEwN2Y1ZDEyNSIsImlhdCI6MTU4NzM5MDQ0NiwiZXhwIjoxNTg5OTgyNDQ2fQ.KQz0NfA6i1FiNuGYSI_pZnF_xeVIMFg79qpYu8hKX4E |
Overview: This API can be used to send password reset emails from SmartApp (noreply@smartphonebizapps.com)
API Usage: This API can be used to send password reset emails from SmartApp App or BOTs.
Important Note: For development and testing purposes we will set smtp.mailtrap.io as the test mail server. This will make testing very easy and we can create users with dummy Emails for our testing
Steps for Testing using MailTrap server: Steps to access emails during the testing are : - Login to Gmail using gst@smartphonebizapps.com - Got to MailTrap site (https://mailtrap.io/) - Login with Google Account and then select gst@smartphonebizapps.com - Now ifyou send any email from SmartApp BOT or App using this API for any sender all emails can be viewed on mailTrap
Additional Notes: With the password reset email a token is sent which is valid only for 10 mins. user need to action in within 10 mins and reset the password. otherwise token will be expired. Example URL with Token is: {{URL}}/api/v1/auth/resetpassword/609ce738d4ae4379c7cb149f0f4a3f94afa7cf25
Signature: // @desc Forgot password // @route POST /api/v1/auth/forgotpassword // @access Public (anyone can request for password reset, if they have valid ID then they will be able to do it) // @header Content-Type = application/json // @body JSON { “email”:“atul_gup@yahoo.co.uk”
}
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
Overview: This API can be used to send password reset emails from SmartApp (noreply@smartphonebizapps.com)
API Usage: This API can be used to send password reset emails from SmartApp App or BOTs.
Important Note: For development and testing purposes we will set smtp.mailtrap.io as the test mail server. This will make testing very easy and we can create users with dummy Emails for our testing
Steps for Testing using MailTrap server: Steps to access emails during the testing are : - Login to Gmail using gst@smartphonebizapps.com - Got to MailTrap site (https://mailtrap.io/) - Login with Google Account and then select gst@smartphonebizapps.com - Now ifyou send any email from SmartApp BOT or App using this API for any sender all emails can be viewed on mailTrap
Additional Notes: With the password reset email a token is sent which is valid only for 10 mins. user need to action in within 10 mins and reset the password. otherwise token will be expired. Example URL with Token is: {{URL}}/api/v1/auth/resetpassword/609ce738d4ae4379c7cb149f0f4a3f94afa7cf25
Signature: // @desc Forgot password // @route POST /api/v1/auth/forgotpassword // @access Public (anyone can request for password reset, if they have valid ID then they will be able to do it) // @header Content-Type = application/json // @body JSON { “email”:“atul_gup@yahoo.co.uk”
}
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
Overview: This API can be used to reset password from SmartApp (noreply@smartphonebizapps.com)
API Usage: This API can be used to Reset Password from SmartApp App or BOTs.
Important Note: For development and testing purposes we will set smtp.mailtrap.io as the test mail server. This will make testing very easy and we can create users with dummy Emails for our testing
Steps for Testing using MailTrap server: Steps to access emails during the testing are : - Login to Gmail using gst@smartphonebizapps.com - Got to MailTrap site (https://mailtrap.io/) - Login with Google Account and then select gst@smartphonebizapps.com - Now ifyou send any email from SmartApp BOT or App using this API for any sender all emails can be viewed on mailTrap
Signature:
// @desc Reset password
// @route PUT /api/v1/auth/resetpassword/:resettoken
// @access Public (all valid users can reset their password)
// @header Content-Type = application/json
// @body JSON
{
“password”:“XYZ12345”
}
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
Overview: This API can be used to reset password from SmartApp (noreply@smartphonebizapps.com)
API Usage: This API can be used to Reset Password from SmartApp App or BOTs.
Important Note: For development and testing purposes we will set smtp.mailtrap.io as the test mail server. This will make testing very easy and we can create users with dummy Emails for our testing
Steps for Testing using MailTrap server: Steps to access emails during the testing are : - Login to Gmail using gst@smartphonebizapps.com - Got to MailTrap site (https://mailtrap.io/) - Login with Google Account and then select gst@smartphonebizapps.com - Now ifyou send any email from SmartApp BOT or App using this API for any sender all emails can be viewed on mailTrap
Signature:
// @desc Reset password
// @route PUT /api/v1/auth/resetpassword/:resettoken
// @access Public (all valid users can reset their password)
// @header Content-Type = application/json
// @body JSON
{
“password”:“XYZ12345”
}
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |
Overview: This API can be used to send emails from SmartApp (noreply@smartphonebizapps.com)
API Usage: This API can be used to send emails from SmartApp App or BOTs.
Important Note: For development and testing purposes we will set smtp.mailtrap.io as the test mail server. This will make testing very easy and we can create users with dummy Emails for our testing
Steps for Testing using MailTrap server: Steps to access emails during the testing are : - Login to Gmail using gst@smartphonebizapps.com - Got to MailTrap site (https://mailtrap.io/) - Login with Google Account and then select gst@smartphonebizapps.com - Now ifyou send any email from SmartApp BOT or App using this API for any sender all emails can be viewed on mailTrap
Signature: // @desc send an email // @route POST /api/v1/auth/sendEmail // @access Protected (to send an email user should be associated with SmartApp) // @header Content-Type = application/json & Authorization = ‘Bearer ’ + token // @body JSON {
"emailTo":"abc@gmail.com",
"subject":"Test Email",
"message":"This is a test email from SmartApp"
}
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON |