question

klatimer avatar image
klatimer asked chetan-purohit commented

Multiple parameters in REST request

I am trying to get a list of orders with their line items within a certain time period, eg the past day. When I submit a request with the REST api using curl, it works with both of the following URLs:

1: https://api.clover.com/v3/merchants/[... 2: https://api.clover.com/v3/merchants/[...

However, when I try with

3: https://api.clover.com/v3/merchants/[...

I get the following error message:

'{"message":"401 Unauthorized"}No JSON object could be detected.

I am copy and pasting the request parameters from the REST API site, so I'm not sure what the problem could be.

Thanks

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.

chetan-purohit avatar image chetan-purohit commented ·

Hi, can you please tell me how to apply multiple filters in parameters for any GET call?

0 Likes 0 ·

1 Answer

mohammed avatar image
mohammed answered

The problem is in your token,

This url work perfect for me

https://api.clover.com/v3/merchants/ {MID} /orders?filter=createdTime%3E1459843200000&expand=lineItems&accesstoken={accesstoken}

10 |2000

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