Zend certified PHP/Magento developer

Magento 2 : Squareup Integration Error: VERSION_MISMATCH

I am working on squareup catalog batch-upsert API and I am geeting this error as api response:

“SquareConnectApiException: [HTTP/2 400]
{“errors”:[{“category”:”INVALID_REQUEST_ERROR”,”code”:”VERSION_MISMATCH”,”detail”:”Object
version does not match latest database version.”,”field”:”version”}]}
in
/home/devcloud/webapps/dev-aidinco/vendor/square/connect/lib/ApiClient.php:261″

I have referred this document for square-up API: https://developer.squareup.com/reference/square/catalog-api

I need to synchronize only specific Magento stores products to square up.

please help anyone have a solution regarding it.