From 0d1b465e42588e9dc619bf35e4a4883f43bf6b31 Mon Sep 17 00:00:00 2001 From: Alfred Nutile <365385+alnutile@users.noreply.github.com> Date: Thu, 13 Jun 2024 10:09:19 -0400 Subject: [PATCH] Might need to rename this key I get this error: ```json #response: {#4249 +"display_message": null +"documentation_url": "https://plaid.com/docs/?ref=error#invalid-request-errors" +"error_code": "UNKNOWN_FIELDS" +"error_message": "the following fields are not recognized by this endpoint: user.email" +"error_type": "INVALID_REQUEST" +"request_id": "F9q9ADTq1olrYny" +"suggested_action": null } ``` Until I did the following after looking the docs and seeing what the API anted --- src/Entities/AccountHolder.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Entities/AccountHolder.php b/src/Entities/AccountHolder.php index 99acbdc..084d2be 100644 --- a/src/Entities/AccountHolder.php +++ b/src/Entities/AccountHolder.php @@ -31,7 +31,7 @@ public function toArray(): array { return [ "legal_name" => $this->legal_name, - "email" => $this->email + "email_address" => $this->email ]; } -} \ No newline at end of file +}