#mahraamir
1 messages ยท Page 1 of 1 (latest)
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.
I am not using any connect account for this
I am using platform keys
also tell me where is request body example of this reponse
https://stripe.com/docs/financial-connections/balances#retrieve-account-balance
Oh I see. You're passing the ID of the a Session, but that endpiont is expecting the ID of an Account.
can you show me the request example how can I get account information?
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_.
but how can I get fca_xxxx , let me know the API by which I can get account ID
any doc link
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.
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
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.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.