question

richa avatar image
richa asked viratkohli33 sent

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

Orders 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 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 ·

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