Get pet inventories
Return pet inventories categorized by status.
GET https://petstore3.swagger.io/api/v3/store/inventory
Examples
- API Key
- OAuth 2.0
cURL
GET "https://petstore3.swagger.io/api/v3/store/inventory" \
-H "accept: application/json" \
-H "api_key: <YOUR_API_KEY>"
cURL
GET "https://petstore3.swagger.io/api/v3/store/inventory" \
-H "accept: application/json" \
-H "Authorization: Bearer <YOUR_OAUTH_TOKEN>"
Responses
| Code | Description |
|---|---|
| 200 | Successful operation |
| default | Unexpected error |
Response example
200: Successful operation
Response
{
"sold": 0,
"available": 0,
"pending": 0
}
Parameters
None