1. form表单、币种、国家说明
智书合同API
  • 智书开放平台概述
  • 开发对接流程
  • 基本概念
    • 应用鉴权
    • 用户身份体系
  • 对接方式
    • 选择对接方式
    • 【识别用户身份】选择自建应用的方式快速对接
    • 智书开平与飞书开平对接差异
      • 智书合同新用户流程差异
      • 从飞书合同迁移到智书合同流程差异
  • API调用指南
    • API列表
    • 频控策略
    • 调用流程
      • 流程概述
      • 获取访问凭证
      • 调用API
  • 事件订阅
    • 事件概述
    • 事件列表
    • 订阅流程
      • 获取 Encrypt Key
      • 获取 Verification Token
      • 添加事件
      • 接收并处理事件
      • 配置订阅方式
  • 认证及授权
    • 获取访问凭证
      • 获取 tenant_access_token
  • 智书合同
    • 合同类型
      • 查询合同类型目录
    • 模版管理
      • 查看模板列表
      • 创建模版实例
      • 查看模版详情
    • 文件管理
      • 上传合同相关文件
      • 下载合同相关文件
    • 合同管理
      • 事件
        • 协商事件
        • 合同信息变更
        • 合同状态变更
        • 合同分享事件
        • 取消合同分享事件
      • form表单、币种、国家说明
        • 合同创建Form组件说明
        • 币种说明
        • 国家地区编码
      • 创建合同
        POST
      • 删除草稿合同
        DELETE
      • 提交合同
        POST
      • 重新提交合同
        POST
      • 更新合同
        PATCH
      • 更新合同字段信息
        PUT
      • 查看合同详情
        GET
      • 搜索合同
        POST
      • 根据合同编号查询
        POST
      • 合同协商操作记录信息查询
        GET
      • 合同电子签转纸质签
        POST
      • 查询合同分享记录
        GET
    • 付款
      • 事件
        • 合同新建付款
      • 创建付款申请
      • 更新付款信息
      • 查看付款信息
      • 查询付款申请列表
    • 付款计划
      • 同步付款记录
      • 搜索付款计划
    • 付款记录
      • 创建付款记录
      • 更新付款记录
      • 查询付款记录详情
      • 根据付款计划id查询付款记录
    • 审批管理
      • 发起流程审批
      • 查询审批实例详情
    • 合同权限管理
      • 授予合同权限
      • 合同分享
    • 文件
      • 生成合同打印文件
    • 合同协商
      • 查询合同协商邀请链接
    • 电子签
      • 获取个人认证&授权页面链接
      • 获取机构认证&授权页面链接
    • 审批事件
      • 审批-待办任务变更
      • 审批-抄送、知会状态变更
    • 事件ip
      • 获取事件出口IP
    • 审批矩阵
      • 矩阵-预发布规则表配置
      • 矩阵-发布规则表配置
      • 矩阵-查询规则表列表
      • 矩阵-查询规则表列头信息
      • 矩阵-创建规则表行
      • 矩阵-删除规则表行
      • 矩阵-修改规则表行
      • 矩阵-根据行ID查询规则表单行信息
      • 矩阵-根据筛选条件查询规则表行信息列表
      • 矩阵-查询规则表行信息列表
  • 智书主数据
    • 固定汇率
      • 更新固定汇率
      • 查询固定汇率
    • 交易方
      • 事件
        • 交易方-基础信息变更
        • 交易方-公司视图变更
        • 交易方-联系人变更
        • 交易方-经营地址变更
        • 交易方-银行账户变更
      • 创建交易方
      • 更新交易方
      • 获取交易方
      • 获取单个交易方信息
      • 获取交易方全量数据
      • 根据证件id精确查询交易方
      • 字段配置查询
    • 法人实体
      • 创建法人实体
      • 更新法人实体信息
      • 获取法人实体
      • 获取单个法人实体信息
      • 获取法人实体全量数据
    • 文件
      • 下载主数据附件
  • 第三方系统相关配置
    • 关联单据
      • 关联前置单据
    • 外部数据回填
      • 表单字段回填
      • 审批人回填
    • 外部校验
      • 外部校验
  1. form表单、币种、国家说明

