#Joey
1 messages ยท Page 1 of 1 (latest)
Could you clarify on which Connect account type (Standard vs Express vs Custom) and which fund flow (Destination Charges vs Direct Charges vs Separate Charges and Transfers) you are using?
Standard and Direct Charges for fund flow
Okie that's harder. I image there would be Payment Intents lives under the standard connected account. Which data do you want to link them to?
Yep so, for a given connect account, in payments (e.g. https://dashboard.stripe.com/connect/accounts/acct_xxxxx/payments). If I do an export and include all fields in the CSV export. I can see metadata, where we are storing like "MySystemFK_ID"
So I want to know, can I obtain all payments, across all connect accounts (instead of just one) and include the metadata. So I can do like a very simple vlookup for instance.
obtain all payments, across all connect accounts (instead of just one)
I think a loop through all connect accounts then run List Payments (https://stripe.com/docs/api/payment_intents/list) from each would do the trick, no?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
๐คฆโโ๏ธ I didn't see it included "metadata" in the response.
I'll give that a crack and see how I go, cheers ๐
Sure, maybe you would want to use the Report API instead of List all PaymentIntent
Oh I realised a problem, that endpoint allows for filtering on customer (cust_xxx).
But I have an account id (acc_xxx)
For the List all Payment Intent API, if you don't specify any Customer Id it will returns everything relates to the account associate with the secret key it is using
For example you can call it with your platform secret key, then specify the Stripe account header, to filter on a specific connected account
Example code on Ruby
list = Stripe::PaymentIntent.list(
{
limit: 100,
},
stripe_account: 'acct_your_connected_account_id_here'
)
p list