# Sometimes, item\_data.modifier\_list\_info.min\_selected\_modifiers and item\_data.modifier\_list\_info.max\_selected\_modifiers show wrong value in seller dashboard

**URL:** <https://developer.squareup.com/forums/t/sometimes-item-data-modifier-list-info-min-selected-modifiers-and-item-data-modifier-list-info-max-selected-modifiers-show-wrong-value-in-seller-dashboard/10997>\
**Category:** Questions\
**Tags:** catalog-api\
**Created:** [October 11, 2023, 2:49am UTC](https://developer.squareup.com/forums/t/sometimes-item-data-modifier-list-info-min-selected-modifiers-and-item-data-modifier-list-info-max-selected-modifiers-show-wrong-value-in-seller-dashboard/10997 "2023-10-11T02:49:16Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![edenlin](https://avatars.discourse-cdn.com/v4/letter/e/b38774/32.png) [@edenlin](https://developer.squareup.com/forums/u/edenlin)\
**Post date:** [October 11, 2023, 2:49am UTC](https://developer.squareup.com/forums/t/sometimes-item-data-modifier-list-info-min-selected-modifiers-and-item-data-modifier-list-info-max-selected-modifiers-show-wrong-value-in-seller-dashboard/10997/1 "2023-10-11T02:49:16Z")

</div>

in catalog object, item\_data.modifier\_list\_info.min\_selected\_modifiers and item\_data.modifier\_list\_info.max\_selected\_modifiers are not display correctly in seller dashboard.  
for example, sellder dashboard show their values are 1 and 1, but when to fetch data through api, their values are -1 and -1. after change value in seller dashboard, e.g., from 1 to 2. api returns correct value 2.

---

<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:** [October 11, 2023, 5:04pm UTC](https://developer.squareup.com/forums/t/sometimes-item-data-modifier-list-info-min-selected-modifiers-and-item-data-modifier-list-info-max-selected-modifiers-show-wrong-value-in-seller-dashboard/10997/2 "2023-10-11T17:04:19Z")

</div>

The value `-1` is the default value for new modifiers when returned by the API. What value were you expecting to see returned with the API? 🙂

---

<div class="post-metadata">

**Author:** ![edenlin](https://avatars.discourse-cdn.com/v4/letter/e/b38774/32.png) [@edenlin](https://developer.squareup.com/forums/u/edenlin)\
**Post date:** [October 12, 2023, 1:53am UTC](https://developer.squareup.com/forums/t/sometimes-item-data-modifier-list-info-min-selected-modifiers-and-item-data-modifier-list-info-max-selected-modifiers-show-wrong-value-in-seller-dashboard/10997/3 "2023-10-12T01:53:30Z")

</div>

it’s ok to set -1 as default value. but in seller board, it shows 1. it makes confused for operator

---

<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:** [October 12, 2023, 4:22pm UTC](https://developer.squareup.com/forums/t/sometimes-item-data-modifier-list-info-min-selected-modifiers-and-item-data-modifier-list-info-max-selected-modifiers-show-wrong-value-in-seller-dashboard/10997/4 "2023-10-12T16:22:01Z")

</div>

If it’s set to `1` then `1` should be returned in the response. If it’s set to `none` in the seller Dashboard it’ll be `-1`. 🙂

---

<div class="post-metadata">

**Author:** ![edenlin](https://avatars.discourse-cdn.com/v4/letter/e/b38774/32.png) [@edenlin](https://developer.squareup.com/forums/u/edenlin)\
**Post date:** [October 13, 2023, 10:18am UTC](https://developer.squareup.com/forums/t/sometimes-item-data-modifier-list-info-min-selected-modifiers-and-item-data-modifier-list-info-max-selected-modifiers-show-wrong-value-in-seller-dashboard/10997/5 "2023-10-13T10:18:48Z")

</div>

![modifier_seller_dashboard](https://global.discourse-cdn.com/square/original/2X/f/f7f5ceced504570dea4a577bf6d61dbc57d11bdd.png)  
 ![modifier_api](https://global.discourse-cdn.com/square/original/2X/3/37b9f35a34bf6c2453d296f08062203be4d3f63b.png)  
please see two pics above, modifier\_list\_id = 3XAMQECLH4SP5DDFRYMT6MB6, in api, it shows min\_selected\_modifiers -1 and max\_selected\_modifiers -1. but in seller board, it shows 1 and 1. I think it’s a bug. please hande as soon as possible

---

<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:** [October 13, 2023, 6:21pm UTC](https://developer.squareup.com/forums/t/sometimes-item-data-modifier-list-info-min-selected-modifiers-and-item-data-modifier-list-info-max-selected-modifiers-show-wrong-value-in-seller-dashboard/10997/6 "2023-10-13T18:21:45Z")

</div>

When retrieve the `ITEM` the modifier is applied to what’s the value? 🙂

---

<div class="post-metadata">

**Author:** ![edenlin](https://avatars.discourse-cdn.com/v4/letter/e/b38774/32.png) [@edenlin](https://developer.squareup.com/forums/u/edenlin)\
**Post date:** [October 16, 2023, 3:55am UTC](https://developer.squareup.com/forums/t/sometimes-item-data-modifier-list-info-min-selected-modifiers-and-item-data-modifier-list-info-max-selected-modifiers-show-wrong-value-in-seller-dashboard/10997/7 "2023-10-16T03:55:22Z")

</div>

1. the item with modifier created in sellboard manually;
2. we do not apply value to item\_data.modifier\_list\_info.min\_selected\_modifiers and item\_data.modifier\_list\_info.max\_selected\_modifiers, we only retrieve data from square;

addtionally, i find on the site [Brown Sugar Boba & Mochi Black Milk Tea | Ume Tea](https://umeteaca.square.site/?location=11ee617299c92dc8b116ac1f6bbba82c&item=237), the page show correct value. please see below:

 ![online_site_modifier](https://global.discourse-cdn.com/square/original/2X/8/8ae5d05e841079d9c010219a1bafedd6084336da.png)  
item with name = ‘Brown Sugar Boba & Mochi Black Milk Tea’ and id = ‘6FRW5F2VX3ZMG2V2URFCM72M’ has modifier list with name = ‘Cane Sugar(FCM)’ and id = ‘3XAMQECLH4SP5DDFRYMT6MB6’, and the modifier list shows required.  
why does it show required?

from api /v2/catalog/object/6FRW5F2VX3ZMG2V2URFCM72M, item\_data.modifier\_list\_info.min\_selected\_modifiers and item\_data.modifier\_list\_info.max\_selected\_modifiers for the modifier list with id = ‘3XAMQECLH4SP5DDFRYMT6MB6’ are -1 both.

could you explain why it show required on the site? what data supports it?

---

<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:** [October 16, 2023, 4:34pm UTC](https://developer.squareup.com/forums/t/sometimes-item-data-modifier-list-info-min-selected-modifiers-and-item-data-modifier-list-info-max-selected-modifiers-show-wrong-value-in-seller-dashboard/10997/8 "2023-10-16T16:34:09Z")

</div>

If you retrieve the modifier `3XAMQECLH4SP5DDFRYMT6MB6` you’ll see `on_by_default` is set to `true`. If `true` , this `CatalogModifier` should be selected by default for this `CatalogItem` . This is why your seeing `Required`.

The min max is still set to `-1` cause they weren’t set when the modifier was created an it’s at its default `-1` which represents `0` by default. 🙂

---

<div class="post-metadata">

**Author:** ![edenlin](https://avatars.discourse-cdn.com/v4/letter/e/b38774/32.png) [@edenlin](https://developer.squareup.com/forums/u/edenlin)\
**Post date:** [October 17, 2023, 3:40am UTC](https://developer.squareup.com/forums/t/sometimes-item-data-modifier-list-info-min-selected-modifiers-and-item-data-modifier-list-info-max-selected-modifiers-show-wrong-value-in-seller-dashboard/10997/9 "2023-10-17T03:40:11Z")

</div>

1. is `on_by_default` field modifier\_list\_data.modifiers.modifier\_data.on\_by\_default ?
2. when item\_data.modifier\_list\_info.min\_selected\_modifiers and item\_data.modifier\_list\_info.max\_selected\_modifiers are both -1, does it mean that the modifier list is applied to the item and isn’t modified in item yet?

---

<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:** [October 17, 2023, 4:21pm UTC](https://developer.squareup.com/forums/t/sometimes-item-data-modifier-list-info-min-selected-modifiers-and-item-data-modifier-list-info-max-selected-modifiers-show-wrong-value-in-seller-dashboard/10997/10 "2023-10-17T16:21:39Z")

</div>

For 1 yes. For your second question when the modifier is included in the returned object that means that the list applies to the item. The -1 is just the default value for when there isn’t a min max set by the seller. 🙂
