文件模板填写完成通知

更新时间:2025-09-23 11:01:53

【触发条件】用户填写模板完成并提交成功后触发

回调参数

展开全部参数参数名称

必选

参数类型

参数说明

action

string

标记该通知的业务类型,该通知固定为:FILL_DOCTEMPLATE

timestamp

int64

回调通知发送时间(如重试多次均返回第一次时间,毫秒级时间戳格式)

docTemplateId

string

待填充的模板ID

docTemplateName

string

文件模板名称

customBizNum

string

开发者自定义业务编号,发起模板填写时定义的标识业务参数

fileId

string

填充后生成的文件ID

components(点击“+”展开详情)

array

填充控件信息列表

componentId

string

控件ID

componentKey

string

控件Key

componentValue

string

控件填充值

componentType

string

控件类型

1 - 单行文本,2 - 数字,3 - 日期,6 - 签章区域,8 - 多行文本,9 - 复选,10 - 单选,11 - 图片,14 -下拉框,15 - 勾选框,16 - 身份证,17 - 备注区域,18 - 动态表格,19 - 手机号

注:仅对新版模板生效

componentContent

string

控件选项对应文本内容(仅在控件类型是:9 - 复选、10 - 单选、14 -下拉框 时返回对应的内容值)

注:仅对新版模板生效

originCustomComponentId

string

自定义控件ID

fillTaskId

string

填写任务ID

注:仅对新版模板生效

decFillTaskId

string

填写任务ID(仅限专属云使用)

注:仅对新版模板生效

模板填写完成通知示例

{
    "action": "FILL_DOCTEMPLATE",
    "components": [
        {
            "componentId": "6925be81011111fb7903943453",
            "componentKey": "key1",
            "componentType": 1,
            "componentValue": "2"
        },
        {
            "componentContent": "[\"多选内容002\"]",
            "componentId": "1e013e8811117ae19064a320",
            "componentKey": "key2",
            "componentType": 9,
            "componentValue": "[1]"
        },
        {
            "componentContent": "下拉内容001",
            "componentId": "a4d546c7f11111491b470f13bd",
            "componentKey": "key3",
            "componentType": 14,
            "componentValue": "0"
        },
        {
            "componentContent": "单选内容003",
            "componentId": "bf29535f111114c68fc1bd8",
            "componentType": 10,
            "componentValue": "0"
        }
    ],
    "customBizNum": "01测试",
    "decFillTaskId": "a03b834bdb4011116d0ca54447a",
    "docTemplateId": "3b0c928edc821111d635f2d480dc4",
    "docTemplateName": "授权书.pdf",
    "field": "171303c36711111f9d7ac2c05ec44de3",
    "fileId": "171303c36711111f9d7ac2c05ec44de3",
    "fillTaskId": "0fa6d72d035911111d196bcef6b73181",
    "timestamp": 1758596421793
}
我要纠错