Hey @raj! Thanks for hanging in there. If you use an account with dynamic slotting (which can have many bins for an SKU), the field won’t have an effect. Once created, the stock will recalculate based on the quantity in bins.
Have a nice day!
Hi @tomasfd, I’m sorry I don’t fully understand - AFAIK our account type hasn’t changed and I can confirm this same code used to work till 1-2 weeks back. Has there been a recent change on SH side that broke this?
How can I fix it?
Hey @Raj, I’m unaware of any change that could affect this in the las 2 weeks or so. Can you share a request and response that has worked in the past?
Hi @tomasfd , sorry I don’t have data saved from that time, but the request I gave you is exactly what I used to send and it added qty as expected.
Now that this isn’t working anymore, what’s the way to add qty? Is there a change I can make to above request? Or do I need to make a separate request after this one?
I created an internal ticket for our engineers to investigate.
The fact that the fields exist does not imply they are 100% compatible with your account config. For example, the customer_account_id field does nothing for accounts that are not 3PLs, but they can still see it.
But the code I gave above has been working perfectly for a long time (more than an year, at least), and just stopped in last few weeks with no change from our side.
The ability to update on_hand directly as a Dynamic Slotting account was not intended, as it leads to inventory discrepancies. We won’t be reverting to how that field behaved in the past. Dynamic Slotting accounts should explicitly add inventory using the available mutations. I’m sorry for not communicating this beforehand. We’ll make an announcement briefly.