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