#SpecOps2013
1 messages ยท Page 1 of 1 (latest)
You mean the PaymentIntent IDs? Use the List API (https://stripe.com/docs/api/payment_intents/list#list_payment_intents)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
thanks for the response! Im referring to the payment id e.g. the ones starting with "py_" rather than the "pi_"
๐ taking over for my colleague. Let me catch up.
the py_xxx objects are the charges that are created on a connected account
yes that is correct. Can i make use of stripe API to retrieve all the py_xxx objects given a connected account id?
you would have to use the list charges API https://stripe.com/docs/api/charges/list with the Stripe Account header (as described here https://stripe.com/docs/api/connected_accounts)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
thanks! I will try and figure out from there. I will let you know if i have further queries
let me know if you need any more help
hi how about the other way round? Is there any way to retrieve a stripe connected account id given a py_xxx object?
yes you can look at the source_transfer property on that charge
from there you can take that ID and retrieve it on your platform account
and look at the destination property which is the destination Account ID
Hi what if i do not have access to a charge object but only the py_xxx id?.
there isn't really a way to filter by destination_payment so you'd have to list all transfers https://stripe.com/docs/api/transfers/list and filter it yourself
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.