Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

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

Solved

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

pc_propero98
Shopify Partner
16 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
339 26 109

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
339 26 109

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