#jobewone-connect-financialaccounts

1 messages ยท Page 1 of 1 (latest)

glossy compassBOT
undone basin
#

Can you paste the request id in here so I can have a look

slow jasper
undone basin
#

That financial account exists on acct_1Mdfm64Ja87CD0ut but you're making the request on
acct_1J5Hh3KmW9tOWppX

#

acct_1Mdfm64Ja87CD0ut is a connect account of acct_1J5Hh3KmW9tOWppX

slow jasper
#

so that means I'm using the wrong secret key?

undone basin
#

That means that you used the stripe account header to create the financial accounthttps://stripe.com/docs/connect/authentication

Learn how to add the right information to your API calls so you can make calls for your connected accounts.

#

Did you mean to do that?

#

Where do you want this fa to live? The platform or connect account?

slow jasper
#

Ah okay okay I believe the connected account. I'm trying to make an outbound payment to a fa account and test out the received_credit webhook.

undone basin
#

Then just pass the stripe account header again with that request

slow jasper
#

ah I see! okay trying it now

slow jasper
# undone basin Then just pass the stripe account header again with that request

okay I got a different error

stripe.error.PermissionError: The provided key 'sk_test_***********************************************************************************************Djvf' does not have access to account 'fa_

I'm building off api design another dev already setup so I'm still trying to get my bearings. how can I authroize this type of interaction on our stripe dashboard?

undone basin
#

Can you share the request id again?

slow jasper
undone basin
#

It would be a connect request

#

Can you filter your dashboard by connect requests

slow jasper
#

if so it still doesn't show

#

it only shows a get request I did to get the list of transactions for a fa account a few minutes before I tried out the connected account request

undone basin
#

Can you share the code you're using to make the request?

slow jasper
# undone basin Can you share the code you're using to make the request?

here you go

# Set your secret key. Remember to switch to your live secret key in production.
# See your keys here: https://dashboard.stripe.com/apikeys
import stripe
stripe.api_key = "sk_test_REDACTED"

stripe.PaymentIntent.create(
  amount=1000,
  currency="usd",
  automatic_payment_methods={"enabled": True},
  stripe_account="fa_REDACTED",
)
undone basin
#

You're passing financial account as the stripe_account...

#

The connect account id is what goes in stripe_account

#

So if you're trying to make this request:

    'Authorization': f'Bearer {SECRET_KEY}'
}
data = {
    'financial_account': 'fa_REDACTED',
    'amount': 1000,
    'currency': 'usd'
}

response = requests.post(URL, headers=headers, data=data)```
#

You'd need to add a new header

#

With the connect account in there

slow jasper
#

Ah I see, I will read again and just make a new question if I'm still stuck. Thanks!

undone basin
#

No problem

#

If this thread is still open you can ask in here

#

But we archive threads after a bit of inactivity

supple shoal
#

jobewone-connect-financialaccounts

slow jasper
supple shoal
#

๐Ÿ‘‹ Hello! Hopping in here since codename_duchess had to head out

slow jasper
#

omg you're awesome thank you! ๐Ÿ˜ญ