Carts
复制页面
22
🦊一分钟,了解 Apifox !
示例项目
查询宠物详情
GET
新建宠物信息
POST
修改宠物信息
PUT
删除宠物信息
DELETE
根据状态查找宠物列表
GET
Orders
Claim Order
POST
Verify Order Claim
POST
Get by Cart ID
GET
Get an Order
GET
Look Up an Order
GET
Product Tags
List Product Tags
GET
Auth
Check if Email Exists
Customer Log out
Get Current Customer
Customer Login
Customers
Get Saved Payment Methods
Request Password Reset
Delete an Address
Update a Shipping Address
Create a Customer
Add a Shipping Address
Reset Password
Update Customer
Get a Customer
List Orders
Product Collections
List Collections
Get a Collection
Return Reasons
List Return Reasons
Get a Return Reason
Product Categories
List Product Categories
Get a Product Category
Product Types
List Product Types
Products
Search Products
List Products
Get a Product
Product Variants
Get Product Variants
Get a Product Variant
Shipping Options
List for Cart
Get Shipping Options
Regions
Get a Region
List Regions
Carts
Select a Payment Session
POST
Create Payment Sessions
POST
Calculate Cart Taxes
POST
Delete a Payment Session
DELETE
Update a Payment Session
POST
Update a Line Item
POST
Delete a Line Item
DELETE
Add Shipping Method
POST
Remove Discount
DELETE
Complete a Cart
POST
Create a Cart
POST
Get a Cart
GET
Update a Cart
POST
Add a Line Item
POST
Refresh a Payment Session
POST
Gift Cards
Get Gift Card by Code
Swaps
Create a Swap
Get by Cart ID
Order Edits
Decline an Order Edit
Retrieve an Order Edit
Complete an Order Edit
Payment Collections
Authorize Payment Sessions
Refresh a Payment Session
Create a Payment Session
Get a PaymentCollection
Authorize Payment Session
Manage Payment Sessions
Returns
Create Return
11111
POST
数据模型
示例数据模型
Pet
Category
Tag
Schemas
StorePostOrderEditsOrderEditDecline
StorePostCartsCartLineItemsReq
StorePostCustomersCustomerOrderClaimReq
StorePostCartsCartPaymentSessionReq
StorePostCartsCartLineItemsItemReq
StorePaymentCollectionSessionsReq
StoreCustomersListPaymentMethodsRes
Response Error
StorePostPaymentCollectionsBatchSessionsAuthorizeReq
StorePostCartReq
StorePostSwapsReq
StorePostSearchReq
StoreGetAuthEmailRes
Multiple Errors
StorePostCustomersCustomerAcceptClaimReq
StorePostCustomersResetPasswordReq
StorePostCartsCartShippingMethodReq
StorePostReturnsReq
Product Collection
StoreCollectionsListRes
AddressPayload
StorePostCustomersCustomerAddressesAddressReq
Product Category
StoreGetProductCategoriesCategoryRes
StorePostAuthReq
StorePostCustomersReq
Return Reason
StoreReturnReasonsListRes
Gift Card Transaction
Currency
StorePostSearchRes
Product Tag
StoreProductTagsListRes
StorePostCustomersCustomerPasswordTokenReq
Shipping Method Tax Line
Country
Address
Tax Provider
Payment Provider
Fulfillment Provider
Customer Group
StorePostCartsCartPaymentSessionUpdateReq
Discount Rule
StorePostCartsCartReq
Line Item Tax Line
Customer
StoreAuthRes
Sales Channel Stock Location
Sales Channel
StoreCustomersRes
StoreCollectionsRes
Shipping Option Requirement
StoreGetProductCategoriesRes
Shipping Profile
Shipping Option
Shipping Method
StorePostPaymentCollectionsBatchSessionsReq
Product Type
StoreProductTypesListRes
Payment
StoreReturnReasonsRes
AddressCreatePayload
StorePostCustomersCustomerAddressesReq
Product Variant Inventory Item
Product Option Value
Image
Money Amount
Product Variant
StorePostCustomersCustomerReq
Product Option
Product
Tax Rate
Region
Discount
Priced Product Variant
StoreVariantsListRes
StoreCustomersResetPasswordRes
StoreVariantsRes
Priced Shipping Option
StoreCartShippingOptionsListRes
Gift Card
Priced Product
StoreProductsListRes
StoreShippingOptionsListRes
StoreProductsRes
Line Item Adjustment
Line Item
StoreRegionsRes
Cart
StoreCartsRes
StoreGiftCardsRes
StoreRegionsListRes
Swap
StoreSwapsRes
Order
StoreOrdersRes
Order Item Change
StoreCompleteCartRes
Payment Session
Payment Collection
Order Edit
StoreOrderEditsRes
StoreCustomersListOrdersRes
StorePaymentCollectionsRes
Return Item
Return
StoreReturnsRes
StorePaymentCollectionsSessionRes
Carts
复制页面
Remove Discount
DELETE
/store/carts/{id}/discounts/{code}
调试
Run in Apifox
Run in Apifox
Remove a Discount from a Cart. This only removes the application of the discount, and not completely delete it. The totals will be re-calculated and the payment sessions will be refreshed after the removal.
请求参数
Path 参数
生成代码
请求示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例
请求示例
Shell
JavaScript
Java
Swift
cURL
cURL
cURL-Windows
Httpie
wget
PowerShell
curl
-X
DELETE
'{backend_url}/store/carts/{id}/discounts/{code}'
返回响应
🟢
200
成功
application/json
OK
Body
application/json
生成代码
示例
🟠
400
请求有误
🟠
404
记录不存在
🟠
409
409
🟠
422
参数错误
🔴
500
服务器错误
修改于
2025-07-10 01:25:19
上一页
Add Shipping Method
下一页
Complete a Cart