Place an order for a pet
Place an order for a pet.
POST https://petstore3.swagger.io/api/v3/store/order
Examples
- API Key
- OAuth 2.0
cURL
POST "https://petstore3.swagger.io/api/v3/store/order" \
-H "accept: application/json" \
-H "Content-Type: application/json" \
-H "api_key: <YOUR_API_KEY>" \
-d '{
"id": 0,
"petId": 0,
"quantity": 0,
"shipDate": "2025-08-11T15:13:06.939Z",
"status": "placed",
"complete": false
}'
cURL
POST "https://petstore3.swagger.io/api/v3/store/order" \
-H "accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <YOUR_OAUTH_TOKEN>" \
-d '{
"id": 0,
"petId": 0,
"quantity": 0,
"shipDate": "2025-08-11T15:13:06.939Z",
"status": "placed",
"complete": false
}'
Responses
| Code | Description |
|---|---|
| 200 | Successful operation |
| 400 | Invalid Order |
| default | Unexpected error |
Response example
200: Successful operation
Response
{
"id": 0,
"petId": 0,
"quantity": 0,
"shipDate": "2025-08-11T15:13:06.939Z",
"status": "placed",
"complete": false
}
Parameters
Request body
| Name | Type | Description |
|---|---|---|
body | Order object | Required. The Order object for the pet. |