按 ID 删除购买订单
按 ID 删除购买订单。
DELETE https://petstore3.swagger.io/api/v3/store/order/{orderId}
示例
- API Key
- OAuth 2.0
cURL
curl -X DELETE "https://petstore3.swagger.io/api/v3/store/order/1" \
-H "api_key: <YOUR_API_KEY>"
cURL
curl -X DELETE "https://petstore3.swagger.io/api/v3/store/order/1" \
-H "Authorization: Bearer <YOUR_OAUTH_TOKEN>"
响应
| 状态码 | 描述 |
|---|---|
| 200 | 订单已删除 |
| 400 | 提供的 ID 无效 |
| 404 | 未找到订单 |
| default | 意外错误 |
响应正文
删除成功时,服务器返回 200 状态码,且不返回响应正文。
参数
路径参数
| 参数名 | 类型 | 描述 |
|---|---|---|
orderId | 整数 | 要删除的订单的 ID |