My Products
Help

Wrong respons on inventory endpoint with parameter addCostPriceStatistics

by Steinar Møller

We have discovered missing response on random products for retrieving lastCostPrice from CostPriceStatistics parameter.

In Visma.net UI the last cost price under cost statistics have value on all products that we have run test against. But on some of the products nothings is returned under coststatistics.

Is this a known issue, or why is this happening?

 

Example:

 https://integration.visma.net/API/controller/api/v1/inventory?inventoryNumber=WSS59.1.190.XL&addCostPriceStatistics=true

Some products give
"costPriceStatistics": {
"lastCost": 1099.967100,
"averageCost": 1099.966400000,
"minCost": 0.000000,
"maxCost": 1099.970000

Other just return

"costPriceStatistics": {},

 

Both products have LastCost under Cost statistics in UI. 

 

6 REPLIES 6

by Yıldırım

Hello, this case has been planned to be fixed in [Release Notes] - Visma.Net API 9.18.0 - 11.10.2022

by Magnus Johnsen

This is a known bug as far as we can see, the fix is waiting to be merged.

Was it on non-stock or stock items you got these? 

kashyap
PARTNER

by kashyap

Getting same issue on many clients. How can we resolve it?

by Yıldırım

Hello Steinar, 

 

Are the type of products where costPriceStatistics is not populated, non-stock items ? 

Hello Yildirim, No, all products are stock items. 

Thanks for the information, Steinar. We've been informed that the team is currently working on a fix, we'll keep you informed on the release details.