Find purchase order by ID
GET/store/order/:orderId
For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions.
Request
Path Parameters
orderId int64required
ID of order that needs to be fetched
Responses
- 200
- 400
- 404
successful operation
- application/xml
- application/json
- Schema
- Example (from schema)
Schema
id int64
petId int64
quantity int32
shipDate date-time
status string
Possible values: [placed
, approved
, delivered
]
Order Status
complete boolean
<root>
<id>10</id>
<petId>198772</petId>
<quantity>7</quantity>
<shipDate>2024-05-14T14:39:49.653Z</shipDate>
<status>approved</status>
<complete>true</complete>
</root>
- Schema
- Example (from schema)
Schema
id int64
petId int64
quantity int32
shipDate date-time
status string
Possible values: [placed
, approved
, delivered
]
Order Status
complete boolean
{
"id": 10,
"petId": 198772,
"quantity": 7,
"shipDate": "2024-05-14T14:39:49.654Z",
"status": "approved",
"complete": true
}
Invalid ID supplied
Order not found
Loading...