orders->page(); while ($page->hasNext()) { foreach ($page as $order) { echo $order->id; } $page = $page->next(); } // using the iterator we can iterate over all orders directly foreach ($mollie->orders->iterator() as $order) { echo $order->id; } } catch (\Mollie\Api\Exceptions\ApiException $e) { echo "API call failed: " . \htmlspecialchars($e->getMessage()); }