EINVOICE
Click here for a complete list of operations.
EINV_TXN_A0201
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /EINV_SERVICE_XML.asmx HTTP/1.1
Host: bill.einvoice.biz
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.master-tech.com.tw/EINV_TXN_A0201"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<EINV_TXN_A0201 xmlns="http://www.master-tech.com.tw/">
<pRcptID>string</pRcptID>
<pMACH_UUID>string</pMACH_UUID>
<pYearPeriod>string</pYearPeriod>
<pInvNo>string</pInvNo>
<pIn_rec xmlns="urn:GEINV:eInvoiceMessage:A0201:3.1">
<CancelInvoiceNumber>string</CancelInvoiceNumber>
<InvoiceDate>string</InvoiceDate>
<BuyerId>string</BuyerId>
<SellerId>string</SellerId>
<CancelDate>string</CancelDate>
<CancelTime>string</CancelTime>
<CancelReason>string</CancelReason>
<ReturnTaxDocumentNumber>string</ReturnTaxDocumentNumber>
<Remark>string</Remark>
</pIn_rec>
<pOuterMsg>string</pOuterMsg>
</EINV_TXN_A0201>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<EINV_TXN_A0201Response xmlns="http://www.master-tech.com.tw/">
<EINV_TXN_A0201Result>boolean</EINV_TXN_A0201Result>
<pIn_rec xmlns="urn:GEINV:eInvoiceMessage:A0201:3.1">
<CancelInvoiceNumber>string</CancelInvoiceNumber>
<InvoiceDate>string</InvoiceDate>
<BuyerId>string</BuyerId>
<SellerId>string</SellerId>
<CancelDate>string</CancelDate>
<CancelTime>string</CancelTime>
<CancelReason>string</CancelReason>
<ReturnTaxDocumentNumber>string</ReturnTaxDocumentNumber>
<Remark>string</Remark>
</pIn_rec>
<pOuterMsg>string</pOuterMsg>
</EINV_TXN_A0201Response>
</soap:Body>
</soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /EINV_SERVICE_XML.asmx HTTP/1.1
Host: bill.einvoice.biz
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<EINV_TXN_A0201 xmlns="http://www.master-tech.com.tw/">
<pRcptID>string</pRcptID>
<pMACH_UUID>string</pMACH_UUID>
<pYearPeriod>string</pYearPeriod>
<pInvNo>string</pInvNo>
<pIn_rec xmlns="urn:GEINV:eInvoiceMessage:A0201:3.1">
<CancelInvoiceNumber>string</CancelInvoiceNumber>
<InvoiceDate>string</InvoiceDate>
<BuyerId>string</BuyerId>
<SellerId>string</SellerId>
<CancelDate>string</CancelDate>
<CancelTime>string</CancelTime>
<CancelReason>string</CancelReason>
<ReturnTaxDocumentNumber>string</ReturnTaxDocumentNumber>
<Remark>string</Remark>
</pIn_rec>
<pOuterMsg>string</pOuterMsg>
</EINV_TXN_A0201>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<EINV_TXN_A0201Response xmlns="http://www.master-tech.com.tw/">
<EINV_TXN_A0201Result>boolean</EINV_TXN_A0201Result>
<pIn_rec xmlns="urn:GEINV:eInvoiceMessage:A0201:3.1">
<CancelInvoiceNumber>string</CancelInvoiceNumber>
<InvoiceDate>string</InvoiceDate>
<BuyerId>string</BuyerId>
<SellerId>string</SellerId>
<CancelDate>string</CancelDate>
<CancelTime>string</CancelTime>
<CancelReason>string</CancelReason>
<ReturnTaxDocumentNumber>string</ReturnTaxDocumentNumber>
<Remark>string</Remark>
</pIn_rec>
<pOuterMsg>string</pOuterMsg>
</EINV_TXN_A0201Response>
</soap12:Body>
</soap12:Envelope>