Update item taxes
POST
/v2/catalog/update-item-taxes
Updates the CatalogTax objects that apply to the targeted CatalogItem without having to perform an upsert on the entire item.
Permissions
ITEMS_WRITE
Try in API Explorer
Name | Description |
---|---|
item_
Required
|
IDs for the CatalogItems associated with the CatalogTax objects being updated. |
taxes_
|
IDs of the CatalogTax objects to enable. |
taxes_
|
IDs of the CatalogTax objects to disable. |
Response Fields
Name | Description |
---|---|
errors
|
Any errors that occurred during the request. |
updated_
|
The database timestamp of this update in RFC 3339 format, e.g., Examples for January 25th, 2020 6:25:34pm Pacific Standard Time: UTC: 2020-01-26T02:25:34Z Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00 |
Examples
POST
/v2/catalog/update-item-taxes
cURL
- cURL
- Ruby
- Python
- C#
- Java
- PHP
- Node.js
curl https://connect.squareup.com/v2/catalog/update-item-taxes \
-X POST \
-H 'Square-Version: 2021-02-26' \
-H 'Authorization: Bearer ACCESS_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"item_ids": [
"H42BRLUJ5KTZTTMPVSLFAACQ",
"2JXOBJIHCWBQ4NZ3RIXQGJA6"
],
"taxes_to_enable": [
"4WRCNHCJZDVLSNDQ35PP6YAD"
],
"taxes_to_disable": [
"AQCEGCEBBQONINDOHRGZISEX"
]
}'
Response JSON
{
"updated_at": "2016-11-16T22:25:24.878Z"
}