Re: Suspected orders

Suspected orders

Bavithra
Shopify Partner
6 0 1

Hi,

 

 

Could you please suggest me a api to fetch suspected orders for a specific time interval. 

 

Thanks,

Bavithra

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1453 238 498

Hi @Bavithra 👋

 

The `orders` query filter supports both `risk_level` and `created_at` params, so you should be able to use something like the below:

 

{
    orders (first:10, reverse:true, query: "risk_level:high AND created_at:>'2023-01-01' AND created_at:<'2023-03-01' "){
        nodes {
            id
            riskLevel
            createdAt
        }
    }
}

 

Hope that helps!

@Umiko 

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog