7c468e2219566f2d34a7154f8d3c028d170b3ae165814df2c2e6bfa665c0b322:{"__metadata":{"version":0.1},"root":{"steps":[{"step_id":"01KFF8N95M8M1F920BDHBXW8QG","step_position":[60,-240],"config_field_values":[],"task_id":"shopify::admin::order_created","task_version":"0.1","task_type":"TRIGGER","description":null,"note":null,"name":null},{"step_id":"01KFF8NHKP5QTT6V508NQDCHX7","step_position":[60,-40],"config_field_values":[{"config_field_id":"wait_duration","value":"{\"amount\":\"5\",\"unit\":\"seconds\"}"}],"task_id":"shopify::flow::wait","task_version":"0.1","task_type":"WAIT","description":"Prevents the workflow from running before Joy has fully synced the customer.","note":null,"name":null},{"step_id":"01KSH06QEFKNRT09X4XN2B8W01","step_position":[60,120],"config_field_values":[{"config_field_id":"customer_id","value":"{\"value\":\"\",\"default_value\":\"order.customer.id\"}"},{"config_field_id":"order_payload","value":"{\n \"trigger\": \"order_created\",\n \"id\": {{ order.id | json }},\n \"name\": {{ order.name | json }},\n \"order_number\": {{ order.name | json }},\n \"total_price\": {{ order.totalPrice }},\n \"created_at\": {{ order.createdAt | json }},\n \"source_name\": {{ order.sourceName | json }},\n \"customer_email\": {{ order.customer.email | json }},\n \"customer_first_name\": {{ order.customer.firstName | json }},\n \"customer_last_name\": {{ order.customer.lastName | json }},\n \"subtotal_price\": {{ order.subtotalPrice }},\n \"line_items\": [\n {% for item in order.lineItems %}\n {\n \"line_item_id\": {{ item.id | json }},\n \"title\": {{ item.title | json }},\n \"quantity\": {{ item.quantity | default: 1 }},\n \"price\": {{ item.originalUnitPrice }},\n \"selling_plan_id\": {{ item.sellingPlan.sellingPlanId | default: \"\" | json }},\n \"selling_plan_name\": {{ item.sellingPlan.name | default: \"\" | json }},\n \"contract_id\": {{ item.contract.id | default: \"\" | json }},\n \"contract_status\": {{ item.contract.status | default: \"\" | json }},\n \"contract_next_billing_date\": {{ item.contract.nextBillingDate | default: \"\" | json }},\n \"billing_interval\": {{ item.contract.billingPolicy.interval | default: \"\" | json }},\n \"billing_interval_count\": {{ item.contract.billingPolicy.intervalCount | default: 0 }},\n \"delivery_interval\": {{ item.contract.deliveryPolicy.interval | default: \"\" | json }},\n \"delivery_interval_count\": {{ item.contract.deliveryPolicy.intervalCount | default: 0 }}\n }{% unless forloop.last %},{% endunless %}\n {% endfor %}\n ]\n}"}],"task_id":"019c9d3f-4490-769d-a0bf-53b479d3fc97","task_version":"1.0","task_type":"ACTION","description":null,"note":null,"name":null}],"links":[{"from_step_id":"01KFF8N95M8M1F920BDHBXW8QG","from_port_id":"output","to_step_id":"01KFF8NHKP5QTT6V508NQDCHX7","to_port_id":"input"},{"from_step_id":"01KFF8NHKP5QTT6V508NQDCHX7","from_port_id":"output","to_step_id":"01KSH06QEFKNRT09X4XN2B8W01","to_port_id":"input"}],"patched_fields":[],"variables":[],"note":null,"vertical_layout_enabled":true,"workflow_name":"Joy Loyalty - Subscription Order Data Sync"}}