question

iabdelwahhab avatar image
iabdelwahhab asked iabdelwahhab commented

Unknown Client ID

{"message":"Unknown Client ID"}

that is what i get when trying to use 'https://sandbox.dev.clover.com/oauth/token?clientid='.$clientid.'&clientsecret='.$clientsecret;

and does after i get the token. i will be able to make calls to the api using it without no problem?

cuz i was trying to use the test token that you can create from the merchant account? but it is a bearer type and i couldn't send a proper curl call using php with it.

3 comments
10 |2000

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

sam avatar image sam commented ·

how are you getting $client_id? It should be the param in the URL when the merchant clicks on your app.

0 Likes 0 ·
iabdelwahhab avatar image iabdelwahhab commented ·

Yes, that's how I exactly get it. From the url.

0 Likes 0 ·
sam avatar image sam commented ·

Can you share your clientid? Are you hitting the correct environment (sandbox.dev.clover.com vs www.clover.com) Also, you should be passing the code as well. Your query should look like this: https://sandbox.dev.clover.com/oauth/...id={appId}&client_secret={appSecret}&code={codeUrlParam}

If you're having trouble getting the OAuth to work, this video maybe helpful: https://www.youtube.com/watch?v=6riNP...

0 Likes 0 ·

0 Answers

Welcome to the
Clover Developer Community