Get Suggested Merges
starshipit_get_suggested_mergesFind orders StarShipIt suggests can be merged, typically same-customer shipments to one address, so you can consolidate packaging and reduce shipping costs before merging.
Instructions
Get a list of orders that StarShipIt suggests can be merged — typically orders from the same customer with the same destination address. Use this before calling starshipit_merge_orders to identify candidates.
When to use: Run this during order processing to find consolidation opportunities that reduce shipping costs and packaging.
Parameters:
limit(optional, default 50, max 250) — Number of result groups per pagepage(optional, default 1) — Page numberresponse_format—"markdown"(default) or"json"
Returns: List of mergeable order groups. Each group identifies a suggested parent order and associated child orders. Includes has_more flag.
Errors: 401 if API keys invalid.
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) | |
| 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) |