Place an order for a pet
POST/store/order
Request
- application/json
Body
required
order placed for purchasing the pet
quantity int32required
Possible values: >= 1
Default value: 1
shipDate date-timerequired
Estimated ship date
status stringrequired
Possible values: [placed
, approved
, delivered
]
Order Status
requestId stringrequired
Unique Request Id
Responses
- 200
- 400
successful operation
- application/json
- application/xml
- Schema
- Example (from schema)
Schema
id objectrequired
petId objectrequired
quantity int32required
Possible values: >= 1
Default value: 1
shipDate date-timerequired
Estimated ship date
status stringrequired
Possible values: [placed
, approved
, delivered
]
Order Status
complete booleanrequired
Default value: false
Indicates whenever order was completed or not
{
"id": 0,
"petId": 0,
"quantity": 1,
"shipDate": "2024-03-18T14:46:17.735Z",
"status": "placed",
"complete": false
}
- Schema
- Example (from schema)
Schema
id objectrequired
petId objectrequired
quantity int32required
Possible values: >= 1
Default value: 1
shipDate date-timerequired
Estimated ship date
status stringrequired
Possible values: [placed
, approved
, delivered
]
Order Status
complete booleanrequired
Default value: false
Indicates whenever order was completed or not
<root>
<id>0</id>
<petId>0</petId>
<quantity>1</quantity>
<shipDate>2024-03-18T14:46:17.735Z</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"
}
Loading...