Tax Customers
Configure customer tax data for use in tax calculations.
Get Tax Customers
GET https://api.bigcommerce.com/stores/{store_hash}/v3/tax/customersRequest
Retrieves a list of customer tax data.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Content-Type in header with default of application/json - stringrequiredThe MIME type of the request body.
- customer_id:in in query - arrayID of customer. To target multiple customers, provide a comma-separated list of IDs such as
12,34,56
.Type: array[integer]
example
curl --request GET \
--url 'https://api.bigcommerce.com/stores/[store_hash]/v3/tax/customers' \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: {{token}}'
Response
OK
Body
object | application/json
dataarray[object]
example
{
"data": [
{
"customer_id": 157,
"tax_properties": {
"A-123456789": "26",
"B-6731789": "200"
}
}
],
"meta": {}
}
Update Tax Customers
PUT https://api.bigcommerce.com/stores/{store_hash}/v3/tax/customersRequest
Update the tax data associated with one or more customers. This operation will be additive to any values already associated with the customer, overwriting any existing values.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Content-Type in header with default of application/json - stringrequiredThe MIME type of the request body.
Body
array | application/json
customer_idinteger
requiredA reference to the customer.Example: 157tax_propertiesobject
requiredA 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 customer is included in the operation.
Example: {"A-123456789":"26","B-6731789":"200"}
Example
[
{
"customer_id": 157,
"tax_properties": {
"A-123456789": "26",
"B-6731789": "200"
}
}
]
Response
OK
Body
object | application/json
dataarray[object]
example
{
"data": [
{
"customer_id": 157,
"tax_properties": {
"A-123456789": "26",
"B-6731789": "200"
}
}
],
"meta": {}
}
Delete Tax Customers
DELETE https://api.bigcommerce.com/stores/{store_hash}/v3/tax/customersRequest
Delete tax data that is associated with one or more customers.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Content-Type in header with default of application/json - stringrequiredThe MIME type of the request body.
- customer_id:in in query - arrayID of customer. To target multiple customers, provide a comma-separated list of IDs such as
12,34,56
.Type: array[integer]
example
curl --request DELETE \
--url 'https://api.bigcommerce.com/stores/[store_hash]/v3/tax/customers' \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: {{token}}'
Response
No Content
See something you can improve? Edit this file on GitHub
Did you find what you were looking for?