#kemal_connect-account-payout-delays
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/1363913386232119488
๐ 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.
not really, we only want to delay first payout for 21 days , then set back to default platform default recurring cycle
We allow you to customize the interval for payouts to daily, weekly, or monthly using the settings.payout.schedule parameter but not a specific number of days
You can specify the number of delay_days the same way here
But it would be up to you to reset it back after the first payout
does api reset it automatically after first payout?
No
You need to change it yourself
But that is something you could wire up to a webhook receiver function that listens for the payout.paid event on Connected Accounts.
If I wanted to do this, I would save the Connected Account IDs to a local database table with a value to indicate they are new or haven't had their first payout yet.
I would create the Account with a delay_days: 21 using the settings.payout.schedule parameter.
Then, when I receive payout.paid webhook events, I check the Connected Account ID against my table. If the account is a new one and this is it's first payout, I would then trigger a call to the Update API and set the delay_days to whatever your default is.
yeah i see, thanks for the suggestion, i ll discuss this with the team
Happy to shed what ๐ก I can ๐