question

ojames avatar image
ojames asked zgreathouse Deactivated edited

Updating and adding bulk items and adding to a categories with

I have been working on updating existing inventory items using the bulk items api. It seems to update everything as expected accept the categories. I want to update the items with the categories but it does not seem to update.Does anyone have an answer to what I am missing?

put https://api.clover.com:443/v3/merchants/[mid]/bulk...

{"elements": [{"id":"FAD1M5EGX27PC",
"code":"021200570285",
"price": "1600",
"name": "ScotchGards",
"categories": { "elements": [
{
"id": "YAJT8Y5QHJGJE",
"name": "Beer"
}
]
}

Inventory
10 |2000

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

1 Answer

zgreathouse avatar image
zgreathouse Deactivated answered zgreathouse Deactivated edited
In order to update, delete or create an association between an item and a category you must use this endpoint:
/v3/merchants/{mId}/category_items
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