Test order in development shop with risk analysis (API)

webtek
Tourist
4 0 2

Hi,

 

I am using the "Bogus Gateway" feature to generate fake order in my development shop so we can test our backend. The problem is that the orders passed with the Bogus Gateway method has no Risk Analysis. The array returned by the API is empty. So how can we place a test order that doesn't return an empty risk analysis?

Here is what is returned by the API:

{
"risks": []
}

 

Reply 1 (1)
joemalin
New Member
1 0 0

Hello,

I have the same question. After putting through any type of order, I receive an empty array when querying OrderRisk for that Order. Is this the expected response for an Order with no risk? If so, how would one trigger an Order with an associated OrderRisk?

I am using the Shopify API and querying the OrderRisk endpoint after recieving a notification from the OrderUpdate webhook.