Update Item Note

in Development
hi there
I am trying to use Item end point to update Note and qot , both in the same call
I am using PUT and this string
<Item>
<Note>
<note>note string here</note>
<isPublic>true</isPublic>
</Note>
<ItemShops>
<ItemShop>
<itemShopID>34406</itemShopID>
<qoh>4</qoh>
</ItemShop>
</ItemShops>
</Item>
<Note>
<note>note string here</note>
<isPublic>true</isPublic>
</Note>
<ItemShops>
<ItemShop>
<itemShopID>34406</itemShopID>
<qoh>4</qoh>
</ItemShop>
</ItemShops>
</Item>
I have observed that I need 2 api calls made as to update it
am I correct in this assumption ?
as a second question , I have seen a difference between interface and api item search
for example
Inventory->Items->Advanced Search having Items w/ Inventory checked list 6766 items
and this api call
https://api.lightspeedapp.com/API/Account/{accountID}/Item?offset=0&load_relations=[""ItemShops""]&ItemShops.qoh=>, 1" returns only <Items count="2395" offset="1000" limit="100">
why this difference ?
regards
Sebastian
8 comments
You can update the qoh and the Notes in one call, you just need to ensure you include only what you need. Make a request only with the Notes object with the relevant data and then next to that another request with the ItemShops object and it will work
Here's an example request:
This could be for a number of reasons, it's probably a difference between the filters set on the UI of the Account and the ones on the API call. Could you private message me your account ID and I will investigate for you
Adrian Samuel
Software Developer
Lightspeed HQ
"Note": {
"note": "STR-FLR-FXTR"
},
"ItemShops": {
"ItemShop": {
"itemShopID": 3215,
"shopID": 1,
"qoh": 10
}
}
}
<Note>
<note>STR-FLR-FXTR yy</note>
<isPublic>true</isPublic>
</Note>
<ItemShops>
<ItemShop>
<itemShopID>3215</itemShopID>
<shopID>1</shopID>
<qoh>20</qoh>
</ItemShop>
</ItemShops>
</Item>
@gregarican are you still experiencing issues?
Adrian Samuel
Software Developer
Lightspeed HQ
Adrian Samuel
Software Developer
Lightspeed HQ