#manuel_api

1 messages ¡ Page 1 of 1 (latest)

crude gateBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1247071626290397226

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

tender swallow
#

one screenshot from my Mac Terminal when trying to get one of my accounts delay days changed.

another from Make.com when trying to create an account with the delay days paremeter in.

prime gust
#

Hi there, I didn't see you specify a Stripe-Account header in the request, so the request was created on your own account instead of the connected account.

#

You should specify a stripe_account in the request.

By specifying a stripe_account, you are telling Stripe that you want to make an API call on behalf of a connected account. You can refer to this doc to learn more about making API request for connected account (https://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.

tender swallow
#

I have done that too

#

In the screenshot from my terminal I didn't include the Stripe API key, that's why it won't show

#

But I did that

#

And the Make.com message request led the same way

#

E.g.:

req_Y9LzlHKMRgINl0
req_o5poemkEdibynZ
req_3Wh7x762XQpAKv
among others

#

I tried different things - initially on other people's accounts, then on my own.

#

Either way - I'd like to change the payout delay to both other accounts and my own

prime gust
#

None of these requests were created on your connected account. I'd suggest you check your code and make sure you specified the Stripe-Header.

tender swallow
#

Can you explain what you mean here?

#

In your first message you wrote the request "was created on your own account", so I sent you some examples of requests done on the connected accounts.

prime gust
tender swallow
#

Got you - thank you. I'll go through it, but seems clear for now.

How would I change the payout delay on my own account?

prime gust
#

The delay_days property reflects how long it takes for on_behalf_of charges (or direct charges performed on the connected account) to become available for payout. It's not applicable to platform (i.e., your account)

tender swallow
#

Understood - so how would I control my platform's payout delay (my account)?

prime gust
#

Hm, I thought I just explained payout delay isn't applicable to your own account?

tender swallow
#

Hmm, OK

#

I am sorry but this isn't being super helpful

#

Let's ignore my own account for now.

It is unclear to me why we need to use a Payment Intent header vs. an Accounts header, if what I am trying to do is to get an account to change its Payout Delay days

#

Also, I am struggling to accept your answer because I managed to create an account with 8 delay days as opposed to 7 - see here acct_1PMx1bERJTS2ALIj

#

There must be some miscommunication - should I try to rephrase what I am trying to achieve?

I would like to achieve 2 things:

A) when I create new accounts via the API (just like I did with acct_1PMx1bERJTS2ALIj), I would like delay days to be 3 days (the minimum for the geography I am operating - Portugal). Currently, the API requests work when I move it from the default figure to 8, but it won't accept when I move it to 3.

B) for the existing Stripe Accounts linked to my Stripe Connect platform (i.e. those I created before with the accidental 7-day delay) - I would like to make them 3-day delay payouts. I.e. I'd like to update those accounts. (and for this, I am following this part of the API docs - https://docs.stripe.com/api/accounts/update )

Can you guide me on what I might be doing wrong in A) for the error messages received (and shown to you earlier), and what could I do better in B)?

prime gust
#

As I explainer before, delay_days property reflects how long it takes for on_behalf_of charges (or direct charges performed on the connected account). This kind of charges are not applicable to your account (i.e., you can only create direct charges and destination charges on a connected account). Even you mange to set the delay_days on your account, you won't be able to create a direct/ destination charges on your account, unless you connect your account to another platform.

#

Is thi part clear? or you need more explanations

#

Again, I still don't see any request to change the payouts schedule delay_days on your connected account acct_1PMx1bERJTS2ALIj. I'd highly recommend you following the doc I shared earlier to create a request on that connected account. If you need any help, I'm here for you.

tender swallow
#

Can you confirm you see the connected account has 8 days as opposed to 7 days? acct_1PMx1bERJTS2ALIj

#

If you can confirm that's the case, it means I was able to do so when creating the account.

I'd like help making that number a 3 and not an 8.

prime gust
#

I don't see any request to update delay_days for acct_1PMx1bERJTS2ALIj

tender swallow
#

I was the one building the automation and specifying that the account is created with 8 delay days instead of the default (7). Can you help me making it 3 instead of 8? Answering this will answer question (A) above.

Then we can address question (B).

prime gust
#

Yes I can see you set delay_days to 8 when creating th account.

tender swallow
#

Nice - thank you for confirming. Can you help me get that number to 3?

prime gust
#

I'm not sure why your account can't lower the delay_days, can you reach out to support? https://support.stripe.com/contact/email