跳到主要内容

按 ID 查找采购订单

根据采购订单编号查找采购订单详情。

GET https://petstore3.swagger.io/api/v3/store/order/{orderId}

示例

cURL
GET "https://petstore3.swagger.io/api/v3/store/order/1" \
-H "accept: application/json" \
-H "api_key: <YOUR_API_KEY>"

响应

状态码描述
200操作成功
400提供的 ID 无效
404未找到订单
default意外错误
响应示例

200: 操作成功

Response
{
"id": 1,
"petId": 0,
"quantity": 0,
"shipDate": "2025-08-11T15:13:06.939Z",
"status": "placed",
"complete": false
}

参数

路径参数
参数名类型描述
orderId整数要查询的采购订单 ID