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

Go to Workflow
0 views
Built by Kanaka Kishore Kandregula Kanaka Kishore Kandregula
Created on July 30, 2025

Description

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

Nodes Used (3)

Code
n8n-nodes-base.code
HTTP Request
n8n-nodes-base.httpRequest
MySQL
n8n-nodes-base.mySql