#hk6_code
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/1315968370352328745
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
👋
Have you tried to send empty string to on_behalf_of ?
you mean just doing a subscription update without any schedule involved? Yes but I get an error because the connect account to which data was sent was a US account. So if I set the on_behalf to empty string and then set the transfer to 0%, it says I can not do a transfer to a US account like this, that the on_behalf parameter is required.
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_xUkIRKlvtrLzU0
I tried to pass an empty string to transfer.destination in this one
as the documentation says that:
If specified, the funds from the subscription’s invoices will be transferred to the destination and the ID of the resulting transfers will be found on the resulting charges. This will be unset if you POST an empty value.
I tried to pass None as well but it does nothing
Yes actually, you can unset the on_bhalf_of but not transfer.destination
The only solution here is to change the destination account to another Connect account or delete the Subscirpiton and create a new one.
not great... but the doc says that you can do that by passing posting an empty value. The doc is wrong?
Yes that's correct for most attributes, but there is some attributes that can'ts be unset.
Ok. Any work around? Setting the amount_percent to 0 and unsetting the on_behalf, would work?
no that does not...
Nope.
ok thanks for your answers.
I will check the consequences of canceling and recreating subscriptions
have a great day
last question
how come creating a schedule with new phases, and without this do not work?
I'm not sure I understand yout question sorry. Could you please share more details? any requestId ?
Let me check
This: req_Ht3rdY0XMOi6gy
Then: req_B9VgrogrUX7K44
Basically I create a schedule with new phases, without the on_behalf and transfer data. so that new phases, will start "fresh"
ok because it was initially set using a schedule. So I thought I could reverse it this way
Thanks for you answers
but wait, when a schedule is active, if I overwrite the current phase it seems to work
let me check a request ID
So in this case, I still had an active schedule. The subscription had the on_behalf and transfer data set.
I updated the schedule phases and it has unset the on_behalf and transfer data.
req_1FEpNpxn6X1Ik3
Yes, here you are adding it at phase level and not root level of the Subscription
so all the on_behalf anmd transfer data have been added this way. It seems that now I have trouble to unset that only for old subscription for which the schedules are terminated
despite the fact that it has been set through phase definition
is that possible?
does it mean that once the last phase is started and the schedule released, then these parameters are set at subnscription level and not phase anymore?
Yes exactly.