Search Return Orders

View as Markdown

Searches return orders by one or more comma-separated identifiers: return IDs (numeric), tracking numbers, or SKUs. Auto-detects the identifier type and returns exact matches only. When no SearchTerm is provided, returns all returns for the user (paginated). Supports additional filters (Status, ReturnTypes, etc.) applied on top of the search results.

Authentication

AuthorizationBearer

Authentication using Personal Access Token (PAT) token

OR
AuthorizationBearer
OAuth2 authentication using JWT tokens

Headers

shipbob_channel_idintegerOptional

Retrieve your channel ID from the GET /channel endpoint.

Query parameters

SearchTermstringOptional

Comma-separated identifiers to search for. Can be return IDs, tracking numbers, or SKUs. When omitted, returns all returns for the user.

IdsstringOptional

Comma-separated list of return IDs to filter by (e.g., 511411,506640).

StatusstringOptional

Comma-separated list of return statuses to filter by (e.g., 1,2,3).

ReturnTypesstringOptional

Comma-separated list of return types to filter by (e.g., 1,2).

ReturnActionsstringOptional

Comma-separated list of return actions to filter by.

FulfillmentCenterIdsstringOptional

Comma-separated list of fulfillment center IDs to filter by.

TrackingNumbersstringOptional

Comma-separated list of tracking numbers to filter by.

ReferenceIdsstringOptional

Comma-separated list of return reference IDs (RMA numbers) to filter by.

OriginalShipmentIdsstringOptional

Comma-separated list of original shipment IDs to filter by.

InventoryIdsstringOptional

Comma-separated list of inventory IDs to filter by.

StoreOrderIdsstringOptional

Comma-separated list of store order IDs to filter by.

SortbystringOptional

Field to sort results by (e.g., Id, Status, InsertDate).

StartDatedatetimeOptional

Filter returns created on or after this date (ISO 8601 format).

EndDatedatetimeOptional

Filter returns created on or before this date (ISO 8601 format).

CompletedStartDatedatetimeOptional

Filter returns completed on or after this date (ISO 8601 format).

CompletedEndDatedatetimeOptional

Filter returns completed on or before this date (ISO 8601 format).

CursorintegerOptional1-2147483647
Page number to retrieve. Used for pagination through result sets.
LimitintegerOptional
Maximum number of records to return per page.
SortOrderstringOptional

Sort order for results. Desc = newest to oldest, Asc = oldest to newest, Desc is default

api-versionstringOptional
The requested API version

Response headers

Page-Numberstring
Current page number
Total-Pagesstring
Total pages
Total-Countstring
Total records
Page-Sizestring
Page size

Response

OK
firststring or nullformat: "uri"
Return url for first cursor
itemslist of objects or null
Return records
laststring or nullformat: "uri"
Return url for last cursor
nextstring or nullformat: "uri"
Return url for next cursor
prevstring or nullformat: "uri"
Return url for prev cursor

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error