合同创建Form组件说明

form表单说明#

单行文本/多行文本#

项目内容
类型singleline_text、multiline_text
value值String值,文本内容
备注singleline_text限制100字
multiline_text限制2000字
说明Form组件传值示例如下图:module_name传飞书合同的页签的描述,attribute_name传字段的描述,attribute_value传字段的值
举例(支持name匹配和code匹配,传入时优先选择code匹配字段)//name匹配
{
"module_name": "文本测试模块",
"attribute_name": "合同备注",
"attribute_value": "测试多行文本\n 第二行"
}

//code匹配
{
"attribute_code": "custom_2_0c09c6daeebf4a3f938a07aa8082d85f",
"attribute_value": "测试多行文本\n 第二行"
}

日期#

项目内容
类型date
value值String值,格式为yyyy-MM-dd
举例(支持name匹配和code匹配,传入时优先选择code匹配字段)//name匹配
{
"module_name": "日期模块",
"attribute_name": "合同生效日期",
"attribute_value": "2021-09-13"
}

//code匹配
{
"attribute_code": "custom_10_6599409c7dc84b0d988a9d0965cbc5c6",
"attribute_value": "2021-09-13"
}

人员#

项目内容
类型employee
value值List数组
备注当user_id_type为lark_user_id时,user_id传入飞书user_id
举例(支持name匹配和code匹配,传入时优先选择code匹配字段)//name匹配
{
"module_name": "测试模块",
"attribute_name": "需求人",
"attribute_value": [
{
"user_id": "g62a2f83",
"user_id_type": "lark_user_id"
}
]
}

//code匹配
{
"attribute_code": "custom_1001_fb5fb3c7555f45328f992b61805a24af",
"attribute_value": [
{
"user_id": "g62a2f83",
"user_id_type": "lark_user_id"
}
]
}

部门#

项目内容
类型department
value值List数组
备注当department_id_type为open_department_id时,department_id传入飞书open_department_id
举例(支持name匹配和code匹配,传入时优先选择code匹配字段)//name匹配
{
"module_name": "测试模块",
"attribute_name": "所属部门",
"attribute_value": [
{
"department_id": "od-5cefe25147a103456cf21a63b1132ad",
"department_id_type": "open_department_id"
}
]
}

//code匹配
{
"attribute_code": "custom_1002_fb5fb3c7555f45328f992b61805a24af",
"attribute_value": [
{
"department_id": "od-5cefe25147a103456cf21a63b1132ad",
"department_id_type": "open_department_id"
}
]
}

下拉单选#

项目内容
类型dropdown_radio
value值key为飞书合同侧选项唯一标识
举例(支持name匹配和code匹配,传入时优先选择code匹配字段)// name匹配
{
"module_name": "测试模块",
"attribute_name": "产权归属",
"attribute_value": {
"key": "ckx36ksd8002j3f61rr2ifb22",
"outbound_options": [
{
"value": "value",
"labelCn": "中文名",
"labelEn": "英文名",
"labelJp": "日文名",
"children": [
{
"value": "value",
"labelCn": "中文名",
"labelEn": "英文名",
"labelJp": "日文名",
"children": null
}
]
}
]
}
}

// code匹配
{
"attribute_code": "custom_15_ea0f468f2b7d4997b5228fa95b85605a",
"attribute_value": {
"key": "ckx36ksd8002j3f61rr2ifb22",
"outbound_options": [
{
"value": "value",
"labelCn": "中文名",
"labelEn": "英文名",
"labelJp": "日文名",
"children": [
{
"value": "value",
"labelCn": "中文名",
"labelEn": "英文名",
"labelJp": "日文名",
"children": null
}
]
}
]
}
}

数字#

项目内容
类型number
value值Number值,数字
举例(支持name匹配和code匹配,传入时优先选择code匹配字段)// name匹配
{
"module_name": "数字模块",
"attribute_name": "数字示例",
"attribute_value": 12345
}

