POST
/store/orderCreate a pet order
Creates a new order for a pet in the store. Provide any order details you want to set, including petId, quantity, and status; status, if supplied, must be placed, approved, or delivered.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Optional order details; all fields can be omitted.
idintegeroptional
The order's identifier.
petIdintegeroptional
The identifier of the pet in the order.
quantityintegeroptional
The number of pets in the order.
shipDatestringoptional
The order's shipping date and time in date-time format.
statusstringoptional
Order Status
completebooleanoptional
Whether the order is complete.
200Returns the created order object, including its identifier, pet identifier, quantity, shipping date, status, and completion value.
idintegeroptional
petIdintegeroptional
quantityintegeroptional
shipDatestringoptional
statusstringoptional
Order Status
completebooleanoptional
400Returned when the order input is invalid.
422Returned when the request fails schema validation.
defaultUnexpected error
Error handling
status must be one of placed, approved, or delivered when provided, and shipDate must use a date-time format. Invalid input returns a 400, and schema validation failures return a 422.