Pagination
Work through list endpoints with page tokens.
Most list endpoints return a page of results and a token for the next page.
Pagination loop
Walk through pages
Don't rely on item counts.
Taiga enforces billing-provider NPI scope on list responses. Because filtering can happen after an upstream page is read, a page may contain fewer items than the requested limit. Use next_page_token, not item count, to decide whether more data may exist.
Recommended loop
paginate.ts