Posting multiple risks in one time

Shopify Partner
1 0 0


Is it possible to post many risk objects in one call? 

Do you have any plans to add such behavior If it isn't?


PS The most curious thing is that API endpoint looks like

POST /admin/api/2019-10/orders/#{order_id}/risks.json

but currently it returns an error if I'm trying to send an array.

Shopify Staff
Shopify Staff
587 72 130

Hey @asokolov,


Sending multiple order_risks in a single API call isn't currently supported. It's possible for an order to return multiple risks from the risks.json endpoint (which is why the resource name is pluralized), but only 1 risk can be created/updated per API POST/PUT. If you have a use-case that requires creating multiple order risks at once, kindly explain that in more detail. This will help me make a recommendation for other potential options you can use, or I can pass along feedback about your use-case to our developers if this sounds like something other merchants could take advantage of as well.

JB | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

Shopify Expert
808 67 188

@_JB  do you have any examples where an order would have multiple risks?

I couldn't find any information about this in the docs, and in my tests all the orders returned only 1 risk.

Founder of Speed Boostr (Shopify optimization and dev agency).
Creator of Theme Scientist (A/B testing app).
Creator of Order Automator (app that auto tags + fulfills orders, send emails).
Creator of Tip Jar (add a tip button to your store).
Creator of Shopify Analyzer (free performance analysis tool).
My team also builds custom apps and automated solutions.
Enjoy the adventure!