Table of Contents | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Base Url: /smartfin/api/v1/whitelist
...
GET /smartfin/api/v1/whitelist
Get all company data that are visible to current user.
Authentication / Authorization
- API Key
Headers
Schema
Headers:
Content-Type: application/json
Authorization:
string - JWT <<YOUR_API_KEY_HERE>> (required)
Responses
Example:
...
Table of Contents | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Base Url: /smartfin/api/v1/whitelist
Retrieve Company’s Data
...
GET /smartfin/api/v1/whitelist
Get all company data that are visible to current user.
Authentication / Authorization
- API Key
Headers
Schema
...
Headers:
Content-Type: application/json
Authorization:
string - JWT <<YOUR_API_KEY_HERE>> (required)
Responses
Example:
| ||
Returns
|
...
Update / Insert Company’s Data
...
Update/insert company
...
Inserts/Update company
...
Request
...
URL:
{basePath}
Method:
POST
POST/smartfin/api/v1/whitelist
Insert new or update existing company data in database
Authentication / Authorization
- API Key
Headers
Schema
...
Headers:
Content-Type: application/json
Authorization:
...
string - JWT <<YOUR_API_KEY_HERE>> (required)
Request
Example:
JSON Body:
| Response |
|
---|
Schema
...
Code Block |
---|
insert_list |
...
- array[object] |
Contain the same parameters as
items
in response body of https://mafint.atlassian.net/wiki/spaces/DEV/pages/2128150536/Entity+Management#%5BhardBreak%5DRetrieve-Company%E2%80%99s-Data ( Refer to the definition of each parameter )entity_id
does not need to be parsed and required in this array
Code Block |
---|
update_list - array[object] |
Contain the same parameters as
items
in response body of https://mafint.atlassian.net/wiki/spaces/DEV/pages/2128150536/Entity+Management#%5BhardBreak%5DRetrieve-Company%E2%80%99s-Data ( Refer to the definition of each parameter )
Response
Example:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Notes
The returned insert_list contains data of failed and successful inserts
The returned update_list contains data of failed and successful updates
Insert
|
Schema
...
Code Block |
---|
insert_list - array[object] |
Contain the same parameters as
items
in response body of https://mafint.atlassian.net/wiki/spaces/DEV/pages/2128150536/Entity+Management#%5BhardBreak%5DRetrieve-Company%E2%80%99s-Data ( Refer to the definition of each parameter )The array list contains data of failed and successful inserts
Code Block |
---|
update_list - object
updated - array[object]
failed - array[object] |
Contain the same parameters as
items
in response body of https://mafint.atlassian.net/wiki/spaces/DEV/pages/2128150536/Entity+Management#%5BhardBreak%5DRetrieve-Company%E2%80%99s-Data ( Refer to the definition of each parameter )updated
consists of data that has been updated successfully ,wherefailed
consists of data that has not been updated in database.The relevant error message will be returned if there are any duplicated data attempting to insert or update into the database.
Warning |
---|
Insert process would fail if there is an existing |
...
company with the same Update process would fail if there is an existing |
...
company with the same |
entity_type can be empty ''
Delete Company
...
Delete company
Delete Company
...
DELETE/smartfin/api/v1/whitelist
Deletes single / multiple company
...
according to its entity_id
...
Request
URL:
{basePath}
Method:
...
Authentication / Authorization
- API Key
Headers
Schema
...
Headers:
Content-Type: application/json
Authorization:
string - JWT
...
<<YOUR_API_KEY_HERE>> (required)
Request
Example:
JSON Body:
|
Code Block |
---|
del_id_list |
...
Code Block |
---|
[2824] |
...
Response
- array |
A list that consists of unique
entity_id
, that user would like to delete from.
Response:
Example:
|
|
Notes
Return a list of object, each object contains
entity_id
that indicates the company that has been deleted successfully.