PetstoreAPI Docs
Modern Petstore APIClassic Petstore APIBlog
Modern Petstore APIClassic Petstore APIBlog
  1. store
  • pet
    • Update an existing pet.
      PUT
    • Add a new pet to the store.
      POST
    • Finds Pets by status.
      GET
    • Finds Pets by tags.
      GET
    • Find pet by ID.
      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 identifier.
      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 resource.
      PUT
    • Delete user resource.
      DELETE
  • Schemas
    • Schemas
      • Order
      • Category
      • User
      • Tag
      • Pet
      • ApiResponse
    • RequestBodies
      • UserArray
Modern Petstore APIClassic Petstore APIBlog
Modern Petstore APIClassic Petstore APIBlog
  1. store

Returns pet inventories by status.

GET
/store/inventory
Returns a map of status codes to quantities.

Request

Authorization
API Key
Add parameter in header
api_key
Example:
api_key: ********************
or

Responses

🟢200
application/json
successful operation
Body

🟢200
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/store/inventory' \
--header 'api_key: <api-key>'
Response Response Example
{
    "property1": 0,
    "property2": 0
}
Modified at 2025-12-17 09:17:20
Previous
Uploads an image.
Next
Place an order for a pet.
Built with