#maverickdoge_api
1 messages ¡ Page 1 of 1 (latest)
đ 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.
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.
- maverickdoge_docs, 4 days ago, 3 messages
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.
so just pass the connected-acc-id? like this ->
const balance = await stripe.balance.retrieve(id);
No
Did you look at the guide I provided?
You need to set the stripe account header
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?
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
ah, ok
const balance = await stripe.balance.retrieve({
stripeAccount: '{{CONNECTED_ACCOUNT_ID}}',
});
Something like that
is its usuall to store the connected acc id in the backend or is there a better way?