#SoloGeneral-missing-object
1 messages ยท Page 1 of 1 (latest)
Hi ๐ since you're providing the Connected Account's ID when creating the source, the Source object will actually reside on the Connected Account. This means you'll also need to provide that ID when retrieving the source so we know to look at the objects in the Connected Account rather than in the Platform account.
I see. I will give that a try! Thank you.
๐ Happy to help, let me know if that doesn't resolve the behavior you're encountering though.
Could you please give an example API command using both the account id and the source id to retrieve the source? I have tried both
Stripe::Source.retrieve("<src id>", "<acct id>")
and
Stripe::Source.retrieve("<acct id>", "<src id>")
and am getting the following error:
Stripe::AuthenticationError: Invalid API Key provided: acct_1L1*********O166
I made sure to set the Stripe.api_key before making the calls
Sure, the ID of the connected account would be provided the same way it was when you were creating the source, so I would expect that to be via the stripe_account parameter as shown here:
https://stripe.com/docs/api/connected_accounts?lang=ruby
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.