#theplay3r_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/1328351196020346993
š Have more to share? Add more details, code, screenshots, videos, etc. below.
Example request:
curl --location 'https://api.stripe.com//v1/balance' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Stripe-Account: acct_1Q1nYZEAItmXQ8O1' \
--header 'Authorization: ā¢ā¢ā¢ā¢ā¢ā¢'
Response:
{
"object": "balance",
"available": [
{
"amount": 0,
"currency": "czk",
"source_types": {
"card": 0
}
}
],
"livemode": false,
"pending": [
{
"amount": 0,
"currency": "czk",
"source_types": {
"card": 0
}
}
]
}
Dashboard: https://ctrlv.link/YXHT
Well the Dashboard doesn't necessarily directly map directly to public API fields ā it has additional info/context that only it can access
What are you trying to do?
My goal is to handle payouts manually, instead of using automatic payouts provided by Stripe.
According to this documentation, I should use the retrieve balance end-point to do so.
Oh, nevermind, I've been using the test SK. Works fine with live SK - although it's weird that I can query live data at all using test SK.
Yeah it's a caveat with how Connect works depending on how the account is conncted to the platform
As acct_1Q1nYZEAItmXQ8O1 is only connected to your platform in live mode. I'd recommend establishing a test mode connection too and it'll work as you need
I would like to have one more question about manual payouts though, regarding the holding period.
My current approach is listening to the balance.available to determine for how long can I hold onto the connected account's money.
However this doesn't trigger when the total balance changes (I assume it only triggers once the "available balance" changes?)
Is this safe, or should I instead listen to a different event?
There is no better event really. You could instead use the related txn_xxx for each payment and look up that detail (corresponds to each transaction on the Stripe balance): https://docs.stripe.com/api/balance_transactions
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.