List shipments with pagination
Shipment
List shipments with pagination
GET
List shipments with pagination
Returns a paginated list of return shipments created on your account, optionally filtered by date range, status, warehouse, or service type.
When (and only when) to call
- One-time backfill when first integrating, to populate a local database with existing shipments before subscribing to webhooks.
- Periodic reconciliation to detect dropped or out-of-order webhook deliveries — diff your local cache against this endpoint’s results, then catch up via webhook replay or a support ticket.
Required parameters
createFrom/createTo— both required, ISO 8601 timestamps. The window is capped at 90 days (SearchConfig.simpleRecordsMaxDays); wider ranges are rejected with a soft-error.pageSize— between1and50inclusive.offset— non-negative integer. Combine withpageSizefor offset-based pagination.
Response notes
- The total count is not returned; you discover the end of the list when a page returns fewer than
pageSizerecords. labelRequestStatusCodereflects the latest known state at query time. For state transitions, listen to webhook events — this endpoint cannot give you the history.- Country codes in the payload are ISO3.
Related
- Create return shipment — the write counterpart.
- Get all shipment statuses — translate
shipmentStatusCodecodes into human-readable labels. - Webhooks — the canonical channel for shipment lifecycle events. Always set up webhooks before relying on this endpoint.
Authorizations
Your API key
Your API token — keep this private
Query Parameters
Number of records per page (max 50)
Required range:
1 <= x <= 50Pagination offset
Filter by creation date from (ISO 8601)
Filter by creation date to (ISO 8601)
Response
Success
Return request identifier