// code匹配
{
"attribute_code": "custom_5_b5b96bd524e0497dbdea0aeed108691d",
"attribute_value": 12345
}

日期区间#

项目内容
类型date_range
value值JSONObject值, "start_date", "end_date"为飞书合同侧选项唯一标识
举例(支持name匹配和code匹配,传入时优先选择code匹配字段)// name匹配
{
"module_name": "日期区间模块",
"attribute_name": "日期区间示例",
"attribute_value": {
"start_date": "2022-01-01",
"end_date": "2022-03-31"
}
}

// code匹配
{
"attribute_code": "日期区间模块",
"attribute_value": {
"start_date": "2022-01-01",
"end_date": "2022-03-31"
}
}

单选项#

项目内容
类型radio
value值JSONObject值, "key"为飞书合同侧选项唯一标识
举例(支持name匹配和code匹配,传入时优先选择code匹配字段)// name匹配
{
"module_name": "单选项模块",
"attribute_name": "单选项示例",
"attribute_value": {
"key": "cl14rj97o000b386dayuolv3t",
"outbound_options": [
{
"value": "value",
"labelCn": "中文名",
"labelEn": "英文名",
"labelJp": "日文名",
"children": [
{
"value": "value",
"labelCn": "中文名",
"labelEn": "英文名",
"labelJp": "日文名",
"children": null
}
]
}
]
}
}

// name匹配
{
"module_name": "custom_13_fb5fb3c7555f45328f992b61805a24af",
"attribute_value": {
"key": "cl14rj97o000b386dayuolv3t",
"outbound_options": [
{
"value": "value",
"labelCn": "中文名",
"labelEn": "英文名",
"labelJp": "日文名",
"children": [
{
"value": "value",
"labelCn": "中文名",
"labelEn": "英文名",
"labelJp": "日文名",
"children": null
}
]
}
]
}
}

多选项#

项目内容
类型checkbox
value值JSONObject值,"key"为飞书合同侧选项唯一标识
举例(支持name匹配和code匹配,传入时优先选择code匹配字段)// name匹配
{
"module_name": "多选项模块",
"attribute_name": "多选项示例",
"attribute_value": {
"key": [
"cl14rj97o000b386dayuolv3t",
"cl162uqx6000k386d5gn09eh3"
],
"outbound_options": [
{
"value": "value",
"labelCn": "中文名",
"labelEn": "英文名",
"labelJp": "日文名",
"children": [
{
"value": "value",
"labelCn": "中文名",
"labelEn": "英文名",
"labelJp": "日文名",
"children": null
}
]
}
]
}
}

// code匹配
{
"attribute_code": "custom_14_fb5fb3c7555f45328f992b61805a24af",
"attribute_value": {
"key": [
"cl14rj97o000b386dayuolv3t",
"cl162uqx6000k386d5gn09eh3"
],
"outbound_options": [
{
"value": "value",
"labelCn": "中文名",
"labelEn": "英文名",
"labelJp": "日文名",
"children": [
{
"value": "value",
"labelCn": "中文名",
"labelEn": "英文名",
"labelJp": "日文名",
"children": null
}
]
}
]
}
}

下拉多选#

项目内容
类型dropdown_option
value值JSONObject值,"key"为飞书合同侧选项唯一标识
举例(支持name匹配和code匹配,传入时优先选择code匹配字段)// name匹配
{
"module_name": "下拉多选模块",
"attribute_name": "下拉多选示例",
"attribute_value": {
"key": [
"cl14rj97o000b386dayuolv3t",
"cl162uqx6000k386d5gn09eh3"
],
"outbound_options": [
{
"value": "value",
"labelCn": "中文名",
"labelEn": "英文名",
"labelJp": "日文名",
"children": [
{
"value": "value",
"labelCn": "中文名",
"labelEn": "英文名",
"labelJp": "日文名",
"children": null
}
]
}
]
}
}

