Reckon one API: invalid_client

  • 1
  • Problem
  • Updated 1 week ago
I have followed the auth document step by step but I still get this error.

The first step is all good. I can get the code from the response
But when trying to get the access_token, I always received 'invalid_client'

Here are the request details:

It's a local env with client id and secret. The callback url is: http://localhost

Client id is: 665df5df-0588-4ee8-8add-0a156576e8bc
Client secret: c12bbb8a-2443-4acb-96ec-83aa22fc421f
HttpType: POST
URL: https://identity.reckon.com/connect/token
Header: 
{'Content-Type': 'application/x-www-form-urlencoded', 'Authorization': 'Basic NjY1ZGY1ZGYtMDU4OC00ZWU4LThhZGQtMGExNTY1NzZlOGJjOmMxMmJiYjhhLTI0NDMtNGFjYi05NmVjLTgzYWEyMmZjNDIxZg=='}

Body:
{'code': '9aff562a59207c6cc2fb21b24875b252',
'redirect_uri': 'http://localhost', 'grant_type': 'authorization_code'}
 

Response:
<Response [400]>
400
{"error":"invalid_client"} Please help me with this issue ASAP. We have been stuck by this problem for ages.
Photo of Stream Lending

Stream Lending

  • 90 Points 75 badge 2x thumb

Posted 1 week ago

  • 1
Hi there,

Based on what I know, it could be the callback URL you registered with this client id is not localhost, but it could be something else as well.
You should contact reckonapi@reckon.com so they can see what is the real issue. 

Thanks,

Phuong