#skry-customer-discount
1 messages · Page 1 of 1 (latest)
You should be able to I think
https://stripe.com/docs/api/quotes/update#update_quote-discounts
Try passing in an empty array
I saw this page, but I can't understand how to remove the discounts from a quote.
you're setting discounts[0][coupon] to "
try setting just discounts to []
you're still passing discounts[0][coupon] as parameter
Yes
**you only need to pass discounts **
Can you share the request ID?
req_xxx
Where I can find req_xxx ? This is id of quote qt_1NpXhGE0TrdS8dkGhj9cRVI4
I don't see a discount on this quote itself, it is possible that the discount was applied to the customer's account directly
req_cpPIxH3shLkruY
You're looking at the wrong customer
This is the one you should look at
https://dashboard.stripe.com/test/customers/cus_OPDTEPlHsk8oPi
If I apply a discount once to the customer that rimane in customer and apply to the next update of quote?
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
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.
Right, you seem to be applying the discount to the customer object
Thanks for help
NP! 🙂 Happy to help
How can I see if discount is attache to customer
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
try passing discount: '' on update: https://stripe.com/docs/api/quotes/update#update_quote-discounts
I was try it, #1151172532121124995 message
not sure what you mean and why you linked to that thread
Your own code explicitly added/set that coupon in the API. If you load that Quote in the Dashboard you can see all the logs such as https://dashboard.stripe.com/test/logs/req_1zf6dapkiyzhrv
this is just a picture with no info, no code example, etc.
Sorry you keep sharing pictures
I recommend that you use real code with the language your app is built it instead of that UI
Sorry, I solved it as you said by passing ''in code, thank you very much for your help.