New errors occurring with Inventory API

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.

:wave: 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 show for the request? :slightly_smiling_face:

@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.


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
}

@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.

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