question

thusmann5327 avatar image
thusmann5327 asked thusmann5327 answered

Add tag/label to existing item with REST API

I have tried every example I could find int he documentation, no luck. Most recent attempt was

https://api.clover.com/v3/merchants/{MERCHANT ID}/items/{ITEM ID}



{

"id" : "{PRODUCT ID}"

"defaultTaxRates":false,

"price": 10,

"name":"Kehe",

"tags":

[{

"id":"{CATEGORY ID}"

}]

}


Has anyone successfully added tags to an item with the REST API?

REST APIInventory
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated edited

A trick I use in cases like this is to perform the action in the dashboard UI and then examine the request in my browsers debug/network tab. If that doesn't help I'll take a look.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

thusmann5327 avatar image
thusmann5327 answered thusmann5327 edited

Thanks for that tip


/tag_items is the appropriate endpoint


{"elements":[{"item":{"id":"{ITEMID}"},"tag":{"id":"{TAG ID}"}}]}


works like a charm.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community