I definitely have at least 1 order. If I run
curl --request GET \--url 'https://apisandbox.dev.clover.com/v3/merchants/317MQ2A9MPJM1/orders?filter=id=759SKSX5K4GBY&access_token=fd872617-abd1-***' \--header 'accept: application/json'
I get it
{"elements": [ {"href": "https://sandbox.dev.clover.com/v3/merchants/317MQ2A9MPJM1/orders/759SKSX5K4GBY", "id": "759SKSX5K4GBY", "currency": "USD", "employee": {"id": "DSV39EAZYBDJC"}, "taxRemoved": false, "isVat": false, "manualTransaction": false, "groupLineItems": true, "testMode": false, "createdTime": 1576856714000, "clientCreatedTime": 1576856714000, "modifiedTime": 1576856713000}], "href": "http://apisandbox.dev.clover.com/v3/merchants/317MQ2A9MPJM1/orders?filter=id%3D759SKSX5K4GBY&filter=stateIS%20NOT%20NULL&limit=100"}
I know the other properties of this order because I created it manually (via API). But any other filter returns empty
curl --request GET \--url 'https://apisandbox.dev.clover.com/v3/merchants/317MQ2A9MPJM1/orders?filter=cardTransaction.last4=1234&access_token=fd872617-abd1-****' \--header 'accept: application/json'
{"elements": [ ], "href": "http://apisandbox.dev.clover.com/v3/merchants/317MQ2A9MPJM1/orders?filter=cardTransaction.last4%3D1234&filter=stateIS%20NOT%20NULL&limit=100"}%
And even with total >= 1
curl --request GET \--url 'https://apisandbox.dev.clover.com/v3/merchants/317MQ2A9MPJM1/orders?filter=total>=1&access_token=fd872617-abd1-***' \--header 'accept: application/json'
it still gives empty result (I created the order with total=7000). What am I doing wrong?