Place an order for a pet

POST /store/order

Place a new order in the store

Body

Body

Body

Responses

  • 200 application/json

    successful operation

    Hide response attributes Show response attributes object
  • Invalid input

curl \
 -X POST /v3/store/order \
 -H "Content-Type: application/json" \
 -d '{"id":10,"petId":198772,"quantity":7,"shipDate":"2024-05-04T09:42:00+00:00","status":"approved","complete":true}'
curl \
 -X POST /v3/store/order \
 -H "Content-Type: application/xml"
curl \
 -X POST /v3/store/order \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'id=10&petId=198772&quantity=7&shipDate=2024-05-04T09%3A42%3A00%2B00%3A00&status=approved&complete=true'
Request example
{
  "id": 10,
  "petId": 198772,
  "quantity": 7,
  "shipDate": "2024-05-04T09:42:00+00:00",
  "status": "approved",
  "complete": true
}
Request example
<?xml version="1.0" encoding="UTF-8"?>
<root>
  <id type="integer">10</id>
  <petId type="integer">198772</petId>
  <quantity type="integer">7</quantity>
  <shipDate>2024-05-04T09:42:00+00:00</shipDate>
  <status>approved</status>
  <complete type="boolean">true</complete>
</root>
Response examples (200)
{
  "id": 10,
  "petId": 198772,
  "quantity": 7,
  "shipDate": "2024-05-04T09:42:00+00:00",
  "status": "approved",
  "complete": true
}