Sales Taxes
Add Sales Tax
post /sites/{siteid}/salestaxes{ "name": "Washington State Tax", "decimalvaluedefault": "6.500"}
4
HTTP Status Code Summary | |
---|---|
200 | Returns salestaxid |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Get Sales Taxes
get /sites/{siteid}/salestaxesThe index of the item to start from
The number of items returned
Comma separated list of fields to return. Use this to query only the fields you are using. Default is all fields in salestax.
{ "totalcount": 3, "items": [ { "salestaxid": 1, "name": "FL State Tax", "code": null, "decimalvaluedefault": "6.000", "productgrouprules": [] }, { "salestaxid": 2, "name": "Miami Dade County Tax", "code": null, "decimalvaluedefault": "1.000", "productgrouprules": [] }, { "salestaxid": 3, "name": "MA State Tax", "code": null, "decimalvaluedefault": "6.250", "productgrouprules": [ { "vatid": 2, "type": 20, "moneymin": "175.00", "moneymax": null, "decimalvalue": "6.250", "externalid": "20010" } ] } ]}
HTTP Status Code Summary | |
---|---|
200 | Returns an envelope with items of type salestax. |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Get Sales Tax
get /sites/{siteid}/salestaxes/{salestaxid}{ "salestaxid": 4, "name": "Washington State Tax", "code": null, "decimalvaluedefault": "6.500", "productgrouprules": []}
HTTP Status Code Summary | |
---|---|
200 | Returns an item of type salestax. |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Update Sales Tax
put /sites/{siteid}/salestaxes/{salestaxid}{ "name": "WA State Tax"}
true
HTTP Status Code Summary | |
---|---|
200 | Returns true |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Delete Sales Tax
delete /sites/{siteid}/salestaxes/{salestaxid}true
HTTP Status Code Summary | |
---|---|
200 | Returns true |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Add Sales Tax Group
post /sites/{siteid}/salestaxgroups{ "name": "Miami State (General)", "region": "FL", "salestaxes": [ { "salestaxid": 1 } ]}
3
HTTP Status Code Summary | |
---|---|
200 | Returns salestaxgroupid |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Get Sales Tax Groups
get /sites/{siteid}/salestaxgroupsThe index of the item to start from
The number of items returned
Comma separated list of fields to return. Use this to query only the fields you are using. Default is all fields in salestaxgroup.
{ "totalcount": 2, "items": [ { "salestaxgroupid": 1, "name": "Miami Dade", "region": "FL", "salestaxes": [ { "salestaxid": 1, "name": "FL State Tax", "code": null, "decimalvaluedefault": "6.000", "productgrouprules": [] }, { "salestaxid": 2, "name": "Miami Dade County Tax", "code": null, "decimalvaluedefault": "1.000", "productgrouprules": [] } ] }, { "salestaxgroupid": 2, "name": "Massachusetts", "region": "MA", "salestaxes": [ { "salestaxid": 3, "name": "MA State Tax", "code": null, "decimalvaluedefault": "6.250", "productgrouprules": [ { "vatid": 2, "type": 20, "moneymin": "175.00", "moneymax": null, "decimalvalue": "6.250", "externalid": "20010" } ] } ] } ]}
HTTP Status Code Summary | |
---|---|
200 | Returns an envelope with items of type salestaxgroup. |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Get Sales Tax Group
get /sites/{siteid}/salestaxgroups/{salestaxgroupid}{ "salestaxgroupid": 3, "name": "Miami State (General)", "region": "FL", "salestaxes": [ { "salestaxid": 1, "name": "FL State Tax", "code": null, "decimalvaluedefault": "6.000", "productgrouprules": [] } ]}
HTTP Status Code Summary | |
---|---|
200 | Returns an item of type salestaxgroup. |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Update Sales Tax Group
put /sites/{siteid}/salestaxgroups/{salestaxgroupid}{ "name": "Miami State (Default)"}
true
HTTP Status Code Summary | |
---|---|
200 | Returns true |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Delete Sales Tax Group
delete /sites/{siteid}/salestaxgroups/{salestaxgroupid}true
HTTP Status Code Summary | |
---|---|
200 | Returns true |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Objects
moneystring
salestaxobject
A definition of a sales tax.
The ID of the sales tax.
The name of the sales tax.
The code used for the sales tax.
The default tax percentage for this sales tax.
An array of salestaxproductgrouprule applicable to this sales tax.
salestaxgroupobject
A collection of salestax used for a point of sale.
The ID of the sales tax group.
The name of the sales tax group.
The region for the sales tax group.
An array of salestax applicable to this sales tax group.
salestaxproductgroupruleobject
A sales tax rule for a specific product group.
The VAT ID of the productgroup that this rule applies to.
The type for this rule.
The minimum value for this rule (if applicable).
The maximum value for this rule (if applicable).
The tax percentage for this rule.
An external ID used for this rule. (e.g Product Tax Code)
salestaxproductgroupruletypeinteger
10
Total20
OverMin30
Exempt