Skip to main content

Add Custom Discount To Cart Item

POST 

/v2/carts/:cartID/items/:cartitemID/custom-discounts

Use this endpoint to add a custom discount to cart item.

Request

Path Parameters

    cartID stringrequired

    Specifies the ID for the cart.

    cartitemID stringrequired

    Specifies the unique identifier for the cart item.

Body

    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...