Place Order

Place Order

Place a new order in the store.

Request
URI
POST
https://petstore3.swagger.io/store/order
COPY
Request Body
Order of type(s) application/json
Optional
{
    "id": 10,
    "petId": 198772,
    "quantity": 7,
    "shipDate": "string",
    "status": "approved",
    "complete": false
}
integer As int64 As int64
id
Optional

id

integer As int64 As int64
petId
Optional

petId

integer As int32 As int32
quantity
Optional

quantity

string As date-time As date-time
shipDate
Optional

shipDate

string
status
Optional

Order Status

Possible values are : placed, approved, delivered,
boolean
complete
Optional

complete

Authentication
This operation uses the following authentication methods.
Responses
200

successful operation

Returns Order of type(s) application/json
"Order Object"
integer As int64 As int64
id
Optional

id

integer As int64 As int64
petId
Optional

petId

integer As int32 As int32
quantity
Optional

quantity

string As date-time As date-time
shipDate
Optional

shipDate

string
status
Optional

Order Status

Possible values are : placed, approved, delivered,
boolean
complete
Optional

complete


400

Invalid input

Operation doesn't return any data structure

422

Validation exception

Operation doesn't return any data structure

default

Unexpected error

Returns Error of type(s) application/json
"Error Object"
string
code
Required

code

string
message
Required

message


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/store/order