Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
Hi,
Could you please suggest me a api to fetch suspected orders for a specific time interval.
Thanks,
Bavithra
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!
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