Quickstart
Retrieve a Petstore order with a read-only API request.
Retrieve an order from Swagger Petstore without creating or changing data. You need a command-line HTTP client such as cURL and network access to petstore3.swagger.io.
Request order 1, which is within the contract's documented test range.
curl --request GET \
--header 'Accept: application/json' \
'https://petstore3.swagger.io/api/v3/store/order/1'A successful request returns HTTP 200 and an Order JSON object with fields such as id, petId, quantity, shipDate, status, and complete.
{
"id": 1,
"petId": 198772,
"quantity": 7,
"shipDate": "2026-07-22T10:00:00Z",
"status": "approved",
"complete": true
}The service controls the returned values. The object above demonstrates the documented response shape rather than a fixed live response.
If the service returns 400, confirm that the order ID is an integer. If it returns 404, try an ID documented for testing: an integer less than or equal to 5, or greater than 10.
Next, learn how authentication varies by operation or inspect Get an order.