Type
|
Update
|
List
|
Tax Regions
|
URL
|
http://{domain}/api/v2/taxregions/update.json
|
Accepts Filters
|
No
|
Output Attributes
|
No
|
Update Tax Regions
These parameters are used for Updating Tax Regions. Using this API one can update Lead Commerce Tax Regions, indicated by zip codes. The specific data points include ID, tax_id, tax_rate, status and postal_code. The ID is the Tax Subregion ID, the tax_id is the Tax Region ID, the tax_rate is the rate of taxation for the given zip code, status is Tax Region status and the postal code is the 5 digits US zip code. Note: This api only creates zip codes. The tax_id must already exists for this api to work properly.
Parameter
|
Type
|
Required
|
Notes
|
Example
|
id
|
int
|
Yes
|
Tax Subregion ID
|
44
|
tax_id
|
int
|
Yes
|
Tax Region ID
|
2
|
postal_code
|
string
|
Yes
|
|
92014
|
tax_rate
|
decimal
|
Yes
|
|
0.085
|
status
|
int
|
No
|
0, 1 or 2
|
1
|
Response
Example JSON returned
{
"code": "200",
"data": "1"
}