#maverickdoge_api

1 messages ¡ Page 1 of 1 (latest)

uneven helmBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1215751013559042159

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

white relicBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

urban bronze
#

Yeah it's the same endpoint: https://docs.stripe.com/api/balance/balance_retrieve. You just need to specify the stripe-account header to make the request on the connect account: https://docs.stripe.com/connect/authentication.

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

cerulean vector
#

so just pass the connected-acc-id? like this ->
const balance = await stripe.balance.retrieve(id);

urban bronze
#

No

#

Did you look at the guide I provided?

#

You need to set the stripe account header

cerulean vector
#

I dont get it, so use create the stripe acc header and gets the object back. So not what has to be done to get the balance?

urban bronze
#

To make a request on a connect account, you need to pass the stripe account header of the connect account

#

You can issue any request on a connect account

#

So you'd use the normal retrieve balance request and pass in the stripe account header

cerulean vector
#

ah, ok

urban bronze
#

const balance = await stripe.balance.retrieve({
stripeAccount: '{{CONNECTED_ACCOUNT_ID}}',
});

#

Something like that

cerulean vector
#

is its usuall to store the connected acc id in the backend or is there a better way?