POST
/store/orderPlace a pet order
Creates a new pet order in the store. You can provide the pet identifier, quantity, shipment date, order status, and completion flag in the request body. Returns the created order object with its order details.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
Optional pet order details. All order fields can be omitted when the store supplies their values.
idintegeroptional
The unique integer identifier for the order.
petIdintegeroptional
The integer identifier of the pet being ordered.
quantityintegeroptional
The number of pets included in the order.
shipDatestringoptional
The scheduled shipment time in ISO 8601 date-time format.
statusstringoptional
Order Status
completebooleanoptional
Whether the order is complete.
200Returns the created order object, including its identifier, pet identifier, quantity, shipment date, status, and completion state.
idintegeroptional
petIdintegeroptional
quantityintegeroptional
shipDatestringoptional
statusstringoptional
Order Status
completebooleanoptional
400Returned when the order input is invalid.
422Returned when the order payload fails validation.
defaultReturned when an unexpected error occurs.
Error handling
A 400 is returned when the order input is invalid. A 422 is returned when the order payload fails validation. shipDate must use ISO 8601 date-time format, and status must be placed, approved, or delivered.