查询【托工缴回验收单】接口

概述

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

参数说明

1.请求方式

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

2.header参数

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

3.请求参数

字段名称 字段代号 类型 长度 必填 固定值 备注
程序代号 PGM     MRPTO  
识别代号 TY_ID string 2 TO  
单据号码 TY_NO string 20   ERP的单据号码

请求JSON示例

{
  "PGM": "MRPTO",        //请求的程序代号
  "TY_ID": "TO",         //请求的单据别
  "TY_NO": "TO2111050001"      //ERP单据号码
}

返回结果示例

{
    "code": 0,
    "message": "查询成功",
    "data": {
        "MF_TY": [
            {
                "TY_ID": "TO",
                "TY_NO": "TO2111050001",
                "TY_DD": "2021-11-05 00:00:00",
                "CUS_NO": "CU0301",
                "TI_NO": "T72111050001",
                "USR": "ADMIN",
                "CHK_MAN": "ADMIN",
                "PRT_SW": "N",
                "CLS_DATE": "2022-04-29 15:25:32",
                "DEP": "D0300",
                "SYS_DATE": "2022-04-29 15:25:32",
                "TI_ID": "T7",
                "CHK_KND": "1",
                "APP_NAME_DATA": "ONLINE-API"
            }
        ],
        "TF_TY": [
            {
                "TY_ID": "TO",
                "TY_NO": "TO2111050001",
                "ITM": 1,
                "PRD_NO": "WDP001",
                "PRD_NAME": "打印机",
                "PRD_MARK": "",
                "WH": "YH001",
                "UNIT": "1",
                "QTY_CHK": 1.0,
                "QTY_OK": 1.0,
                "BIL_NO": "TW2111050001",
                "TI_NO": "T72111050001",
                "PRE_ITM": 1,
                "ID_NO": "WDP001->",
                "QTY1_CHK": 2.0,
                "QTY1_OK": 2.0,
                "TI_ITM": 2,
                "SPC": "H&P"
            }
        ],
        "BILL_STATE": {
            "READONLY": false,
            "READONLY_REM": []
        }
    }
}