question

sbennett@gravitypayments.com avatar image
sbennett@gravitypayments.com asked ·

Trying to connect with Smartconnect using API Token in URL but we are getting "unauthorized" response. What is the right format/URL needed?

We've been trying to make get calls to query orders so that we can populate an ERP system (Microsoft Navision) but when trying to make a call to the URL including our API token we get an unauthorized response. I feel like our formatting is off, but no matter what I try per the documentation we can't seem to get anything to work.

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

Jonathan Ryan Grice avatar image
Jonathan Ryan Grice answered ·
when you send GET on the endpoint /v3/merchants/{merchant_id}/orders
you don't have to have any query strings, i.e. limit=10.
You must send your API Token in the GET header in the format of,
(key) Authorization (value) Bearer: {API_KEY}
with a colon after the word Bearer.
Share
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