AutomationFlows β€Ί E-commerce β€Ί Fix & Resend Guest Order Emails in Magento 2 via REST API

Fix & Resend Guest Order Emails in Magento 2 via REST API

ByKanaka Kishore Kandregula @kmyprojectsβœ“ on n8n.io

πŸ”„ Automates Magento 2 Admin Token Generation for secure REST API access. ✏️ Edits the email address on guest orders by updating both customeremail and billingaddress.email fields using the Magento 2 Order API. πŸ“§ Triggers the Magento 2 order confirmation email using the official…

Event triggerβ˜…β˜…β˜…β˜…β˜† complexity10 nodesForm TriggerHTTP RequestMySQL
E-commerce Trigger: Event Nodes: 10 Complexity: β˜…β˜…β˜…β˜…β˜† Added:

This workflow corresponds to n8n.io template #6707 β€” we link there as the canonical source.

This workflow follows the Form Trigger β†’ HTTP Request recipe pattern β€” see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide β†’

Download .json
{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "f51fc817-6fe6-47aa-9fb2-a74614417162",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -660,
        -180
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "cc5e2ab4-04a7-4e2c-acbe-1cfbb74f5c7c",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -740,
        -260
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9a28e493-cb2e-4a95-ac1a-925b80897035",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -20,
        -260
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "63d44194-73e7-43f5-9553-4ece56b67619",
      "name": "Get Order By Increment ID",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -440,
        -180
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "eae95104-f7ab-410e-a150-6fba641bc6aa",
      "name": "Checks If Order Exist",
      "type": "n8n-nodes-base.if",
      "position": [
        -220,
        -180
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "79745ed9-731d-404b-a487-25bd2a3afcca",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        0,
        -180
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "9b7ab232-4046-4acc-bbb0-3f001e05590b",
      "name": "Update Guest Order Email",
      "type": "n8n-nodes-base.mySql",
      "position": [
        220,
        -180
      ],
      "parameters": {},
      "typeVersion": 2.4
    },
    {
      "id": "0fff6518-a075-4deb-8d77-5c31b8d83917",
      "name": "resend order confirmation",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        660,
        -180
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "c228566c-7f60-4524-b626-e3d825cfc21c",
      "name": "Checks for Resend",
      "type": "n8n-nodes-base.if",
      "position": [
        440,
        -180
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "88bbb3e5-f5ec-43e4-aa4a-696dbee08aed",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -740,
        -440
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Code": {
      "main": [
        [
          {
            "node": "Update Guest Order Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Checks for Resend": {
      "main": [
        [
          {
            "node": "resend order confirmation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Get Order By Increment ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Checks If Order Exist": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Guest Order Email": {
      "main": [
        [
          {
            "node": "Checks for Resend",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Order By Increment ID": {
      "main": [
        [
          {
            "node": "Checks If Order Exist",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

πŸ”„ Automates Magento 2 Admin Token Generation for secure REST API access. ✏️ Edits the email address on guest orders by updating both customeremail and billingaddress.email fields using the Magento 2 Order API. πŸ“§ Triggers the Magento 2 order confirmation email using the official…

Source: https://n8n.io/workflows/6707/ β€” original creator credit. Request a take-down β†’

More E-commerce workflows β†’ Β· Browse all categories β†’

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

E-commerce

This n8n workflow automatically sends WhatsApp notifications to customers when their Shopify orders are fulfilled. It extracts order details, validates customer phone numbers for WhatsApp compatibilit

HTTP Request, Shopify Trigger, Google Sheets
E-commerce

Filter Schedule. Uses manualTrigger, stickyNote, splitInBatches, scheduleTrigger. Event-driven trigger; 13 nodes.

HTTP Request, Shopify
E-commerce

This workflow automates the action in Shopify for each order, ensuring a seamless fulfillment process without manual intervention.

HTTP Request, Shopify
E-commerce

The workflow triggers on a new checkout event from Shopify and extracts all relevant cart data. It filters carts based on value and age to isolate qualified abandoned checkouts. For each qualified car

Google Sheets, Shopify Trigger, Gmail +2
E-commerce

This n8n workflow integrates Shopify order management with Telegram, allowing you to query open orders and order details directly through Telegram chat commands. It provides an interactive way to moni

Telegram Trigger, Shopify, HTTP Request +1