Pagination
Most top-level API resources have support for bulk fetches via "list" API methods. For instance, you can list users, customers, orders, products, shipments, loads, carriers, locations, and many others. These list API methods usually take up to three parameters: page, page-size, and order.
Shipwell utilizes cursor-based pagination via the starting_after
and ending_before
parameters. Both parameters take an existing object ID value and return objects in reverse chronological order. The ending_before
parameter returns objects listed before the named object. The starting_after
parameter returns objects listed after the named object. If both parameters are provided, only ending_before
is used.