#Joey

1 messages ยท Page 1 of 1 (latest)

shell oak
#

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?

fleet crown
#

Standard and Direct Charges for fund flow

shell oak
#

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?

fleet crown
#

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.

shell oak
fleet crown
#

๐Ÿคฆโ€โ™‚๏ธ I didn't see it included "metadata" in the response.

I'll give that a crack and see how I go, cheers ๐Ÿ‘

shell oak
#

Sure, maybe you would want to use the Report API instead of List all PaymentIntent

fleet crown
#

Oh I realised a problem, that endpoint allows for filtering on customer (cust_xxx).
But I have an account id (acc_xxx)

shell oak
#

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