# Bug: Catalog API for listing Items is missing a field

**URL:** <https://developer.squareup.com/forums/t/bug-catalog-api-for-listing-items-is-missing-a-field/5125>\
**Category:** Questions\
**Tags:** catalog-api, node-js\
**Created:** [February 11, 2022, 7:46am UTC](https://developer.squareup.com/forums/t/bug-catalog-api-for-listing-items-is-missing-a-field/5125 "2022-02-11T07:46:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![matteo](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@matteo](https://developer.squareup.com/forums/u/matteo)\
**Post date:** [February 11, 2022, 7:46am UTC](https://developer.squareup.com/forums/t/bug-catalog-api-for-listing-items-is-missing-a-field/5125/1 "2022-02-11T07:46:50Z")

</div>

I’m trying to **read** the `soldOut` field that exists in an item variation field’s `locationOverrides` response, but it is not there for the Node SDK. I am calling the ListCatalog endpoint. Only the `locationId` exists in it. When I use the API explore or check the logs it does exist however. Both the Node SDK and the API explore requests were made with the API version: 2021-09-15

The item variation ID is: `DP2NTNYEFGMB3OPLJPW65PI2`, the merchant account ID is: `MLVDP26NCCB3P`, and my application ID is: `sq0idp-n7Co30IXghyF_BPiBvCnBA`

Thanks!

---

<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:** [February 11, 2022, 4:41pm UTC](https://developer.squareup.com/forums/t/bug-catalog-api-for-listing-items-is-missing-a-field/5125/2 "2022-02-11T16:41:08Z")

</div>

👋 Currently `sold_out` is a read only field that will be returned in the catalog object if the seller has set that item as sold out in the Dashboard. It currently isn’t available in the SDK. 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:** ![matteo](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@matteo](https://developer.squareup.com/forums/u/matteo)\
**Post date:** [February 11, 2022, 6:27pm UTC](https://developer.squareup.com/forums/t/bug-catalog-api-for-listing-items-is-missing-a-field/5125/3 "2022-02-11T18:27:41Z")

</div>

Thanks for the reply Bryan!

I’m shocked to hear that this was intentional. I feel like an SDK that is upped to the same version should include the same fields.

What do you suggest I should do if the merchant wants my app to reflect when an item variation is in the `sold_out` state? Thanks!

---

<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:** [February 11, 2022, 7:02pm UTC](https://developer.squareup.com/forums/t/bug-catalog-api-for-listing-items-is-missing-a-field/5125/4 "2022-02-11T19:02:42Z")

</div>

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.

I understand that this isn’t ideal but it is included in the Catalog response you could make a REST call to the catalog to get the status. 🙂

---

<div class="post-metadata">

**Author:** ![matteo](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@matteo](https://developer.squareup.com/forums/u/matteo)\
**Post date:** [February 11, 2022, 7:16pm UTC](https://developer.squareup.com/forums/t/bug-catalog-api-for-listing-items-is-missing-a-field/5125/5 "2022-02-11T19:16:58Z")

</div>

Oh I think you misunderstood. Sorry for the confusion.

I am making calls to the Catalog API (for Items). The field does not exist in the response however. So I can’t read it.

In the API logs of my account it is there. But it is not there when calling it inside of my Node backend.

EDIT: I just updated my question to make more sense. Sorry about that.

---

<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:** [February 11, 2022, 7:46pm UTC](https://developer.squareup.com/forums/t/bug-catalog-api-for-listing-items-is-missing-a-field/5125/6 "2022-02-11T19:46:43Z")

</div>

Right the SDK isn’t showing the field. This is due to it not being included in the SDK. At this time if you want to read it you would need to make a REST API call not using the SDK to get `sold_out` in the response. 😞

---

<div class="post-metadata">

**Author:** ![matteo](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@matteo](https://developer.squareup.com/forums/u/matteo)\
**Post date:** [February 11, 2022, 8:03pm UTC](https://developer.squareup.com/forums/t/bug-catalog-api-for-listing-items-is-missing-a-field/5125/7 "2022-02-11T20:03:36Z")

</div>

Lol thanks Bryan.

Seems like someone just forgot to add it in the schema file: [square-nodejs-sdk/itemVariationLocationOverrides.ts at master · square/square-nodejs-sdk · GitHub](https://github.com/square/square-nodejs-sdk/blob/master/src/models/itemVariationLocationOverrides.ts)

Just need to add:

```auto
soldOut: ['sold_out', optional(boolean())],

```

Hopefully it can be fixed soon thanks. Let me know when it is if you can.

---

<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:** [February 11, 2022, 8:08pm UTC](https://developer.squareup.com/forums/t/bug-catalog-api-for-listing-items-is-missing-a-field/5125/8 "2022-02-11T20:08:14Z")

</div>

Awesome! Thank you! 🙂
