速查【凭证输入】接口

概述

该接口主要用于第三方平台或自主研发者,通过调用【凭证输入】的查询接口,可将Sunlike ERP或Online ERP系统中的【凭证输入】凭证信息调出至第三方平台中显示。

参数说明

请求方式

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

header参数

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

请求参数

字段名称 字段代号 类型 长度 必填 固定值 备注
程序代号 PGM     VENTRYWIN  
制票号码 MAK_NO string 20   ERP的单据号码

请求JSON示例

{
  "PGM": "VENTRYWIN",      //程序代号
  "MAK_NO": "MK11220001"    //ERP单据号码
}

返回结果示例

{
    "code": 0,      //0表示执行成功
    "message": "查询成功",
    "data": {
        "VHED": [       //查询凭证输入的表头信息
            {
                "MAK_NO": "MK11220001",
                "MAK_DAT": "2021-01-22 00:00:00",
                "VOH_NO": "VH11220001",
                "VOH_DAT": "2021-01-22 00:00:00",
                "VOH_ID": "3",
                "POS_DAT": "2021-01-22 00:00:00",
                "CHK_MAN": "ADMIN",
                "POS_MAN": "ADMIN",
                "AMT": 110.0,
                "VOH_ITM": 2,
                "USR": "ADMIN",
                "SYS_DATE": "2021-01-22 09:34:55",
                "CLS_DATE": "2021-01-22 09:34:55",
                "DEP": "00000000",
                "DEP_NAME": "First Department"
            }
        ],
        "VDTL": [         //查询凭证输入的表身信息
            {
                "MAK_NO": "MK11220001",
                "ITM": 1,
                "VOH_DAT": "2021-01-22 00:00:00",
                "DC": "D",
                "ACC_NO": "1001",
                "DEP": "00000000",
                "AMTN": 110.0,
                "EXC_RTO": 1.0,
                "POS": "T",
                "VOH_ID": "3",
                "PRE_ITM": 1,
                "ACC_NAME": "库存现金",
                "DEP_NAME": "First Department",
                "ENG_NAME": "Cash on hand",
                "AMTND": 110.0,
                "ACCNO": "1001",
                "DEP_NO": "00000000"
            },
            {
                "MAK_NO": "MK11220001",
                "ITM": 2,
                "VOH_DAT": "2021-01-22 00:00:00",
                "DC": "C",
                "ACC_NO": "1221",
                "DEP": "00000000",
                "AMTN": 110.0,
                "EXC_RTO": 1.0,
                "POS": "T",
                "VOH_ID": "3",
                "PRE_ITM": 2,
                "ACC_NAME": "其他应收款",
                "DEP_NAME": "First Department",
                "ENG_NAME": "Other receivable",
                "AMTNC": 110.0,
                "ACCNO": "1221",
                "DEP_NO": "00000000"
            }
        ]
    }
}