Closed norberto5 closed 3 months ago
Thanks for the suggestion. Do you have more examples for external_lot_ids? It's a bit difficult to implement this without a proper understanding of the structure
I've imported inventory from .BSX file and all the items have the same structure
"external_lot_ids": { "other": "some_string_here" },
I've also manually added a test item to the store inventory and set the external id from the UI on BrickOwl and it looks like this too. The value of "other" property is a string (it can be bricklink lot id, but you can set there your own string).
The API documentation sucks, and they don't share the example responses with all possible properties :/ So I assume, it can be mapped like the structure above and if someone finds another structure for it, it can be further extended.
can you please test the latest code change with your data?
I didn't run it yet, but I've reviewed your code change and it won't work, because the structure is different. External ids have only one property "other" of string value. It's not a list of References.
unfortunately, it turned out that is even more weird than one can imagine. If external_lot_ids is empty, Brick Owl writes an array:
if it is not empty, an object is written instead:
Hey @stephanstapel, are you going to release the new version as a nuget package, so I can test the changes, or should I clone the repo locally?
done
/inventory/list endpoint returns properties external_lot_ids and ids like this:
They should be added to Inventory class