question

developera avatar image
developera asked David Marginian edited

access token return wrong format according OAuth documentation

When i call Request merchant authorization api he return wrong format


Reference URL: https://docs.clover.com/docs/using-oauth-20#
https://www.example.com/oauth_callback?merchant_id={mId}&employee_id={employeeId}&client_id={appId}&code={AUTHORIZATION_CODE}


Clover return
callback_url?merchant_id=----------&employee_id=-------------&client_id=------------#access_token=-----

API Token
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

David Marginian avatar image
David Marginian answered David Marginian edited

This is because you configured your app to use an OAuth response of "Token" instead of "Code". From the developer dashboard, "App Settings" -> "REST Configuration" -> Change Default OAuth Response from "Token (Testing Only)" to "Code".

10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community