#skry-customer-discount

1 messages · Page 1 of 1 (latest)

alpine condorBOT
ember sluice
zinc karma
#

I saw this page, but I can't understand how to remove the discounts from a quote.

ember sluice
#

you're setting discounts[0][coupon] to "

try setting just discounts to []

zinc karma
ember sluice
#

you're still passing discounts[0][coupon] as parameter

zinc karma
#

Yes

ember sluice
#

**you only need to pass discounts **

zinc karma
ember sluice
#

Can you share the request ID?
req_xxx

zinc karma
#

Where I can find req_xxx ? This is id of quote qt_1NpXhGE0TrdS8dkGhj9cRVI4

ember sluice
#

I don't see a discount on this quote itself, it is possible that the discount was applied to the customer's account directly

zinc karma
#

req_cpPIxH3shLkruY

ember sluice
zinc karma
#

If I apply a discount once to the customer that rimane in customer and apply to the next update of quote?

ember sluice
#

If you apply a promo/coupon that can be used just once then it should only be redeemed once, yes.

Would recommend trying it out though to be 100% certain

zinc karma
#

See my path. I create a quote for customer monthly witout discounts for see the price, after if cliente chose Yearly period I apply dicounts update a quote. Then if cliente wants to switch back I want to remove the discount with update quote.

ember sluice
#

Right, you seem to be applying the discount to the customer object

zinc karma
#

Thanks for help

ember sluice
#

NP! 🙂 Happy to help

zinc karma
#

How can I see if discount is attache to customer

alpine condorBOT
peak meteor
#

skry-customer-discount

zinc karma
#

I am confuse customer cus_OPDTEPlHsk8oPi doesn' t have a discount but when I update a quote discount persist. How can I delete discount from this quote qt_1NpWQcE0TrdS8dkGqAfJkNFy

peak meteor
peak meteor
#

not sure what you mean and why you linked to that thread

peak meteor
#

this is just a picture with no info, no code example, etc.

zinc karma
#

I update via API the quote

#

Passing discount: ''

peak meteor
#

Sorry you keep sharing pictures

#

I recommend that you use real code with the language your app is built it instead of that UI

zinc karma