#Qualle

1 messages · Page 1 of 1 (latest)

vivid peakBOT
icy pasture
#

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?

vagrant geyser
#

sure its...

#

invoice # C29AD694-0033

#

weird the requests aren't in logs for /v1/invoices

#

maybe thats because we're passing in customerId

icy pasture
#

The invoice I'm referring to starting with in_ prefix such as in_xxx

vagrant geyser
#

nevermind

#

req_VGwnVgqoHgaSnX

#

had to refresh

#

ok

#

in_1N42asFAWKEWQzfqKJmOhBVr

#

here's another that has been paid...
in_1N412zFAWKEWQzfqhqiG8nyT

icy pasture
#

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

vagrant geyser
#

so use the subscription ID to reference the payment method

#

I'll provide that to my developers, makes sense

#

thank you for the clarification