diff --git a/src/Processor/UploadProductVariantRequestProcessor.php b/src/Processor/UploadProductVariantRequestProcessor.php index 9267fe7..2aa1c84 100644 --- a/src/Processor/UploadProductVariantRequestProcessor.php +++ b/src/Processor/UploadProductVariantRequestProcessor.php @@ -47,8 +47,9 @@ public function process(): void ++$i; - // According to https://api.peakwms.com/api/documentation/index.html the rate limit is 240 requests per minute - if ($i % 240 === 0) { + // According to https://api.peakwms.com/api/documentation/index.html the rate limit is 240 requests per minute, + // so we play it safe and dispatch 120 (half) requests per minute + if ($i % 120 === 0) { $delay += 60_000; }