外部校验

外部表单链接的新增(目前只支持报销单/对公支付)

可批量新增(最多支持100条)

接口: /external/validation/add POST JSON

请求参数

参数 类型 必须 默认值 描述
formCode string Y 单据号
formType string Y 单据类型 REIMBURSE 、CORP_REIMBURSE
controlLevel string Y 控制力度 WARNING ERROR
validationLevel string Y 校验级别 EXPENSE, DOCUMENT
feeCode string N 费用唯一编码,当校验级别选“费用”时必填
message string Y 警告信息 ,中英文最少填一个
messageEn string Y 警告信息英文,中英文最少填一个

备注:

  • REIMBURSE(报销单),CORP_REIMBURSE(对公支付)
  • WARNING(警告),ERROR(错误)
  • EXPENSE(费用), DOCUMENT(单据)

示例:

请求数据

{
    "timestamp": 1467894006000,
    "data": [
        {
            "formCode":"单据号1",
            "formType":"REIMBURSE",
            "controlLevel":"WARNING",
            "validationLevel":"EXPENSE",
            "feeCode":"FD123456",
            "message":"中文警告111",
            "messageEn":"english warning 111"
        },
        {
            "formCode":"单据号2",
            "formType":"CORP_REIMBURSE",
            "controlLevel":"ERROR",
            "validationLevel":"DOCUMENT",
            "feeCode":"",
            "message":"中文警告111",
            "messageEn":"english warning 111"
        }

    ]
}

返回数据(成功)

{
    "code": "ACK",
    "message": "",
    "data": {},
    "args": null,
    "linkDetail": false,
    "nonBizError": false
}

返回数据(失败)

{
    "code": "NACK",
    "message": null,
    "data": {
        "210500722": "警告信息至少填一个"
    },
    "args": null,
    "linkDetail": false,
    "errorData": {
        "210500722": "警告信息至少填一个"
    },
    "warningData": null,
    "requestErrorData": [
        {
            "formCode": "210500722",
            "formType": "REIMBURSE",
            "controlLevel": "WARNING",
            "validationLevel": "EXPENSE",
            "feeCode": "1",
            "message": "",
            "messageEn": ""
        }
    ],
    "nonBizError": false
}

results matching ""

    No results matching ""