Solved

Risk Level from "/admin/api/2023-07/orders/450789469/risks.json" endpoint

pc_propero98
Shopify Partner
10 0 0

I downloaded the order details from my store in a CSV file. There is a column named 'Risk Level', with values 'Low' and 'High'. When the risk level is 'Low', is the response from the endpoint '/admin/api/2023-07/orders/450789469/risks.json' blank for the same order ID?

Another question is: How can I determine that the risk level value will be 'High' from the response of the '/admin/api/2023-07/orders/450789469/risks.json' endpoint?

Accepted Solution (1)

Jonathan-HA
Shopify Partner
320 25 100

This is an accepted solution.

Hey there,

 

On the Order Risk API, there's a field called recommendation where you can map the Low/Medium/High risk levels to: https://shopify.dev/docs/api/admin-rest/2023-04/resources/order-risk

 

JonathanHA_0-1692990672168.png

 

So basically:

 

accept -> Low

investigate -> Medium

cancel -> High

 

Co-Founder / Developer at Highview Apps
Our Shopify Apps: EZ Exporter | EZ Inventory | EZ Importer | EZ Notify | EZ Fulfill

View solution in original post

Reply 1 (1)

Jonathan-HA
Shopify Partner
320 25 100

This is an accepted solution.

Hey there,

 

On the Order Risk API, there's a field called recommendation where you can map the Low/Medium/High risk levels to: https://shopify.dev/docs/api/admin-rest/2023-04/resources/order-risk

 

JonathanHA_0-1692990672168.png

 

So basically:

 

accept -> Low

investigate -> Medium

cancel -> High

 

Co-Founder / Developer at Highview Apps
Our Shopify Apps: EZ Exporter | EZ Inventory | EZ Importer | EZ Notify | EZ Fulfill