查询【销货退回送检单】接口

概述

该接口主要用于第三方平台或自主研发者,通过调用【销货退回送检单】的查询接口,将Sunlike ERP或Online ERP系统中的【销货退回送检单】信息查询到第三方平台中。

参数说明

1.请求方式

请求方式 POST
接口地址 http://ERPAPI站点/DRPTI/GETDATA
格式 JSON
编码类型 UTF-8

2.header参数

Content-Type application/json
Authorization token 授权接口所获取的值

3.请求参数

字段名称 字段代号 类型 长度 必填 固定值 备注
程序代号 PGM     DRPT4  
识别代号 TI_ID string 2 T4  
单据号码 TI_NO string 20   ERP的单据号码

请求JSON示例

{
  "PGM": "DRPT4",       //单据程序代号
  "TI_ID": "T4",       //单据识别代号
  "TI_NO": "T420082700000001"       //ERP的单据号码
}

返回结果示例

{
    "code": 0,             //为0表示执行成功,其他表示错误
    "message": "查询成功",          //提示信息
    "data": {
        "MF_TI": [               //查询单据表头信息
            {
                "TI_ID": "T4",
                "TI_NO": "T420082700000001",
                "TI_DD": "2020-08-27 00:00:00",
                "SAL_NO": "9999",
                "CLOSE_ID": "F",
                "CUS_NO": "0008",
                "DEP": "00000000",
                "REM": "API产生",
                "USR": "ADMIN",
                "CHK_MAN": "ADMIN",
                "PRT_SW": "N",
                "CLS_DATE": "2020-08-27 00:00:00",
                "BIL_TYPE": "",
                "OS_ID": "YX",
                "OS_NO": "YX20082700000001",
                "CHKTY_ID": "T",
                "SYS_DATE": "2020-08-27 16:22:06",
                "BIL_ID": "YX",
                "BIL_NO": "YX20082700000001",
                "LJ_T41": "外部单据"
            }
        ],
        "TF_TI": [                //查询单据表身信息
            {
                "TI_ID": "T4",
                "TI_NO": "T420082700000001",
                "ITM": 1,
                "PRD_NO": "0001",
                "PRD_NAME": "不粘锅",
                "PRD_MARK": "",
                "WH": "9902",
                "UNIT": "1",
                "QTY": 10.0,
                "BIL_ID": "YX",
                "BIL_NO": "YX20082700000001",
                "QTY_RTN": 0.0,
                "QTY_RTN_UNSH": 0.0,
                "ID_NO": "",
                "QTY1_RTN": 0.0,
                "QTY1_RTN_UNSH": 0.0,
                "OLD_QTY": 10.0,
                "SUP_PRD_NO": "",
                "VALID_DD": "2020-08-27 00:00:00",
                "QTY_RK": 10.0,
                "PRE_ITM": 1,
                "CK_ITM": 1,
                "SL_NO": "YX20082700000001",
                "CHKTY_ID": "T",
                "UT": "个",
                "SPC": "4L",
                "UPR": 500.0,
                "WH_NAME": "深圳仓",
                "SL_ITM": 1,
                "LJ_T42": 10.0
            }
        ]
    }
}