question

richa avatar image
richa asked bryanvargas 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

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 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

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

richa avatar image richa commented ·
isnt there any api which can allow bulk itemstock update?
0 Likes 0 ·
kelvin avatar image kelvin richa commented ·

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


{

elements: [

{

quantity: yyy

item:

{ id : xxx}

},

]

}

1 Like 1 ·
richa avatar image richa kelvin commented ·
Thanks alot Kevin.You resolved my problem.
0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ richa commented ·

Update:

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

v3/merchants/{mId}/item_stocks

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

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 Deactivated answered itachi commented

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

1 comment
10 |2000

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

itachi avatar image itachi commented ·

How can I use these APIs effectively and obtain accurate information from Clover's documentation?

0 Likes 0 ·
itachi avatar image
itachi answered bryanvargas commented

How can I use these APIs effectively and obtain accurate information from Clover's documentation?

1 comment
10 |2000

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

bryanvargas avatar image bryanvargas ♦♦ commented ·

Have you taken a look at the updated documentation:


https://docs.clover.com/docs/managing-items-item-groups#update-item-stock

0 Likes 0 ·

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