#Alexandru Pruteanu
1 messages · Page 1 of 1 (latest)
What kind of IDs do you have? Could you share an example?
pi_*********** like this
the payout report has ch_***, that is connected to payment intent, so to do a connetion in my report for the client I need to get charge ids, but only way I found to request each intent, one by one
through stripeSDK.paymentIntents.retrieve
is there a .list method?
Sure, each resource has a corresponding list endpoint
yeah, but as I see in documentation I can specify customer, or limit, but no ids param
What exactly are you trying to do/achieve?
If you have a list of ch_xxx IDs, you can simply re-retrieve them and 'expand' the payment_intent field which will return the full Payment Intent object: https://stripe.com/docs/api/charges/object#charge_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.
But its not really clear what you're trying to do or what data is missing
I have payment intents, I dont have the charge ids related to those payments. I need to fetch payment intents ids objects to pick the charge ids and save them aswell.
I can do this by requesting each payment intent one by one, and get charge id, but thats thousand of intents. I need to know is there a request where I can send a list of intents ids to get the objects back
How are you retrieving the original list of Payment Intents?
through stripeSDK.paymentIntents.retrieve(pi_***)