POST
/store/orderPlace an order for a pet
Creates a new order for a pet in the store. All fields are optional — supply only the order details you want to set. status must be one of placed, approved, or delivered if provided. Returns the created order object with its identifier.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Order object to create. All fields are optional.
idintegeroptional
The unique identifier for the order. Generated by the store if omitted.
petIdintegeroptional
The identifier of the pet being ordered.
quantityintegeroptional
The number of pets to order.
shipDatestringoptional
The date and time when the order should ship, in ISO 8601 format.
statusstringoptional
Order Status
completebooleanoptional
Set to true if the order is complete, false otherwise.
200Returns the created order object with its identifier, pet ID, quantity, ship date, status, and completion flag.
idintegeroptional
petIdintegeroptional
quantityintegeroptional
shipDatestringoptional
statusstringoptional
Order Status
completebooleanoptional
400Returned when the request body is malformed or contains invalid data.
422Returned when the request body fails validation, such as an invalid enum value for status.
defaultUnexpected error
Error handling
A 400 is returned when the request body is malformed or contains invalid data. A 422 is returned when the request body fails validation — ensure any provided status is one of the accepted values.