question

richa avatar image
richa asked richa commented

Update existing inventory items dont update itemstock

when I hit this api - https://sandbox.dev.clover.com/v3/merchants/**/bulk_items?access_token=** with itemstock as one parameter it doesnt update itemstock .Can you please say me why it dont update quantity in itemstock?

Inventory
10 |2000 characters needed characters left characters exceeded

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 answered richa commented

You need to use https://docs.clover.com/reference#inventoryupdateitemstock-1 to update item stock. It cannot be updated on a bulk_items request.

5 comments
10 |2000 characters needed characters left characters exceeded

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

isnt there any api which can allow bulk itemstock update?
0 Likes 0 ·

you may use v3/merchants/{mId}/item_stocks endpoint with :


{

elements: [

{

quantity: yyy

item:

{ id : xxx}

},

]

}

2 Likes 2 ·
Thanks alot Kevin.You resolved my problem.
0 Likes 0 ·

Update:

Please see Kelvin's comment below, you can use:

v3/merchants/{mId}/item_stocks

0 Likes 0 ·
richa avatar image richa David Marginian ♦♦ ·

Thanks for the reply but we are referring below document for updating itemstock - https://docs.clover.com/reference#inventorybulkpatchinventoryitems-1 .

As per the documentation there is option for stock update.I am attaching screenshot for the same.sample-api.png

Still it is not updating itemstock for bulk items.

0 Likes 0 ·
sample-api.png (54.3 KiB)
David Marginian avatar image
David Marginian answered

Yes, unfortunately that is a known issue with our API documentation. You cannot update item stock via that endpoint.

10 |2000 characters needed characters left characters exceeded

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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