Removing eligible offers

Learn how to remove eligible offers from a customer's cart

An eligible offer appears in the cart when the cart meets the requirement. There may be several offers of the same type (for example, always trigger percentage discount) available for the cart. The offer arbitration will only apply the best offer to ensure the best discount for the customer.

For example, a customer's cart contains two offers: free shipping and 20% off for a single line item. These offers are available at the site level, so the discount is available to every shopper. You want to give a shopper a special 10% discount for each line item (line item A and line item B). In this instance, you can delete all offers from the cart and replace them with a 10% discount for each line item.

When you delete all eligible offers from a customer's cart, the request resets the cart's promotions and clears all discounts and offers, including:

  • Always trigger offers (site level)

  • Promotional URLs or external trigger offers (user level)

  • Coupon codes (user level)

  • Bundle offers, all product bundle offers, cross-sell offers, and custom bundle offers

curl --location -g --request DELETE ' https://api.digitalriver.com/v1/shoppers/me/carts/active/eligible-offers' \
--header 'Authorization: Basic {{access_token}}' \
...

You will get a 204 Successful response. See Eligible offers for more information.

Last updated