Resources · n8n integration

Magento 2 n8n integrationAutomate Magento 2 with n8n.

Your store data stops living only inside the admin panel. The Magento 2 n8n integration exposes 15 operations across 4 resources: customers, invoices, orders and products. The node has no trigger of its own, so another node starts the workflow and hands it the data.

Verified Trustpilot reviews · AI, automation & growth agency

Why automate

What does the Magento 2 n8n integration actually do?

The Magento 2 node lets an n8n workflow read and write your store through the Magento API, the programming interface your store already exposes, using the access token you would otherwise use by hand. It groups 15 operations into 4 resources: Customer, Invoice, Order and Product. A single workflow can fetch an order, raise an invoice against it, mark it shipped, and keep the product catalog in step with another system.

Start with the orders, because that is where the typing hurts most. A Schedule Trigger fires every morning, order.getAll pulls the recent orders, and invoice.create raises an invoice for each Order ID it finds. When the warehouse confirms, order.ship closes the loop on the same order. The finance sheet in Google Sheets gets a row per run, and nobody retypes an order number.

Second pattern: a customer list that follows the buyer. customer.getAll reads the store's accounts with Return All switched on, and each record can be pushed into HubSpot or Pipedrive. It works in the other direction too: customer.create writes a buyer into Magento from a form, and customer.update fixes a misspelled last name without anyone opening the admin.

Third pattern: one catalog, two storefronts. product.getAll lists what the store sells, product.update pushes a new Price or Status onto a SKU, and product.create adds the reference that so far only exists in a spreadsheet. Teams running Magento next to WooCommerce lean on this to keep one source of truth instead of two.

The node speaks to the Customer, Invoice, Order and Product resources listed below. For any other Magento endpoint, the HTTP Request node calls the API directly and reuses the very same credential through predefined authentication, so nothing needs re-authorizing. One thing to plan for before you build: this node ships without a trigger, so a Schedule Trigger (a clock that fires at a fixed interval) or a Webhook node (a URL another service calls when something happens on its side) starts the workflow and feeds Magento its input.

Still weighing platforms? The n8n review digs into hosting and the cost model, and the n8n training walks through building workflows like these from an empty canvas.

Connect

How do you connect Magento 2 to n8n?

  1. 01

    Allow standalone bearer tokens

    In the Magento admin, open Stores > Configuration > Services > OAuth > Consumer Settings and set Allow OAuth Access Tokens to be used as standalone Bearer tokens to Yes. The same switch flips from the command line with bin/magento config:set oauth/consumer/enable_integration_as_bearer 1. The n8n credential needs this step until it moves to OAuth.

  2. 02

    Create the integration and copy the token

    Still in the admin, head to System > Extensions > Integrations and add a new integration. On its API tab, pick the Magento resources n8n is allowed to reach and nothing beyond them. Back on the Integrations list, hit Activate, then Allow: Magento displays the access token, and that screen is your one chance to copy it.

  3. 03

    Fill in the credential inside n8n

    In n8n, open the Credentials menu and create a Magento 2 credential. It asks for two things: a Host, the address of your store, and the Access Token you just copied. A credential is stored once and then picked from a dropdown by every node that needs it, so the second workflow never asks you to paste that token again.

Actions

What the Magento 2 node does, operation by operation

The Magento 2 node exposes 15 operations across 4 resources. For each one: the node as you configure it in n8n, the required fields, and our field notes.

Resources × operations matrix
ResourceCreateGetGet ManyUpdateDeleteCancelShip
Customer✓✓✓✓✓
Invoice✓
Order✓✓✓✓
Product✓✓✓✓✓

Customer

5 operations
01

Create a customer

customer.create

What you see in n8n

Notes & use cases

Registers a new customer account in the store and hands the created record to the next node.

Key parameters

  • Email: the address the account is keyed on, in the name@email.com shape, often {{ $json.field }} from the form or CRM node before it.
  • First Name and Last Name: both required, so a single full-name input has to be split upstream.
  • Additional Fields: 18 optional entries, among them Group Name or ID, Is Subscribed and Addresses.
Use cases
a signup form creates the buyer account before the first order is ever placed.
02

Delete a customer

customer.delete

What you see in n8n

Notes & use cases

Removes one customer account from Magento, one record per execution.

