Get Product Tax Properties
GET /stores/{store_hash}/v3/tax/products/properties
Request
Retrieve the tax properties that are associated with one or more products.
Authentication
- X-Auth-Token in header - required
Parameters
- store_hash in path - string
- product_id:in in query - string - required
ID of product. To target multiple products, 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/products/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": [ { "product_id": 157, "tax_properties": { "A-123456789": "26", "B-6731789": "200" } } ], "meta": {} }
Update Product Tax Properties
PUT /stores/{store_hash}/v3/tax/products/properties
Request
Update the tax properties associated with one or more products. This operation will be additive to any tax property values already associated with the product, overwriting any existing tax property values.
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
product_idinteger
A reference to the product that the product tax properties are associated with.
Example: 157
tax_propertiesobject
A simple key-value pairing. The tax property must be defined to associate a value. These values will be sent to the active tax provider during Tax Provider API operations whenever the associated product is included in the operation.
Example: {"A-123456789":"26","B-6731789":"200"}
Example
[ { "product_id": 157, "tax_properties": { "A-123456789": "26", "B-6731789": "200" } } ]
Response
OK
Body
dataarray[object]
metaobject
Response metadata.
example
{ "data": [ { "product_id": 157, "tax_properties": { "A-123456789": "26", "B-6731789": "200" } } ], "meta": {} }
Delete Product Tax Properties
DELETE /stores/{store_hash}/v3/tax/products/properties
Request
Delete tax properties that are associated with one or more products.
Authentication
- X-Auth-Token in header - required
Parameters
- store_hash in path - string
- product_id:in in query - string - required
ID of product. To target multiple products, 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/products/properties' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --header 'X-Auth-Token: xxxxxxxxxxxxxxxxx'
Response
No Content