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
but currently it returns an error if I'm trying to send an array.
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
@_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.