Place an order for a pet
POST/v3/store/order
Place a new order in the store
Request
- application/json
- application/xml
- application/x-www-form-urlencoded
Body
id int64
petId int64
quantity int32
shipDate date-time
status string
Possible values: [placed
, approved
, delivered
]
Order Status
complete boolean
Body
id int64
petId int64
quantity int32
shipDate date-time
status string
Possible values: [placed
, approved
, delivered
]
Order Status
complete boolean
Body
id int64
petId int64
quantity int32
shipDate date-time
status string
Possible values: [placed
, approved
, delivered
]
Order Status
complete boolean
Responses
- 200
- 405
successful operation
- application/json
- Schema
- Example (from schema)
Schema
id int64
petId int64
quantity int32
shipDate date-time
status string
Possible values: [placed
, approved
, delivered
]
Order Status
complete boolean
{
"id": 10,
"petId": 198772,
"quantity": 7,
"shipDate": "2024-05-14T14:39:49.652Z",
"status": "approved",
"complete": true
}
Invalid input
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST '/v3/store/order' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"id": 10,
"petId": 198772,
"quantity": 7,
"shipDate": "2024-05-14T14:39:49.618Z",
"status": "approved",
"complete": true
}'
ResponseClear