Hello,
I need to get accesstoken for any merchant id using API.Is it possible to get it using api?
Obtaining tokens from the dashboard (merchant tokens) is not permitted for apps in our app market. You should be obtaining an OAuth token - https://docs.clover.com/docs/using-oauth-20.
But in that parameters are required -https://sandbox.dev.clover.com/oauth/token?client_id={appId}&client_secret={APP_SECRET}&code={AUTHORIZATION_CODE}
Can we get client_secret,code and client id also by api ?
You MUST go through the OAuth flow. You can't obtain an access token on a merchant's behalf without them authorizing you to do so. The merchant MUST authorize your application by installing it (step 1). Once they do they will be redirected to your app and the client_id (your application id) and the code will be provided in the URL. The client secret is something you will need to securely store on your end as it is obviously sensitive.
Hi David,
I need access token just by passing merchant id as I am working on apis for web and not application. So is there some other way by which I can get access token using curl api?
3 People are following this question.