仓库同步功能调用方法

业务类型名称

SyncStock

功能说明

同步ISV(即行业软件系统)的仓库数据到KIS账务平台。

Recordset数据集参数

参数名称参数类型参数说明是否必填值域
FParentIDstringISV中上级仓库编码 
FIDstringISV中仓库编码 
FNamestring仓库名称 
FTypeIDInteger仓库类型 
FAddressstring仓库地址 
FPhonestring仓库电话 
FSMSPhoneNumberstring[短信]移动电话 
FEmpIDstring管理员 

发送请求示例

Post Url:https://kisgz.kingdee.com/Kisopenapi/router/

Post数据:

eid=1884366
&netid=1884366317841
&client_id=1402576015
&method=kis.APP004088.acctplatform.AcctController.DealAcctPlatForm
&timestamp=2016-06-20 11:22:34
&ver=2.0
&access_token=2BB6EC5194303633356B5ACE509D1BA0
&state=dmYZagdU8kwC8yLr
&custdata={

    "ProductID": "S1S013S001",
    "AccountDB": "KISOEM_Sample",
    "Data": {
        "Action": "SyncStock",
        "Recordset": [
            {
                "FParentID": "",
                "FID": "001",
                "FName": "原料1号仓",
                "FEmpID": "001",
                "FAddress": "深圳罗湖",
                "FPhone": "",
                "FSMSPhoneNumber": "",
                "FTypeID": "0"
            },
            {
                "FParentID": "",
                "FID": "002",
                "FName": "原料2号仓",
                "FEmpID": "003",
                "FAddress": "深圳龙岗",
                "FPhone": "",
                "FSMSPhoneNumber": "",
                "FTypeID": "0"
            }
        ]
    }

}

返回数据示例

示例1

{

    "Result": 200,
    "ErrMsg": "",
    "DataJson": {
        "Result": "200",
        "ErrMsg": "",
        "AccountDB": null,
        "TotalPage": "5",
        "CurrentPage": "1",
        "ItemsOfPage": "10",
        "Data": ""
    }

}

示例2

{

    "Result": 200,
    "ErrMsg": "关于路由的出错信息",
    "DataJson": {
        "Result": "200",
        "ErrMsg": "",
        "AccountDB": null,
        "TotalPage": "5",
        "CurrentPage": "1",
        "ItemsOfPage": "10",
        "Data": null
    }

}

示例3

{

    "Result": 200,
    "ErrMsg": "",
    "DataJson": {
        "Result": "202",
        "ErrMsg": "关于业务处理的出错信息",
        "AccountDB": null,
        "TotalPage": "5",
        "CurrentPage": "1",
        "ItemsOfPage": "10",
        "Data": null
    }

}