Key parameters

  • Customer ID: the store's internal identifier for the account, not the email address; a name typed here will not resolve.
Use cases
a deletion request lands in the helpdesk queue, the workflow looks the account up, pauses on a human approval step, and only then runs the delete.
03

Get a customer

customer.get

What you see in n8n

Notes & use cases

Reads a single customer account and passes the record along for the rest of the workflow to use.

Key parameters

  • Customer ID: the account to read; if your workflow only knows an email address, resolve it first with the get-many operation.
Use cases
before a support reply goes out, the workflow pulls the account so the message carries the right name and group.
04

Get many customers

customer.getAll

What you see in n8n

Notes & use cases

Lists customer accounts in bulk, one output item per account.

Key parameters

  • Return All: on, n8n walks every page of the customer list; off, Limit caps how many accounts come back in a run.
  • Filter: none takes everyone, manual builds conditions in the interface, json reads them from Filters (JSON).
  • Must Match: allFilters demands every condition, anyFilter is satisfied by one.
Use cases
a monthly export of the customer base into a reporting sheet.
05

Update a customer

customer.update

What you see in n8n

Notes & use cases

Modifies an existing customer account with the values you hand it.

Key parameters

  • Customer ID: names the account to modify, and comes from the same place as it does for the read operation.
  • Email, First Name, Last Name: the identity fields offered directly on the operation, alongside Website Name or ID.
  • Update Fields: 18 more entries, including Date of Birth, Gender and Default Shipping Address ID.
Use cases
a corrected last name captured by support is written back to the store record.

Invoice

1 operation
06

Create an invoice

invoice.create

What you see in n8n

Notes & use cases

Turns an existing order into an invoice inside Magento.

Key parameters

  • Order ID: identifies the order being invoiced, usually carried over from an earlier order step as {{ $json.field }}. It is the only field the operation asks for, which keeps the node easy to drop at the end of an existing branch.
Use cases
once the payment provider confirms the charge, the workflow raises the matching invoice and drops the reference into the accounting channel, so nobody bills an order by hand twice.

Order

4 operations
07

Cancel an order

order.cancel

What you see in n8n

Notes & use cases

Cancels the order you point it at, straight from a workflow.

Key parameters

  • Order ID: the single required field, so the cancellation applies to exactly one order per item that reaches the node.
Use cases
a duplicate order flagged during a review gets cancelled in the same run that raised the alert, with no trip through the admin. Pair it with a human approval step when the workflow decides on its own which orders qualify.
08

Get an order

order.get

What you see in n8n

Notes & use cases

Fetches a single order with its details so the next nodes have something to work from.

Key parameters

  • Order ID: required, and this is the Magento identifier rather than any reference your own tools print on a document.
Use cases
a buyer asks where things stand, and an assistant pulls the order record before drafting the reply. The same step is the sensible first node before invoicing or shipping, since it confirms the order exists.
09

Get many orders

order.getAll

What you see in n8n

Notes & use cases

Returns orders as a list, ready to loop over item by item.

Key parameters

  • Return All: left off, Limit decides how many orders n8n brings back per execution.
  • Filters: each condition pairs a Field, a Condition Type such as gteq or like, and a Value.
  • Sort: an entry under Options where the sorting rule is added.
Use cases
a digest of the previous day's orders, posted to the ops channel every morning.
10

Ship an order

order.ship

What you see in n8n

Notes & use cases

Marks the order as shipped on the Magento side.

Key parameters

  • Order ID: the order to ship; feed it one item per order if a run handles several at once.
Use cases
the carrier's confirmation arrives by email, a parsing step extracts the order reference, and the shipping step runs without anyone touching the back office. Chained after Create an invoice, it closes an order in a single execution.

Product

5 operations
11

Create a product

product.create

What you see in n8n

Notes & use cases

Adds a new product to the catalog.

Key parameters

  • SKU: the stock-keeping unit, the product's unique reference in the store.
  • Name: the second required field, the product name itself.
  • Attribute Set Name or ID and Price: offered next to the required pair, the attribute set picked from the list or given as an ID through an expression.
  • Additional Fields: 7 entries, among them Status (1 Enabled, 2 Disabled), Visibility and Weight (LBS).
Use cases
a supplier file is read line by line and each new reference becomes a product.
12

