Skip to main content
The RetrievePackages endpoint lets you query, filter, and paginate packages stored in your Shiipp warehouse. You can narrow results by tracking number, customer details, courier, carrier, and entry date range — or export the full result set to a CSV or XLSX file for offline reporting.

Endpoint

Authentication: JWT Bearer token required. Include the token in the Authorization header.

Request Body

All filters are passed as JSON in the request body.
integer
default:"1"
Page number for paginated results. Starts at 1.
integer
default:"25"
Number of records to return per page. Maximum value is 10000. When export is true, this limit applies to the exported file as well.
string
Filter by tracking number using a partial match. For example, "1Z9999" matches any tracking number containing that string.
string
Filter by house number using an exact match.
string
Filter by customer user code using an exact match.
string
Filter by shipper name using a partial match (e.g., "Amazon" matches "Amazon Fulfillment").
string
Filter by customer first name using a partial match.
string
Filter by customer last name using a partial match.
string
Filter results to packages belonging to a specific courier, identified by their courier ID.
string
Filter results to packages shipped via a specific carrier, identified by their carrier ID.
string
Return only packages with an entry date on or after this date. Format: YYYY-MM-DD.
string
Return only packages with an entry date on or before this date. Format: YYYY-MM-DD.
boolean
Set to true to receive a file download instead of a JSON response. When enabled, the response will be a binary file attachment.
string
The format of the exported file. Accepted values: csv (default) or xlsx. Only relevant when export is true.

Example Request


Response

Success Response

Response Fields

string
Indicates the outcome of the request. Will be "success" on a valid response.
string
A human-readable summary, including the total number of records matched.
array
Array of package objects matching the supplied filters.
object
Pagination and aggregate metadata.

File Export

Set export: true in the request body to download the filtered results as a file instead of receiving JSON. The response will include the appropriate Content-Disposition header and a binary file payload.
The exported file includes the following columns:
Use export_format: "xlsx" when sharing reports with non-technical stakeholders — Excel files preserve column types and are easier to filter in spreadsheet applications.

Dispatch Queue Action

Sending "action": "queue_dispatch" in the request body queues the matched packages for synchronisation with your external system. You may specify packages explicitly via a package_ids array, or let the endpoint derive the set from your active filters.
Once queued, packages are picked up and synced automatically. No further action is required on your part after a successful queue_dispatch response.

Role-Based Access

Courier role users can only retrieve packages that belong to their own courier account. Attempts to filter by a courierID outside their account are ignored and scoped back automatically.
Tracking numbers for packages with unknown or unassigned customers are partially masked when returned to courier role users. Full tracking numbers are always visible to admin and manager roles.