异步校验回调接口

  • 接口:common/rule/syncResultCallBack
  • Method:POST
  • 数据格式:JSON

接口说明:此接口用于异步校验规则回调。

请求参数

字段名称 字段类型 字段描述 是否必填
bizId String 当前次接口同步的唯一标识 true
timestamp long 当前次接口同步时间对应的时间戳 true
headerId Long 单据头Id true
ruleId Long 规则Id true
value Object 定制校验结果,用于判断是否触发规则 true
source String 校验对象 true
exceptionMessage String 报错信息 true
companyId Long 公司Id true
status String 单据状态 true
lineRules.lineId Integer 单据行Id true
lineRules.exceptionMessage String 报错信息 true

返回参数

字段名称 字段类型 字段描述
resCode Integer 响应状态码(见附录)
resMsg String 响应描述信息
bizId String 请求唯一标识码
data Boolean 回写结果,true :成功 false :失败

示例:

请求数据

{
    "bizId":"d162175f-5bdf-43c8-a245-a013dc219ffd",
    "timestamp":1696730589000,
    "data":{
        "headerId": 1708090,
        "ruleId": 217752201,
        "value": 1,
        "source": "NEXP",
        "exceptionMessage": "异步校验规则测试1",
        "companyId": 3809,
        "status": "incomplete",
        "templateParam": null,
        "message": null,
        "lineRules": null
    }
}

返回数据

执行成功
{
       "resCode": 200000,
       "resMsg": "success",
       "bizId": "d162175f-5bdf-43c8-a245-a013dc219ffd",
       "data": true
}

results matching ""

    No results matching ""