question

vkbrihma avatar image
vkbrihma asked Jacob Abrams commented

401 Unauthorized

We are getting "401 Unauthorized" on GET request, using same credentials we are able to run POST commands such as "/v3/apps/#{CLOVERAPPID}/merchants/#{authentication.merchantid}/metereds/#{CLOVERMETEREDIDBILL}"

but for GET "/v3/merchants/#{authentication.merchant_id}" we are getting 401 Unauthorized

on both requests we are setting same header for authorization

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.

Jacob Abrams avatar image Jacob Abrams ♦♦ commented ·

Can you try using the curl with -v option to perform your GET and send the results? Please obfuscate the authorization header before posting though.

0 Likes 0 ·
vkbrihma avatar image vkbrihma commented ·

Here is log

  • About to connect() to api.clover.com port 443 (#0)
  • Trying 184.173.76.3... connected > GET /v3/merchants/EYSCGSRQ2D8A2 HTTP/1.1 > User-Agent: curl/7.22.0 (x86_64-apple-darwin11.0.1) libcurl/7.22.0 OpenSSL/1.0.0e zlib/1.2.5 libidn/1.22 > Host: api.clover.com:443 > Accept: / > Authorization:Bearer xxxxxxxxxxxxxxxxx >
  • Empty reply from server
  • Connection #0 to host api.clover.com left intact
  • Closing connection #0
0 Likes 0 ·
Jacob Abrams avatar image Jacob Abrams ♦♦ commented ·

Are you trying to use an API token generated on the web dashboard? I checked your merchant EYSCGSRQ2D8A2 and I don't see any API tokens generated.

0 Likes 0 ·

1 Answer

hammer avatar image
hammer answered

OBE - Closing dead thread.

10 |2000

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