# Editing Inventory Stock

**URL:** <https://developer.squareup.com/forums/t/editing-inventory-stock/6973>\
**Category:** Questions\
**Tags:** inventory-api\
**Created:** [September 5, 2022, 1:09am UTC](https://developer.squareup.com/forums/t/editing-inventory-stock/6973 "2022-09-05T01:09:50Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jerry](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@Jerry](https://developer.squareup.com/forums/u/Jerry)\
**Post date:** [September 5, 2022, 1:09am UTC](https://developer.squareup.com/forums/t/editing-inventory-stock/6973/1 "2022-09-05T01:09:50Z")

</div>

Hello, I am working with the Inventory API trying to add stock to an item, however I am having some issues.

When I send a `inventory/changes/batch-create` request, it appears to send correctly. However, when i go and look at the inventory management page the stock shows up as 0, and the stock inside the item shows up as 1. The stock counter does not increase when I send a new request.

I am going from state `NONE` to `IN_STOCK`.  
The `catalog_object_id` is set to the object variation ID  
The `location_id` is set to the sandbox location  
The `quantity` is set to 100 (as a test)  
The `type` is set to `ADJUSTMENT`

This is all being done in the sandbox development environment.

Hope to hear back soon.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [September 6, 2022, 4:16pm UTC](https://developer.squareup.com/forums/t/editing-inventory-stock/6973/2 "2022-09-06T16:16:40Z")

</div>

👋 What’s your application ID that you’re seeing this with? Also would you mind listing the steps to reproduce? 🙂

---

<div class="post-metadata">

**Author:** ![williammosesg](https://avatars.discourse-cdn.com/v4/letter/w/e47774/32.png) [@williammosesg](https://developer.squareup.com/forums/u/williammosesg)\
**Post date:** [September 6, 2022, 8:16pm UTC](https://developer.squareup.com/forums/t/editing-inventory-stock/6973/3 "2022-09-06T20:16:28Z")

</div>

Something similar is happening with items in my sandbox as well. If I go to a specific item and change the stock quantity I will see it on the item list screen. However, if I go to a different page, home page for example, and return, the stock is displayed as 0. If I go to the edit screen of a specific item it says stock is being tracked as well as having the number of items previously set. The problem is, is that it doesn’t reflect on the item list nor my app when getting the items.

---

<div class="post-metadata">

**Author:** ![Jerry](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@Jerry](https://developer.squareup.com/forums/u/Jerry)\
**Post date:** [September 6, 2022, 8:38pm UTC](https://developer.squareup.com/forums/t/editing-inventory-stock/6973/4 "2022-09-06T20:38:12Z")

</div>

This is pretty much exactly the problem I am facing.

---

<div class="post-metadata">

**Author:** ![Jerry](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@Jerry](https://developer.squareup.com/forums/u/Jerry)\
**Post date:** [September 6, 2022, 8:53pm UTC](https://developer.squareup.com/forums/t/editing-inventory-stock/6973/5 "2022-09-06T20:53:39Z")

</div>

Hello!

It looks like the issue has changed slightly since my first post (mind you I have only changed the date time stamp and idempotency key).

When i send a request now it appears to register the inventory change, and properly reflects in the items “edit” tab however it does not display the proper count under the “stock” tab when viewing the item list in the sandbox inventory.

For the ID, is it fine to post here? I assume you are referring to the “Application ID” listed under the credentials tab.

For the new reproducing steps:  
1 - Go to [POST /v2/inventory/changes/batch-create - Square API Explorer](https://developer.squareup.com/explorer/square/inventory-api/batch-change-inventory)  
2 - Fill out the info on the sandbox version  
A. Set the quantity above 1  
B. Set the type to adjustment  
C. Set the `to_state` to `IN-STOCK`  
3 - Send the request  
4 - Go to the sandbox dashboard  
5 - Go to the items tab  
6 - Observe stock show as 0

As a side not to this question, is it possible to add items via the api without it adding the “drop down”? When you create a item through the dashboard normally and don’t add any variations to it it will just show 1 item and no dropdown, but via the api it appears to always show as a dropdown.

Hope to hear back from you soon!

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [September 6, 2022, 8:55pm UTC](https://developer.squareup.com/forums/t/editing-inventory-stock/6973/6 "2022-09-06T20:55:57Z")

</div>

What are your sandbox `merchant_ids`? The team has identified an issue and needs them to resolve it. 🙂

---

<div class="post-metadata">

**Author:** ![Jerry](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@Jerry](https://developer.squareup.com/forums/u/Jerry)\
**Post date:** [September 6, 2022, 9:00pm UTC](https://developer.squareup.com/forums/t/editing-inventory-stock/6973/7 "2022-09-06T21:00:52Z")

</div>

The one which shows up when checking the Request summery in the API logs appears as `MLAJ1RPXMD0TX`

Thanks for the responsiveness! 😊

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [September 7, 2022, 4:05pm UTC](https://developer.squareup.com/forums/t/editing-inventory-stock/6973/8 "2022-09-07T16:05:01Z")

</div>

@Jerry Are you still seeing the issue with the sandbox items in the Dashboard? 🙂

---

<div class="post-metadata">

**Author:** ![Jerry](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@Jerry](https://developer.squareup.com/forums/u/Jerry)\
**Post date:** [September 7, 2022, 8:25pm UTC](https://developer.squareup.com/forums/t/editing-inventory-stock/6973/9 "2022-09-07T20:25:58Z")

</div>

All fixed.

Once again, I appreciate the responsiveness from you in getting this fixed! ❤

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [September 7, 2022, 8:28pm UTC](https://developer.squareup.com/forums/t/editing-inventory-stock/6973/10 "2022-09-07T20:28:50Z")

</div>

Glad to hear it’s working as expected. 🙂

---

<div class="post-metadata">

**Author:** ![Jerry](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@Jerry](https://developer.squareup.com/forums/u/Jerry)\
**Post date:** [September 18, 2022, 2:30am UTC](https://developer.squareup.com/forums/t/editing-inventory-stock/6973/11 "2022-09-18T02:30:03Z")

</div>

Hello!

The count not showing up under “stock” has started happening again (still in sandbox), I will give it a day or two and see if it decides it wants to work again.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [September 19, 2022, 7:32pm UTC](https://developer.squareup.com/forums/t/editing-inventory-stock/6973/12 "2022-09-19T19:32:01Z")

</div>

What item in the catalog isn’t showing the inventory correctly? 🙂

---

<div class="post-metadata">

**Author:** ![Jerry](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@Jerry](https://developer.squareup.com/forums/u/Jerry)\
**Post date:** [September 20, 2022, 9:41am UTC](https://developer.squareup.com/forums/t/editing-inventory-stock/6973/13 "2022-09-20T09:41:04Z")

</div>

It happens with any item I make through the API, if i set its stock the stock does not show up under the “stock” column but if I go into the item it will show up under the stock option saying “X on hand”.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [September 20, 2022, 4:50pm UTC](https://developer.squareup.com/forums/t/editing-inventory-stock/6973/14 "2022-09-20T16:50:33Z")

</div>

Okay, I’m checking with the team. 🙂

---

<div class="post-metadata">

**Author:** ![Jerry](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@Jerry](https://developer.squareup.com/forums/u/Jerry)\
**Post date:** [September 23, 2022, 12:08am UTC](https://developer.squareup.com/forums/t/editing-inventory-stock/6973/15 "2022-09-23T00:08:52Z")

</div>

Ello,

Another update for you, the stock is showing up correctly again!

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [September 23, 2022, 12:41am UTC](https://developer.squareup.com/forums/t/editing-inventory-stock/6973/16 "2022-09-23T00:41:10Z")

</div>

The team is still looking into this. 🙂
