Query - Which specific parameters should I use to generate the correct token for updating my Stripe bank account in order to activate payouts?
I've attempted to activate payouts for my Stripe bank account by using a test routing and account number (test number link) to trigger verification, but encountered issues that disabled payouts.
Routing number: 110000000 , Account number: 000999999991
In an effort to resolve this issue, I tried adding additional documentation related to the error message received when creating the account with the aforementioned test numbers.
Error Message:
documents.bank_account_ownership_verification.files
First Attempt: I made an attempt to update the account using these fields but was unsuccessful
account = {
documents: {
bank_account_ownership_verification: {
files: this.file.value
}
}
};
A corresponding error was received from Stripe stating:
Unrecognized token creation parameter: 'documents' is not a recognized parameter. This may lead to integration issues in the future.
Second Attempt: Subsequently, I tried updating the account with the below fields but once again failed to observe any change in the payout status.
account = {
individual: {
verification: {
additional_document: {
front: this.file.value,
back: this.file2.value
}
}
}
};
An error response from Stripe mentioned:
Error updating account. You cannot modify
via API if an account is verified. Please contact us for assistance.individual[verification][additional_document][front]
Just so you know, although I can generate the account token from both attempts, neither successfully updates the account on Stripe to enable payouts.
Below is the code snippet used to create the account token which is then sent to my server for calling the Stripe API to update the account:
// First attempt
let account = {
tos_shown_and_accepted: true,
documents: {
bank_account_ownership_verification: {
files: this.file.value
}
}
};
// Second attempt
let account = {
tos_shown_and_accepted: true,
individual: {
verification: {
additional_document: {
front: this.file1.value,
back: this.file2.value
}
}
}
};
from(this.stripe.createToken('account', account)).pipe(take(1)).subscribe((result: any) => {
if (result.error) {
this.alertService.danger(result.error.message);
} else {
this.accountService.updateStripeAccount(this.route.snapshot.paramMap.get('id'), result.token.id).subscribe(() => {
this.router.navigate(['/account/banks/accounts']);
this.alertService.info("Account updated successfully");
}, error => {
console.log(error);
}).add(() => {
this.loadingAccount = false;
});
}
});