// code匹配
{
"attribute_code": "custom_16_97441b4066074f67bc8de251a0110b4b",
"attribute_value": {
"key": [
"cl14rj97o000b386dayuolv3t",
"cl162uqx6000k386d5gn09eh3"
],
"outbound_options": [
{
"value": "value",
"labelCn": "中文名",
"labelEn": "英文名",
"labelJp": "日文名",
"children": [
{
"value": "value",
"labelCn": "中文名",
"labelEn": "英文名",
"labelJp": "日文名",
"children": null
}
]
}
]
}
}

金额#

项目内容
类型amount
value值JSONObject值
举例(支持name匹配和code匹配,传入时优先选择code匹配字段)// name匹配
{
"module_name": "金额模块",
"attribute_name": "金额示例",
"attribute_value": {
"amount": "123.33",
"currency": "CNY"
}
}

// code匹配
{
"attribute_code": "custom_1012_3cbb86bb39a548d78b51586573fccd6d",
"attribute_value": {
"amount": "123.33",
"currency": "CNY"
}
}

超链接#

项目内容
类型hyperlink
value值JSONObject值
举例(支持name匹配和code匹配,传入时优先选择code匹配字段)// name匹配
{
"module_name": "基础信息",
"attribute_name": "链接示例",
"attribute_value": {
"title": "百度",
"url": "www.baidu.com"
}
}

// code匹配
{
"attribute_code": "custom_1012_3cbb86bb39a548d78b51586573fccd6d",
"attribute_value": {
"title": "百度",
"url": "www.baidu.com"
}
}

国家地区#

项目内容
类型country_or_region
value值List数组值
备注- country_code:国家地区编码 https://s.apifox.cn/e96c2a43-4dd5-4155-813f-1d6737fe3cb2
举例(支持name匹配和code匹配,传入时优先选择code匹配字段)// name匹配
{
"attribute_name": "国家地区模块",
"module_name": "国家地区",
"attribute_value": [
{
"country_code": "US"
}
]
}

树形单选#

字段说明
字段项值
类型tree_radio
attribute_typetree_radio
attribute_valueJSONObject
attribute_value 结构说明
字段类型说明
namestring当前选中节点名称
keystring当前选中节点唯一标识
示例
json
{
"attribute_key": "custom_17_da23e91ff85a49948743ee282a69ea2f",
"attribute_code": "custom_17_da23e91ff85a49948743ee282a69ea2f",
"attribute_name": "树形单选示例",
"attribute_type": "tree_radio",
"module_name": "树形单选模块",
"attribute_value": {
"name": "法务子一",
"key": "ckzz5rwyk004l3h69p3lorjxc"
}
}

树形多选#

字段说明
字段项值
类型tree_option
attribute_typetree_option
attribute_valueList 数组
attribute_value 结构说明
attribute_value 为对象数组,每个对象表示一个已选中的树节点。
字段类型说明
namestring当前选中节点名称
keystring当前选中节点唯一标识
示例
json
{
"attribute_key": "custom_18_da23e91ff85a49948743ee282a69ea2f",
"attribute_code": "custom_18_da23e91ff85a49948743ee282a69ea2f",
"attribute_name": "树形多选示例",
"attribute_type": "tree_option",
"module_name": "树形多选模块",
"attribute_value": [
{
"name": "法务子一",
"key": "ckzz5rwyk004l3h69p3lorjxc"
},
{
"name": "财务子一",
"key": "ckzz5s3hg00563h69lmnh16h8"
}
]
}

公式#

字段说明
字段项值
类型calculation
attribute_typecalculation
attribute_valueNumber 数值
attribute_value 说明
attribute_value 为公式计算后的数值结果。
字段类型说明
attribute_valuenumber公式计算结果,可为整数或小数
示例
json
{
"attribute_key": "custom_1027_da23e91ff85a49948743ee282a69ea2f",
"attribute_code": "custom_1027_da23e91ff85a49948743ee282a69ea2f",
"attribute_name": "公式示例",
"attribute_type": "calculation",
"module_name": "公式模块",
"attribute_value": 1234.56
}

附件#

