Get Order By Id

Get Order By Id

For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions.

Request
URI
GET
https://petstore3.swagger.io/store/order/{orderId}
COPY
Path Parameters
integer
orderId
Required

ID of order that needs to be fetched


Authentication
This operation uses the following authentication methods.
Responses
200

successful operation

Returns Order of type(s) application/json
{
    "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


400

Invalid ID supplied

Operation doesn't return any data structure

404

Order not found

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 -H 'Authorization: <value>' https://{api_host}/store/order/{orderId}