Get Order
starshipit_get_orderRetrieve a single StarShipIt order by internal ID or merchant order number to access full order details such as destination, items, packages, carrier assignment, and metadata.
Instructions
Retrieve a single order from StarShipIt by its internal ID or merchant order number. At least one of order_id or order_number must be supplied.
When to use: Use when you need the full detail of a specific order — destination, items, packages, carrier assignment, and metadata.
Parameters:
order_id(optional) — StarShipIt internal numeric order IDorder_number(optional) — Merchant-assigned order number / reference (e.g."#1001")
At least one of order_id or order_number must be provided.
Returns: Full Order object.
Example response (JSON):
{
"order": {
"order_id": 12345,
"order_number": "#1001",
"carrier": "AUSPOST",
"destination": { "name": "Jane Smith", "street": "1 Test St", "post_code": "3000", "country": "Australia" }
}
}Errors: 400 if neither identifier provided; 404 if order not found; 401 if API keys invalid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | No | StarShipIt internal numeric order ID | |
| order_number | No | Merchant-assigned order number (e.g. "#1001") | |
| 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) |