Find purchase order by ID
Find a purchase order by its ID.
GET https://petstore3.swagger.io/api/v3/store/order/{orderId}
Examples
- API Key
- OAuth 2.0
cURL
GET "https://petstore3.swagger.io/api/v3/store/order/1" \
-H "accept: application/json" \
-H "api_key: <YOUR_API_KEY>"
cURL
GET "https://petstore3.swagger.io/api/v3/store/order/1" \
-H "accept: application/json" \
-H "Authorization: Bearer <YOUR_OAUTH_TOKEN>"
Responses
| Code | Description |
|---|---|
| 200 | Successful operation |
| 400 | Invalid ID supplied |
| 404 | Order not found |
| default | Unexpected error |
Response example
200: Successful operation
Response
{
"id": 1,
"petId": 0,
"quantity": 0,
"shipDate": "2025-08-11T15:13:06.939Z",
"status": "placed",
"complete": false
}
Parameters
Path parameters
| Name | Type | Description |
|---|---|---|
orderId | integer | ID of the purchase order to fetch |