#theplay3r_api

1 messages Ā· Page 1 of 1 (latest)

mellow fieldBOT
#

šŸ‘‹ 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.

meager sequoia
#

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

mellow fieldBOT
dusty oyster
#

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?

meager sequoia
#

My goal is to handle payouts manually, instead of using automatic payouts provided by Stripe.

#

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.

dusty oyster
#

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

meager sequoia
#

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?

dusty oyster