字段说明
字段项值
类型file
attribute_typefile
attribute_valueList 数组
attribute_value 结构说明
attribute_value 为附件对象数组,每个对象表示一个附件文件。
字段类型说明
file_idstring文件 ID
file_namestring文件名称
file_sizestring文件大小,单位 B
mimestring文件 MIME 类型
示例
json
{
"attribute_key": "custom_21_d70049a4d6dc443fbe4c42f19c575339",
"attribute_code": "custom_21_d70049a4d6dc443fbe4c42f19c575339",
"attribute_name": "表格附件字段",
"attribute_type": "file",
"module_name": "附件模块",
"attribute_value": [
{
"file_id": "7113067054747500588",
"file_name": "表格1.xlsx",
"file_size": "8811",
"mime": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
},
{
"file_id": "7113067054747533356",
"file_name": "表格2.xlsx",
"file_size": "31428",
"mime": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
}
]
}

明细字段#

字段说明
字段项值
类型array
示例中的 attribute_typecommon_array
attribute_value数组值
结构说明
明细字段通常为多层数组结构:
最外层数组:字段对象列表。
字段对象的 attribute_value:明细行数组。
每一行明细:一个数组,数组中的每个元素表示该行中的一个字段对象。
行内字段对象:结构与普通字段一致,包含 attribute_key、attribute_code、attribute_name、attribute_type、module_name、attribute_value 等属性。
明细行内字段对象通用结构
字段类型说明
attribute_keystring字段唯一标识
attribute_codestring字段编码
attribute_namestring字段名称
attribute_typestring子字段类型
module_namestring所属模块名称
attribute_valueany子字段值,具体结构取决于子字段类型
示例
json
[
{
"attribute_key": "custom_1201_4b5f416e5473428a9cd0c6aa60558964",
"attribute_code": "custom_1201_4b5f416e5473428a9cd0c6aa60558964",
"attribute_name": "明细字段",
"attribute_type": "common_array",
"module_name": "基础信息",
"attribute_value": [
[
{
"attribute_key": "custom_1_6f93c09e342848b895e54240684cee25",
"attribute_code": "custom_1_6f93c09e342848b895e54240684cee25",
"attribute_name": "单行文本明细",
"attribute_type": "singleline_text",
"module_name": "基础信息",
"attribute_value": "555555"
},
{
"attribute_key": "custom_5_2615eadf0db54c80b8d9cf7a1d4e01c3",
"attribute_code": "custom_5_2615eadf0db54c80b8d9cf7a1d4e01c3",
"attribute_name": "数字明细",
"attribute_type": "number",
"module_name": "基础信息",
"attribute_value": 8888888
},
{
"attribute_key": "custom_16_34da29dad2e54b998829a3a2bb024d78",
"attribute_code": "custom_16_34da29dad2e54b998829a3a2bb024d78",
"attribute_name": "下拉多选明细",
"attribute_type": "dropdown_option",
"module_name": "基础信息",
"attribute_value": [
{
"name": "65",
"key": "ckzw3o1rm000o3968qjkdobxv"
}
]
},
{
"attribute_key": "custom_1001_985e630cd9be41b2a3f159cb2e9e91b2",
"attribute_code": "custom_1001_985e630cd9be41b2a3f159cb2e9e91b2",
"attribute_name": "人员明细",
"attribute_type": "employee",
"module_name": "基础信息",
"attribute_value": [
{
"name": "李紫燕",
"user_id": "f742g11e"
}
]
},
{
"attribute_key": "custom_1012_e1e5c5fb753b4e0db8f1eeb387b5dfe8",
"attribute_code": "custom_1012_e1e5c5fb753b4e0db8f1eeb387b5dfe8",
"attribute_name": "金额明细",
"attribute_type": "amount",
"module_name": "基础信息",
"attribute_value": {
"amount": "666666666",
"currency": "CNY",
"currency_name": "CNY-人民币元"
}
}
]
]
}
]
修改于 2026-03-27 04:02:49
上一页
取消合同分享事件
下一页
币种说明
Built with