My Products
Help

Inventory not returning crossReferences if the array is empty

by Steinar Møller

Hi,

We have discovered when listing inventory the crossReference are not expanded when the array is empty.
Have not seen that before and this is a problem when we are searching for barcode under crossReferences and this is not returning anything.

Please let us know if somethings is changed for this endpoint and field. 

  

2 REPLIES 2
Accepted solution
Yıldırım
VISMA

by Yıldırım (Updated ‎18-02-2021 15:47 by Yıldırım VISMA )

Hello, 

to our knowledge there have not been any changes or modifications in design or structure of the endpoint. If there is any value (alternateType) , by default, CrossReference is returned otherwise you can also try to set  parameter "expandCrossReference=true"

https://integration.visma.net/API/controller/api/v1/inventory?expandCrossReference=true 

 

I'd also recommend double-checking that specific inventory in the UI which you expect to see a value with via the GET.

kashyap
PARTNER

by kashyap

How can I add more cross reference fields? Like barcode, stock price, other fields. 

Do we have any API to get all cross references?