PayNowEInvoice
按一下這裡以取得完整的作業清單。
SelectInvoice
測試
測試表單只適用於來自本機電腦的要求。SOAP 1.1
下列是 SOAP 1.1 要求與回應的範例。預留位置顯示之處必須代入實際的值。
POST /PayNowEInvoice.asmx HTTP/1.1 Host: testinvoice.paynow.com.tw Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "https://invoice.PayNow.com.tw/SelectInvoice" <?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> <SelectInvoice xmlns="https://invoice.PayNow.com.tw/"> <mem_cid>string</mem_cid> <OrderNo>string</OrderNo> </SelectInvoice> </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> <SelectInvoiceResponse xmlns="https://invoice.PayNow.com.tw/"> <SelectInvoiceResult> <Up_no>int</Up_no> <CId>int</CId> <Send>boolean</Send> <kMapingCode>string</kMapingCode> <InvoiceNumber>string</InvoiceNumber> <InvoiceDate>string</InvoiceDate> <InvoiceTime>string</InvoiceTime> <Identifier>string</Identifier> <Name>string</Name> <Address>string</Address> <SalesAmount>string</SalesAmount> <FreeTaxSalesAmount>string</FreeTaxSalesAmount> <ZeroTaxSalesAmount>string</ZeroTaxSalesAmount> <TaxType>string</TaxType> <TaxRate>string</TaxRate> <TaxAmount>string</TaxAmount> <TotalAmount>string</TotalAmount> <MainRemark>string</MainRemark> <OrderNo>string</OrderNo> <PrintMark>string</PrintMark> <CustomerNumber>string</CustomerNumber> <kInvoiceEmail>string</kInvoiceEmail> <RandomNumber>string</RandomNumber> <SequenceNumber>string</SequenceNumber> <Description>string</Description> <Quantity>string</Quantity> <UnitPrice>string</UnitPrice> <Amount>string</Amount> <Remark>string</Remark> <mem_cid>string</mem_cid> <CarrierType>string</CarrierType> <CarrierId1>string</CarrierId1> <CarrierId2>string</CarrierId2> <NPOBAN>string</NPOBAN> <Year>string</Year> <Period>string</Period> <ReturnStr>string</ReturnStr> <rtcode>string</rtcode> <rtMsg>string</rtMsg> <batchNo>string</batchNo> <ErrorMsg>string</ErrorMsg> <Status>string</Status> <ReturnStatus>boolean</ReturnStatus> <GetStatus>boolean</GetStatus> <QRCodeStr>string</QRCodeStr> <rtmessage>string</rtmessage> <deduct>string</deduct> <EC>string</EC> <CustomsClearanceMark>string</CustomsClearanceMark> <StoreName>string</StoreName> <BuyerSno>string</BuyerSno> <SendSMS>string</SendSMS> <BingoItem>string</BingoItem> <State>int</State> <SendState>int</SendState> <Buyer_Email>string</Buyer_Email> <Text>string</Text> <ChangeDate>string</ChangeDate> <WriteoffDate>string</WriteoffDate> <Loadtype>string</Loadtype> <ZeroTaxRateReason>None or ExportGoods or ExportLabor or FreeTaxGoods or OperatingGoodsOrLabor or InterNationsTransPort or InterNationsShip or SalesInterNationsShip or Eight or Nine</ZeroTaxRateReason> </SelectInvoiceResult> </SelectInvoiceResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
下列是 SOAP 1.2 要求與回應的範例。預留位置顯示之處必須代入實際的值。
POST /PayNowEInvoice.asmx HTTP/1.1 Host: testinvoice.paynow.com.tw 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> <SelectInvoice xmlns="https://invoice.PayNow.com.tw/"> <mem_cid>string</mem_cid> <OrderNo>string</OrderNo> </SelectInvoice> </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> <SelectInvoiceResponse xmlns="https://invoice.PayNow.com.tw/"> <SelectInvoiceResult> <Up_no>int</Up_no> <CId>int</CId> <Send>boolean</Send> <kMapingCode>string</kMapingCode> <InvoiceNumber>string</InvoiceNumber> <InvoiceDate>string</InvoiceDate> <InvoiceTime>string</InvoiceTime> <Identifier>string</Identifier> <Name>string</Name> <Address>string</Address> <SalesAmount>string</SalesAmount> <FreeTaxSalesAmount>string</FreeTaxSalesAmount> <ZeroTaxSalesAmount>string</ZeroTaxSalesAmount> <TaxType>string</TaxType> <TaxRate>string</TaxRate> <TaxAmount>string</TaxAmount> <TotalAmount>string</TotalAmount> <MainRemark>string</MainRemark> <OrderNo>string</OrderNo> <PrintMark>string</PrintMark> <CustomerNumber>string</CustomerNumber> <kInvoiceEmail>string</kInvoiceEmail> <RandomNumber>string</RandomNumber> <SequenceNumber>string</SequenceNumber> <Description>string</Description> <Quantity>string</Quantity> <UnitPrice>string</UnitPrice> <Amount>string</Amount> <Remark>string</Remark> <mem_cid>string</mem_cid> <CarrierType>string</CarrierType> <CarrierId1>string</CarrierId1> <CarrierId2>string</CarrierId2> <NPOBAN>string</NPOBAN> <Year>string</Year> <Period>string</Period> <ReturnStr>string</ReturnStr> <rtcode>string</rtcode> <rtMsg>string</rtMsg> <batchNo>string</batchNo> <ErrorMsg>string</ErrorMsg> <Status>string</Status> <ReturnStatus>boolean</ReturnStatus> <GetStatus>boolean</GetStatus> <QRCodeStr>string</QRCodeStr> <rtmessage>string</rtmessage> <deduct>string</deduct> <EC>string</EC> <CustomsClearanceMark>string</CustomsClearanceMark> <StoreName>string</StoreName> <BuyerSno>string</BuyerSno> <SendSMS>string</SendSMS> <BingoItem>string</BingoItem> <State>int</State> <SendState>int</SendState> <Buyer_Email>string</Buyer_Email> <Text>string</Text> <ChangeDate>string</ChangeDate> <WriteoffDate>string</WriteoffDate> <Loadtype>string</Loadtype> <ZeroTaxRateReason>None or ExportGoods or ExportLabor or FreeTaxGoods or OperatingGoodsOrLabor or InterNationsTransPort or InterNationsShip or SalesInterNationsShip or Eight or Nine</ZeroTaxRateReason> </SelectInvoiceResult> </SelectInvoiceResponse> </soap12:Body> </soap12:Envelope>