API to Bulk Export data in batches of 25,000 or 50,000 or 1,00,000

Hi everyone,

As API requests that returns multiple items, such as listing one of the resources, will be paginated subjected to default page size of 25 items per page limited to maximum 100 items per page.

Is there any option/endpoint that can return data in bulk for such tables?

For example, If I have millions of records for invoices, is there any API that can export the data in bulk maybe in batches of 1 million, or 50,000 or 25,000.