English
Endpoint 目录

移除购物车优惠码

DELETE /api/v1/open/storefront/carts/{cartId}/promotion

DELETE /api/v1/open/storefront/carts/{cartId}/promotion

  • operationId: removePublicCartPromotion
  • 稳定性: candidate
  • 认证: Authorization header API Key;所需 scope:checkout:quote
  • 幂等: required

参数

名称位置必需类型
cartIdpathstring

请求体

  • 必需: 是
  • Schema: #/components/schemas/PublicCartTransitionRequest

响应与错误

状态说明Schema
200操作成功#/components/schemas/PublicCartPromotionStateResponse
400请求不符合公开契约#/components/schemas/PublicErrorResponse
401认证失败#/components/schemas/PublicErrorResponse
403授权 scope 不足#/components/schemas/PublicErrorResponse
404公开资源不存在#/components/schemas/PublicErrorResponse
409幂等或状态冲突#/components/schemas/PublicErrorResponse
429请求频率受限#/components/schemas/PublicErrorResponse

限流

spec 声明了 429 响应。 Retry-After header 未在 spec 中声明。

  • 顶层结构: { data: object }

成功响应 Schema

{
  "$ref": "#/components/schemas/PublicCartPromotionStateResponse"
}

错误响应 Schema

{
  "$ref": "#/components/schemas/PublicErrorResponse"
}

本页由已验证 public-only OpenAPI artifact 生成;未提供推测性请求示例。

Copyright © 2026