Skip to content

Magento + Fortnox

Everything you need to connect Magento and Fortnox: how to connect, which data moves, which settings there are and what to do when something goes wrong.

  • 6 data flows
On this page1. Getting started

1. Getting started

Prepare both systems first, then connect them in Junipeer.

  1. about 10 minutes

    Prepare Magento

    1. Open the integrations page
    2. Create a new integration
    3. Grant API permissions
    4. Save the integration
    5. Activate the integration
    6. Copy all four credentials
    7. Paste the credentials into Junipeer
    Show with screenshots (7)
  2. Prepare Fortnox

    1. Create an integration user
    2. Add currencies and enable automatic rate updates
    3. Configure VAT rates
    4. Set up EU OSS sales accounts
    5. Add payment method accounts
    6. Add required SKUs
    7. Connect Fortnox in the Junipeer platform
    Full instructions
  3. Connect and test

    Enter the details in Junipeer, switch on the flows you need and test with one order before you go live.

    Getting started with Junipeer

Connect both systems

Junipeer needs a connection to each system. When both are connected, the first order can go through.

2. How the data flows

The arrow shows which way the data goes. The bubble shows when it syncs.

  • Orders
  • Products
  • Stock levels
  • Customers
  • Invoices
  • Credit notes

3. Settings

The settings you see in Junipeer, in plain words. Open one to read more. The key is the technical name.

You don't need to read them all

In Junipeer every setting has a ? that opens the same explanation next to the form, right when you need it. With the Junipeer MCP your AI assistant can also propose the settings from your own data.

How the Junipeer MCP works

Settings for Magento (41)

