Tax Classes
Manage tax calculations applied to sales. Tax classes are used to apply different tax rates for specific types of products and orders. This API is read only. Classes must be set using the Control Panel (opens in a new tab).
Get All Tax Classes
GET https://api.bigcommerce.com/stores/{store_hash}/v2/tax_classesRequest
Returns a list of all Tax Classes in a store.
Default sorting is by tax-class id, from lowest to highest.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- page in query - numberOptional filter param. Number of pages.
- limit in query - numberOptional filter param. Number of items per page
example
curl --request GET \
--url 'https://api.bigcommerce.com/stores/[store_hash]/v2/tax_classes' \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: {{token}}'
Response
Body
array | application/json
idstring
The unique numerical ID of the tax class. A read-only value which is automatically assigned and increments sequentially.Example: 1namestring
The name of the tax class.Example: Shippingcreated_atstring
Date and time of the tax class' creation. Read-Only.Example: 2018-05-07T20:14:17+00:00updated_atstring
Date and time when the tax class was last updated. Read-Only.Example: 2018-05-07T20:14:17+00:00
example
[
{
"id": "1",
"name": "Non-Taxable Products",
"created_at": "1973-01-20T21:34:57.903+00:00",
"updated_at": "1990-12-30T00:29:23.515+00:00"
},
{
"id": "2",
"name": "Shipping",
"created_at": "1973-01-20T21:34:57.903+00:00",
"updated_at": "1990-12-30T00:29:23.515+00:00"
},
{
"id": "3",
"name": "Gift Wrapping",
"created_at": "1973-01-20T21:34:57.903+00:00",
"updated_at": "1990-12-30T00:29:23.515+00:00"
}
]
Get a Tax Class
GET https://api.bigcommerce.com/stores/{store_hash}/v2/tax_classes/{id}Request
Returns a single Tax Class.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- id in path - integerrequiredID of the tax class.
example
curl --request GET \
--url 'https://api.bigcommerce.com/stores/[store_hash]/v2/tax_classes/[id]' \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: {{token}}'
Response
Body
object | application/json
idstring
The unique numerical ID of the tax class. A read-only value which is automatically assigned and increments sequentially.Example: 1namestring
The name of the tax class.Example: Shippingcreated_atstring
Date and time of the tax class' creation. Read-Only.Example: 2018-05-07T20:14:17+00:00updated_atstring
Date and time when the tax class was last updated. Read-Only.Example: 2018-05-07T20:14:17+00:00
example
{
"id": "1",
"name": "Shipping",
"created_at": "1973-01-20T21:34:57.903+00:00",
"updated_at": "1990-12-30T00:29:23.515+00:00"
}
See something you can improve? Edit this file on GitHub
Did you find what you were looking for?