question

accloverdev avatar image
accloverdev asked accloverdev commented

REST API getting orders (real time push)

I am trying to push clover POS orders into another platform via the API. What is the best way to go about doing this? I have reviewed the API docs and have mapped the fields.

Is there a way to push all completed orders to an API endpoint as they come in - in real time?

OR

If there is a way to pull latest orders only so as to not duplicate on the other platform?





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.

1 Answer

David Marginian avatar image
David Marginian Deactivated answered accloverdev commented

Does this need to be in real-time? I would recommend batching them (grab all the orders from the last 15 minutes) at a set time interval or you are going to be making a lot of API calls. I would recommend reading all of the sub-sections in our documentation to learn how to use the API (https://docs.clover.com/docs/making-rest-api-calls).

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

accloverdev avatar image accloverdev commented ·

Not necessarily real time. I can work with every 5 minutes too.

I know how to use the API and have tested in postman as well. My question is what parameters do I use to pull orders that were completed in the past 5 minutes?



0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ accloverdev commented ·

This is covered in the documentation that I linked. Please take a look at it - https://docs.clover.com/docs/applying-filters.

0 Likes 0 ·
accloverdev avatar image accloverdev David Marginian ♦♦ commented ·

Thanks, for the help!

0 Likes 0 ·

Welcome to the
Clover Developer Community