Pet Store
  1. store
Pet Store
  • pet
    • Find pet by ID
      GET
    • Update an existing pet
      PUT
    • Add a new pet to the store
      POST
    • Finds Pets by status
      GET
    • Finds Pets by tags
      GET
    • Updates a pet in the store with form data
      POST
    • Deletes a pet
      DELETE
    • uploads an image
      POST
  • store
    • Returns pet inventories by status
      GET
    • Place an order for a pet
      POST
    • Find purchase order by ID
      GET
    • Delete purchase order by ID
      DELETE
  • user
    • Create user
      POST
    • Creates list of users with given input array
      POST
    • Logs user into the system
      GET
    • Logs out current logged in user session
      GET
    • Get user by user name
      GET
    • Update user
      PUT
    • Delete user
      DELETE
  1. store

Find purchase order by ID

GET
/store/order/{orderId}
store

For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions.

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/store/order/'
Response Response Example
200 - Example 1
{
    "id": 10,
    "petId": 198772,
    "quantity": 7,
    "shipDate": "2019-08-24T14:15:22Z",
    "status": "approved",
    "complete": true
}

Request

Path Params
orderId
integer 
required
ID of order that needs to be fetched

Responses

🟢200successful operation
application/json
Body
id
integer <int64>
optional
Example:
10
petId
integer <int64>
optional
Example:
198772
quantity
integer <int32>
optional
Example:
7
shipDate
string <date-time>
optional
status
enum<string> <string>
optional
Order Status
Allowed values:
placedapproveddelivered
Example:
approved
complete
boolean 
optional
🟠400Invalid ID supplied
🟠404Order not found
Previous
Place an order for a pet
Next
Delete purchase order by ID
Built with