#tasuren - PaymentLink
1 messages · Page 1 of 1 (latest)
Hi there!
I don't think that field will be directly included in the invoice object, but yes it should be possible to find it. Give me a few minutes to try a few things.
Looks like the client_reference_id is only stored on the Checkout Session object. So to get it from the invoice.paid event you need to:
- Get the subscription ID in
invoice.subscription - Get the corresponding Checkout Session with https://stripe.com/docs/api/checkout/sessions/list and passing the subscription ID
- Then on the Checkout Session object get the
client_reference_id
I see. I'll try it.
Thank you!