添加调仓单接口
请求URL:
https://openapi.weixin12315.com/api/sign/md.fc.transferorder/v1/add
请求方式:
POST
请求示例:
IAuth auth = new Sign("app_id", "app_secret"); IClient client = new SignClient(auth); IDictionary<string, object> parameters = new Dictionary<string, object>(); IDictionary<string, object> parameters = new System.Collections.Generic.Dictionary<string, object>(); parameters.Add("transferorderno", "201645741234"); parameters.Add("fromwarehouseno", "10012"); parameters.Add("towarehouseno", "0033"); parameters.Add("remark", ""); parameters.Add("productinfo", JsonConvert.SerializeObject(new object[] { new{productno="1456",productcount="10"}, new{productno="123222",productcount="15"}})); string result = client.Call("https://openapi.weixin12315.com","md.fc.Store.AddTransferOrder", "V1", "POST", parameters);
参数:
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
transferorderno | 是 | string | 调仓单号 |
fromwarehouseno | 是 | string | 调出仓库编号 |
towarehouseno | 是 | string | 调入仓库编号 |
remark | 否 | string | 备注 |
productinfo | 是 | string | 产品信息 |
参数:
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
productno | 是 | string | 产品编号 |
productcount | 是 | int | 数量 |
返回示例
{ "return_code": "0", "return_msg": "ok", "return_data": { "transferorderid": 22, "transdetail":[ { "productno":"6501", "transferorderdetailid":"123" }, { "productno":"6502", "transferorderdetailid":"124" } ] } }
返回参数说明
参数名 | 类型 | 说明 |
---|---|---|
return_code | String | 只有等于0时才有数据返回 |
return_msg | string | 错误原因 |
return_data | string | 返回数据 |
return_data字段说明
参数名 | 类型 | 说明 |
---|---|---|
transferorderid | int | 调仓单号ID |
transdetail | string | 明细信息 |
transdetail字段说明
参数名 | 类型 | 说明 |
---|---|---|
productno | string | 产品编码 |
transferorderdetailid | int | 调仓明细ID |