Place an order for a pet

POST /store/order

Place a new order in the store

Body

  • id integer(int64)
  • petId integer(int64)
  • quantity integer(int32)
  • shipDate string(date-time)
  • status string

    Order Status

    Values are placed, approved, or delivered.

  • complete boolean

Body

  • id integer(int64)
  • petId integer(int64)
  • quantity integer(int32)
  • shipDate string(date-time)
  • status string

    Order Status

    Values are placed, approved, or delivered.

  • complete boolean

Body

  • id integer(int64)
  • petId integer(int64)
  • quantity integer(int32)
  • shipDate string(date-time)
  • status string

    Order Status

    Values are placed, approved, or delivered.

  • complete boolean

Responses

  • 200 application/json

    successful operation

    Hide response attributes Show response attributes object
    • id integer(int64)
    • petId integer(int64)
    • quantity integer(int32)
    • shipDate string(date-time)
    • status string

      Order Status

      Values are placed, approved, or delivered.

    • complete boolean
  • 405

    Invalid input

curl \
 --request POST '/api/v3/store/order' \
 --header "Content-Type: application/json" \
 --data '{"id":10,"petId":198772,"quantity":7,"shipDate":"2025-05-04T09:42:00Z","status":"approved","complete":true}'
curl \
 --request POST '/api/v3/store/order' \
 --header "Content-Type: application/xml"
curl \
 --request POST '/api/v3/store/order' \
 --header "Content-Type: application/x-www-form-urlencoded" \
 --data 'id=10&petId=198772&quantity=7&shipDate=2025-05-04T09%3A42%3A00Z&status=approved&complete=true'
Request examples
{
  "id": 10,
  "petId": 198772,
  "quantity": 7,
  "shipDate": "2025-05-04T09:42:00Z",
  "status": "approved",
  "complete": true
}
Request examples
<?xml version="1.0" encoding="UTF-8"?>
<root>
  <id type="integer">10</id>
  <petId type="integer">198772</petId>
  <quantity type="integer">7</quantity>
  <shipDate>2025-05-04T09:42:00Z</shipDate>
  <status>approved</status>
  <complete type="boolean">true</complete>
</root>
Response examples (200)
{
  "id": 10,
  "petId": 198772,
  "quantity": 7,
  "shipDate": "2025-05-04T09:42:00Z",
  "status": "approved",
  "complete": true
}