-
-
Notifications
You must be signed in to change notification settings - Fork 312
Order Risks
Joshua Harms edited this page Dec 20, 2023
·
1 revision
The Order risk assessment is used to indicate to a merchant the fraud checks that have been done on an order.
var service = new OrderRiskService(myShopifyUrl, shopAccessToken);
var risk = await service.CreateAsync(orderId, new OrderRisk()
{
Message = "This looks risk!",
Score = (decimal)0.85,
Recommendation = "cancel",
Source = "External",
CauseCancel = false,
Display = true,
});
var service = new OrderRiskService(myShopifyUrl, shopAccessToken);
var risk = await service.GetAsync(orderId, riskId);
var service = new OrderRiskService(myShopifyUrl, shopAccessToken);
var risk = await service.UpdateAsync(orderId, riskId, new Risk()
{
Message = "An updated risk message"
});
var service = new OrderRiskService(myShopifyUrl, shopAccessToken);
var risks = await service.ListAsync(orderId);
var service = new OrderRiskService(myShopifyUrl, shopAccessToken);
await service.DeleteAsync(orderId, riskId);