#wiseguy98
1 messages · Page 1 of 1 (latest)
Should be a created field: https://stripe.com/docs/api/payment_methods/object#payment_method_object-created
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
when retreiving the list without any filters/params, what is the default sort order?
Chronological, most recently created first
that sounds great, thanks!
If I have any follow up questions, do you prefer I ask in this thread or start a new one?
Depends, when generally close them after ~30 minutes
Cool, thanks!
Is it possible to have the created info for a paymentsource when retrieving a Customer Object?
Which API/object are you referencing when you say 'paymentsource'?
So I am when I retrieve a Customer Object using the customer ID, I also get the registered payment sources (field: sources). It consists of an array which holds the customers registered payment sources. the sources array element dont seem to have a "created" field
Customer Object Im referring to: https://stripe.com/docs/api/customers
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ah, yeah I assumed you were using Payment Methods. Sources are deprecated you see
Yeah, no created field there. Guess you could track that yourself and add to metadata on creation
ah I see. So you suggest I retireve using Payment Method?
Well you can't if your integration is not creating Payment Methods
But the "sources" in Customer Object always returns a chronological array? (most recently created first)
Yes, that's the case for all APIs