Skip to main content

Find purchase order by ID

Find a purchase order by its ID.

GET https://petstore3.swagger.io/api/v3/store/order/{orderId}

Examples

cURL
GET "https://petstore3.swagger.io/api/v3/store/order/1" \
-H "accept: application/json" \
-H "api_key: <YOUR_API_KEY>"

Responses

CodeDescription
200Successful operation
400Invalid ID supplied
404Order not found
defaultUnexpected 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
NameTypeDescription
orderIdintegerID of the purchase order to fetch