Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
minLevel1
maxLevel2
outlinefalse
typelist
printablefalse

...

基准URL: /smartfin/api/v1/whitelist


获取公司数据

...

POST /smartfin/api/v1/whitelist/select

...

Code Block
entity_name, entity_type, entity_name_eng - string

  • entity_name - 客户名称 (必填项)

  • entity_type - 公司类型 (COUNTERPARTY (客户) or BROKER (经纪商)) (必填项)

  • entity_name_eng - 客户英文名称

Info

entity_nameentity_type 不能重复。

  • 如果在数据库中找到相同的 entity_name , 则将不允许存储entity_name

  • 'COMPANY NAME' 的 entity_name 和 'COUNTERPARTY' 的 entity_type 如果在数据库中已存在,将不允许存储相同的 entity_nameentity_type

...

entity_name_engentity_name 不能有相同文本。

Code Block
client_attr - array[integer]
used_entity_name - array[string]

...

公司的现状 (true (停用) or ““ )

更新 / 输入公司数据

...

更新URL:
POST/smartfin/api/v1/whitelist/update

输入URL:
POST/smartfin/api/v1/whitelist/insert

...

JSON 主体:

Code Block
{
   "update_list":[
      {
         "entity_id":261580,
         "entity_name":"TESTUPLOADFILE1",
         "entity_type":"COUNTERPARTY",
         "address":"Address",
         "email":"",
         "tel":"",
         "fax_no":"",
         "country":"",
         "credit_amt":2345,
         "entity_ccy":"DOP",
         "invoice_code":"234",
         "invoice_add":"",
         "invoice_bank":"",
         "reg_no":"",
         "invalid":"",
         "client_attr":[
            1,
            2
         ],
         "used_entity_name": [
            "TEST",
            "TEST1"
          ],
         "reg_cap":0,
         "own_eq":0,
         "credit_score":0,
         "credit_lvl":0,
         "rec_credit_amt":0,
         "aff_group":"",
         "biz_abbrev":"",
         "aff_group_credit_amt":0,
         "company_auth_amt": "",
         "aff_group_auth_amt": "",
      }
   ]
}

...

JSON 主体:

Code Block
{
   "insert_list":[
      {
         "entity_id":"",
         "entity_name":"test company",
         "entity_type":"BROKER",
         "address":"",
         "email":"",
         "tel":"",
         "fax_no":"",
         "country":"",
         "credit_amt":"",
         "entity_ccy":"",
         "invoice_code":"",
         "invoice_add":"",
         "invoice_bank":"",
         "reg_no":"",
         "invalid":"",
         "client_attr":"",
         "used_entity_name": [],
         "reg_cap":"",
         "own_eq":"",
         "credit_score":"",
         "credit_lvl":"",
         "rec_credit_amt":"",
         "aff_group":"",
         "biz_abbrev":"",
         "aff_group_credit_amt":"",
         "company_auth_amt": "",
         "aff_group_auth_amt": "",
      }
   ]
}

...

删除公司数据

...

DELETE/smartfin/api/v1/whitelist/delete

...