# How to fetch 'Available to sell' quantities for catalog items

**URL:** <https://developer.squareup.com/forums/t/how-to-fetch-available-to-sell-quantities-for-catalog-items/9565>\
**Category:** Questions\
**Tags:** inventory-api, catalog-api\
**Created:** [May 24, 2023, 5:32am UTC](https://developer.squareup.com/forums/t/how-to-fetch-available-to-sell-quantities-for-catalog-items/9565 "2023-05-24T05:32:24Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![markii](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@markii](https://developer.squareup.com/forums/u/markii)\
**Post date:** [May 24, 2023, 5:32am UTC](https://developer.squareup.com/forums/t/how-to-fetch-available-to-sell-quantities-for-catalog-items/9565/1 "2023-05-24T05:32:24Z")

</div>

I’m using the inventory-api to fetch the ‘Stock on hand’ quantity for catalog items, but I can’t see how to fetch the ‘Available to sell’ quantities - they show on the Item list in Square, so surely I can get them via the API too?

‘Available to sell’ looks to be the stock on hand, less quantities from items in any unpaid invoices - I tried fetching UNPAID Invoices, and then fetching the related order… but I get a 405 (the fetch works fine for PAID invoices)

---

<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:** [May 24, 2023, 5:37pm UTC](https://developer.squareup.com/forums/t/how-to-fetch-available-to-sell-quantities-for-catalog-items/9565/2 "2023-05-24T17:37:54Z")

</div>

What’s the `item_variation_id` that your seeing this with and what’s your application ID?

Also invoice orders that are created in the Seller Dashboard won’t be available till the invoice is fully paid for. Except if you add ACH as a payment method. If you add ACH as a payment method then the order will become available with the API. 🙂

---

<div class="post-metadata">

**Author:** ![markii](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@markii](https://developer.squareup.com/forums/u/markii)\
**Post date:** [May 25, 2023, 10:15am UTC](https://developer.squareup.com/forums/t/how-to-fetch-available-to-sell-quantities-for-catalog-items/9565/3 "2023-05-25T10:15:07Z")

</div>

ApplicationId is “sq0idp-oZLNNi9\_xqrsNF53v2ifog”

CatalogItemVariation.ItemId is “NC73SHTG52XURPEQKWSITBOB”

For this item Square correctly shows ‘Stock on hand’ as 1, and ‘Available to sell’ as 0, since there is an unpaid invoice for 1 of the item. I’m just not sure which field I should be using to get the “Available to sell” value.

We’re in Australia and I don’t think the ACH payment option is available here… and really I was trying a workaround (hack!) to calculate ‘stock reserved by unpaid invoices’ to determine the ‘available to sell’

---

<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:** [May 25, 2023, 4:57pm UTC](https://developer.squareup.com/forums/t/how-to-fetch-available-to-sell-quantities-for-catalog-items/9565/4 "2023-05-25T16:57:27Z")

</div>

At this time with the Inventory API and the Catalog API the `Available to sell` value isn’t available in the API responses. All items are available to be sold unless [marked as sold out](https://developer.squareup.com/docs/inventory-api/monitor-sold-out-status-on-item-variation). We’re constantly working to improve our features based on feedback like this, so I’ll be sure to share your request to the API product team. 🙂

---

<div class="post-metadata">

**Author:** ![markii](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@markii](https://developer.squareup.com/forums/u/markii)\
**Post date:** [May 26, 2023, 1:07am UTC](https://developer.squareup.com/forums/t/how-to-fetch-available-to-sell-quantities-for-catalog-items/9565/5 "2023-05-26T01:07:17Z")

</div>

Thanks for your help - at least it wasn’t me boy-looking 😃

We have an app that shows what’s available in our shop, so it would be good if there was some way to show what’s “Available to buy” so people aren’t disappointed when they turn up (it’s also handy for staff to quickly check what _should_ be on the shelves).

Please put in a request for “Available to sell” - and maybe a request to allow retrieval of items against UNPAID orders (I don’t understand why they’re not fetchable until paid, cancelled etc)

---

<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:** [May 26, 2023, 4:09pm UTC](https://developer.squareup.com/forums/t/how-to-fetch-available-to-sell-quantities-for-catalog-items/9565/6 "2023-05-26T16:09:29Z")

</div>

I’ve definitely shared this feedback with the team. 🙂

---

<div class="post-metadata">

**Author:** ![LazyAndy1](https://avatars.discourse-cdn.com/v4/letter/l/71c47a/32.png) [@LazyAndy1](https://developer.squareup.com/forums/u/LazyAndy1)\
**Post date:** [August 3, 2023, 1:19am UTC](https://developer.squareup.com/forums/t/how-to-fetch-available-to-sell-quantities-for-catalog-items/9565/7 "2023-08-03T01:19:45Z")

</div>

Thanks Bryan. Any news to share on accessing ‘Available to sell’ via the API?

---

<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:** [August 3, 2023, 8:03am UTC](https://developer.squareup.com/forums/t/how-to-fetch-available-to-sell-quantities-for-catalog-items/9565/8 "2023-08-03T08:03:02Z")

</div>

At this time we don’t have any additional updates on this. 🙂

---

<div class="post-metadata">

**Author:** ![LazyAndy1](https://avatars.discourse-cdn.com/v4/letter/l/71c47a/32.png) [@LazyAndy1](https://developer.squareup.com/forums/u/LazyAndy1)\
**Post date:** [December 18, 2023, 6:32pm UTC](https://developer.squareup.com/forums/t/how-to-fetch-available-to-sell-quantities-for-catalog-items/9565/9 "2023-12-18T18:32:27Z")

</div>

> [@LazyAndy1](#):
>
> Thanks Bryan. Any news to share on accessing ‘Available to sell’ via the API?

Thanks Bryan. Any update?

---

<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:** [December 18, 2023, 7:29pm UTC](https://developer.squareup.com/forums/t/how-to-fetch-available-to-sell-quantities-for-catalog-items/9565/10 "2023-12-18T19:29:31Z")

</div>

No additional updates at this time. 🙂

---

<div class="post-metadata">

**Author:** ![propertyinvestmentsa](https://avatars.discourse-cdn.com/v4/letter/p/41988e/32.png) [@propertyinvestmentsa](https://developer.squareup.com/forums/u/propertyinvestmentsa)\
**Post date:** [October 1, 2024, 4:47pm UTC](https://developer.squareup.com/forums/t/how-to-fetch-available-to-sell-quantities-for-catalog-items/9565/11 "2024-10-01T16:47:32Z")

</div>

This is an important issue that needs to be resolved. Essentially this issue prevents all online sellers who use a platform that interfaces with square from having accurate inventories on the store. This forces all online sellers to run entirely off of square for their website (low functionality) or to migrate away from square.

Personally we have used square for as many years as you have been around. We recently decided to start selling online. Unfortunately your online websites you provide do not have the functionality that we would like. So we created our own that interfaces with square. Then we ran into this nasty bug. All inventory counts are off by a small margin because of all invoiced customers. It only works if they are prepaid.

I believe if most customers voiced the concerns your team would resolve it. However today there are so many options, why wait? You can migrate and have the issue resolved. A competent coder in your department could have this working in a day.
