#wendy-discount-ID
1 messages · Page 1 of 1 (latest)
Hi there!
Where are you getting the discount ID from? Do you also have the Promocode ID?
the discountId is in the invoicePaid webhook request payload. No currendly we don't set promoCode for our coupon but I cannot find any way to query by discountId but promotion_codes, that is why i asked
Ah I see. Thanks. So you would re-retrieve the Invoice after the webhook and expand the line_items.discounts: https://stripe.com/docs/api/invoices/line_item#invoice_line_item_object-discounts