Search Orders
starshipit_search_ordersSearch orders in StarShipIt by a free-text phrase. Searches across order numbers, references, recipient names, tracking numbers, and other indexed fields.
Instructions
Search orders in StarShipIt by a free-text phrase. Searches across order numbers, references, recipient names, tracking numbers, and other indexed fields.
When to use: Use when you need to find a specific order but don't have the exact order_id. Supports partial matches.
Parameters:
phrase(required) — Search string (e.g. order number, customer name, tracking number)limit(optional, default 50, max 250) — Number of results per pagepage(optional, default 1) — Page numberresponse_format—"markdown"(default) or"json"
Returns: List of matching Order objects. Includes has_more flag when more pages exist.
Errors: 400 if phrase is empty; 401 if API keys invalid; 429 if rate-limited.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number for pagination (default: 1) | |
| limit | No | Maximum number of results to return (default: 50, max: 250) | |
| phrase | Yes | Search phrase — matched against order number, reference, recipient name, tracking number, etc. | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for machine-readable | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | Validation or processing errors returned by StarShipIt | |
| object | No | The response payload when StarShipIt returns a non-object value | |
| success | No | StarShipIt success flag (a boolean on most endpoints) |