Hi,
I am getting 400 bad request error when generating plaid processor_token in sandbox.
$response = $client->post($plaid[‘endpoint’].’/processor/dwolla/processor_token/create’, [
\GuzzleHttp\RequestOptions::JSON => [
‘client_id’ => $plaid[‘client_id’],
‘secret’ => $plaid[‘secret_key’],
‘access_token’ => $token_data->access_token,
‘account_id’ => $account_id,
]
]);
Please help to resolve it.
shreya
(Shreya | Developer Advocate @ Dwolla)
August 13, 2020, 1:51pm
2
Hi @Satheesh_Sankar_S ! Have you reached out to Plaid about the error yet? They might be able to help you better making calls to their API!
Having said that, i could also try to help on our side of things! What error message are you seeing?
Hi @shreya ,
I get this bellow error.
{\n
“display_message”: null,\n
“documentation_url”: “https://plaid.com/docs/?ref=error#invalid-input-errors ”,\n
“error_code”: “INVALID_ACCOUNT_ID”,\n
“error_message”: “account_id specified does not belong to a depository account”,\n
“error_type”: “INVALID_INPUT”,\n
“request_id”: “NORANFiorCuweUn”,\n
“suggested_action”: null\n
}
Thanks!
shreya
(Shreya | Developer Advocate @ Dwolla)
August 14, 2020, 1:40pm
4
Thanks for posting the error response, @Satheesh_Sankar_S !
It looks like the bank you were attempting to create a Dwolla processor token for is not a depository account. I’d recommend trying to create one for a Checking or a Savings account which are both types of banks that Dwolla accepts.
Hope that helps! Let me know if you come across any issues!
Hi @shreya ,
Thanks for the solution. I have updated the account type to depository and now it’s working fine.
1 Like