概述
该接口主要用于第三方平台或自主研发者,通过调用【库存调拨单】的查询接口,将Sunlike ERP或Online ERP系统中的【库存调拨单】信息查询到第三方平台中。
参数说明
1.请求方式
请求方式 |
POST |
接口地址 |
http://ERPAPI站点/DRPIO/GETDATA |
格式 |
JSON |
编码类型 |
UTF-8 |
2.header参数
Content-Type |
application/json |
|
Authorization |
token |
为小写token,token是获取每次登录的值 |
3.请求参数
字段名称 |
字段代号 |
类型 |
长度 |
必填 |
固定值 |
备注 |
程序代号 |
PGM |
|
|
必填 |
DRPIC |
|
识别代号 |
IC_ID |
string |
2 |
必填 |
IC |
|
单号 |
IC_NO |
string |
20 |
必填 |
|
ERP的单据号码 |
JSON示例
{
"PGM": "DRPIC", //单据程序代号
"IC_ID":"IC", //单据识别代号
"IC_NO": "IC20081800000001" //ERP的单据号码
}
返回结果示例
{ "code": 0, //为0表示执行成功,其他表示错误
"message": "查询成功", //提示信息
"data": { "MF_IC": [ //查询单据表头信息
{
"IC_ID": "IC",
"IC_NO": "IC20081800000001",
"IC_DD": "2020-08-18 00:00:00",
"FIX_CST": "1",
"FIX_CST1": "1",
"USR": "ADMIN",
"CHK_MAN": "ADMIN",
"PRT_SW": "N",
"CLS_DATE": "2020-08-18 00:00:00",
"DEP": "00000000",
"BIL_TYPE": "",
"SAL_NO": "9999",
"SYS_DATE": "2020-08-18 15:07:51",
"TOT_BOX": 0.0,
"TOT_QTY": 30.0,
"OUTDEP": "00000000",
"CFM_SW": "F",
"MOB_ID": "",
"BTRANS": 0,
"LJ_IC1": "外部单据"
}
],
"TF_IC": [ //查询单据表身信息
{
"IC_ID": "IC",
"IC_NO": "IC20081800000001",
"ITM": 1,
"IC_DD": "2020-08-18 00:00:00",
"PRD_NO": "0001",
"PRD_NAME": "不粘锅",
"PRD_MARK": "",
"CST_STD": 0.0,
"UP_STD": 0.0,
"SPC": "4L",
"UNIT": "1",
"QTY": 30.0,
"WH1": "9902",
"WH2": "9901",
"CST": 3351.015,
"FIX_CST": "1",
"FIX_CST1": "1",
"KEY_ITM": 1,
"UP": 111.7005,
"AMTN_NET": 3351.015,
"UP_CST": 111.7005,
"PRE_ITM": 1,
"BAR_CODE": "",
"PRD_MARK2": "",
"CHK_XZL": "T",
"QTY_BAR": 0.0,
"PRD_NO_NO": "0001",
"CST_STD_UNIT": 0.0,
"LJ_IC2": 100.0
}
]
}
}