Zum Inhalt springen
Auf dieser Seite

Place an order for a pet.

Place a new order in the store.

POST/store/orderPlace an order for a pet.
curl -X POST 'https://petstore3.swagger.io/api/v3/store/order' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "id": 10,
  "petId": 198772,
  "quantity": 7,
  "shipDate": "2026-01-01T12:00:00Z",
  "status": "approved",
  "complete": true
}'
Beispielantwort · 200
{
  "id": 10,
  "petId": 198772,
  "quantity": 7,
  "shipDate": "2026-01-01T12:00:00Z",
  "status": "approved",
  "complete": true
}

#Authentifizierung

Keine Authentifizierung nötig.

#Anfrage-Body

application/json application/xml application/x-www-form-urlencoded · Typ: Order

idinteger (int64)
petIdinteger (int64)
quantityinteger (int32)
shipDatestring (date-time)
statusstring

Order Status

Erlaubte Werte: "placed", "approved", "delivered"

completeboolean
{
  "id": 10,
  "petId": 198772,
  "quantity": 7,
  "shipDate": "2026-01-01T12:00:00Z",
  "status": "approved",
  "complete": true
}

#Antworten

successful operation

application/json · Typ: Order

idinteger (int64)
petIdinteger (int64)
quantityinteger (int32)
shipDatestring (date-time)
statusstring

Order Status

Erlaubte Werte: "placed", "approved", "delivered"

completeboolean
Beispiel
{
  "id": 10,
  "petId": 198772,
  "quantity": 7,
  "shipDate": "2026-01-01T12:00:00Z",
  "status": "approved",
  "complete": true
}