Skip to content
orders

Get an order

On this page
GET /orders/{orderId}
Production: https://petstore.example.com/v1Sandbox: https://sandbox.petstore.example.com/v1Live demo on docvia.dev; accepts any token: /api/petstore/v1
curl https://petstore.example.com/v1/orders/ord_8f2k3 \
  --header 'X-Api-Key: <api-key>'
Try it Sent from your browser; this site proxies the spec's own servers. Open in workspace
GET /api/petstore/v1/orders/ord_8f2k3

/api/petstore/v1

Kept in memory for this visit and used on every page of this API; never saved.

Path

Authorization

apiKey API key in the X-Api-Key header

Order endpoints use a separate key with the orders permission.

Path parameters

orderId string required

Responses

The order.

Response application/json
id string required read-only
petId integer<int64> required
status string required
One of placed approved completed
note string
Example
{
  "id": "ord_8f2k3",
  "petId": 0,
  "status": "placed",
  "note": "string"
}