#Mi7-checkout-invoice
1 messages · Page 1 of 1 (latest)
Mi7-checkout-invoice
After the payment, the Session will have a Subscription id sub_123 in the subscription property. and that Subscription has a latest_invoice property that would be the most recent Invoice id in_123
you can use the Expand feature https://stripe.com/docs/expand to get access to it all. So you retrieve the Session via https://stripe.com/docs/api/checkout/sessions/retrieve and then you also expand subscription.latest_invoice for example to see the full Invoice object