Giter VIP home page Giter VIP logo

avatax-calc-rest-curl's Introduction

AvaTax-REST-cURL

Other Samples

This is a set of cURL sample requests and expected responses demonstrating the AvaTax REST API methods: tax/get POST, tax/get GET, tax/cancel POST, and address/validate GET.

For more information on the use of these methods and the AvaTax product, please visit our developer site or homepage

Contents:

Sample Files
CancelTaxTest.txtDemonstrates the CancelTax method used to void a document.
EstimateTaxTest.txtDemonstrates the EstimateTax method used for product- and line- indifferent tax estimates.
GetTaxTest.txtDemonstrates the GetTax method used for product- and line- specific calculation.
PingTest.txtUses a hardcoded EstimateTax call to test connectivity and credential information.
ValidateAddressTest.txtDemonstrates the ValidateAddress method to normalize an address.
Other Files
.gitattributes-
.gitignore-
LICENSE.md-
README.md-

Dependencies:

  • cURL 7.0 or later

Requirements:

  • Authentication requires an valid Account Number and License Key, which should be entered in the test file (e.g. GetTaxTest.rb) you would like to run.
  • If you do not have an AvaTax account, a free trial account can be acquired through our developer site

avatax-calc-rest-curl's People

Contributors

anyarms avatar seanrustavalara avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

avatax-calc-rest-curl's Issues

ValidateAddressText Example does not seem to work with Country as indicated

When I try the ValidateAddressTest.txt example using line 1 in both the command line curl as well as PostMan I receive:

{
    "ResultCode": "Error",
    "Messages": [{
        "Summary": "Country not supported.",
        "Details": "Address Validation for this country not supported.",
        "RefersTo": "Country",
        "Severity": "Error",
        "Source": "Avalara.AvaTax.Services.Address"
    }]
}

If I remove the "Country=US" option then it works with:

{
    "Address": {
        "County": "Cook",
        "FipsCode": "1703100000",
        "CarrierRoute": "C012",
        "PostNet": "606021304990",
        "AddressType": "H",
        "Line1": "ATTN Accounts Payable City=Chicago",
        "Line2": "118 N Clark St Ste 100",
        "City": "Chicago",
        "Region": "IL",
        "PostalCode": "60602-1304",
        "Country": "US"
    },
    "ResultCode": "Success"
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.