# Place an order for a pet

`POST /store/order`

Operation ID: `placeOrder`

Tags: `store`

OpenAPI specification: https://redocly.com/_spec/docs/openapi/petstore.json

## Servers

- `https://petstore.swagger.io/v2`: Default server
- `https://petstore.swagger.io/sandbox`: Sandbox server

## Request body (required)

order placed for purchasing the pet

### Content type: `application/json`

Schema: `Order`

- `id` (integer<int64>, read-only)
  Order ID
- `petId` (integer<int64>, read-only)
  Pet ID
- `quantity` (integer<int32>, >= 1, default: `1`)
- `shipDate` (string<date-time>)
  Estimated ship date
- `status` (string, possible values: `placed`, `approved`, `delivered`)
  Order Status
- `complete` (boolean, read-only, default: `false`)
  Indicates whenever order was completed or not
- `requestId` (string, write-only)
  Unique Request Id

## Responses

### 200

successful operation

#### Content type: `application/json`

Schema: `Order`

- `id` (integer<int64>, read-only)
  Order ID
- `petId` (integer<int64>, read-only)
  Pet ID
- `quantity` (integer<int32>, >= 1, default: `1`)
- `shipDate` (string<date-time>)
  Estimated ship date
- `status` (string, possible values: `placed`, `approved`, `delivered`)
  Order Status
- `complete` (boolean, read-only, default: `false`)
  Indicates whenever order was completed or not
- `requestId` (string, write-only)
  Unique Request Id

#### Content type: `application/xml`

Schema: `Order`

- `id` (integer<int64>, read-only)
  Order ID
- `petId` (integer<int64>, read-only)
  Pet ID
- `quantity` (integer<int32>, >= 1, default: `1`)
- `shipDate` (string<date-time>)
  Estimated ship date
- `status` (string, possible values: `placed`, `approved`, `delivered`)
  Order Status
- `complete` (boolean, read-only, default: `false`)
  Indicates whenever order was completed or not
- `requestId` (string, write-only)
  Unique Request Id

### 400

Invalid Order

#### Content type: `application/json`

Example:

```json
{
  "status": 400,
  "message": "Invalid Order"
}
```
