Currently, I want to do a mass update of products account codes. However, I am hitting an API limit as we will need to retrieve the item first before doing an update. So the code currently is like this
foreach($products as $product)
loadByGUID to get GUID of product&services
setAccountCode of product&services
save()
I understand there is also a saveAll() function which i could use, which im not too sure how to use. But what if my number of products that i need to loadByGUID exceeds the api limit ?
Example, i am preparing to update 10 k products to an account code. But since there is an API limit i will hit this
XeroPHP\Remote\Exception\RateLimitExceededException: The API rate limit for your organisation/application pairing has been exceeded. in /var/www/xxxxxx/vendor/calcinai/xero-php/src/XeroPHP/Remote/Response.php:111