question

richa avatar image
richa asked hilarybrown answered

Fetching all orders using REST API instead of orders as per provided timestamp

Orders REST API
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.

pammelala avatar image pammelala commented ·

If you are looking for a fun game that doesn’t require too much thinking, then Block Blast is definitely for you!

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

We can't tell you what the problem is in your code if you haven't included any of your code to look at. I suggest that you take a look at your code in more detail.

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.

richa avatar image richa commented ·

My code is as follows :

const options = {

method: 'GET',

url: ' 0 Likes 0 ·

David Marginian avatar image David Marginian ♦♦ richa commented ·

Why aren't you passing the filters as part of the query string (qs)? I am not sure what library you are using to make the request, but when you pass special characters (>=) in a URL they need to be encoded correctly. I assume passing them in the qs will do that, otherwise you need to encode the querystring in the url you are passing. Also, you shouldn't be passing the access token in the query string, you should be using a header - https://docs.clover.com/docs/using-api-tokens

0 Likes 0 ·
hilarybrown avatar image
hilarybrown answered

It sounds like you're encountering an issue with your REST API query not filtering orders by the provided timestamp. Ensure your API endpoint is correctly implemented to handle query parameters. You might also want to check if your database query is accurately filtering results. Meanwhile, if you need a break from debugging, why not play Papa's Pizzeria for some fun? It’s a great way to unwind!

10 |2000

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

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