SettingWhat it controlsKey
Attribute to set external (Fortnox) customer numberEnter the Magento customer attribute where Junipeer should save the customer's Fortnox customer number , when customers are sent to Magento.magento_attribute_external_customer_no
Capture InvoiceDecide whether the invoice should be captured when it is created in Magento.magento_capture_invoice
Create Invoice in MagentoDecide whether an invoice should be created in Magento when the order is invoiced in Fortnox.magento_create_invoice
Create Shipment in MagentoDecide whether a shipment should be created in Magento when the order is invoiced in Fortnox.magento_create_shipment
Create productsDecide whether products that don't exist in Magento yet should be created there.magento_create_articles
Customer Group - Pricelist mapConnect Magento customer groups with price lists from your ERP.magento_customer_group_pricelist_map
Default Attribute SetChoose the Magento attribute set that new products get when Junipeer creates them.magento_default_attribute_set_id
Default CategoryChoose the Magento category that new products are added to when Junipeer creates them.magento_default_category_id
Show all 41 settings
SettingWhat it controlsKey
Default Company Customer GroupChoose the customer group that new company customers get when Junipeer creates them in Magento.magento_default_company_customer_group
Default Customer GroupChoose the customer group that new customers get when Junipeer creates them in Magento.magento_default_customer_group
Default Magento Store ViewEnter the code of the store view that Junipeer uses when it talks to Magento.magento_store_view
Default Store pricelistChoose the price list from your ERP that gives the base prices for the Default store in Magento.magento_store_pricelist_default
Default WebsiteChoose the Magento website that Junipeer uses by default when it sends customers and products to Magento.magento_default_website_id
Define attributesTell Junipeer which Magento attribute to use for some product details, such as description, EAN and unit.magento_product_attribute_keys
Disable new products in MagentoDecide whether new products that Junipeer creates in Magento should be disabled.magento_disable_new_products
Exclude Orders created before this dateChoose a date to skip older orders.stdintegration_filter_magento_order_created_date
Fields to updateIf products in Magento are updated, choose which fields may be updated.magento_product_fields_to_update
Ignore children (with price = 0) for fixed price bundle productDecide what happens to the products inside a fixed price bundle when orders and refunds are synced.magento_ignore_children_when_not_children_calculated
Language - Store mapChoose which Magento store each extra language should be taken from when products are sent from Magento.magento_language_store_map
Magento Access TokenEnter the access token that lets Junipeer connect to your Magento.magento_access_token
Magento Article Weight UnitChoose the weight unit you use in Magento, if it is different from the other system.magento_article_weight_unit
Magento Catalog Price ScopeChoose the same price scope as in Magento.magento_price_scope
Magento Delivery Date attributeIf your Magento orders have a delivery date , enter the name of the (extension) attribute that holds it.magento_order_delivery_date_attribute
Magento External Customer NrIf you keep an external customer number on your Magento customers, enter the name of the (extension) attribute that holds it.magento_external_customer_nr
Magento Order StatusesChoose which order statuses an order must have in Magento before it is synced.magento_sync_order_with_statuses
Magento REST API UrlEnter the full address to your Magento API.magento_api_url
Magento VAT Calculation ModeSome ERPs also need the VAT percent when products are sent to them.magento_vat_calculation_mode
Magento VAT percentEnter the VAT percent to use for products, for example 25 .magento_vat_fix_percent
Magento shipping method attributeChoose which value on the Magento order is used as the order's shipping code , when orders and refunds are synced.magento_shipping_method_attribute
Notify Customer on Invoice creationDecide whether Magento should notify the customer when the invoice is created.magento_invoice_notify
Notify Customer on Shipment creationDecide whether Magento should notify the customer when the shipment is created.magento_shipment_notify
Price Incl TaxesTell Junipeer whether the prices in your Magento include VAT (taxes).magento_use_price_with_vat
Remove Reference PrefixDecide whether the order's payment reference should be sent without its prefix.magento_remove_reference_prefix
Remove incompatible (advanced) pricesMagento can't have an advanced price for a customer group on All Websites and on a specific website at the same time.magento_remove_incompatible_prices
Replace advanced/tier pricesChoose how advanced (tier) prices are updated in Magento.magento_replace_advanced_prices
Set Out Of StockDecide whether a product should be marked as out of stock in Magento when its quantity is 0.magento_set_out_of_stock
Store - Currency Price mapChoose which Fortnox price currency each Magento store should get its product price from.magento_store_currency_price_map
Store - Pricelist mapConnect each Magento website with a price list from your ERP.magento_store_pricelist_map
Update / Load updated productsThis setting works in both directions, depending on which way products are synced: Products sent to Magento – decides whether products that already exist in Magento are updated.magento_update_articles
Update customersDecide whether customers that already exist in Magento should be updated when customers are sent to Magento.magento_update_customers
Website/Customer Group - Pricelist mapConnect Magento customer groups on a specific website with price lists from your ERP.magento_website_customer_group_pricelist_map

Settings for Fortnox (89)

