#xfechx_api

1 messages ¡ Page 1 of 1 (latest)

gusty pilotBOT
#

👋 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/1432450022728794123

📝 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.

wet dune
#

what is the cURL command to remove SEPA DD capability from a connected account?

#

so that it stops been flagged as restricted? They cannot help me in chat support, so I am back here again.

#

-d "capabilities[sepa_debit_payments][requested]"=true

vague tundra
#

Hello
It is unfortunate that they've shared the wrong information because even if you make an API request, the request will most likely fail due to missing permissions on the Connected Account.

For example, you can unrequest the capability using the API - https://docs.stripe.com/connect/account-capabilities#requesting-unrequesting but since your Platform doesnt' have platform controls enabled, it might just fail

#

You'd pass false instead of true

#

You can give it a try with the snippet in the docs I shared above

wet dune
#

And how come it doesn't have platform controls?

vague tundra
#

It depends on how the Connected Account was onboarded. If it is an existing Stripe account and is connected to multiple platforms then your platform can't request Platform controls for it.

wet dune
#

it is connected to multiple.

vague tundra
#

that's possibly why

wet dune
#

So then my account needs to have this huge RESTRICTED tag in every platform it is listed?

#

it is annoying, how come we cannot get rid of the capability

vague tundra
#

Did you try the snippet? Are you seeing the same error?

wet dune
#

I am trying now

#

same exact error

vague tundra
#

Hmm yeah... Unfortunately, there's not much we can help with on Discord.

However, I'd suggest creating a support ticket via
https://support.stripe.com/?contact=true

and asking them to escalate the case internally to folks who can help with unrequesting capabilities on the Connected Accounts & Also sharing a list of Connected Accounts you want to unrequest this capability on.

They may be able to use an internal tool or something to do this one-off for you

wet dune
#

great, thanks for letting me know I am with someone from Stripe support chat since like an hour about this

gusty pilotBOT
wet dune
#

I have another question regarding account details retrieveal

forest venture
#

Happy to help, what are you trying to figure out?

wet dune
#

I am listing balance transactions, and some of those are from transfers. I am trying to fetch the platform account details from the connected account that receive the transfer, and that it appears on the balance transaction

#

but I get an error about not having access to the platform account

forest venture
#

How are you trying to retrieve it? And what data are you trying to get from that? As best as I know that is purposely locked down and you are only supposed to have access to accounts that are connected to you directly but I can double check if there is a way to get that info

wet dune
#
      if($payment->type == 'payment' && !empty($payment->source->source->object == 'account')){
        $stripe_account = $stripe->accounts->retrieve($payment->source->source->id, []);
        $stripe_account_name = $stripe_account->business_name;
        if(empty($stripe_account_name)){
          $stripe_account_name = $stripe_account->display_name;
        }
        $stripe_account_email = $stripe_account->email;
        $stripe_account_address = $stripe_account->support_address;

        // Calculate the sum for each customer and month
        $customerEmail = $stripe_account_email;
        $customerName = $stripe_account_name;
        $customerCountry = $stripe_account_address->country;
        $customerCity = $stripe_account_address->city;
        $customerState = $stripe_account_address->state;
        $customerLine1 = $stripe_account_address->line1;
        $customerLine2 = $stripe_account_address->line2;
        $customerPostal = $stripe_account_address->postal_code;
        $account_id = $payment->source->source->id;
        $paymentDescription = $payment->description . ' (' . $payment->id . ') - ' . strtoupper($payment->currency) . ' ' . number_format($payment->net/100, 2);
        $paymentDescription = str_replace('('.$account_id.')', '', $paymentDescription);

        $month = date('m', $payment->created);
        $amount = $payment->net;```
forest venture
#

Ah gotcha, retreiving the account by ID. Yep that is only meant to work for accounts that you created or that specifically connected to you. Out of curiosity, in what field are we including this account ID like that?
I think you may just need to list things by account ID and they can make the connections past that.

wet dune
#

what you mean?

#

in what field?

#

$payment is just a balance transaction object

forest venture
#

I assumed that the account ID in your code was retrieved programmatically

#

From your code it looks like you are getting the account ID via the source field on the balance transaction object right?

wet dune
#

yes