Petstore API

Returns pet inventories by status.

Returns a map of status codes to quantities.

get
/api/v3/store/inventory

Response

application/json

successful operation

object
get/store/inventory
 
Invalid URL value '/api/v3/store/inventory'
- missing protocol
application/json

Place an order for a pet.

Place a new order in the store.

post
/api/v3/store/order

Body

Order

idinteger(int64)

Example:10

petIdinteger(int64)

Example:198772

quantityinteger(int32)

Example:7

shipDatestring(date-time)
statusstring

Order Status

Allowed values:placedapproveddelivered

Example:approved

completeboolean

Response

application/json

successful operation

Order

idinteger(int64)

Example:10

petIdinteger(int64)

Example:198772

quantityinteger(int32)

Example:7

shipDatestring(date-time)
statusstring

Order Status

Allowed values:placedapproveddelivered

Example:approved

completeboolean
post/store/order

Body

{}
 
Invalid URL value '/api/v3/store/order'
- missing protocol
application/json

Find purchase order by ID.

For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions.

get
/api/v3/store/order/{orderId}

Path Parameters

orderIdinteger(int64)required

Response

successful operation

Order

idinteger(int64)

Example:10

petIdinteger(int64)

Example:198772

quantityinteger(int32)

Example:7

shipDatestring(date-time)
statusstring

Order Status

Allowed values:placedapproveddelivered

Example:approved

completeboolean
get/store/order/{orderId}
 
Invalid URL value '/api/v3/store/order/'
- missing protocol

Delete purchase order by identifier.

For valid response try integer IDs with value < 1000. Anything above 1000 or non-integers will generate API errors.

delete
/api/v3/store/order/{orderId}

Path Parameters

orderIdinteger(int64)required

Response

order deleted

delete/store/order/{orderId}
 
Invalid URL value '/api/v3/store/order/'
- missing protocol

user

Operations about user