查询【托工送检单】接口

概述

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

参数说明

1.请求方式

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

2.header参数

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

3.请求参数

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

请求JSON示例

{
    "PGM":"MRPBLB",      //单据程序代号
    "TI_ID":"T7",       //单据别代号
    "TI_NO":"T72205140002"     //ERP单据号码
}

返回结果示例

{
    "code": 0,                         //为0表示执行成功,其他表示错误
    "message": "查询成功",                //提示信息
    "data": {
        "MF_TI": [                      //查询单据表头信息
            {
                "TI_ID": "T7",
                "TI_NO": "T72205140002",
                "TI_DD": "2022-05-14 00:00:00",
                "BIL_ID": "TW",
                "BIL_NO": "TW2205140002",
                "SAL_NO": "001",
                "CLOSE_ID": "F",
                "CUS_NO": "CU0301",
                "DEP": "965",
                "REM": "",
                "USR": "ADMIN",
                "CHK_MAN": "ADMIN",
                "PRT_SW": "N",
                "CLS_DATE": "2022-06-07 09:29:11",
                "OS_ID": "TW",
                "OS_NO": "TW2205140002",
                "CHKTY_ID": "T",
                "SYS_DATE": "2022-06-07 09:29:11",
                "CUS_NAME": "新大新商场(全)",
                "WMS_SHLC_TW": "1"
            }
        ],
        "TF_TI": [                     //查询单据表身信息
            {
                "TI_ID": "T7",
                "TI_NO": "T72205140002",
                "ITM": 1,
                "PRD_NO": "WDP001",
                "PRD_NAME": "打印机",
                "PRD_MARK": "",
                "WH": "YH001",
                "UNIT": "1",
                "QTY": 1.0,
                "BIL_ID": "TW",
                "BIL_NO": "TW2205140002",
                "BAT_NO": "",
                "REM": "",
                "EST_ITM": 1,
                "QTY_RK": 1.0,
                "ID_NO": "WDP001->",
                "ZC_NO": "",
                "QTY1": 2.0,
                "CK_ITM": 1,
                "CUS_OS_NO": "",
                "PRE_ITM": 1,
                "CHKTY_ID": "T",
                "CNT_NEED": "F",
                "SPC": "H&P",
                "UT1": "套",
                "NAME_ENG": "DAYING",
                "WH_NAME": "要货总仓一"
            }
        ],
        "BILL_STATE": {
            "READONLY": false,
            "READONLY_REM": []
        }
    }
}