概述
该接口主要用于第三方平台或自主研发者,通过调用【制成品验收退回单】的查询接口,将Sunlike ERP或Online ERP系统中的【制成品验收退回单】信息调出至第三方平台中显示。
参数说明
1.请求方式
请求方式 |
POST |
接口地址 |
http://ERPAPI站点/MRPTY/GETDATA |
格式 |
JSON |
编码类型 |
UTF-8 |
2.header参数
Content-Type |
application/json |
|
Authorization |
token |
为小写token,token是获取每次登录的值 |
3.请求参数
字段名称 |
字段代号 |
类型 |
长度 |
必填 |
固定值 |
备注 |
程序代号 |
PGM |
|
|
是 |
MRPYP |
|
单据识别 |
TY_ID |
string |
2 |
是 |
YP |
|
单据号码 |
TY_NO |
string |
20 |
是 |
|
ERP单据号码 |
请求JSON示例
{
"PGM":"MRPYP", //第三方单号,必填
"TY_ID":"YP", //单据识别,必填
"TY_NO":"YP21240001" //ERP单据号码
}
返回结果示例
{
"code": 0, //返回0表示成功,否则为失败
"message": "查询成功",
"data": {
"MF_TY": [ //返回查询单据表头信息
{
"TY_ID": "YP",
"TY_NO": "YP21240001",
"TY_DD": "2022-01-24 00:00:00",
"CUS_NO": "",
"TI_NO": "TP21240001",
"REM": "",
"USR": "ADMIN",
"CHK_MAN": "ADMIN",
"PRT_SW": "N",
"CLS_DATE": "2022-01-24 00:00:00",
"BIL_TYPE": "",
"DEP": "00000000",
"SYS_DATE": "2022-01-25 12:13:34"
}
],
"TF_TY": [ //返回查询单据表身信息
{
"TY_ID": "YP",
"TY_NO": "YP21240001",
"ITM": 1,
"PRD_NO": "1001",
"PRD_MARK": "",
"WH": "00000000",
"UNIT": "1",
"QTY_CHK": 2.0,
"QTY1_CHK": 4.0,
"REM": "",
"BIL_NO": "MO21240001",
"TI_NO": "TP21240001",
"KEY_ITM": 1,
"BAT_NO": "",
"SPC_NO": "01",
"EST_ITM": 1,
"PRE_ITM": 1,
"TI_ITM": 1,
"RK_NO": "T621240001"
}
],
"BILL_STATE": {
"READONLY": false,
"READONLY_REM": []
}
}
}