Need sample GetTax soap api xml format

  • 1
  • Problem
  • Updated 1 month ago
  • (Edited)
Hi Team,

I need sample xml format for SOAP API for "getTax" method.

I am having trouble to add details of "Addresses" and "Lines" in soap body xml.

Please attached sample xml format for "getTax" SOAP api, specially having "addresses" and "lines" element in it.

my code generated soap request : https://codebeautify.org/xmlviewer/cb502caa

Please check and modify the same if incorrect.

Its my humble request to modify the xml format if incorrect as I need it very urgently.
Photo of Yogesh V

Yogesh V

  • 3 Posts
  • 0 Reply Likes
  • confused

Posted 1 month ago

  • 1
Photo of Chris Walker

Chris Walker, Official Rep

  • 25 Posts
  • 2 Reply Likes
You can view a sample response here: https://developer.avalara.com/api-reference/avatax/soap/methods/getTax/ under Example Response.

You can also view the model for the getTax response here: https://developer.avalara.com/api-reference/avatax/soap/models/GetTaxResponse%20%3E%20GetTaxResult/

Photo of Yogesh V

Yogesh V

  • 3 Posts
  • 0 Reply Likes
Hi chris,

I am looking for request xml not response.

I am bit confused about how to define address and lines in xml format..

If you have sample xml with these two elements, plz add it here..

I need sample soap request xml and not JSON format..
Photo of Chris Walker

Chris Walker, Official Rep

  • 25 Posts
  • 2 Reply Likes
Sorry about that, I misread your question.

We don't have any sample requests, but you can find the definitions within the WSDL (https://avatax.avalara.net/tax/taxsvc.wsdl) which shows the full request models.

As a side note the SOAP API is not in active development and we recommend using the REST v2 API.

Photo of Yogesh V

Yogesh V

  • 3 Posts
  • 0 Reply Likes
Thanks Chris,

That was great help !

As per your comment I will go with PHP SDK for development than SOAP api's.

Thanks for your quick reply, really appreciated !!