Hey,
I need help with querying all high-risk orders.
What are the differences between risk_level vs fraud_protection_level? and how orders are filtered by them.
I searched the docs and the forum. but did not find anything.
Thanks
Z
Hey,
I need help with querying all high-risk orders.
What are the differences between risk_level vs fraud_protection_level? and how orders are filtered by them.
I searched the docs and the forum. but did not find anything.
Thanks
Z
HI, there
you could filter them by fraud_protection_level and risk level in query param
Here is the query order Graphql
query GetHighRiskOrders {
orders(first: 10, query: "risk_level:high") {
edges {
node {
id
name
risk {
assessments {
riskLevel
}
}
}
}
}
}
you could refer to https://shopify.dev/docs/api/admin-graphql/2024-07/queries/orders
risk_level indicates the risk assessment level of an order. It is typically provided by risk assessment providers and can have values like HIGH, MEDIUM, LOW, NONE, and PENDING. while fraud_protection_level is related to Shopify’s fraud protection services, such as Shopify Protect. It indicates the level of fraud protection applied to an order
This is what I thought. But I’m not getting all orders with assessments.riskLevel = ["HIGH"] when using risk_level:high.
For example, this order will not return.
This is not a common record if you wanna query all orders with high and none
need adjust the GraphQL to like this
orders(first: 10, query: “risk_level:high AND risk_level:none”)