Improved

GET /api/payouts can page by cursor.

Page numbers work as before. To walk a long payout history, send cursor= (empty) for the first page, then pass the X-Gifq-Pagination-Next-Cursor response header as cursor to get the next one. The header is missing on the last page. Cursor pages stay as fast as the first, and new payouts don't shift rows between pages.

When cursor is present, page is ignored and total-count, total-pages and current-page are left out; page-items is still sent. Send the same filters on every request. An invalid cursor returns 400 with "message": "Invalid cursor".

A limit below 1 now returns 400 with "message": "Pagination error: expected :limit >= 1; got -5", for both page and cursor requests. It returned 500 before.

See List payouts.