#Qualle
1 messages · Page 1 of 1 (latest)
Can you share the request and response that you made? And the invoice ID that you expect the default_payment_method not to be null?
sure its...
invoice # C29AD694-0033
weird the requests aren't in logs for /v1/invoices
maybe thats because we're passing in customerId
The invoice I'm referring to starting with in_ prefix such as in_xxx
nevermind
req_VGwnVgqoHgaSnX
had to refresh
ok
in_1N42asFAWKEWQzfqKJmOhBVr
here's another that has been paid...
in_1N412zFAWKEWQzfqhqiG8nyT
Since the invoice was generated from the subscription, it will use the default_payment_method set on the Subscription or the invoice_settings.default_payment_method on the Customer. Those default_payment_method won't be populated into Invoice object.
Based on sub_1N3vHhFAWKEWQzfqZarmbc7M, the default_payment_method is used from invoice_settings.default_payment_method on the Customer. You may use Customer Retrieval API to get the payment method details: https://stripe.com/docs/api/customers/retrieve