POST
/store/orderPlace a pet order
Creates an order for a pet in the store. You can provide order details such as petId, quantity, and shipDate; status can be placed, approved, or delivered. The request body is optional, and you can send it as JSON, XML, or URL-encoded form data.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Optional order details. You can send the body as JSON, XML, or URL-encoded form data.
idintegeroptional
The order's identifier.
petIdintegeroptional
The identifier of the pet being ordered.
quantityintegeroptional
The number of pets ordered.
shipDatestringoptional
The shipment date and time in ISO 8601 date-time format.
statusstringoptional
Order Status
completebooleanoptional
Whether the order is complete.
200Returns the created order object, including its order details.
idintegeroptional
petIdintegeroptional
quantityintegeroptional
shipDatestringoptional
statusstringoptional
Order Status
completebooleanoptional
400Returned when the order input is invalid.
422Returned when the order data fails validation.
defaultReturned when an unexpected error occurs.
Error handling
status, if supplied, must be placed, approved, or delivered, and shipDate must use an ISO 8601 date-time format. A 400 is returned for invalid input, and a 422 is returned when validation fails.