#ogun-invoice-refund
1 messages · Page 1 of 1 (latest)
Hey! The Invoice object contains the related pi_xxx ID you need on the payment_intent field: https://stripe.com/docs/api/invoices/object#invoice_object-payment_intent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So you should retrieve that full Invoice object using the in_xxx ID (https://stripe.com/docs/api/invoices/retrieve) and the response will include the Payment Intent ID you need
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.