#jabza

1 messages ยท Page 1 of 1 (latest)

sleek shoalBOT
obtuse elm
#

Can you provide more context? Is this only happening for one Connected Account, or is this happening for all of them? Do you see a related request in your logs within the Stripe dashboard that show a request to update an Account failing?

nova parrot
#

It seems to be related to updating the Image or Icon

#

(All in Test mode)

nova parrot
#

the platform's branding correctly got applied - but I was testing overriding that branding

obtuse elm
#

Hm, I'm not too familiar with the dashboard flows, so I'm not sure if this is something that is broken or if there is some nuance to using this flow in the dashboard.

Would you be open to using an API-based approach for uploading these files and updating the Connected Account's branding settings?

obtuse elm
#

Cool, we have a guide on how to upload files here that you can use as a reference for the first part of the process (uploading the files):
https://stripe.com/docs/file-upload#uploading-a-file
When uploading the file, do not include the stripeAccount header, the next step that updates the Connected Account will fail if the file is uploaded to the Connected Account.
You'll want to upload the files with a purpose of either business_logo or business_icon

You can use this endpoint to update the Connected Account's settings.branding values and can provide the ID of the file created from the upload to the icon or logo parameters in there:
https://stripe.com/docs/api/accounts/update#update_account-settings-branding

sleek shoalBOT
nova parrot
#

I already have the file uploaded on my Platform account

#

so I think I can start at step two?

obtuse elm
#

Yup, if you already have the ID of the file (file_) then you can skip to updating the account.

nova parrot
#

I'm trying to use the CLI for this

#

hmm how would I go about getting the File id of my already uploaded icon?

obtuse elm
#

You can use this function to list the files that have been uploaded to your account:
https://stripe.com/docs/api/files/list

You may also be able to find it in the logs available in the dashboard if you can find the request that created the file there:
https://dashboard.stripe.com/test/logs

nova parrot
#

Ah great - that worked ๐Ÿ™‚

#

so now i'm trying to use CLI to set the file ID on the connected account

#

think this is wrong though

obtuse elm
#

I'm less familiar with doing this via the CLI, but I think what you have looks right until the --settings... part. I would replace that with --data since you need to get to a nested value. I think the call would look something like:
stripe accounts update [ACCT_ID] --data "settings[branding][icon]=[FILE_ID]"
where [ACCT_ID] and [FILE_ID] get swapped for the actual ID strings without square brackets around them.

nova parrot
#

thanks - getting closer!

#

not sure why i can't find business_icon types

shadow arrow
#

Hi taking over for toby as they have to step out

#

Can you summarize what you're currently blocked on so I can help?

nova parrot
#

Sure, thanks for helping out. I have been having issues setting the branding on a Connected test account

#

When trying to set the Icon, I get an error - so we are trying via the CLI

#

However, I can't seemed to list files with purpose_type business_icon

#

Which I am trying to use the FileId of, to set the Connected accounts Icon

#

this is what I see when I try via Dashboard logged into the Test Connected Account

#

not sure why it'd be getting a livemode mismatch ๐Ÿค”

shadow arrow
#

You get that response when attempting via the dashboard?

nova parrot
#

Correct

#

From the Test Dashboard of the Test Connected Account

shadow arrow
#

Hm super weird. To be honest I recommend reaching out to our support team to flag this issue. We're not super familiar with dashboard flows in here, and this probably should be flagged to them: https://support.stripe.com/contact/email

nova parrot
#

Righto will do, thank you

#

The CLI way would be nice but I'm not sure why I am seeing zero files listed for

#

stripe files list --purpose business_icon

#

I do get files for business_logo

#

(This is on the Platform Account)

#

Which does have a Icon set correctly

shadow arrow
#

To be honest I'm not sure the difference between those two (business_icon vs business_logo). I would ask support that as well