# New errors occurring with Inventory API

**URL:** <https://developer.squareup.com/forums/t/new-errors-occurring-with-inventory-api/5382>\
**Category:** Questions\
**Tags:** inventory-api\
**Created:** [March 11, 2022, 2:58am UTC](https://developer.squareup.com/forums/t/new-errors-occurring-with-inventory-api/5382 "2022-03-11T02:58:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JWill](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/jwill/32/633_2.png) [@JWill](https://developer.squareup.com/forums/u/JWill)\
**Post date:** [March 11, 2022, 2:58am UTC](https://developer.squareup.com/forums/t/new-errors-occurring-with-inventory-api/5382/1 "2022-03-11T02:58:06Z")

</div>

Simple inventory changes using the InventoryPhysicalCount object in the BatchChangeInventory endpoint have stopped working the last couple of days. This sample code has been working for a while but recently I get this error with simple, one item requests:  
400 Response  
“category”: “INVALID\_REQUEST\_ERROR”,  
“code”: “BAD\_REQUEST”,  
“detail”: “ **Too many product identifiers supplied in get request: 2754, limit: 1000** ”

It is with the POST /v2/inventory/changes/batch-create endpoint.  
I updated my API version to 2022-02-16 but that didn’t help.  
Here is an example of a call that fails:  
{  
“idempotency\_key”: “P110028348054”,  
“changes”: [  
{  
“type”: “PHYSICAL\_COUNT”,  
“physical\_count”: {  
“catalog\_object\_id”: “DHPULKCJSOFVYPWF”,  
“state”: “IN\_STOCK”,  
“location\_id”: “LG6AJHS59”,  
“quantity”: “15.5”,  
“employee\_id”: “TMNv8H”,  
“team\_member\_id”: “Jason93893”,  
“occurred\_at”: “2022-03-11T00:28:34Z”  
}  
}  
]  
}

Anyone else having these errors pop up in the last few days? Any help would be appreciated.

---

<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:** [March 11, 2022, 4:49pm UTC](https://developer.squareup.com/forums/t/new-errors-occurring-with-inventory-api/5382/2 "2022-03-11T16:49:54Z")

</div>

👋 What’s the application ID of your application that’s returning this error? I’m not aware of anyone else reporting this at this time. Also what do your [API Logs](https://developer.squareup.com/docs/devtools/api-logs) show for the request? 🙂

---

<div class="post-metadata">

**Author:** ![JWill](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/jwill/32/633_2.png) [@JWill](https://developer.squareup.com/forums/u/JWill)\
**Post date:** [March 11, 2022, 8:03pm UTC](https://developer.squareup.com/forums/t/new-errors-occurring-with-inventory-api/5382/3 "2022-03-11T20:03:30Z")

</div>

@Bryan-Square Thank you!

Application ID: sq0idp-vxppfqjRLoLzPje4Z1\_nPw

Attached images have screenshots of the API Log for a sample.  
I’ve tried toggling “ignore\_unchanged\_counts” attribute with both true and false… both will generate errors. The error message (Too many product identifiers supplied in get request: 2754, limit: 1000) is puzzling since I am only running this API call for one product/item. It started happening on 3/9/22. Before that, this same code was running ok. I don’t recall making any code changes on our end that would affect this.

 ![3](https://global.discourse-cdn.com/square/original/2X/9/902c80571d1cfda125a6440a5731801c43414658.jpeg)  
 ![2](https://global.discourse-cdn.com/square/original/2X/2/275b283973a79413d200bba86703cd29e93cd6b6.jpeg)

**API Log error text:**  
Application ID: sq0idp-vxppfqjRLoLzPje4Z1\_nPw  
Merchant ID:  
API: Inventory  
Endpoint Name: BatchChangeInventory  
Status: 400  
Path: POST /v2/inventory/changes/batch-create  
Error Code: BAD\_REQUEST  
Square Version: 2022-02-16  
User Agent: Mozilla/4.0 (compatible; Win32; WinHttp.WinHttpRequest.5)  
Timestamp: 2022-03-10 23:36:02 GMT-7

**Response:**  
“category”: “INVALID\_REQUEST\_ERROR”,  
“code”: “BAD\_REQUEST”,  
**"detail": "Too many product identifiers supplied in get request: 2754, limit: 1000"**

**API Call:**  
{  
“idempotency\_key”: “PTM202203110535138054”,  
“changes”: [  
{  
“type”: “PHYSICAL\_COUNT”,  
“physical\_count”: {  
“catalog\_object\_id”: “DHPULUBW6PKFLKCJSOFVYPWF”,  
“state”: “IN\_STOCK”,  
“location\_id”: “LG6AJGWXJHS59”,  
“quantity”: “15.5”,  
“employee\_id”: “TMTIv1PJn4wxNv8H”,  
“team\_member\_id”: “Jason9382950293”,  
“occurred\_at”: “2022-03-11T05:35:13Z”  
}  
}  
],  
“ignore\_unchanged\_counts”: true  
}

---

<div class="post-metadata">

**Author:** ![JWill](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/jwill/32/633_2.png) [@JWill](https://developer.squareup.com/forums/u/JWill)\
**Post date:** [March 11, 2022, 9:24pm UTC](https://developer.squareup.com/forums/t/new-errors-occurring-with-inventory-api/5382/4 "2022-03-11T21:24:14Z")

</div>

@Bryan-Square I have noticed that switching “ignore\_unchanged\_counts” from true to false helps with some products. And for some products, using true helps.

---

<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:** [March 11, 2022, 9:25pm UTC](https://developer.squareup.com/forums/t/new-errors-occurring-with-inventory-api/5382/5 "2022-03-11T21:25:40Z")

</div>

Okay, thanks for letting us know. I’ll share this with the team that’s looking into this.
