查询【进货折让单】接口

概述

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

参数说明

1.请求方式

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

2.header参数

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

3.请求参数

字段名称 字段代号 类型 长度 必填否 固定值 备注
程序代号 PGM     必填 DRPPD  
识别代号 PS_ID string 2 必填 PD  
单号 PS_NO string 20 必填   ERP的单据号码

请求JSON示例

{
    "PGM":"DRPPD",       //单据程序代号
    "PS_ID":"PD",        //单据识别代号
    "PS_NO":"PD20082700000001"     //ERP的单据号码
}

返回结果示例

{
    "code": 0,               //为0表示执行成功,其他表示错误
    "message": "查询成功",           //提示信息
    "data": {
        "MF_PSS": [                //查询单据表头信息
            {
                "PS_ID": "PD",
                "PS_NO": "PD20082700000001",
                "PS_DD": "2020-08-27 00:00:00",
                "PAY_DD": "2020-09-01 00:00:00",
                "CHK_DD": "2020-10-01 00:00:00",
                "CUS_NO": "C1000",
                "CUS_NAME": "外部供应商",
                "DEP": "001",
                "DEP_NAME": "001部门",
                "TAX_ID": "2",
                "ZHANG_ID": "3",
                "CUR_ID": "",
                "EXC_RTO": 1.0,
                "SAL_NO": "9999",
                "SAL_NAME": "LJ",
                "PAY_MTH": "1",
                "PAY_DAYS": 1,
                "CHK_DAYS": 30,
                "INT_DAYS": 30,
                "PAY_REM": "结帐期:2020-09-01;票据到期日:2020-10-01",
                "USR": "ADMIN",
                "CHK_MAN": "ADMIN",
                "PRT_SW": "N",
                "CLS_DATE": "2020-08-27 00:00:00",
                "BIL_TYPE": "",
                "AMTN_RCV": 0.0,
                "SYS_DATE": "2020-08-28 11:00:28",
                "REM": "API产生",
                "AMT": 0.0,
                "KP_ID": "F",
                "AMTN_TAX_IRP": 0.0,
                "AMT_TAX_IRP": 0.0
            }
        ],
        "TF_PSS": [               //查询单据表身信息
            {
                "PS_ID": "PD",
                "PS_NO": "PD20082700000001",
                "ITM": 1,
                "PS_DD": "2020-08-27 00:00:00",
                "WH": "9902",
                "PRD_NO": "0001",
                "PRD_NAME": "不粘锅",
                "PRD_MARK": "",
                "UNIT": "1",
                "TAX_RTO": 5.0,
                "UP_QTY1": 0.0,
                "AMTN_NET": 95.24,
                "AMT": 100.0,
                "PRE_ITM": 1,
                "CSTN_SAL": 95.24,
                "TAX": 4.76,
                "SPC": "4L",
                "AMT_ORG": 0.0,
                "AMT_ORG1": 0.0,
                "CHK_TAX": "F",
                "CST_SAL": 100.0,
                "BAR_CODE": "",
                "PRD_NO_NO": "0001",
                "CST_STD_UNIT": 0.0
            }
        ]
    }
}