For the complete documentation index, see llms.txt. This page is also available as Markdown.

Inventory

Track and update stock levels for pets in the store.

List inventory

get
/inventory

Returns current stock levels for all pets in the store.

Authorizations
AuthorizationstringRequired

Pass your API key as a Bearer token in the Authorization header.

Responses
200

An array of inventory entries.

application/json
petIdinteger · int64Required

The ID of the animal this entry tracks.

Example: 1
quantityintegerRequired

Current stock count.

Example: 3
statusstring · enumRequiredPossible values:
get
/inventory
Experimental

Update stock level

patch
/inventory/{petId}

Updates the stock quantity for a specific pet. Use this to record new arrivals, returns, or manual adjustments.

Authorizations
AuthorizationstringRequired

Pass your API key as a Bearer token in the Authorization header.

Path parameters
petIdinteger · int64Required

The ID of the pet to update stock for.

Body
quantityintegerRequired

The new stock count.

Example: 5
Responses
200

Updated inventory entry.

application/json
petIdinteger · int64Required

The ID of the animal this entry tracks.

Example: 1
quantityintegerRequired

Current stock count.

Example: 3
statusstring · enumRequiredPossible values:
patch
/inventory/{petId}

Останнє оновлення