超级表单同步

参数名称 参数值
接口URL 第三方服务接口URL
接口参数 msgId: 消息ID
dataType: form_record
dataId: 数据ID
dataVersion: 001
dataFormat: json
data: <<请求数据体>>
timestamp: 请求时间戳
digest: 数据签名,md5(data|appkey|timestamp)

<<数据主体信息>>
说明:格式为JSON格式数据


config.form_id :外勤365系统中该流程的id
data.pt:该流程主记录
data.sts:该流程明细(子表)
data.pt.slfdf_* :主记录数据(字段编码详见页面接口数据格式)
data.sts.id:明细数据的表格id
data.sts.rows.slfdf_*:明细数据(字段编码详见页面接口数据格式)


例:接口数据格式(详见页面查看接口数据格式):

主表,form_id:4803305597478179107
参数 类型 必填 说明
id INT8 id
source_code VARCHAR(32) 第三方系统数据code
creator_id INT8 创建人
creator_time TIMESTAMP 创建时间
modifyier_id INT8 修改人
modify_time TIMESTAMP 修改时间
slfdf_1701180002 VARCHAR(100) 订单编码
slfdf_1701180004 VARCHAR(20) 订单创建时间
slfdf_1701180005 VARCHAR(100) 买家编码
slfdf_1701180006 VARCHAR(36) 买家名称(买家ID)
slfdf_1701180007 VARCHAR(100) 卖家编码
slfdf_1701180008 VARCHAR(100) 卖家名称
slfdf_1701180009 VARCHAR(100) 订单状态
slfdf_1701180010 NUMBER(20,0) 订单总金额
slfdf_1701180011 VARCHAR(100) 订单类型
slfdf_1701180012 VARCHAR(100) 订单区域
slfdf_1701180013 VARCHAR(100) 付款类型
slfdf_1701180014 NUMBER(20,0) 已支付金额
slfdf_1701180015 VARCHAR(20) 支付时间
slfdf_1701180016 VARCHAR(100) 收货人名称
slfdf_1701180017 VARCHAR(100) 收货人电话
slfdf_1701180018 VARCHAR(100) 收货地址省份
slfdf_1701180019 VARCHAR(100) 收货地址市
slfdf_1701180020 VARCHAR(100) 收货地址区
slfdf_1701180021 VARCHAR(100) 收货人详细地址
slfdf_1701180022 VARCHAR(100) 习惯正常收货时间段
slfdf_1701180023 VARCHAR(100) 习惯收货最早时间要求
slfdf_1701180024 VARCHAR(100) 习惯收货最晚时间要求
slfdf_1701190001 VARCHAR(100) 备注1
slfdf_1701190002 VARCHAR(100) 备注2
slfdf_1701190003 VARCHAR(100) 备注3
slfdf_1701190004 VARCHAR(100) 备注4
slfdf_1701190005 VARCHAR(100) 备注5
slfdf_1701190006 VARCHAR(100) 备注6


子表,id:7144770493868875242
参数 类型 必填 说明
id INT8 id
source_code VARCHAR(32) 第三方系统数据code
slfdf_1701180025 VARCHAR(100) 产品编码
slfdf_1701180026 VARCHAR(100) 产品名称
slfdf_1701180027 VARCHAR(100) 产品价格
slfdf_1701180028 NUMBER(20,0) 订购数量
响应信息 return_code: 响应编码
return_msg: 响应消息内容
msg_id: 消息ID

请求消息体示例:
{
    "config": {
        "form_id": "4803305597478179107"
    },
    "pt": {
        "id": "2064770493868875201",
        "source_code": "code15597478179102",
        "creator_id": "3258191447353251895",
        "creator_time": "2017-01-20 12:12:03",
        "modifyier_id": "",
        "modifyier_ time ": "",
        "slfdf_1701180002": "订单编码001",
        "slfdf_1701180004": "2017-01-19 15:27",
        "slfdf_1701180005": "买家编码001",
        "slfdf_1701180006": "8037753159935166023",
        "slfdf_1701180007": "卖家编码001",
        "slfdf_1701180008": "卖家名称001",
        "slfdf_1701180009": "订单状态完成",
        "slfdf_1701180010": "1000",
        "slfdf_1701180011": "订单类型1",
        "slfdf_1701180012": "江浙沪",
        "slfdf_1701180013": "现金",
        "slfdf_1701180014": "1000",
        "slfdf_1701180015": "2017-01-19 15:28",
        "slfdf_1701180016": "收货人名称",
        "slfdf_1701180017": "15152621000",
        "slfdf_1701180018": "江苏",
        "slfdf_1701180019": "南京",
        "slfdf_1701180020": "建邺区",
        "slfdf_1701180021": "嘉陵江东街",
        "slfdf_1701180022": "9点-15点",
        "slfdf_1701180023": "9点",
        "slfdf_1701180024": "15点",
        "slfdf_1701190001": "备注1",
        "slfdf_1701190002": "备注2",
        "slfdf_1701190003": "备注3",
        "slfdf_1701190004": "备注4",
        "slfdf_1701190005": "备注5",
        "slfdf_1701190006": "备注6"
    },
    "sts": [
        {
            "id": "7144770493868875242",
            "rows": [
                {
                    "id": "2217888117059747333",
                    "source_code": "code15597478179111",
                    "slfdf_1701180025": "产品编码002",
                    "slfdf_1701180026": "产品名称002",
                    "slfdf_1701180027": "4",
                    "slfdf_1701180028": "100"
                },
                {
                    "id": "2217888117059747332",
                    "source_code": "code15597478179112",
                    "slfdf_1701180025": "产品编码001",
                    "slfdf_1701180026": "产品名称001",
                    "slfdf_1701180027": "6",
                    "slfdf_1701180028": "100"
                }
            ]
        }
    ]
}

响应信息示例:
{
    "return_code": 0,
    "return_msg": "",
    "msg_id": "X0001"
}