question

sujith avatar image
sujith asked sam Deactivated commented

Is there any other ways to call REST API of Clover?

Hi all, I am trying to call REST API of clover with this : https://www.clover.com/api_docs , but I could not make it. Please any one help me to call the API through any other ways.

10 |2000

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

Bejoy Nair avatar image
Bejoy Nair answered sujith commented

Hi Sujith, You can use Postman for chrome to test any REST Api. You can test Clover's REST APIs here.

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.

sujith avatar image sujith commented ·

Thanks I have used postman to test the API.

0 Likes 0 ·
Dan avatar image
Dan answered

https://docs.clover.com/build/web-api/ has an example api request using curl under the category Using API Tokens

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 Deactivated answered sam Deactivated commented

If you are in the sandbox environment, make sure you are using the correct portal.

https://sandbox.dev.clover.com/api_docs

https://apisandbox.dev.clover.com/v3/...

Production and Development are two separate accounts and you will need to use the corresponding portal. eg. www.clover.com or sandbox.dev.clover.com

If you are having issue with getting the correct auth_token, read through this doc: https://docs.clover.com/build/oauth-2-0/

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

sujith avatar image sujith commented ·

I need to add an inventory Item through php file , "https://api.clover.com:443/v3/merchants/CHZDGMQDPRVQT/items?access_token=xxx" this api I am using. I want to get the Clover Id of the item for payment but I am not getting response for this API.

0 Likes 0 ·
sam avatar image sam commented ·

@Sujith

You need a minimum of the following json in the body.

{ "name": "test", "price": 1000 }

You can test it here: https://www.clover.com/api_docs#!/inv...

0 Likes 0 ·
sujith avatar image sujith commented ·

Hi Sam I have tested it with postman.

0 Likes 0 ·
sam avatar image sam commented ·

@Sujith I tested it with the merchantid and authtoken you had posted earlier using our api reference portal and it worked with this body:

{ "name": "test", "price": 1000 }

Please make sure you're filling in the mid and API token on the header.

0 Likes 0 ·

Welcome to the
Clover Developer Community