#benjamin_the_fool
1 messages · Page 1 of 1 (latest)
Yes you can make the normal charges list call but provide this connected account param: 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.
And the charges list endpoint supports filtering by customer https://stripe.com/docs/api/charges/list#list_charges-customer
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Sorry if I'm misunderstanding my own problem, but when I get a list of all charges, supplying only the stripe_account arg, I get a list of charges for that connected account as I would expect. But, each charge object's customer field is None. To get the customer associated with each charge I have been expanding the following path: source_transfer.source_transaction.customer which is not None, but it also seems that I cannot filter by this nested "customer". Hopefully this provides some clarity. Am I missing something here?
Is this thread still active?
Ah gotcha, in that case I am guessing you are using payment intents so it will make more sense to list your payment intents and then check the latest_charge field on each payment intent if you need the charge ID
This thread is still active but this server is about twice as busy as I have ever seen it so responses may be a bit delayed