#yony
1 messages · Page 1 of 1 (latest)
You should do like this instead:
const account = await stripe.accounts.update(
id: 'acc_xxx',
{
type: 'express',
});
Check the API doc:
https://stripe.com/docs/api/accounts/update?lang=node
Ok checking
But wait, you can't update the account type.
Umm, actually we can not have keys and values pair outside a map. so instead i tried the following as the docs.
const account = await stripe.accounts.update( id: 'acc_xxx', { type: 'express', });
And got an error "Error: Received unknown parameter: type"
Hi, I'm taking over my colleague.
Yes, that's expected, as "type" is not something you can update here.
Ok got it, thanks. I have also added some additional parameters, which are causing a problem. give me a few minutes before you can close the thread.
Yeah, it does work when removing the other parameters and only passing the account id.
thanks @somber cosmos @dim ore
What do you want to update on the account?
I want to update the owner's address, SSN, and document identifier.
Is there an API to check if a user entered the correct address, SSN, and document identifier?
What is the request you are sending, and what's the issue you're facing with it?
Depends what you mean by correct.
You can retrieve the account: https://stripe.com/docs/api/accounts/retrieve
And check if charges_enabled and payouts_enabled: https://stripe.com/docs/api/accounts/object#account_object-charges_enabled
Ok, thanks for your help.
Happy to help. Let me know if you have any other questions.
That is all for now. thanks, you can close the thread now.