Table of Contents | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
...
Base Url: /smartfin/api/v1/whitelist
Retrieve Company’s Data
...
GET /smartfin/api/v1/whitelist
...
Authentication / Authorization
- API Key
Headers
Schema
GET /smartfin/api/v1/whitelist
...
Headers:
Content-Type: application/json
Authorization:
string - Bearer JWT <<YOUR_API_KEY_HERE>> (required)
Responses
Example:
| ||
Returns
|
...
|
Schema
...
Code Block |
---|
last_update_time, update_by_name, update_by - string |
Information about last updated time for the data and the user who updating the data.
Code Block |
---|
create_time, create_by, create_by_name - string |
Information about created time for the data and the user who creating the data.
Code Block |
---|
user_id, entity_id, company_id - integer |
user_id
- User Id ( who the data belongs to)entity_id
- A unique ID assigned to the data. This ID can be used to retrieve company data.company_id
- The main company Id for the data.
Code Block |
---|
entity_name, entity_type - string |
entity_name
- Company nameentity_type
- Company type (COUNTERPARTY
orBROKER
)
Info |
---|
|
Code Block |
---|
address, email, tel, country, credit_amt, invoice_code, invoice_add, invoice_bank,
reg_no, credit_ccy, fax_no - string |
Extra information for the company data
Code Block |
---|
invalid - boolean |
The company data’s status (true or false)
Update / Insert Company
...
Update/insert company | Inserts/Update company | ||||
---|---|---|---|---|---|
Request | URL:
Method:
Headers:
Authorization:
JSON Body:
| ||||
Response |
| ||||
Notes | The returned insert_list contains data of failed and successful inserts The returned update_list contains data of failed and successful updates Insert would fail if there is an existing whitelist with the same Update would fail if there is an existing whitelist with the same entity_type can be empty '' |
Delete Company
...
Delete company | Deletes single/ multiple company by id | ||
---|---|---|---|
Request | URL:
Method:
Headers:
Authorization:
JSON Body:
| ||
Response |
| ||
Notes | Returns only ids that were successfully deleted |