查询【托工折让单】接口

概述

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

参数说明

1.请求方式

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

2.header参数

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

3.请求参数

字段名称 字段代号 类型 长度 必填 固定值 备注
程序代号 PGM     MRPBRA  
托工折让单号 TD_NO string 20   ERP的单据号码

请求JSON示例

{
  "PGM": "MRPBRA",     //单据程序代号
  "TD_NO": "DT0C280001"    //ERP的单据号码
}

返回结果示例

{
    "code": 0,
    "message": "查询成功",
    "data": {
        "MF_TD": [
            {
                "TD_NO": "DT0C280001",
                "TD_DD": "2020-12-28 00:00:00",
                "DEP": "0101",
                "CUS_NO": "1001",
                "PAY_DD": "2021-01-01 00:00:00",
                "CHK_DD": "2021-02-01 00:00:00",
                "BAT_NO": "",
                "VOH_ID": "",
                "TAX_ID": "2",
                "TB_NO": "TB0C280001",
                "SEND_MTH": "1",
                "SEND_WH": "",
                "ZHANG_ID": "1",
                "ARP_NO": "AP0C280002",
                "CUR_ID": "",
                "EXC_RTO": 0.0,
                "SAL_NO": "10001",
                "PAY_MTH": "1",
                "PAY_DAYS": 1,
                "CHK_DAYS": 30,
                "INT_DAYS": 30,
                "PAY_REM": "结帐期:2021-01-01;票据到期日:2021-02-01",
                "CLS_REM": "",
                "CLOSE_ID": "F",
                "PRT_SW": "N",
                "USR": "ADMIN",
                "CHK_MAN": "ADMIN",
                "CLS_DATE": "2020-12-28 00:00:00",
                "BIL_TYPE": "",
                "MOB_ID": "",
                "SYS_DATE": "2020-12-28 16:50:08",
                "MMVOH_ID": "",
                "KP_ID": "F",
                "CAS_NO": "",
                "RP_NO": "",
                "PRT_USR": ""
            }
        ],
        "TF_TD": [
            {
                "TD_NO": "DT0C280001",
                "ITM": 1,
                "TD_DD": "2020-12-28 00:00:00",
                "PRD_NO": "A2001",
                "PRD_MARK": "",
                "WH": "A000",
                "UNIT": "1",
                "AMTN_NET": 9.52,
                "TAX": 0.48,
                "AMT": 10.0,
                "TB_NO": "TB0C280001",
                "TW_NO": "TW0C280001",
                "EST_ITM": 1,
                "ID_NO": "A2001->",
                "TAX_RTO": 5.0,
                "PRE_ITM": 1,
                "PRD_NAME": "A2001制成品"
            }
        ]
    }
}