按 ID 查找采购订单
根据采购订单编号查找采购订单详情。
GET https://petstore3.swagger.io/api/v3/store/order/{orderId}
示例
- API Key
- OAuth 2.0
cURL
GET "https://petstore3.swagger.io/api/v3/store/order/1" \
-H "accept: application/json" \
-H "api_key: <YOUR_API_KEY>"
cURL
GET "https://petstore3.swagger.io/api/v3/store/order/1" \
-H "accept: application/json" \
-H "Authorization: Bearer <YOUR_OAUTH_TOKEN>"
响应
| 状态码 | 描述 |
|---|---|
| 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 |