乐企数电红字确认单确认API

API说明:本接口支持以销方或者购方方式发起红字确认信息单的同意与否
调用方式:HTTP协议
API编码:ECXML.QDFP.HZQRDQR
调用方法:POST(XML文件流)

请求报文规范

<REQUEST_QDHZQRDQR class="REQUEST_QDHZQRDQR">
    <QQLSH>请求流水号</QQLSH>
    <HZQRXXDBH>红字确认信息单编号</HZQRXXDBH>
    <HZQRDUUID>红字确认单UUID</HZQRDUUID>
    <XSFNSRSBH>销售方纳税人识别号</XSFNSRSBH>
    <HZQRBZ>红字确认标识</HZQRBZ>
</REQUEST_QDHZQRDQR>

字段说明

数据项 名称 类型 长度 必须 说明
QQLSH 请求流水号 varchar 50 调用端保证唯一性
HZQRDUUID 红字确认单uuid varchar 32
HZQRXXDBH 红字确认信息单编号 varchar 32
XSFNSRSBH 销售方纳税人识别号 varchar 20
HZQRBZ 红字确认标识 varchar 2 01:同意
02:不同意
03:撤销

返回报文规范

<RESPONSE_QDHZQRDQR class="RESPONSE_QDHZQRDQR ">
    <QQLSH>请求流水号</QQLSH>
    <QRRQ>确认日期</QRRQ>
</RESPONSE_QDHZQRDQR>

字段说明

数据项 名称 类型 长度 必须 说明
QQLSH 请求流水号 varchar 50
QRRQ 确认日期 varchar 20 yyyy-MM-dd HH:mm:ss

示例报文

请求报文示例

<?xml version='1.0' encoding='utf-8'?>
<interface
    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.chinatax.gov.cn/tirip/dataspec/interfaces.xsd' version='DZFP1.0'>
    <globalInfo>
        <terminalCode>0</terminalCode>
        <appId>ZZS_PT_DZFP</appId>
        <version>2.0</version>
        <interfaceCode>ECXML.QDFP.HZQRDQR</interfaceCode>
        <requestCode>P1000001</requestCode>
        <requestTime>2023-02-18 10:30:42</requestTime>
        <responseCode>121</responseCode>
        <dataExchangeId>P100000120160801000000001</dataExchangeId>
        <userName>P1000001</userName>
        <passWord />
        <taxpayerId>913101010000000090</taxpayerId>
        <authorizationCode>NH873FG4KW</authorizationCode>
    </globalInfo>
    <returnStateInfo>
        <returnCode />
        <returnMessage />
    </returnStateInfo>
    <Data>
        <dataDescription>
            <zipCode>0</zipCode>
            <encryptCode>1</encryptCode>
            <codeType>3DES</codeType>
        </dataDescription>
        <content>
            <REQUEST_QDHZQRDQR class="REQUEST_QDHZQRDQR">
                <QQLSH>c231a12294384f728cc8931c4a29aa20</QQLSH>
                <HZQRXXDBH>44201422081000000301</HZQRXXDBH>
                <HZQRDUUID>87c9cba6ccdd4b99a3f908c3dd991c54</HZQRDUUID>
                <XSFNSRSBH>913101010000000090</XSFNSRSBH>
                <HZQRBZ>01</HZQRBZ>
            </REQUEST_QDHZQRDQR>
        </content>
    </Data>
</interface>

返回报文示例(成功)

<?xml version="1.0" encoding="UTF-8"?>
<interface xmlns:schemaLocation="http://www.chinatax.gov.cn/tirip/dataspec/interfaces.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="WLFP1.0">
    <globalInfo>
        <terminalCode>0</terminalCode>
        <appId>ZZS_PT_DZFP</appId>
        <version>2.0</version>
        <interfaceCode>ECXML.QDFP.HZQRDQR</interfaceCode>
        <requestCode>P1000001</requestCode>
        <requestTime>2023-02-18 10:30:42</requestTime>
        <responseCode>121</responseCode>
        <dataExchangeId>P100000120160801000000001</dataExchangeId>
        <userName>P1000001</userName>
        <passWord />
        <taxpayerId>913101010000000090</taxpayerId>
        <authorizationCode>NH873FG4KW</authorizationCode>
    </globalInfo>
    <returnStateInfo>
        <returnCode>0000</returnCode>
        <returnMessage>5aSE55CG5oiQ5Yqf</returnMessage>
    </returnStateInfo>
    <Data>
        <dataDescription>
            <zipCode>0</zipCode>
            <encryptCode>1</encryptCode>
            <codeType>3DES</codeType>
        </dataDescription>
        <content>
            <RESPONSE_QDHZQRDQR class="RESPONSE_QDHZQRDQR ">
                <QQLSH>c231a12294384f728cc8931c4a29aa20</QQLSH>
                <QRRQ>2023-02-18 10:30:42</QRRQ>
            </RESPONSE_QDHZQRDQR >
        </content>
    </Data>
</interface>

返回报文示例(失败)

<?xml version="1.0" encoding="UTF-8"?>
    <interface xmlns:schemaLocation="http://www.chinatax.gov.cn/tirip/dataspec/interfaces.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="WLFP1.0">
        <globalInfo>
            <terminalCode>0</terminalCode>
            <appId>ZZS_PT_DZFP</appId>
            <version>2.0</version>
            <interfaceCode>ECXML.QDFP.HZQRDQR</interfaceCode>
            <requestCode>P1000001</requestCode>
            <requestTime>2023-02-18 10:30:42</requestTime>
            <responseCode>121</responseCode>
            <dataExchangeId>21ewqdsafafx20170407eXl4EymmJ</dataExchangeId>
            <userName>P1000001</userName>
            <passWord></passWord>
            <taxpayerId>913101010000000090</taxpayerId>
            <authorizationCode>NH873FG4KW</authorizationCode>
        </globalInfo>
        <returnStateInfo>
            <returnCode>9999(或者是其它错误码)</returnCode>
            <returnMessage>Base64(错误信息)</returnMessage> 
        </returnStateInfo>
        <Data>
            <dataDescription>
                <zipCode>0</zipCode>
                <encryptCode>1</encryptCode>
                <codeType>3DES</codeType>
            </dataDescription>
            <content/>
        </Data>
    </interface>
Copyright © Shanghai Aisino Co.,Ltd 版权所有 侵权必究该文件修订时间: 2025-03-31 16:08:29

results matching ""

    No results matching ""