AIE5-MidTerm / data /flow /projects /Fraud-protection-for-gift-order.json
thomfoolery's picture
first attempt
465a7e3
{
"f05032018172f8f0dbe0b75152de0622e23ce6b10b6821a203bc2ef19aecbc42": {
"__metadata": { "version": 0.1 },
"root": {
"steps": [
{
"step_id": "33bd9630-3d9c-11ef-a96f-2dc942027bf2",
"step_position": [900, 1100],
"config_field_values": [],
"task_id": "dca67f51-b1b3-4c3e-b3cb-c38f32edf26d",
"task_version": "1.0",
"task_type": "TRIGGER",
"description": null,
"note": null,
"name": null
},
{
"step_id": "3b3a3e40-3d9c-11ef-a96f-2dc942027bf2",
"step_position": [1260, 1080],
"config_field_values": [
{ "config_field_id": "order_id", "value": "order.id" },
{ "config_field_id": "reason", "value": "inventory" },
{ "config_field_id": "email", "value": "false" },
{ "config_field_id": "refund_items", "value": "false" },
{ "config_field_id": "refund_shipping", "value": "false" },
{ "config_field_id": "restock", "value": "true" }
],
"task_id": "shopify::admin::cancel_order",
"task_version": "0.1",
"task_type": "ACTION",
"description": "Cancel the order with high potential of fraud order",
"note": null,
"name": null
},
{
"step_id": "5f723f10-3d9c-11ef-a96f-2dc942027bf2",
"step_position": [1620, 1080],
"config_field_values": [
{ "config_field_id": "customer_id", "value": "order.customer.id" },
{ "config_field_id": "tags", "value": "[\"fraud\"]" }
],
"task_id": "shopify::admin::add_customer_tags",
"task_version": "0.1",
"task_type": "ACTION",
"description": "Add tag \"fraud\" to the customer. This tag can be used with other flows to block those customers.",
"note": null,
"name": null
},
{
"step_id": "e4e18440-e8a4-11ef-b3d8-7ffa6d7e8da1",
"step_position": [1980, 1080],
"config_field_values": [
{ "config_field_id": "condition", "value": "" }
],
"task_id": "shopify::flow::condition",
"task_version": "0.1",
"task_type": "CONDITION",
"description": null,
"note": null,
"name": null
}
],
"links": [
{
"from_step_id": "33bd9630-3d9c-11ef-a96f-2dc942027bf2",
"from_port_id": "output",
"to_step_id": "3b3a3e40-3d9c-11ef-a96f-2dc942027bf2",
"to_port_id": "input"
},
{
"from_step_id": "3b3a3e40-3d9c-11ef-a96f-2dc942027bf2",
"from_port_id": "output",
"to_step_id": "5f723f10-3d9c-11ef-a96f-2dc942027bf2",
"to_port_id": "input"
},
{
"from_step_id": "5f723f10-3d9c-11ef-a96f-2dc942027bf2",
"from_port_id": "output",
"to_step_id": "e4e18440-e8a4-11ef-b3d8-7ffa6d7e8da1",
"to_port_id": "input"
}
],
"patched_fields": [],
"workflow_name": "Fraud protection for gift order"
}
}
}