question

abbeydale avatar image
abbeydale asked ·

API token and merchant ID for multi store chain

Created an API key through the dashboard and we use that in conjunction with a merchant ID from a multi store chain, it comes back with a failure. What is the solution here?

MerchantInventoryAPI 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.

abbeydale avatar image
abbeydale answered ·

We are looking at the rest API customer end point. The access token that we get from the dashboard in conjunction with merchant ID is failing and returning an error code


1 comment 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.

Please see the links in my answer. You need to use an OAuth token. Tokens generated via the dashboard are for testing only and don't work across merchants.

0 Likes 0 · ·
David Marginian avatar image
David Marginian answered ·

What API are you talking about? Are you trying to make REST calls? Using an API key is not the correct approach (https://docs.clover.com/clover-platform/docs/create-an-api-token). The correct approach is to follow the OAuth process - https://docs.clover.com/clover-platform/docs/using-oauth-20.

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.

abbeydale avatar image
abbeydale answered ·

We are trying to pull information using an API key created through the dashboard, but when we use the API key for a multiple chain store it does not work. Is there a way to be able to interact with multiple merchant ID's using one or many API keys. Whenever we try to connect to the API we get a 401 error and we normally get the 200 message with single cover stores

1 comment 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.

That is the same comment you posted below. Please see my answer above.

0 Likes 0 · ·
David Marginian avatar image
David Marginian answered ·

I don't understand your question. Can you please provide details? What are you doing? Making a REST API call? What API? What is the response?

1 comment 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.

We are trying to pull information using an API key created through the dashboard, but when we use the API key for a multiple chain store it does not work. Is there a way to be able to interact with multiple merchant ID's using one or many API keys. Whenever we try to connect to the API we get a 401 error and we normally get the 200 message with single cover stores

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