Update Custom Discount For Cart Item
PUT/v2/carts/:cartID/items/:cartitemID/custom-discounts/:customdiscountID
Use this endpoint to update a custom discount in your cart item.
Request
Path Parameters
cartID stringrequired
Specifies the ID for the cart.
cartitemID stringrequired
Specifies the ID for the cart item.
customdiscountID stringrequired
Specifies the ID for the custom discount to be updated.
- application/json
Body
data object
amount numberrequired
Specifies an amount to be applied for the custom discount. It must be less than zero.
description stringrequired
Specifies a description for the custom discount.
discount_code stringrequired
Specifies the discount code used for the custom discount.
discount_engine stringrequired
Specifies from where the custom discount is applied. For example, Talon.one.
external_id stringrequired
Specifies an external id for the custom discount.
type stringrequired
Specifies the type of the resource. Always custom_discount
.
Loading...