question

saurabh avatar image
saurabh asked saurabh commented

Need some help to understand clover api

Hello,

I am little bit confuse with clover api doc for example.

1-> I am taking help from below url i have filled Global Merchant id and AccessToken in the respective fields given on the same page. https://www.eu.clover.com/api_docs#!/...

i have a merchant on www.eu.clover.com i gave the id of him, but when i try to get data of particular merchant it says NO CONTENT FOUND, and request it shows https://api.clover.com:443/v3/merchan...

as per my understandings the server is trying to find info on US server thats why its showing no response. but as i am taking help on www.eu.clover.com server it should request to er.api.clover.com so that it can find the user.

please correct me if i am wrong.

2->https://www.eu.clover.com/v3/merchants/{mid}/payments?access_token={token}&endTimestamp=1465336800000&startTimestamp=1464735600000

Here i am trying to get 7 days data of june month but it shows me last payment details because if turned timestamp to human date it shows me octumber data. Please guide me how can i fetch data of particular time using parameters.

Thanks

Payments
10 |2000

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

1 Answer

sam avatar image
sam Deactivated answered saurabh commented
  1. You are correct, our reference page for EU is currently pointing to the incorrect US prod server. We are currently fixing this issue. Until then, please use a REST client app such as Postman to do your testing.

  2. Your request should look like this:

https://api.eu.clover.com:443/v3/merchants/{mid}/payments??access_token={token}&filter=createdTime>=1464735600000&filter=createdTime<=1465336800000

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

saurabh avatar image saurabh commented ·

Thanks Sam, it solved my problem.

0 Likes 0 ·
sam avatar image sam commented ·

Great to hear it! :)

0 Likes 0 ·

Welcome to the
Clover Developer Community