查询【配送退回单】接口

概述

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

参数说明

1.请求方式

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

2.header参数

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

3.请求参数

字段名称 字段代号 类型 长度 必填 固定值 备注
程序代号 PGM     DRPIB  
识别代号 IC_ID string 2 IB  
调拔单号 IC_NO string 20   ERP的单据号码

请求JSON示例

{
  "PGM": "DRPIB",       //单据程序代号
  "IC_ID": "IB",       //单据识别代号
  "IC_NO": "IB20083100000001"       //ERP的单据号码
}

返回结果示例

{
    "code": 0,            //为0表示执行成功,其他表示错误
    "message": "查询成功",           //提示信息
    "data": {
        "MF_IC": [                //查询单据表头信息
            {
                "IC_ID": "IB",
                "IC_NO": "IB20083100000001",
                "IC_DD": "2020-08-31 00:00:00",
                "FIX_CST": "1",
                "FIX_CST1": "1",
                "REM": "API产生",
                "USR": "ADMIN",
                "CHK_MAN": "ADMIN",
                "PRT_SW": "N",
                "CLS_DATE": "2020-08-31 00:00:00",
                "DEP": "C2",
                "BIL_TYPE": "",
                "SAL_NO": "9999",
                "CUS_NO1": "C2004",
                "SYS_DATE": "2020-08-31 11:56:58",
                "TOT_BOX": 0.0,
                "TOT_QTY": 2.0,
                "OUTDEP": "C2",
                "CFM_SW": "T",
                "MOB_ID": "",
                "BTRANS": 0
            }
        ],
        "TF_IC": [                 //查询单据表身信息
            {
                "IC_ID": "IB",
                "IC_NO": "IB20083100000001",
                "ITM": 1,
                "IC_DD": "2020-08-31 00:00:00",
                "PRD_NO": "0001",
                "PRD_NAME": "不粘锅",
                "PRD_MARK": "",
                "CST_STD": 0.0,
                "UP_STD": 0.0,
                "SPC": "4L",
                "UNIT": "1",
                "QTY": 2.0,
                "WH1": "C2004",
                "WH2": "9902",
                "CST": 222.9352,
                "UP_CST_OUT": 111.4676,
                "CST_OUT": 222.9352,
                "PRM_NO": "",
                "FIX_CST": "1",
                "FIX_CST1": "1",
                "KEY_ITM": 1,
                "UP_IN": 111.4676,
                "AMTN_NET_IN": 222.9352,
                "UP": 111.4676,
                "AMTN_NET": 222.9352,
                "RTN_ID": "A",
                "UP_CST": 111.4676,
                "PRE_ITM": 1,
                "BAR_CODE": "",
                "AMT_SO": 0.0,
                "PRD_MARK2": "",
                "SUP_PRD_NO": "D0001",
                "SUP_PRD_MARK": "",
                "QTY_BAR": 0.0,
                "PRD_NO_NO": "0001",
                "CST_STD_UNIT": 0.0
            }
        ]
    }
}