Tax Properties
Include tax properties and product tax properties in tax calculations.
Get Tax Properties
GET /stores/{store_hash}/v3/tax/properties
Request
Retrieve all tax properties defined in this store.
Authentication
- X-Auth-Token in header - required
Parameters
- store_hash in path - string
- id:in in query - string
ID of tax property. To target multiple tax properties, provide a comma-separated list of IDs such as
12,34,56
example
curl --request GET \ --url 'https://api.bigcommerce.com/stores/[store_hash]/v3/tax/properties' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --header 'X-Auth-Token: xxxxxxxxxxxxxxxxx'
Response
OK
Body
dataarray[object]
metaobject
Response metadata.
example
{ "data": [ { "code": "A-123456789", "display_name": "Example Tax Property 1", "description": "Food Industry" } ], "meta": {} }
Update Tax Properties
PUT /stores/{store_hash}/v3/tax/properties
Request
Update one or more tax properties. Only fields specified will be adjusted.
Authentication
- X-Auth-Token in header - required
Parameters
- store_hash in path - string
- Content-Type in header with default of application/json - string - required
The MIME type of the request body.
Body
idinteger
An internal identifier used by other operations.
Example: 1
codestring
The unique string programmatically references this unique tax property by the tax provider. Merchants should liaise with their tax provider to explore supported values and functions.
Example: A-123456789
display_namestring
The human-readable name for this property. This string will be displayed on the Products screen as a field label.
Example: Example Tax Property 1
descriptionstring
Optional. Additional detail about this tax property may help guide merchants. This string will be displayed on the Products screen as a tooltip associated with the relevant field.
Example: Food Industry
example
{ "id": 1, "code": "A-123456789", "display_name": "Example Tax Property 1", "description": "Food Industry" }
Response
OK
Body
dataarray[object]
metaobject
Response metadata.
example
{ "data": [ { "code": "A-123456789", "display_name": "Example Tax Property 1", "description": "Food Industry" } ], "meta": {} }
Create Tax Properties
POST /stores/{store_hash}/v3/tax/properties
Request
Create one or more tax properties. A code and a display name must be included when creating tax properties.
Authentication
- X-Auth-Token in header - required
Parameters
- store_hash in path - string
- Content-Type in header with default of application/json - string - required
The MIME type of the request body.
Body
codestring
The unique string programmatically references this unique tax property by the tax provider. Merchants should liaise with their tax provider to explore supported values and functions.
Example: A-123456789
display_namestring
The human-readable name for this property. This string will be displayed on the Products screen as a field label.
Example: Example Tax Property 1
descriptionstring
Additional detail about this tax property may help guide merchants. This string will be displayed on the Products screen as a tooltip associated with the relevant field.
Example: Food Industry
example
{ "code": "A-123456789", "display_name": "Example Tax Property 1", "description": "Food Industry" }
Response
OK
Body
dataarray[object]
metaobject
Response metadata.
example
{ "data": [ { "code": "A-123456789", "display_name": "Example Tax Property 1", "description": "Food Industry" } ], "meta": {} }
Delete Tax Properties
DELETE /stores/{store_hash}/v3/tax/properties
Request
Delete one or multiple tax properties. A tax property must have zero usages within product tax properties before you can delete it.
Authentication
- X-Auth-Token in header - required
Parameters
- store_hash in path - string
- id:in in query - string - required
ID of tax property. To target multiple tax properties, provide a comma-separated list of IDs such as
12,34,56
example
curl --request DELETE \ --url 'https://api.bigcommerce.com/stores/[store_hash]/v3/tax/properties' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --header 'X-Auth-Token: xxxxxxxxxxxxxxxxx'
Response
No Content