question

clovertest733 avatar image
clovertest733 asked bryanvargas edited

Curl command to sandbox merchant

I'm trying to follow the procedure outlined here:
https://docs.clover.com/docs/making-rest-api-calls
I have a sandbox merchant and API token, but when I try to mimic this curl command:

curl --request GET \ --url https://apisandbox.dev.clover.com/v3/merchants/{mId} \ --header 'accept: application/json' \ --header 'authorization: Bearer {auth_token}'

I receive this response:

curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.

curl: (6) Could not resolve host: application

curl: (3) URL using bad/illegal format or missing URL

My exact curl command (with sandbox merchant and sandbox API token redacted) is:

curl --request GET --url https://apisandbox.dev.clover.com/v3/merchants/XXXXXXXXXXXXX --header 'accept: application/json' --header 'authorization: Bearer{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}'


I thought I would be able to query for merchant (or other authorized information); have I misunderstood some part of this process? Please let me know.





REST API
10 |2000

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

bryanvargas avatar image
bryanvargas answered

Looks like your missing something in the url format, try with this one and add your mId and accessToken


curl --request GET \

--url https://sandbox.dev.clover.com/v3/merchants/{mId} \

--header 'accept: application/json' \

--header 'authorization: Bearer {accessToken}'

10 |2000

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

clovertest733 avatar image
clovertest733 answered bryanvargas edited

Same result:
curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.

curl: (6) Could not resolve host: application

curl: (3) URL using bad/illegal format or missing URL


Is the only difference in the curl command you suggested apisandbox.dev.clover.com vs sandbox.dev.clover.com ?

1 comment
10 |2000

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

bryanvargas avatar image bryanvargas ♦♦ commented ·

I would recommend looking up the error messages, it might be some configuration on your end, it might be parsing wrong when you are pasting it.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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