store

Access to Petstore orders

Returns pet inventories by status

Returns a map of status codes to quantities

Securityapi_key
Responses
200

successful operation

get/store/inventory
Response samples
application/json
{
  • "property1": 0,
  • "property2": 0
}

Place an order for a pet

Request
Request Body schema: application/json

order placed for purchasing the pet

id
integer <int64>
petId
integer <int64>
quantity
integer <int32>
shipDate
string <date-time>
status
string

Order Status

Enum: "placed" "approved" "delivered"
complete
boolean
Default: false
Responses
200

successful operation

400

Invalid Order

post/store/order
Request samples
application/json
{
  • "id": 0,
  • "petId": 0,
  • "quantity": 0,
  • "shipDate": "2019-08-24T14:15:22Z",
  • "status": "placed",
  • "complete": false
}
Response samples
{
  • "id": 0,
  • "petId": 0,
  • "quantity": 0,
  • "shipDate": "2019-08-24T14:15:22Z",
  • "status": "placed",
  • "complete": false
}

Find purchase order by ID

For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions

Request
path Parameters
orderId
required
integer <int64> [ 1 .. 10 ]

ID of pet that needs to be fetched

Responses
200

successful operation

400

Invalid ID supplied

404

Order not found

get/store/order/{orderId}
Response samples
No sample

Delete purchase order by ID

For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors

Request
path Parameters
orderId
required
integer <int64> >= 1

ID of the order that needs to be deleted

Responses
200

OK

400

Invalid ID supplied

404

Order not found

delete/store/order/{orderId}