概述
该接口主要用于第三方平台或自主研发者,通过调用【原料调拨申请单】的查询接口,将Sunlike ERP或Online ERP系统中的【原料调拨申请单】信息查询到第三方平台中。
参数说明
1.请求方式
请求方式 |
POST |
接口地址 |
http://ERPAPI站点/DRPDS/GETDATA |
格式 |
JSON |
编码类型 |
UTF-8 |
2.header参数
Content-Type |
application/json |
Authorization |
token |
授权接口所获取的值 |
3.请求参数
字段名称 |
字段代号 |
类型 |
长度 |
必填 |
固定值 |
备注 |
程序代号 |
PGM |
|
|
是 |
MRPDM |
|
申请单ID |
DS_ID |
string |
2 |
是 |
DS |
|
调拨申请单号 |
DS_NO |
string |
20 |
|
|
|
请求JSON示例
{
"PGM": "MRPDM", //单据程序代号
"DS_ID":"DM", //ERP单据别
"DS_NO": "DM14290001" //ERP单据号码
}
返回结果示例
{
"code": 0,
"message": "查询成功",
"data": {
"MF_DS": [
{
"DS_ID": "DM",
"DS_NO": "DM14290001",
"DS_DD": "2021-04-29 00:00:00",
"REM": "",
"USR": "ADMIN",
"CHK_MAN": "ADMIN",
"CLS_DATE": "2021-04-29 00:00:00",
"DEP": "00000000",
"FIX_CST": "1",
"BIL_TYPE": "",
"SYS_DATE": "2021-04-29 10:16:44",
"MC_ID": "1"
}
],
"TF_DS": [
{
"DS_ID": "DM",
"DS_NO": "DM14290001",
"ITM": 1,
"DS_DD": "2021-04-29 00:00:00",
"PRD_NO": "10031",
"PRD_MARK": "",
"UNIT": "1",
"QTY": 1.0,
"QTY1": 0.0,
"WH1": "00000000",
"WH2": "A000",
"BAT_NO": "",
"REM": "",
"BIL_ID": "MO",
"BIL_NO": "MO14280001",
"FIX_CST": "2",
"EST_ITM": 1,
"PRE_ITM": 1,
"PRD_MARK2": ""
}
],
"BILL_STATE": {
"READONLY": false,
"READONLY_REM": []
}
}
}