Delete a product

product.delete

What you see in n8n

Notes & use cases

Deletes a product from the catalog, addressed by its reference rather than an internal number.

Key parameters

  • SKU: the stock-keeping unit of the product to remove, which makes this operation easy to drive from a plain list of references.
Use cases
a discontinued range is listed in a sheet, and one scheduled run clears every one of those references from the store.
13

Get a product

product.get

What you see in n8n

Notes & use cases

Pulls one product record out of the catalog.

Key parameters

  • SKU: the reference to look up, typically read from the item flowing in, as in {{ $json.field }}. Unlike the customer operations, this one runs on the SKU you already use, not an ID you would have to look up first, so a reference list is enough to drive it.
Use cases
an internal tool sends a reference and gets the store's version of that product back, which makes it the natural check before an update writes anything.
14

Get many products

product.getAll

What you see in n8n

Notes & use cases

Walks the catalog and returns products as separate items.

Key parameters

  • Return All: switched on, n8n keeps requesting pages until the catalog is exhausted, which is what a full export needs.
  • Filter on manual: Filters holds the conditions and Must Match says whether all of them or just one has to be true.
  • Value: with in or nin, it accepts a comma-separated list.
Use cases
a nightly catalog snapshot for the merchandising team.
15

Update a product

product.update

What you see in n8n

Notes & use cases

Changes a product already in the catalog, found by its reference.

Key parameters

  • SKU: the only required field here, which means the reference has to be right before anything else matters.
  • Update Fields: 7 entries covering Price, Name, Status, Visibility, Type Name or ID, Weight (LBS) and Attribute Set Name or ID.
Use cases
a pricing sheet stays the source of truth, and a scheduled run pushes each new Price onto the matching SKU.
Need help

Need help automating Magento 2 with n8n?

A person reads every message.

FAQ

Magento 2 and n8n, the questions that come next

01Is the Magento 2 n8n integration free?
Yes on the n8n side. The Magento 2 node ships with n8n, so there is nothing to install and no extra cost, whether you run n8n Cloud or a self-hosted instance under the Community Edition and its Sustainable Use licence. A workflow built on one runs the same way on the other. What your Magento store itself costs is a separate question and depends on your own setup, not on n8n. The only thing you need before the first execution is an access token from your store, and creating that token costs nothing either.
02What credentials do you need for the Magento 2 node?
One credential, built on an API access token. It takes two values: a Host, which is the address of your Magento store, and an Access Token generated from the admin under System, Extensions, Integrations. When you create that integration, the API tab is where you pick which Magento resources n8n is allowed to reach, so you can keep the scope tight. One prerequisite is easy to miss: the store has to allow OAuth access tokens to be used as standalone bearer tokens, a setting under Stores, Configuration, Services, OAuth, Consumer Settings. Once saved in n8n, the credential is reusable across every workflow.
03What are the limits of the Magento 2 node in n8n?
The node works across four resources: Customer, Invoice, Order and Product, for 15 operations in total. When an operation you need is missing from the dedicated node, the HTTP Request node calls any endpoint of the Magento API directly and reuses the same credential through predefined authentication, so you stay on one connection. On the list operations, watch the pagination: with Return All switched off, Limit caps the number of items returned, and a report built on a capped run will look incomplete. Switch Return All on when you want the whole set, and filter instead of truncating.
04Does Magento 2 trigger an n8n workflow in real time?
Not by itself. This tool has no trigger node in n8n, so a workflow around it starts from something else. Three usual options. A Schedule Trigger runs at a fixed interval, which fits recurring jobs such as reading the day's orders or refreshing the catalog. A Webhook node gives you a URL that another service calls when something happens on its side, which is the closest thing to instant. Or the trigger of another tool starts the run, and Magento becomes the action at the end. Pick the interval based on how fresh the data really needs to be.
05n8n or Make for Magento 2?
It comes down to hosting and cost model rather than features. Make is a hosted automation platform with no self-hosting option, billed per operation, with a visual builder many teams find quick to pick up. n8n runs on n8n Cloud or on your own server through Docker or npm, which matters when order and customer data should stay on infrastructure you control. The per-operation billing is the other deciding factor: a workflow that loops over a full catalog burns operations fast. Both connect to Magento. Choose on where the data lives and how the invoice is calculated.