PayNowEInvoice
按一下這裡以取得完整的作業清單。
UploadInvoiceNew
UploadInvoiceNew
測試
測試表單只適用於來自本機電腦的要求。SOAP 1.1
下列是 SOAP 1.1 要求與回應的範例。預留位置顯示之處必須代入實際的值。
POST /PayNowEInvoice.asmx HTTP/1.1 Host: invoice.paynow.com.tw Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "https://invoice.PayNow.com.tw/UploadInvoiceNew" <?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> <UploadInvoiceNew xmlns="https://invoice.PayNow.com.tw/"> <mem_cid>string</mem_cid> <mem_pw>string</mem_pw> <InvNo>string</InvNo> <BuyerId>string</BuyerId> <BuyerName>string</BuyerName> <BuyerAdd>string</BuyerAdd> <BuyerPhoneNo>string</BuyerPhoneNo> <BuyerEmail>string</BuyerEmail> <TotalAmount>string</TotalAmount> <OrderNo>string</OrderNo> <Send>boolean</Send> <CarrierType>string</CarrierType> <CarrierId1>string</CarrierId1> <CarrierId2>string</CarrierId2> <NPOBAN>string</NPOBAN> <MainMark>string</MainMark> </UploadInvoiceNew> </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> <UploadInvoiceNewResponse xmlns="https://invoice.PayNow.com.tw/"> <UploadInvoiceNewResult> <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> </UploadInvoiceNewResult> </UploadInvoiceNewResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
下列是 SOAP 1.2 要求與回應的範例。預留位置顯示之處必須代入實際的值。
POST /PayNowEInvoice.asmx HTTP/1.1 Host: invoice.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> <UploadInvoiceNew xmlns="https://invoice.PayNow.com.tw/"> <mem_cid>string</mem_cid> <mem_pw>string</mem_pw> <InvNo>string</InvNo> <BuyerId>string</BuyerId> <BuyerName>string</BuyerName> <BuyerAdd>string</BuyerAdd> <BuyerPhoneNo>string</BuyerPhoneNo> <BuyerEmail>string</BuyerEmail> <TotalAmount>string</TotalAmount> <OrderNo>string</OrderNo> <Send>boolean</Send> <CarrierType>string</CarrierType> <CarrierId1>string</CarrierId1> <CarrierId2>string</CarrierId2> <NPOBAN>string</NPOBAN> <MainMark>string</MainMark> </UploadInvoiceNew> </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> <UploadInvoiceNewResponse xmlns="https://invoice.PayNow.com.tw/"> <UploadInvoiceNewResult> <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> </UploadInvoiceNewResult> </UploadInvoiceNewResponse> </soap12:Body> </soap12:Envelope>