Tax API Specs
From CommerceV3 Docs
COMMERCEV3 TAX API DOCUMENTATION
Copyright 2009 Color Maria, Inc.,
Last updated 2005-09-14
1. TABLE OF CONTENTS
1. Table of Contents 2. Introduction 3. Specifications I. Capabilities II. Query To the Service III. Response From the Service 4. Example
2. INTRODUCTION
If your store requires tax options that are not already built-in to our software, you can use the Tax API in conjunction with third-party software to make adjustments to tax on each order. To do so, answer "Yes" to the question "Would you like to use your own tax web service?" on the General Options page and type the URL to your web service in the box.
3. SPECIFICATIONS
3.I CAPABILITIES
The tax API allows you to set the tax amount for each ship-to. Note that this feature is developmental and that more features can be added by request.
3.II QUERY TO THE SERVICE
When calculating the order's totals, CommerceV3 will make a query to your web service (HTTP GET) with the following keys and values:
'ship_state': the shipping state entered by the user 'ship_zip': the shipping zip code entered by the users 'bill_state': the billing state entered by the user 'bill_zip': the billing zip code entered by the user 'total': the subtotal for the order 'shipping': the shipping total for the order 'order_type': "retail" or "wholesale" depending on which area the order is being placed 'skus': pipe delimited list of skus 'qtys': pipe delimited list of quantities with keys matching the skus
3.III RESPONSE FROM THE SERVICE
The response from your web service is simply the floating point tax value for the order.
3. EXAMPLE