question

richa avatar image
richa asked richa commented

unable to get itemstock for get all inventory items

I am hitting this api - https://sandbox.dev.clover.com/v3/merchants/***/items?filter=modifiedTime>=1625064858048&expand=itemStock&access_token=*** but in response I am not getting expandable itemstock. can you let me know issue?

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

David Marginian avatar image
David Marginian Deactivated answered richa commented

The itemStock expansion works fine, I just tested it on sandbox. Maybe you aren't tracking stock? Maybe the items being returned don't have a quantity set?

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 ·

In morning I had tried and it returned itemstocks but now its not returning

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

I just tried it, and it works fine. Take a closer look at the data (response etc.).

0 Likes 0 ·
richa avatar image richa commented ·

In morning I had hit same api and it returned itemstock. but now its not returning now.

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

Do all of your item's have a stock quantity? If not, then maybe you are getting confused. Otherwise we can't help you with the level of detail you have provided.

0 Likes 0 ·
richa avatar image richa David Marginian ♦♦ commented ·
thanks may be thats why didnt return itemstock
0 Likes 0 ·

Welcome to the
Clover Developer Community