Giter VIP home page Giter VIP logo

avatax-calc-soap-php's Introduction

The AvaTaxCalc PHP (for SOAP) Sample is open source designed to assist you with developing your own custom integration to your chosen web store or e-commerce solution. Each sample can be executed independently from a command prompt provided they have been pre-configured with the Web service URL and your Account Number and License Key.

Note: The Avalara Admin Account Username and Password can be used in place of Account and License Key

See http://developer.avalara.com/api-docs/designing-your-integration/gettax for more information.

Installation Dependencies

  • PHP V5.2 or later
  • SSL and SoapClient support must be enabled for your PHP interpreter. For windows, add the following extentions to php.ini:

    extension=php_soap.dll
    extension=php_openssl.dll


    Note: For *nix, it may be necessary to recompile your PHP interpreter with soap.dll and oenssl.dll enabled.
  • Samples Included

    API
    Method Demonstrated
    IsAuthorizedTest.php IsAuthorized is a method that allows the user to specify a number of a methods or services to ascertain if they are permitted to use them based on the credentials provided in the request.
    PingTest.php The Ping method can be used for testing connectivity to the AvaTax web service, verify supplied credentials, and return the service version in use by the AvaTax web service.
    ValidateTest.php Validate demonstrates the ValidateAddress method that normalizes a provided address. US and Canada only.
    GetTaxRequestTest.php The GetTaxRequest method calculates retail sales tax on documents such as sales orders, sales invoices, purchase orders, purchase invoices, or credit memos. Note: A document can be committed at this stage by setting the Commit property to true (default is false).
    PostTaxTest.php The PostTax method can be used to modify the state of a SalesInvoice, ReturnInvoice or PurchaseInvoice document saved to the AvaTax database. Note: A document can be committed at this stage by setting the Commit property to true (default is false).
    CommitTaxTest.php The CommitTax method can be used to modify the state of a document that is "posted" (only) to the AvaTax database via SalesInvoice, ReturnInvoice or PurchaseInvoice a methods. Note: CommitTax is not a required step to commit a document to AvaTax. Documents can be committed during the GetTax or PostTax document lifecycle.
    GetTaxHistoryTest.php GetTaxHistory is a method that retrieves details from a previously saved (to the AvaTax database) documents.
    AdjustTaxTest.php AdjustTax is a method that has the ability to modify elements of an already committed document. Note: Sets the Document Modified flag.
    CancelTaxTest.php CancelTax is a method that cancels a tax document specified by the DocId, DocCode, and DocType parameters. See CancelTax for more details.
    ReconcileTaxHistoryTest.php ReconcileTaxHistory is a method that will produce a listing of documents saved to the AvaTax database -based on a range of dates or document codes.
    /AvaTax4PHP ../AvaTax4PHP is a Directory containing the core classes that enable the API samples to make Avatax web service calls.

    Other Files Included in this Repository

    .gitattributes GitHub attribute file. Not required for sample use.
    .gitignore GitHub config file. Not required for sample use.
    LICENSE.md Apache License TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
    README.md This document describing how to make use of the sample API code.

    Resources

    Developer API Documentation is located here: http://developer.avalara.com/api-docs

    Find out what other developers are talking about on the Avalara Developer Community Forum located here: https://community.avalara.com/avalara/categories/avalara_developersintegrations

    Frequently asked questions regarding the Avalara product is located here: https://help.avalara.com/

    avatax-calc-soap-php's People

    Contributors

    longlet avatar

    Watchers

     avatar

    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.