question

Bryanne Vega avatar image
Bryanne Vega asked Bryanne Vega commented

ItemStockCount vs Quantity

I see now that we have Quantity available, is there any particular reason for the change? I see the deprecated notes, but I would like to know examples of why the change.

Trying to update stock from rest api fails unless I update quantity, itemstock will be updated accordingly then.

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

Jacob Abrams avatar image
Jacob Abrams answered Bryanne Vega commented

I think this is explained on the https://docs.clover.com/build/web-api/ page. It says "Stock count is a deprecated field that will always display quantity rounded to the nearest whole number. As a result, its use is discouraged." Since the stock count held only whole numbers it wasn't as useful since some items can have fractional values such as coffee or sand.

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.

Bryanne Vega avatar image Bryanne Vega commented ·

Excellent response! Thank you.

0 Likes 0 ·

Welcome to the
Clover Developer Community