SettingWhat it controlsKey
Account Number for shippingEnter the account number that shipping is booked on, on orders and invoices in Fortnox.shipping_account_nr
Automatically mark Invoices as PaidHow payouts work in Junipeer Please make sure to read this Payout GUIDE .fortnox_pay_invoice
Account Bank CostsThe Fortnox account where the PSP's fee (excluding tax) is booked.bank_costs_account
Account Number for Currency LossThe mirror of Currency Profit — where currency-conversion losses get booked.currency_loss_account
Account Number for Currency ProfitUsed when a small payment difference is caused by currency conversion and results in a profit for the merchant.currency_profit_account
Account Number for Incoming TaxUsed when the payout originates outside Sweden (e.g.incoming_tax_account
Account Number for Penny RoundingSmall differences between the invoice amount and what actually arrived — usually cents from rounding on the PSP side.difference_account
Account Number for credit vouchers (gift cards)Enter the account number to use for credit vouchers , such as gift cards.credit_account_nr
Show all 89 settings
SettingWhat it controlsKey
Account Number for feesEnter the account number to book fees on.fee_account_nr
Activate disabled articlesAn article might exist in Fortnox but be set to inactive/disabled — perhaps it was discontinued.fortnox_activate_disabled_products
Add VAT on order rowsFortnox can handle VAT in two ways: VAT is calculated automatically by Fortnox based on the article's VAT code — no explicit row needed VAT is added as an explicit line item on the order Some account…fortnox_add_vat_on_order_rows
Attribute for inbound delivery dateChoose which product attribute holds the date for the manual inbound document (inleverans) Junipeer creates in Fortnox.fortnox_in_delivery_attribute
Book keep converted invoicesHere is the breakdown of possible statuses in Fortnox: Order track: Order created Order updated (Warehouse Ready / Delivered) — optional status on the order Order converted → becomes an Invoice Invoi…fortnox_book_keep_order_invoice
Book keep credit invoicesWhen a refund is sent to Fortnox, Junipeer creates a credit invoice .fortnox_book_keep_credit_invoice
Book keep invoice paymentDecide whether the invoice payments Junipeer creates from payouts should be booked (bokförda) in Fortnox.fortnox_book_keep_invoice_payment
Booking Accounting Settings for SettlementsSet up how payouts from each payment provider are booked in Fortnox.fortnox_map_settlement_accounts
Canceled Order StatusChoose which webshop order status(es) should cancel the order in Fortnox .fortnox_canceled_order_status
Cost Center Map Order AttributeEnter the name of the order attribute whose value decides the cost center.fortnox_cost_center_map_order_attribute
Cost Center Map Order ModeChoose what on the order decides which cost center it gets in Fortnox.fortnox_cost_center_map_order_mode
Cost CentersThis setting can help you connect specific locations to Projects in Fortnox or any other Cost Center entities in ERP.fortnox_set_order_cost_center
Countries to IgnoreStop orders from certain countries from being sent to Fortnox.fortnox_ignore_order_countries
Create missing articles in FortnoxWhen an order comes in from your webshop, each line item references an article (product/SKU).fortnox_create_missing_products
Currency CodeChoose the currency the purchase price should be taken from.fortnox_price_currency_importart
Default Account NumberEnter the account number to use by default on order and invoice rows in Fortnox.default_account_nr
Default ActionChoose what should happen with invoices for this customer type.default_action
Default Article number used for Shipping FeeEnter the Fortnox article number used when the shipping fee is added to the order as an order row.fortnox_default_shipment_article_no
Default Cost CenterChoose the cost center (kostnadsställe) that orders get in Fortnox by default.fortnox_order_default_cost_center
Default ProjectChoose the project that orders get in Fortnox by default.fortnox_order_default_project
Default Shipping MethodChoose the Fortnox shipping method (leveranssätt) to use when no match is found for the order's shipping method.fortnox_default_shipping_method
Default Terms of Payment in FortnoxChoose the terms of payment (betalningsvillkor) that Junipeer sets on customers in Fortnox.fortnox_default_terms_of_payment
Discount Article number in FortnoxEnter the Fortnox article number used for discounts or vouchers that apply to the whole order (not to a single product).fortnox_order_discount_article_no
Exclude Orders created before this dateChoose a date. Orders created before this date are not synced.stdintegration_filter_fortnox_order_created_date
Fallback Payout Reference FieldA second place to look for the payout reference, in case it isn't found in the field chosen in Payout Reference Field .fortnox_payout_transaction_invoice_identifier_fallback
Fixed QuantityUse a fixed stock quantity for new articles in Fortnox, instead of the quantity coming from the webshop.fortnox_overide_qty_importart
Fortnox Billing Address Fields to updateChoose which parts of the customer's billing address may be updated in Fortnox.fortnox_update_customer_billing_fields
Fortnox Customer Fields to updateChoose which customer details may be updated in Fortnox.fortnox_update_customer_fields
Fortnox Shipping Address Fields to updateChoose which parts of the customer's shipping (delivery) address may be updated in Fortnox.fortnox_update_customer_shipping_fields
How do you want to set the QuantityThis is helpful if you want to tick the "Lagervara" check as default in Fortnox: If you want it to be turned on, configure as follows:fortnox_mode_set_qty_importart
Inbound Documents date restrictionsMake sure no manual inbound document (inleverans) is created in Fortnox before the date you choose.fortnox_in_delivery_older_than_date
Map Cost Centers by CountryGive orders a cost center based on the order's country .fortnox_country_map_cost_centers
Map Cost Centers by Order AttributeGive orders a cost center based on the value of an order attribute .fortnox_attribute_map_cost_centers
Map Cost Centers by Order CurrencyGive orders a cost center based on the order's currency .fortnox_currency_map_cost_centers
Map Cost Centers by Order LocationGive orders a cost center based on the order's location (for example a market or a shop).fortnox_location_map_cost_centers
Map Cost Centers by PricelistGive orders a cost center based on the order's pricelist .fortnox_pricelist_map_cost_centers
Map Currency with Mode of PaymentUse a different Fortnox payment method for payouts in a certain currency from this payment provider.map_currency_to_mode_of_payment
Map Projects by CountryGive orders a project based on the order's country .fortnox_country_map_projects
Map Projects by Order AttributeGive orders a project based on the value of an order attribute .fortnox_attribute_map_projects
Map Projects by Order CurrencyGive orders a project based on the order's currency .fortnox_currency_map_projects
Map Projects by Order LocationGive orders a project based on the order's location (for example a market or a shop).fortnox_location_map_projects
Map Projects by PricelistGive orders a project based on the order's pricelist .fortnox_pricelist_map_projects
Map Shipping methodsConnect the shipping methods in your webshop with the shipping methods (leveranssätt) in Fortnox.fortnox_map_shipping_methods
Map Terms of PaymentGive orders different terms of payment in Fortnox depending on how the customer paid.fortnox_map_terms_of_payments
Map Vat rates with Account numbersUse a different sales account for each VAT rate .vat_map
Map custom attributesCopy information from your webshop order's custom attributes to fields or labels on the order in Fortnox.fortnox_map_order_fields
Map customer delivery method with (send) invoice actionChoose an action for each delivery method a customer can have in Fortnox.method_action_map
Mapping Warehouse Allocation to Stock PointsWhen Junipeer exports the order to Fortnox, you might want the warehouse allocation forwarded on the order lines.fortnox_map_order_item_stock_points
Mapping order fields to FortnoxThe available fields Fortnox invoices carry several reference fields that Junipeer can search: Shop order ID (e.g.fortnox_add_order_nr_fields
Mark order as Warehouse Ready / Delivered before creating invoiceFortnox has a warehouse/delivery status on orders — a flag that says "this order has been picked and is ready to ship / has left the warehouse." Some Fortnox setups (especially with a WMS or warehous…fortnox_mark_order_warehouse_ready_before_invoice
Match shipping methods by nameLet Junipeer find the Fortnox shipping method (leveranssätt) by its name .fortnox_match_shipping_methods_by_name
Order Default Terms of Payment in FortnoxChoose the terms of payment (betalningsvillkor) to use on orders in Fortnox.fortnox_order_default_terms_of_payment
Orders types to IgnoreStop certain types of orders from being sent to Fortnox.fortnox_ignore_order_types
Override customer delivery methodDecide how invoices are sent for different types of customers, instead of always using the delivery method set on the customer in Fortnox.fortnox_rewrite_delivery_method
Payment methodThe payment method (betalsätt) in Fortnox that this PSP maps to.mode_of_payment
Payout Reference FieldThe Payout Reference Field setting tells Junipeer which field on the Fortnox invoice (or order) contains the reference used to match incoming payouts back to their invoices.fortnox_payout_transaction_invoice_identifier
Project Map Order AttributeEnter the name of the order attribute whose value decides the project.fortnox_project_map_order_attribute
Project Map Order ModeChoose what on the order decides which project it gets in Fortnox.fortnox_project_map_order_mode
Refund Reference FieldChoose which Fortnox field Junipeer uses to find the original invoice for a refund.fortnox_refund_invoice_identifier
Search Refund Reference on OrderChoose where in Fortnox Junipeer looks for the original purchase when a refund comes in.fortnox_refund_search_order
Search for the Payout Reference on the OrderChoose where in Fortnox Junipeer looks for the payout reference.fortnox_payout_transaction_search_order
Select the default Stock Point (Warehouse)Choose the Fortnox stock point (warehouse) to use by default.fortnox_default_stock_point_code
Send InvoiceDecide whether the invoice should be sent to the customer when an order is turned into an invoice.fortnox_send_order_invoice
Send credit invoicesWhen a refund is sent to Fortnox, Junipeer creates a credit invoice .fortnox_send_credit_invoice
Set Delivery State when order is createdChoose which delivery state the order gets in Fortnox when Junipeer creates it.fortnox_order_delivery_state
Set Project on OrdersDecide whether orders should get a project in Fortnox.fortnox_set_order_project
Set purchase priceDecide whether the purchase price should be set on the article in Fortnox when Junipeer creates it.fortnox_set_purchase_price_importart
Setup Sales Account mappingChoose which booking accounts are used on orders and invoices in Fortnox, based on rules .fortnox_map_accounting
Shipping feeDecide whether the shipping fee is added to the order in Fortnox as its own order line .fortnox_add_shipping_on_order_rows
Shipping fee mapUse different Fortnox articles for the shipping fee depending on the shipping method the customer chose.fortnox_shipment_article_no
Specify methodsChoose which payment methods count as paid .fortnox_map_modes_of_payment
Sync Webshop Articles onlyChoose which Fortnox articles are sent to your webshop.fortnox_webshop_articles_only
Transform Only B2B ordersOnly turn business (B2B) orders into invoices.fortnox_transform_order_to_invoice_only_b2b
Transform Only Paid OrdersOnly turn a new order into an invoice if the order is already paid when it is sent to Fortnox.fortnox_transform_order_to_invoice_only_if_paid
Transform new orders to Invoice SettingCreate and book an invoice in Fortnox as soon as a new order is sent, without waiting for the order to ship or the payment to be captured.fortnox_transform_order_to_invoice
Update Fortnox CustomersDecide whether Junipeer should update customers in Fortnox when customers are exported.fortnox_update_customers
Update customer information in FortnoxDecide whether the customer in Fortnox should be updated each time one of their orders is sent to Fortnox.fortnox_update_customer_when_order_is_synced
Use Payment ID as Payout ReferenceChoose which reference from the payout Junipeer uses to find the invoice or order in Fortnox.fortnox_payout_transaction_use_payment_id
VAT account for provider feesEnter the account where VAT on payment provider fees is booked.outgoing_tax_account
VAT included in order rowsThis setting tries to answer a question: are the prices your webshop sends to Junipeer inclusive or exclusive of VAT?fortnox_vat_included_order_rows_price
Warehouse module for StockThe Fortnox warehouse module and stock management If your business uses the Fortnox warehouse module (lagermodul) , your integration behaves differently than a standard Shopify → Fortnox setup.fortnox_use_warehouses

4. Troubleshooting

Choose what you see. Each case shows the cause and the solution.

High"Authorization failed" errors
What you see
  • Magento flows stop and the Junipeer log shows "Authorization failed".
Cause

Junipeer can't log in to Magento with the details saved on the Magento connection. Usually the Magento Access Token or the Magento REST API Url is wrong, or the integration was deactivated and reactivated in Magento, which replaces the access token.

Solution
  1. In Magento, go to System → Integrations and check that the Junipeer integration is active.

  2. Copy the Access Token and check the Magento REST API Url (for example https://yourshop.example/api/). Junipeer only needs these two; the Consumer Key, Consumer Secret and Access Token Secret aren't used.

  3. Save them on the Magento connection in Junipeer.

  4. If you deactivated and reactivated the integration in Magento, it created a new access token: enter the new one.

See Magento setup.

MediumVAT account missing
What you see
  • a tax rate on an incoming order has no corresponding VAT account in Fortnox. Add the missing account in Fortnox Settings → Bookkeeping → VAT.
Cause

See symptoms and resolution for details.

Solution

a tax rate on an incoming order has no corresponding VAT account in Fortnox. Add the missing account in Fortnox Settings → Bookkeeping → VAT.

MediumCurrency mismatch
What you see
  • an order uses a currency not enabled in Fortnox. Enable it in Fortnox Settings → Currencies and retry the failed task.
Cause

See symptoms and resolution for details.

Solution

an order uses a currency not enabled in Fortnox. Enable it in Fortnox Settings → Currencies and retry the failed task.

Medium"Permission denied" errors
What you see
  • the connected Fortnox user is missing one or more required permissions. Go to Fortnox Settings → Manage Users and verify the permission assignments listed in Step 1.
Cause

See symptoms and resolution for details.

Solution

the connected Fortnox user is missing one or more required permissions. Go to Fortnox Settings → Manage Users and verify the permission assignments listed in Step 1.

MediumNo products syncing
What you see
  • check that the integration has Catalog permissions and that the products are assigned to the correct website/store scope that Junipeer is configured to read from.
Cause

See symptoms and resolution for details.

Solution

check that the integration has Catalog permissions and that the products are assigned to the correct website/store scope that Junipeer is configured to read from.

Show 3 more
MediumEmpty customer name
What you see
  • some e-commerce platforms allow guest checkout without a full name. Configure a default customer name in Junipeer's Customer Settings to handle these orders.
Cause

See symptoms and resolution for details.

Solution

some e-commerce platforms allow guest checkout without a full name. Configure a default customer name in Junipeer's Customer Settings to handle these orders.

Medium"Article not found"
What you see
  • the SKU on the incoming order does not match any Fortnox article. Create the article in Fortnox or add a mapping in Junipeer's Article settings.
Cause

See symptoms and resolution for details.

Solution

the SKU on the incoming order does not match any Fortnox article. Create the article in Fortnox or add a mapping in Junipeer's Article settings.

Medium"Resource not accessible" errors
What you see
  • the integration is missing API permissions for the data type you are trying to sync. Go to System → Integrations, edit the integration, and add the missing resource permissions.
Cause

See symptoms and resolution for details.

Solution

the integration is missing API permissions for the data type you are trying to sync. Go to System → Integrations, edit the integration, and add the missing resource permissions.

5. Frequently asked questions

How do I connect Fortnox with Magento using Junipeer iPaaS?

To connect Fortnox with Magento, log into your Junipeer dashboard and select both platforms from the integration catalog. You'll need to authenticate with your Fortnox API credentials and Magento admin access. The setup wizard will guide you through configuring the connection, mapping data fields, and testing the integration before going live.

What data syncs between Fortnox and Magento?

The integration synchronizes products, inventory levels, customer information, orders, invoices, and pricing data. Orders from Magento automatically create invoices in Fortnox, while inventory updates in Fortnox reflect in real-time on your Magento store. Customer data, including billing information, also syncs bidirectionally to maintain consistency across both platforms.

How are refunds handled in the Fortnox-Magento integration?

Refunds initiated in Magento automatically create credit notes in Fortnox with proper accounting entries. The integration maps refund amounts, reasons, and associated order details. Inventory quantities are automatically adjusted in both systems when refunds involve returned products, ensuring accurate stock levels and financial records.

What are common issues with Fortnox-Magento integration and their solutions?

Common issues include SKU mismatches, which can be resolved by ensuring consistent product identifiers across platforms. API rate limiting may cause sync delays - the integration includes automatic retry mechanisms. Currency formatting differences can cause errors, so verify your locale settings match in both systems. Customer duplicate issues are prevented by mapping unique identifiers properly during setup.

Does the integration support multi-currency operations?

Yes, the Fortnox-Magento integration fully supports multi-currency operations. Currency rates can sync from Fortnox to Magento or be managed independently. Orders in different currencies are properly converted and recorded in Fortnox using the appropriate exchange rates. Price lists and tax calculations are handled according to each currency's requirements and local regulations.

How do I get started with the Fortnox-Magento integration?

Start by signing up for Junipeer iPaaS and accessing the integration marketplace. Select the Fortnox-Magento connector and follow the step-by-step setup process. Ensure you have admin access to both platforms and your Fortnox API credentials ready. Begin with a test environment to verify data mapping and sync behavior before deploying to production. Our support team provides guidance throughout the setup process.

6. More guides

Did this page help you?