Skip to main content
Avalara Help Center

CertExpress for Partners

This article applies to:CertCapture

Make it easy for your customers to submit exemption documents on your own website via CertExpress. Add the JavaScript tag to your application's webpage, and then use our code examples to customize how the CertExpress widget connects with your site.

Before you begin

  • To perform this integration, you must pass specific parameters identifying your company to CertExpress
  • Your company's web developer can insert a JavaScript tag into your applications webpage 
  • Likewise, you can also implement your own solution to direct users to the CertExpress with the expected parameters

Code Examples

The following has been written in core JavaScript for compatibility purposes, and includes an example for use in conjunction with HTML and CSS.

  • This logic can be reverse-engineered into any scripting language 
  • Regardless of the language used, CertExpress expects the parameters to be passed correctly

Example Post Sample

https://app.certexpress.com?name=Test%20Name&address_line1=1300%20East%20Central&address_line2=&city=San%20Francisco&state=California&country=United%20States&zip=12345&phone_number=555-555-5555&fax_number=444-444-4444&email=contactinfo@mycompany.com

 JavaScript Code

function init_certexpress() {

            seller                 = new Object();

            seller.name            = 'Test Name';

            seller.address_line1   = '1300 East Central';

            seller.address_line2   = '';

            seller.city            = 'San Francisco';

            seller.state           = 'California';

            seller.country         = 'United States';

            seller.zip             = '12345';

            seller.phone_number    = '555-555-5555';

            seller.fax_number      = '444-444-4444';

            seller.email           = 'contactinfo@mycompany.com';

           

            var params = "";

            for (var key in seller) {

                if (params != "") {

                    params += "&";

                }

                params += key + "=" + encodeURIComponent(seller[key]);

            }

 

            var link = 'https://app.certexpress.com?'+params;

            window.open(link, '_blank');

          }

 Example in Context

<html>

    <head>

    <script language="javascript">

        function init_certexpress() {

            seller                 = new Object();

            seller.name            = 'Test Name';

            seller.address_line1   = '1300 East Central';

            seller.address_line2   = '';

            seller.city            = 'San Francisco';

            seller.state           = 'California';

            seller.country         = 'United States';

            seller.zip             = '12345';

            seller.phone_number    = '555-555-5555';

            seller.fax_number      = '444-444-4444';

            seller.email           = 'contactinfo@mycompany.com';

           

            var params = "";

            for (var key in seller) {

                if (params != "") {

                    params += "&";

                }

                params += key + "=" + encodeURIComponent(seller[key]);

            }

 

            var link = 'https://app.certexpress.com?'+params;

            window.open(link, '_blank');

          }

    </script>

    <style>

        #certexpress_btn {

            background-color: #FF6600;

            border-radius: 4px;

            padding: 7px 24px;

            color: white;

            font-size: 13px;

            font-weight: bold;

            font-family: "Source Sans Pro", sans-serif;

            min-height: 36px;

            line-height: 36px;

            letter-spacing: 0.010em;

            border: 0;

        }

        #certexpress_btn:hover {

            background-color: #E65000 ;

        }

    </style>

    </head>

    <body>

        <button id="certexpress_btn" onclick="init_certexpress()">Create Tax Exemption with Avalara CertExpress</button>

    </body>

</html>

  • Was this article helpful?