#mahraamir

1 messages ยท Page 1 of 1 (latest)

plush coyoteBOT
smoky ravine
#

Hi there ๐Ÿ‘‹ I most typically see that error when Connect is being used, and an object exists on an account other than the one trying to access it. Taking a look to see if that is what could be happening here.

scarlet tree
#

I am not using any connect account for this

#

I am using platform keys

smoky ravine
#

Oh I see. You're passing the ID of the a Session, but that endpiont is expecting the ID of an Account.

scarlet tree
#

can you show me the request example how can I get account information?

smoky ravine
#

The samples for that, for each of our libraries, are in the section of the document that you provided a link to. The key thing that needs to change is the value you're passing it. Currently you're passing the ID of the Session (prefix fcsess_), you will want to instead pass the ID of an Account which should start with fca_.

scarlet tree
#

but how can I get fca_xxxx , let me know the API by which I can get account ID

#

any doc link

smoky ravine
#

Let's take a step back. The flow you're trying to build, what is it doing overall, and what part of that process are your focusing on now? That context will help shape how you should be looking for the Account ID.

scarlet tree
#

Well I have customerid cus_xxx I want to get account balance of the customer.

#

and also I want to see the transactions of the account as well

#

these two things I have to accomplish

smoky ravine
#

Gotcha. So if you're trying to find the Accounts that are available for a specific Customer, you can use this endpoint:
https://stripe.com/docs/api/financial_connections/accounts/list
When doing so, you can pass the Customer's ID (cus_) to the account_holder.customer parameter, which should filter the results so the response only contains the Accounts for that specific Customer.