Place an order for a pet
POST
https://petstore.swagger.io/v2/store/order
Request
- application/json
Body
required
order placed for purchasing the pet
quantity int32
Possible values: >= 1
Default value: 1
shipDate date-time
Estimated ship date
status string
Possible values: [placed
, approved
, delivered
]
Order Status
requestId string
Unique Request Id
Responses
- 200
- 400
successful operation
- application/json
- application/xml
- Schema
- Example (from schema)
Schema
id object
petId object
quantity int32
Possible values: >= 1
Default value: 1
shipDate date-time
Estimated ship date
status string
Possible values: [placed
, approved
, delivered
]
Order Status
complete boolean
Default value: false
Indicates whenever order was completed or not
{
"id": 0,
"petId": 0,
"quantity": 1,
"shipDate": "2024-04-10T08:56:21.974Z",
"status": "placed",
"complete": false
}
{
"id": 0,
"petId": 0,
"quantity": 1,
"shipDate": "2024-04-10T08:56:21.974Z",
"status": "placed",
"complete": false
}
- Schema
- Example (from schema)
Schema
id object
petId object
quantity int32
Possible values: >= 1
Default value: 1
shipDate date-time
Estimated ship date
status string
Possible values: [placed
, approved
, delivered
]
Order Status
complete boolean
Default value: false
Indicates whenever order was completed or not
<root>
<id>0</id>
<petId>0</petId>
<quantity>1</quantity>
<shipDate>2024-04-10T08:56:21.974Z</shipDate>
<status>placed</status>
<complete>false</complete>
</root>
<root>
<id>0</id>
<petId>0</petId>
<quantity>1</quantity>
<shipDate>2024-04-10T08:56:21.974Z</shipDate>
<status>placed</status>
<complete>false</complete>
</root>
Invalid Order
- application/json
- Schema
- Example (from schema)
- Example
Schema
- any
{
"status": 400,
"message": "Invalid Order"
}
{
"status": 400,
"message": "Invalid Order"
}
{
"status": 400,
"message": "Invalid Order"
}
{
"status": 400,
"message": "Invalid Order"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
RESPONSEClear
Click the "Send" button above and see the response here!