Setting up Magento 2
Set it up in test mode first where Magento 2 offers one, and switch to live when a test has worked. Allow an hour, plus any time that Magento 2 needs to approve your account.
3 min read
What you need first
- A Magento 2.4 store on a secure address (https://), and an admin user allowed to manage integrations and the store configuration.
- Magento has no test system of its own. For Test, use a staging copy of your store; your hosting provider can usually make one.
Your keys and where to find them
| Field | Where it comes from |
|---|---|
| Store address | The address of your store, as customers type it, starting with https:// |
| Access token | In the Magento admin, open System > Extensions > Integrations and click Add New Integration. Give it a name, then on API choose Custom and tick Sales > Operations > Orders (with Actions > Ship), Catalog > Inventory > Products, and Stores > Inventory > Sources. Save, click Activate, then Allow: copy the Access Token. |
| Bearer tokens | From Magento 2.4.4 the token is refused until you open Stores > Configuration > Services > OAuth > Consumer Settings and set Allow OAuth Access Tokens to be used as standalone Bearer tokens to Yes. |
| Inventory source code | Leave default for a store with one source. With several sources, enter the code shown under Stores > Inventory > Sources for the source this stock belongs to. |


Set it up
- Open Settings›Integrations and choose the tab Add an integration.
- Find Magento 2 and click Add. Give the connection a name you will recognise, for example the name of your shop, and click Add.
- The connection page opens. Under Test, paste the test keys from your Magento 2 account and click Save test credentials.
- Switch the state to Test and click Test connection. A green sentence means Magento 2 accepted the keys.
- If Magento 2 asks for a notification address, copy the one shown under Notifications into your Magento 2 account (the table above says where).
- Try it with a test payment or a test order. When everything is right, enter the live keys under Live and click Go live.
Test and live
Every connection keeps two sets of keys: one for Test and one for Live. You can fill both at any time; the state decides which one is used.
In Test, the connection works with a copy you use for trying things out, so nothing your customers see changes.
Go live asks you to confirm. From then on the connection uses the live keys and everything it does is real. You can switch back to Test or to Inactive at any time; nothing is deleted.