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/entity_credit_matrix


获取额度矩阵

...

POST /smartfin/api/v1/entity_credit_matrix/select

...

  • trade_cat - 交易品种, 参数以字符串数组形式存在,或者如果参数为空,则将解析为 null。

  • dept- 申请部门


更新 / 输入额度矩阵

...

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

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

...

JSON 主体:

Code Block
{
    "return_full": false,
    "dropdown": true,
    "update_list": [
        {
            "ecm_id": 22,
            "entity_id": "261582",
            "dept": "this is dept",
            "entity_name":"TESTUPLOADFILE1",
            "trade_cat": ["testinsert","12345"],
            "min_margin_ratio": 0,
            "ecm_credit_amt": 0,
            "ecm_credit_term": 0,
            "dept_credit_amt": null,
            "measure_unit": null,
            "ecm_auth_qty": null,
            "ecm_auth_amt": null,
            "company_id": 119,
            "trade_dirc": [1],
            "pricing_method": [1],
            "sett_method": [3,4],
            "biz_type": null,
            "dept_auth_amt": "",
        }
    ]
}

...

JSON 主体:

Code Block
{
    "return_full": false,
    "dropdown": true,
    "insert_list": [
        {
            "entity_id": "261582",
            "dept": "this is dept",
            "entity_name":"TESTUPLOADFILE1",
            "trade_cat": ["testinsert","12345"],
            "min_margin_ratio": 0,
            "ecm_credit_amt": 0,
            "ecm_credit_term": 0,
            "dept_credit_amt": null,
            "measure_unit": null,
            "ecm_auth_qty": null,
            "ecm_auth_amt": null,
            "company_id": 119,
            "trade_dirc": [1],
            "pricing_method": [1],
            "sett_method": [3,4],
            "biz_type": null,
            "dept_auth_amt": "",
        }
    ]
}

...

Code Block
dropdown - boolean

  • 决定是否在响应里返回 dropdown_list (MAF界面使用的下拉选项)

响应:

删除额度矩阵

...

DELETE/smartfin/api/v1/

...

entity_credit_matrix/delete

根据其 ecm_id 删除单个/多个额度。

验证 / 授权

...

JSON 主体:

Code Block
{
  "del_ids":[261572],
  "dropdown": true,
}
Code Block
del_ids - array[integer]
  • 包含用户删除的独立ecm_id的数组。

Code Block
dropdown - boolean

  • 决定是否在响应里返回 dropdown_list (MAF界面使用的下拉选项)

响应: