limit and move through pages with cursor.
How it works
- Send the first request without a
cursor. - Read
data.context.hasMorein the response. - If it’s
true, send the same request again withcursorset todata.context.nextCursor. - Stop when
hasMoreisfalse.
Page size
Most list endpoints accept alimit of 1 to 100. The default varies by endpoint, so check the endpoint page. Keep every other filter identical across pages, otherwise the cursor won’t line up.
Example
Endpoints that use it
Vendor List, Invoice List, Purchase Order List, Expense List, Reimbursement List, Payment Request List and User List. Some small lists return everything in one response, such as the TDS and GST tax lists.The
context fields differ slightly between endpoints. For example, count means the total matches on some and the size of the current page on others, and nextCursor is a number on User List. Check the response table on the endpoint page when you rely on those details.