Calculate sales tax response

<?xml version="1.0" encoding="UTF-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:vin="http://soap.vindicia.com/v21_0/Vindicia" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <soap:Body> <calculateSalesTaxResponse xmlns="http://soap.vindicia.com/v21_0/Transaction"> <return xmlns="" xsi:type="vin:Return"> <returnCode xsi:type="vin:ReturnCode">200</returnCode> <soapId xsi:type="xsd:string">b8603f06c80ecc92cb7775305c4045efbf37ea7d</soapId> <returnString xsi:type="xsd:string">OK</returnString> </return> <transaction xmlns="" xsi:type="vin:Transaction"> <amount xmlns="" xsi:type="xsd:decimal">10.60</amount> <currency xmlns="" xsi:type="xsd:string">USD</currency> <merchantTransactionId xmlns="" xsi:type="xsd:string">vin_test_txid_1548359745732</merchantTransactionId> <timestamp xmlns="" xsi:type="xsd:dateTime">2019-01-24T11:55:46-08:00</timestamp> <account xmlns="" xsi:type="vin:Account"> <merchantAccountId xmlns="" xsi:type="xsd:string">123456789</merchantAccountId> <emailTypePreference xmlns="" xsi:type="vin:EmailPreference">html</emailTypePreference> </account> <shippingAddress xmlns="" xsi:type="vin:Address"> <name xmlns="" xsi:type="xsd:string">Vin Tester</name> <addr1 xmlns="" xsi:type="xsd:string">268 WADSWORTH PT</addr1> <city xmlns="" xsi:type="xsd:string">MAYSVILLE</city> <district xmlns="" xsi:type="xsd:string">KY</district> <postalCode xmlns="" xsi:type="xsd:string">41056</postalCode> <country xmlns="" xsi:type="xsd:string">US</country> </shippingAddress> <transactionItems xmlns="" xsi:type="vin:TransactionItem"> <sku xmlns="" xsi:type="xsd:string">ott-aybs-ep-200</sku> <indexNumber xmlns="" xsi:type="xsd:int">1</indexNumber> <itemType xmlns="" xsi:type="vin:TransactionItemType">Purchase</itemType> <name xmlns="" xsi:type="xsd:string">Are you being served - Episode 200</name> <price xmlns="" xsi:type="xsd:decimal">10</price> <quantity xmlns="" xsi:type="xsd:decimal">1</quantity> <taxType xmlns="" xsi:type="xsd:string">Exclusive Sales</taxType> <tax xmlns="" xsi:type="vin:TaxItem"> <jurisdiction xmlns="" xsi:type="xsd:string">STATE_21</jurisdiction> <name xmlns="" xsi:type="xsd:string">KENTUCKY STATE SALES TAX</name> <amount xmlns="" xsi:type="xsd:decimal">0.6</amount> <externalTaxName xmlns="" xsi:type="xsd:string">KY STATE TAX</externalTaxName> <externalJurisdictionName xmlns="" xsi:type="xsd:string">KENTUCKY</externalJurisdictionName> <taxRate xmlns="" xsi:type="xsd:decimal">0.060000</taxRate> </tax> <subtotal xmlns="" xsi:type="xsd:decimal">10</subtotal> <total xmlns="" xsi:type="xsd:decimal">10.6</total> </transactionItems> <transactionItems xmlns="" xsi:type="vin:TransactionItem"> <sku xmlns="" xsi:type="xsd:string">Total Tax</sku> <indexNumber xmlns="" xsi:type="xsd:int">2</indexNumber> <itemType xmlns="" xsi:type="vin:TransactionItemType">Purchase</itemType> <name xmlns="" xsi:type="xsd:string">Total Tax</name> <price xmlns="" xsi:type="xsd:decimal">0</price> <quantity xmlns="" xsi:type="xsd:decimal">1</quantity> <taxClassification xmlns="" xsi:type="xsd:string">TaxExempt</taxClassification> <taxType xmlns="" xsi:type="xsd:string">Exclusive Sales</taxType> <tax xmlns="" xsi:type="vin:TaxItem"> <jurisdiction xmlns="" xsi:type="xsd:string">STATE_21</jurisdiction> <name xmlns="" xsi:type="xsd:string">KENTUCKY STATE SALES TAX</name> <amount xmlns="" xsi:type="xsd:decimal">0.6</amount> </tax> <discount xmlns="" xsi:type="xsd:decimal">0</discount> <subtotal xmlns="" xsi:type="xsd:decimal">0</subtotal> <total xmlns="" xsi:type="xsd:decimal">0.6</total> </transactionItems> <salesTaxAddress xmlns="" xsi:type="vin:Address"> <VID xmlns="" xsi:type="xsd:string">63dac29ce7b135f859ffb304803b30edfebdb800</VID> <name xmlns="" xsi:type="xsd:string">Vin Tester</name> <addr1 xmlns="" xsi:type="xsd:string">268 WADSWORTH PT</addr1> <city xmlns="" xsi:type="xsd:string">MAYSVILLE</city> <district xmlns="" xsi:type="xsd:string">KY</district> <postalCode xmlns="" xsi:type="xsd:string">41056</postalCode> <country xmlns="" xsi:type="xsd:string">US</country> </salesTaxAddress> </transaction> <addressType xmlns="" xsi:type="vin:AddressType">Shipping</addressType> <originalAddress xmlns="" xsi:type="vin:Address"> <name xmlns="" xsi:type="xsd:string">Vin Tester</name> <addr1 xmlns="" xsi:type="xsd:string">268 WADSWORTH PT</addr1> <city xmlns="" xsi:type="xsd:string">MAYSVILLE</city> <district xmlns="" xsi:type="xsd:string">KY</district> <postalCode xmlns="" xsi:type="xsd:string">41056</postalCode> <country xmlns="" xsi:type="xsd:string">US</country> </originalAddress> <correctedAddress xmlns="" xsi:type="vin:Address"> <VID xmlns="" xsi:type="xsd:string">63dac29ce7b135f859ffb304803b30edfebdb800</VID> <name xmlns="" xsi:type="xsd:string">Vin Tester</name> <addr1 xmlns="" xsi:type="xsd:string">268 WADSWORTH PT</addr1> <city xmlns="" xsi:type="xsd:string">MAYSVILLE</city> <district xmlns="" xsi:type="xsd:string">KY</district> <postalCode xmlns="" xsi:type="xsd:string">41056</postalCode> <country xmlns="" xsi:type="xsd:string">US</country> </correctedAddress> <totalTax xmlns="" xsi:type="xsd:decimal">0.60</totalTax> </calculateSalesTaxResponse> </soap:Body> </soap:Envelope>

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.