#kibbas
1 messages · Page 1 of 1 (latest)
You can supply the underlying coupon within the discounts array:
https://stripe.com/docs/api/quotes/create#create_quote-discounts-coupon
I try but it's not working. The API say : Invalid array (https://dashboard.stripe.com/test/logs/req_YryNd83iVzpJq2?t=1673888563)
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Yes, you've not provided an array, just an object
using postman you need to do discounts[0][coupon]=...
Ok it's working! thanks. So how can i remove this coupon? And can i put the ID Promotion Code instead of ID coupon ?
No i believe that only accepts the coupon ID, so if you accept a promo code from the customer you'd need to look that up on your server
You can remove it by sending and empty discounts parameter in an update
NP!