Skip to main content

Fix & resend guest order emails in Magento 2 via REST API

Workflow preview

Workflow preview
100%
Fix & resend guest order emails in Magento 2 via REST API preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This powerful n8n automation workflow is built for Magento 2 store owners and support teams who need to quickly correct guest customer email addresses and automatically resend order confirmation em...

Best for

  • CRM automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.formtrigger, n8n-nodes-base.stickynote, n8n-nodes-base.httprequest, n8n-nodes-base.if, n8n-nodes-base.code, n8n-nodes-base.mysql

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Kanaka Kishore Kandregula.

Original n8n.io source

1.1 Workflow description

Title
Fix & resend guest order emails in Magento 2 via REST API
Workflow name
Fix & resend guest order emails in Magento 2 via REST API

This powerful n8n automation workflow is built for Magento 2 store owners and support teams who need to quickly correct guest customer email addresses and automatically resend order confirmation emails β€” all without logging into the Magento Admin Panel.

🧩 What This Workflow Does:
  • πŸ”„ Automates Magento 2 Admin Token Generation for secure REST API access.
  • ✏️ Edits the email address on guest orders by updating both customer_email and billing_address.email fields using the Magento 2 Order API.
  • πŸ“§ Triggers the Magento 2 order confirmation email using the official /V1/orders/:id/emails endpoint.
  • 🧠 Can be triggered manually or automatically from a form, CRM, failed email webhook, or helpdesk system.
  • πŸ“ Logs actions and results to keep track of which emails were updated and which confirmations were resent.
βœ… Why Use This n8n Workflow?
  • No more manual edits via Admin Panel.
  • Ideal for support teams fixing typos like @gamil.com or @yahho.com.
  • Seamless experience for customers who never received their order confirmation.
  • Easily extendable β€” connect to your existing n8n ecosystem (forms, Slack, HelpDesk, Airtable, etc.)
πŸ’Ό Use Cases
  • πŸ”§ A customer checks out as a guest and provides the wrong email β€” this automation fixes it in seconds.
  • πŸ“¦ Support team gets a ticket: β€œI didn’t receive my confirmation email” β€” plug in the new address and let the workflow handle the rest.
  • πŸ€– Ecommerce operators who want to automate email recovery and cleanup workflows with precision and audit logs.
πŸ”‘ Credentials Used
  • HTTP Request – For calling Magento 2 REST API endpoints.
  • Magento 2 Admin API Token – Acquired via /V1/integration/admin/token using admin username/password.
🏷️ Tags

#n8n #Magento2 #AdobeCommerce #RESTAPI #Automation #Ecommerce #EmailFix #GuestCheckout #OrderMan

πŸ“‚ Category

Ecommerce Automation / Magento 2 / Developer Tools / Support Ops

πŸ’¬ Need Help?

πŸ’‘ Having trouble setting it up or want to customize this workflow further? Feel free to reach out β€” I’m happy to help with setup, customization, or Magento 2 API integration issues.

Contact: Author

πŸ‘€ Author

Kanaka Kishore Kandregula Certified Magento 2 Developer | N8N Engineer https://gravatar.com/kmyprojects https://www.linkedin.com/in/kanakakishore

Thank you

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - On form submission

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.2

Block 2 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Get Order By Increment ID

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 5 - Checks If Order Exist

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 6 - Code

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 7 - Update Guest Order Email

Type / Role
n8n-nodes-base.mySql - mySql
Config choices
Version 2.4

Block 8 - resend order confirmation

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 9 - Checks for Resend

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 10 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Fix & resend guest order emails in Magento 2 via REST API
Complexity intermediate
Nodes 10
Categories CRM
Author Kanaka Kishore Kandregula
Published 30 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6707/6707.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Fix & resend guest order emails in Magento 2 via REST API do?

This powerful n8n automation workflow is built for Magento 2 store owners and support teams who need to quickly correct guest customer email addresses and automatically resend order confirmation em...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your CRM use case.