Store
Get store inventory
Retrieve the number of pets grouped by status.
Returns an object that maps status strings to integer quantities.
Return pet inventory counts by status.
GET
/store/inventoryAPI key sent in the `api_key` header.
Response
{200}Successful operation
cURL
curl --request GET \ --url https://petstore3.swagger.io/api/v3/store/inventory \ --header 'api_key: example_api_key'
{
"available": 12,
"pending": 3,
"sold": 7
}The response schema permits arbitrary status keys with 32-bit integer values; the three keys above align with the Pet.status enum but are illustrative. The contract also defines a default Unexpected error response without a fixed status or body schema.