Hello,
I can get responses from many API calls but Batch retrieve inventory counts. And I need your help. I can get response from API Explorer without any issue. I am sure it would be simple mistake but I am new to the API and I can’t find the problem.
The error is generated from the below call:
$client->inventory->batchGetCounts(new BatchGetInventoryCountsRequest)
I am with PHP and error is:
Class “Square\Inventory\Requests\BatchGetInventoryCountsRequest” not found
Composer.json shows “square/square”: “^43.2”.
I made sure the API file exists at the below:
(subfolder)/vendor/square/square/src/Inventory/InventoryClient.php
And I can see the below files at ./Requests directory:
ChangesInventoryRequest.php
GetAdjustmentInventoryRequest.php
GetTransferInventoryRequest.php
DeprecatedGetAdjustmentInventoryRequest.php
GetInventoryRequest.php
DeprecatedGetPhysicalCountInventoryRequest.php
GetPhysicalCountInventoryRequest.php
Thank you!