Check the magento products and orders API for checking of the default page size from maximum of 300 to 999,999. Also check the existing code if still working fine after the update. This is now working fine.