#GORR

1 messages · Page 1 of 1 (latest)

dire mountainBOT
sick orbit
#

What event are you listening to right now?

wide ginkgo
#

I need the promo code data and custom field data in the webhook trigger

sick orbit
#

I mean what webhook event (i.e., invoice.paid) are you listening to?

wide ginkgo
#

Invoice payment succeeded

sick orbit
wide ginkgo
#

hey can you explain

#

how can i get coupon code and custom fields in the webhook?

sick orbit
#

Thanks for waiting, have you tried my suggestion to get the discounts and view the coupon and promo codes inside it?

wide ginkgo
#

still not received

sick orbit
#

Can you share with me the code?

dire mountainBOT
wide ginkgo
#

Hey,

pliant canopy
#

Hello

wide ginkgo
#

How could I get promo code and invoice payment succeeded data in same trigger

pliant canopy
#

Which event are you handling?

wide ginkgo
#

Event first i created is payment succeeded

#

But I'm not receiving any data of promo codes in the event

pliant canopy
#

payment_intent.succeeded?

wide ginkgo
#

Invoice.succeeded in webhook

pliant canopy
wide ginkgo
#

Do we get customer data on that webhook??

pliant canopy
#

Depending on what details you need, you may need to expand that too

wide ginkgo
#

but even though i created a new webhook for promotion.code.updated i'm not receiving the customer or incoice details

pliant canopy
#

Why are you listening for promotion_code.updated events? I didn't recommend you do that

dire mountainBOT
wide ginkgo
#

how do i map the promocode to the cutomer invoice then?

pliant canopy
#

By additional API call, I mean to retrieve the Invoice and expand the field. We don't contain expanded fields in webhook payloads

wide ginkgo
#

what will be the event?

north nebula
#

invoice.payment_succeeded

wide ginkgo
#

for promo codes?

north nebula
#

for when an invoice is paid. And then you look at the invoice and can see which if any promo code was used, and then update your records to know that a certain promo code was redeemed

#

there's no specific event to tell you directly what you want, you have to do it this way

wide ginkgo
#

But in invoice i checked and didn't find any!

#

which promo code applied was not seen on the invoice!

north nebula
#

what's the ID in_xxx of the Invoice where that happened?

wide ginkgo
#

the coupon name was visible, but promo code is not tracked .

#

BAB52F09-0001

#

in_1N6mgFAQ4Feo03OkMNLkcKiD

north nebula
#

will have a look in a little while

wide ginkgo
#

is there any zoom call support for stripe?

north nebula
#

no

wide ginkgo
#

i have created a coupon for 10% discount, in that coupon in created 41 promo codes,
Now i need to find which promo code is used by the customer / particular invoice !

#

this is the problem i'm facing now

north nebula
#

I know

#

But in invoice i checked and didn't find any!
how did you check, what code did you use or so on?

wide ginkgo
#

but every time when a customer applies the code do i have to check the code to identify the promo code applied?

north nebula
#

yes

#

check what I said here :

wide ginkgo
#

okay

#

thank you!