#MYoussef-subscription-coupon

1 messages ยท Page 1 of 1 (latest)

polar wharf
exotic kite
#

this is not what i mean, i already did that

#

i made a webhook to listen to invoice.paid (of subscription renewal) and it is working fine

#

i want to get the coupon id that applied to specific subscription while listen to invoice.paid

#

but when i trigger my webhook i found that the subscription object is null although the subscriptionId parameter is not null

#

so,how to get the coupon id and how to get the subscription object in invoice.paid?

#

should i create another request to get the subscription object by id or is there any other way to load it with invoice object?

polar wharf
#

Yeah, you'll need to retrieve the subscription by using the subscription ID that is provided within the invoice object.