Magento 2 Integration

Magento 2

Magento 2 Module Setup Guide

Install the free eAWB module for Magento 2, offer home delivery and locker pickup at checkout, then connect the store to eAWB with the four values of a Magento Integration. Your orders are imported into eAWB, where you check them and generate the AWB.

Official Module
Magento 2.4.4 – 2.4.9
Home Delivery & Locker Pickup
Free

Video Tutorial

A step-by-step video guide for Magento 2 is on its way. Until then, the steps below cover the whole setup.

Video tutorial coming soon

Before You Start

  • An active eAWB account with a verified email address and phone number
  • A billing address and bank details (for cash on delivery) in your account
  • An active Wallet with funds: the AWBs of imported orders are paid from it
  • Access to Integrări requested and approved: in the dashboard, Integrări → Solicită acces; the answer comes by email

Requirements

  • Magento Open Source or Adobe Commerce 2.4.4 – 2.4.9
  • PHP 8.1 – 8.5, as supported by your Magento version, both on the command line and for the web server
  • The store runs on https:// and is reachable from the internet
  • Shell (SSH) access to the Magento root, as the Magento file-system owner, to upload the module and run bin/magento; stores deployed from a repository (such as Adobe Commerce Cloud) need access to that repository instead (see the Tip in step 1)
  • Who does what: steps 1 – 3 need shell access; if an agency or a developer runs your store, send them this page. Steps 4 – 10 are in the Magento admin (you or your developer, who then gives you the four values of the Magento Integration from step 10). Steps 11 – 15 you do yourself, in eAWB: you connect the store with those four values, import its orders and generate their AWBs

Download the eAWB Module for Magento 2

Get the eAWB module for Magento 2 (.zip) and follow step 1. A store whose developer installs extensions from a Composer repository of their own can use step 2 instead.

Step-by-Step Setup

1

Upload the Module to app/code

Unpack the zip package in the Magento root

Download the module from the button above and copy the zip file to the Magento root folder on your server, the folder the commands below run in; you can delete it after unpacking. Logged in as the Magento file-system owner, go to the Magento root folder (the one that contains bin/magento), check the PHP version and unpack the module into app/code/: it creates app/code/Europarcel/Eawb, with registration.php directly in that folder. The module is free.

php -v
unzip eawb-magento-2.zip -d app/code/
ls app/code/Europarcel/Eawb/registration.php
Module files in app/code/Europarcel/Eawb

Module files unpacked into app/code

Important

php -v shows the command-line PHP. The web server can run another version: check it in your hosting panel. Both must be a version your Magento supports, within 8.1 – 8.5.

Tip

Is your store deployed from a repository or a build pipeline? Commit the app/code/Europarcel/Eawb folder and the module’s line in app/etc/config.php (written by step 3 on a development copy) instead of running module:enable on the server. The build compiles the code and deploys the static content as usual; the deploy step must still run bin/magento setup:upgrade --keep-generated, which adds the module’s columns to the quote and sales_order tables.

2

Alternative: Install with Composer

From a Composer repository your developer sets up

Composer applies when your developer serves the module from a Composer repository of your own, for example a path repository that points at the Europarcel/Eawb folder of the zip, unpacked outside app/code. In that case, require the package instead of step 1. Everyone else: skip to step 3.

composer require europarcel/module-eawb
Composer installing the eAWB module for Magento 2

Install the module with Composer

Important

Use either the zip package or Composer, never both: two copies of the module make the setup commands fail.

3

Enable the Module and Rebuild the Store

A sequence that is safe to run on a live store

From the Magento root, run these commands in this order. Run the two marked commands only when the store is in production mode (bin/magento deploy:mode:show tells you). Without a locale list, setup:static-content:deploy deploys every locale your storefront and admin use at that moment.

bin/magento maintenance:enable
bin/magento module:enable Europarcel_Eawb
bin/magento setup:upgrade
# production mode only:
bin/magento setup:di:compile
bin/magento setup:static-content:deploy
# then, in every mode:
bin/magento cache:flush
bin/magento maintenance:disable
bin/magento commands enabling the module

Enable the module and rebuild the store

Important

module:enable ends with a hint about clearing static view files. That is expected: in production mode, the setup:static-content:deploy that follows covers it. module:enable and, in production mode, setup:upgrade also ask you to run setup:di:compile: in production mode the setup:di:compile that follows answers them, and in the other modes Magento generates those classes on its own.

Tip

If you have a staging copy of the store, run the whole sequence there first, then repeat it in production.

4

Open the eAWB Shipping Settings

Find the eAWB section in the Magento admin

In the Magento admin, go to Stores → Configuration → Sales → Delivery Methods → eAWB. On stores without Magento’s In-Store Pickup modules the page is called Shipping Methods instead of Delivery Methods. Expanding eAWB also opens its Home Delivery and Locker Pickup groups.

Magento Delivery Methods page with the eAWB section

Stores → Configuration → Sales → Delivery Methods → eAWB

Important

If the eAWB section is missing, the module is not enabled: re-run the commands from step 3 and check that bin/magento module:status Europarcel_Eawb reports it as enabled.

5

Turn the Methods On and Set the General Options

The fields above and below the two method groups

The module is installed disabled, so nothing changes at checkout until you have reviewed it. The section starts with two fields, then the Home Delivery and Locker Pickup groups (steps 6 and 7), then the options that apply to both methods. Most fields still at their default are greyed out with Use system value ticked (Use Default when the scope switcher is on a website, Use Website on a store view): untick the box to change the field. Click Save Config when you are done with steps 5 – 7.

1

Enabled: set it to Yes to offer the methods at checkout

2

Title (default Courier): the carrier name customers see with each method: next to the method name in the shipping step, before it in the order summary, on the order and in their emails (Courier - Locker Pickup). Left at Courier, each store view shows it in its own language (Curier on a Romanian store view); a title you type is shown as typed. Customers never see the name eAWB

3

Below the two groups, Calculate Handling Fee and Handling Fee: an optional amount, fixed or a percentage, added to the price of both methods, except when the method is free

4

Ship to Applicable Countries and Ship to Specific Countries: by default the methods are offered only for Romanian shipping addresses. Leave Romania as the only country: eAWB delivers imported orders within Romania, so an order shipped to another country is imported with errors and cannot get its AWB from Integrări

5

Show Method if Not Applicable and Displayed Error Message: what a customer outside those countries sees

6

Sort Order: where the methods appear among your other shipping methods (a lower number shows first)

eAWB section with Enabled, Title and the options for both methods

The general options of the eAWB section

Important

eAWB reads order weights as kilograms, and Magento’s default weight unit is pounds: set Stores → Configuration → General → General → Locale Options → Weight Unit to kgs.

6

Configure Home Delivery

Courier delivery to the customer’s address

In the Home Delivery group, set what the customer pays and which courier delivers. Prices and thresholds are plain amounts in each website’s base currency; Magento converts them for customers who browse in another currency. The defaults are not converted: a website with another base currency needs its own amounts, set with the scope switcher on that website.

1

Enabled (default Yes): offers delivery to the customer’s address

2

Method Name: leave it empty and each store view shows Home Delivery in its own language (Livrare la domiciliu on a Romanian store view), or type your own

3

Price (default 25.00): the fixed shipping price the customer pays

4

Courier (default FAN Courier): the courier that delivers these orders. It is saved on each order and eAWB uses it for the AWB, so choose one that collects parcels from your area

5

Enable Free Shipping Threshold (Enable / Disable) and Free Shipping Amount Threshold: home delivery becomes free when the cart subtotal after discounts, in your base currency (including tax when your catalog prices include tax) reaches this amount

eAWB Home Delivery group

The Home Delivery group

Tip

Magento’s cart price rules that grant free shipping (Marketing → Cart Price Rules) apply to both methods; a rule conditioned on a shipping method takes effect once the customer selects that method, as for any Magento carrier. Each method’s own threshold is independent, so home delivery and locker pickup can become free at different amounts.

7

Configure Locker Pickup

Pickup from a parcel locker chosen on a map

In the Locker Pickup group, set the price and the locker networks. At checkout the customer chooses the locker on a map, and the order arrives in eAWB with that locker and its courier.

1

Enabled (default Yes): offers pickup from a locker

2

Method Name: empty for Locker Pickup in each store view’s language (Ridicare din locker on a Romanian store view), or your own

3

Price (default 15.00): the fixed shipping price the customer pays

4

Locker Networks (Sameday easybox, FAN Courier FANbox, DPD Box; all three by default): the lockers shown on the map. Keep at least one selected

5

Enable Free Shipping Threshold and Free Shipping Amount Threshold: locker pickup becomes free when the cart subtotal after discounts, in your base currency (including tax when your catalog prices include tax) reaches this amount

6

Show Locker on Order Confirmation Page and Show Locker on Customer Order Pages (both Yes by default): where the customer sees the chosen locker after ordering (steps 20 and 21)

7

Click Save Config

eAWB Locker Pickup group

The Locker Pickup group

Important

After Save Config, Magento reports that cache types are invalidated: refresh them in System → Tools → Cache Management (select the invalidated types, Refresh, Submit), or run bin/magento cache:flush.

Tip

A locker is usually cheaper to ship to than an address. A lower locker price nudges customers towards it.

8

Create an Integration for eAWB

The integration gives eAWB the four values it signs its requests with

Go to System → Extensions → Integrations and click Add New Integration. On the Integration Info tab, enter a Name (for example eAWB) and your admin password in Your Password. Leave the other fields empty.

Magento New Integration form

System → Extensions → Integrations → Add New Integration

9

Allow Read Access to Orders

Give the integration exactly one resource

Open the API tab and check that Resource Access is Custom, as it usually already is. In the resource tree, which opens expanded, under Sales → Operations → Orders → Actions, tick only View, then click Save. In a narrow browser window, Magento shows the Integration Info and API tabs below the form instead of on its left.

1

Check that Resource Access is Custom

2

Under Sales → Operations → Orders → Actions, tick only View: its parent items then show as partly selected, which is all eAWB needs

3

Click Save

Integration API tab with Orders View ticked

API tab: Sales → Operations → Orders → Actions → View

Important

eAWB only reads your orders: it never changes them, their status or anything else in your store. View on orders is all it needs. Saved without a resource ticked on the API tab, the integration has no access and eAWB cannot read your orders. When you change the resources later, Magento asks you to Reauthorize the integration: paste the new Access Token and Access Token Secret in eAWB (Setări).

10

Activate the Integration and Copy the Four Values

Magento generates them on activation

Back in the Integrations list, click Activate next to the eAWB integration, then Allow. Magento shows four values: copy all four, Consumer Key, Consumer Secret, Access Token and Access Token Secret, before you click Done.

1

Click Activate next to your integration

2

Click Allow on the permissions screen

3

Copy the Consumer Key, the Consumer Secret, the Access Token and the Access Token Secret, keeping each with its name: eAWB has a field for each (step 12)

4

Click Done

Integration tokens with the four values highlighted

Copy the four values

Important

Treat the four values like a password. eAWB stores them encrypted, never shows them again and never writes them to its logs. Magento shows the four values again whenever you need them: in System → Extensions → Integrations, open the integration (Edit) and look under Integration Details. eAWB signs every request to your store with them (OAuth 1.0a), so the two secrets never leave eAWB. To stop eAWB’s access at once, delete the integration (Remove) in System → Extensions → Integrations. If you click Reauthorize later, Magento issues a new Access Token and a new Access Token Secret, while the Consumer Key and the Consumer Secret stay: paste the two new values in eAWB (Setări). On older versions such as Magento 2.4.4, the Integrations list shows a red Integration not secure label next to the new integration: Magento marks every integration that lacks a Callback URL, an Identity link URL, or both, that way, and eAWB needs neither, so nothing needs doing.

11

Connect Magento 2 in eAWB

Add the integration from your eAWB dashboard

In your eAWB account, open Integrări (Integrations) from the menu, choose the Integrări tab and click Conectează (Connect) on the Magento 2 card.

eAWB integrations with the Magento 2 card

Connect the Magento 2 integration

12

Enter the Connection Details

Store address and the four values of the integration

Fill in the six fields and click Conectează (Connect). eAWB checks the connection with your store before it saves the integration.

1

Nume integrare (Integration name): a name you recognise, for example Magazin Magento

2

URL magazin (Store URL): the base address under which /rest/V1/ answers, starting with https://. A store installed in a sub-folder (https://example.com/shop) is fine; a store code or store-view path is not

3

Consumer Key, Consumer Secret, Access Token and Access Token Secret: the four values you copied in step 10, each in the field with the same name

4

Click Conectează (Connect)

eAWB Magento 2 connection form

Integration name, store URL and the four values

Important

Connect each Magento installation once, with any one of its base URLs: that connection imports the orders of all its websites and store views. If the connection fails, the reason appears in the form, with what to do; Troubleshooting below lists every message.

13

Configure the Integration Settings

Choose how orders are imported

Your store now shows under Integrări conectate (Connected integrations). Click Setări (Settings) on its card and choose how eAWB handles its orders.

1

Serviciu de transport preferat (Preferred shipping service): the courier and service for orders placed with another shipping method (for example flat rate)

2

Statusuri comenzi de importat (Order statuses to import): only orders in these statuses are imported, În așteptare (Pending) and În procesare (Processing) by default; at least one stays ticked. Your own Magento statuses: type their code (Stores → Order Status, column Status Code) under Adaugă un status personalizat and click Adaugă

3

Sincronizare automată (Automatic sync): imports new and updated orders every 4 hours

4

Conținut comandă (Order content): what fills the parcel’s Conținut (Content) field: ID comandă platformă (the Magento order number) or Nume produse (the product names)

5

Consumer Key, Consumer Secret, Access Token and Access Token Secret: leave them empty to keep the saved values, or paste new ones (after Reauthorize in Magento, the new Access Token and Access Token Secret). When you change URL magazin, enter all four again

6

Click Salvează modificările (Save Changes)

eAWB Magento 2 integration settings

Magento 2 integration settings

14

Import Your Orders

Import now, or let automatic sync do it

Go to the Comenzi aplicații (App orders) tab and click Importă comenzi (Import orders). Select your Magento store and click Importă (Import). Until an import has succeeded, the window lets you choose how far back it goes: 1, 3, 7 or 14 days. With Sincronizare automată on, orders also arrive every 4 hours on their own; an automatic import that runs while the period choice is still offered starts with the orders updated in the 3 days before you connected.

eAWB Import orders window

Import orders from Magento 2

Tip

Orders keep the number you see in Magento (for example 000000012), so you find them instantly in both places.

15

Check the Orders and Generate the AWB

Every order, ready to ship

Your Magento orders are listed in Comenzi aplicații. Open an order to check it, edit it if something is missing, then generate its AWB. Locker orders arrive with the locker chosen by the customer and its courier; home delivery orders with the Courier set in step 6; orders placed with another shipping method with your Serviciu de transport preferat.

1

Check the address and the parcel; the courier is shown in Serviciu curier when you open the AWB window, already selected from the order

2

The parcel weight is the order weight from Magento, or 2 kg when the products have no weight, and the parcel is 15 × 15 × 15 cm: correct them if needed

3

Fix any field eAWB marks as missing or invalid

4

Generate the AWB for the order

eAWB app orders list with a Magento 2 locker order opened and its Generează AWB button

Check orders and generate the AWB

Important

The AWB is created in eAWB. Your Magento order is not changed: update its status in Magento yourself if you use it.

16

What Your Customers See at Checkout

Home delivery and locker pickup

In the shipping step, your customers see the two methods with the names and prices of steps 6 and 7 (on a Romanian store view, by default Livrare la domiciliu and Ridicare din locker), each next to the Title of step 5 (Curier on a Romanian store view by default). Magento lists them by price, cheapest first: with the default prices, locker pickup (15.00) comes before home delivery (25.00).

Magento checkout with the home delivery and locker pickup methods

The two methods at checkout

17

Choosing the Locker on the Map

The map opens in a window over the checkout

When a customer selects locker pickup, a line asking the customer to choose the pickup locker, with a Choose locker button (Alege lockerul on a Romanian store view), appears under the shipping methods. The button opens the map with the lockers of your networks, near the address the customer entered, in the store view’s language: Romanian on a Romanian store view, English on any other. The customer picks a locker and confirms it, with the mouse or with the keyboard alone. Escape closes the window, also from inside the map (there it first closes the map’s own popup or phone list, or clears the search box). If the map is slow to load, a notice with Try again appears next to it and goes away once the map arrives. The window also suggests searching another locality on the map, or closing it and choosing another delivery method. If the map cannot load its lockers, the customer’s browser cannot run it, or your store’s Content Security Policy blocks it, the window shows The locker map could not be loaded. Try again, or choose another delivery method. (Harta lockerelor nu a putut fi încărcată. Încearcă din nou sau alege altă metodă de livrare. on a Romanian store view) with Try again. Without a locker, the checkout does not move on to payment.

Locker map in a window over the checkout

Choosing a locker on the map

Important

The map is an eAWB page embedded from https://maps.europarcel.com; the module allows it in Magento’s Content Security Policy. If your server or CDN sends its own policy, allow that address as a frame source (frame-src). Inside the map window the customer’s browser also loads what the map page itself needs from other servers, among them the map tiles from OpenStreetMap and the lockers from api.europarcel.com; your store’s policy needs only the frame source. The map page’s code sets no cookies and stores nothing in the browser.

18

The Chosen Locker Under the Shipping Methods

Shown in the shipping step

After confirming, the customer sees the locker in a box: the network logo (easybox, FANbox, DPD), the locker’s name and its address, with Change locker under it to pick another one. Once the customer continues to payment (Next), the locker is saved with the cart: it is shown again after a page reload or when the customer comes back to the checkout.

Chosen locker under the locker pickup method

The chosen locker in the shipping step

19

The Locker in the Order Summary

Shown in the payment step

In the payment step, the order summary sidebar shows the locker saved with the shipping step (network logo, name and address) under the shipping method, in its Shipping Method block (under Ship To), so the customer checks it once more before placing the order.

Payment step sidebar with the chosen locker in the Shipping Method block

The chosen locker in the payment step

20

The Locker on the Order Confirmation Page

Controlled by Show Locker on Order Confirmation Page

After placing the order, the confirmation page shows the network logo, the locker’s name and its address, with a View on Map link that opens the locker in Google Maps (when the locker has coordinates).

Order confirmation page with the chosen locker

The chosen locker on the order confirmation page

21

The Locker on the Customer’s Order Pages

Controlled by Show Locker on Customer Order Pages

The order page in the customer account and the guest order lookup page show the locker below the order information, and so do their Invoices and Shipments tabs, the guest’s Refunds tab (the customer’s Refunds tab only in themes that show the order information there, such as Hyvä), the printed order and the printed invoice, shipment and refund. In the Magento admin, the order view always shows it, with the locker id. The order emails and the PDF invoices, shipments and credit memos do not name the locker; the courier notifies the customer when the parcel reaches it.

Customer account order page with the chosen locker

The chosen locker on the customer’s order page

Congratulations! Your Magento 2 store is connected to eAWB

Your customers can now choose home delivery or a locker at checkout, and their orders reach eAWB, where you check them and generate the AWB with the courier of your choice.

Good to Know

  • Where locker pickup is offered: in the standard Magento checkout and to REST API clients that send the locker themselves. One-step checkouts from other vendors that use Magento’s REST checkout API are offered locker pickup too, but were not tested: check that the locker picker appears under the shipping methods, or switch Locker Pickup → Enabled to No for that website. Other checkouts offer home delivery only, automatically: GraphQL / PWA storefronts, Hyvä Checkout, the multishipping checkout, PayPal Express buttons on the cart or product page, Instant Purchase and Create New Order in the admin. On a Hyvä theme that uses the Luma checkout fallback, the locker map works, and the order confirmation and order pages show the chosen locker; the module styles that box with one plain CSS file of its own, so no Tailwind rebuild is needed. A locker order edited or reordered in the admin keeps its locker while its network is still selected in Locker Networks (otherwise the admin is offered home delivery), and an order paid with PayPal chosen on the payment step of the standard checkout keeps its locker too.
  • Full page cache and Varnish: the module adds output only to the cart, checkout, order confirmation and order pages, which Magento does not cache; product, category, CMS and home pages stay cacheable. It adds no ESI blocks and no private-content (customer-data) sections, and needs no change to the VCL.
  • One integration per installation: connect each Magento installation once, with any one of its base URLs; it imports the orders of all its websites and store views. A second integration of the same installation imports the same orders again, so when your store’s domain changes, change URL magazin in Setări and enter the four values of the integration again instead of connecting it anew.
  • Connecting a store again: disconnecting the integration keeps the orders already imported. Connecting the same store again starts with the default settings, not the ones you saved, and offers the first-import period again, so check your choices in Setări after you reconnect.
  • Languages: the module speaks English and Romanian; other languages are added the standard Magento way, with a translation package. A Title left at Courier and empty Method Name fields show the default names in each store view’s language. The locker map opens in Romanian on a store view with a Romanian locale and in English on any other. In production mode, an admin user can switch to an interface language only once it is deployed: for a locale that was not in use when you ran step 3, run bin/magento setup:static-content:deploy -a adminhtml ro_RO first, with that language’s locale code in place of ro_RO.
  • Currencies: prices and thresholds are plain amounts in each website’s base currency, and Magento converts them for customers who browse in another currency. The defaults are not converted: a website with another base currency needs its own amounts, set at the scope of that website. eAWB imports amounts in the base currency.
  • Tax on the shipping price follows your Magento tax settings, as for every shipping method.
  • Cash on delivery: an order is cash on delivery when its payment method code (separators ignored) contains cashondelivery, paymentondelivery, payondelivery or ramburs, or has cod as a word of its own, as Magento’s own Cash On Delivery and the usual third-party modules do. The amount to collect is the order total in your base currency, less what Magento records as refunded or cancelled. eAWB does not convert it, and couriers in Romania collect cash on delivery in lei. A website whose base currency is RON needs nothing. On a website with another base currency the order keeps that currency’s number (the order list shows the currency; the edit window shows the number next to RON): most couriers would collect that number as lei, and some refuse the order. For such an order, create the shipment from Comandă nouă with the amount in lei instead of generating the AWB from the imported order.
  • Parcel weight: the order’s total weight from Magento, read in kilograms; 2 kg when the products have no weight. Magento products have no dimensions, so the parcel is set to 15 × 15 × 15 cm. Correct the weight and the dimensions before generating the AWB to avoid re-weighing charges.
  • Company: a company name shorter than 5 characters or without a letter or digit (for example - or PF) is a filler, so eAWB leaves it out at import and addresses the order to the person.
  • Corrections in Magento: a shipping address corrected in Magento reaches eAWB at the next import and replaces what you changed on that order in eAWB, so correct an order in one place only. It only reaches orders that are still in one of the statuses ticked under Statusuri comenzi de importat and whose AWB has not been generated yet: an order with an AWB stays in eAWB as it was booked, whatever changes in Magento.
  • Cancelled orders: an order cancelled in Magento after it was imported stays in the eAWB list; archive it there.
  • Import window: the first import goes back as far as you choose, at most 14 days; every later import reads the orders created or changed since the last successful one (after an import of a chosen period that ended with Unele comenzi nu au putut fi importate, or that Prea multe comenzi de importat deodată stopped after it had stored some orders, since the chosen day). A store with very many orders in the selected statuses gets Prea multe comenzi de importat deodată (see Troubleshooting).
  • What stays in eAWB: the AWB, tracking and order statuses. eAWB does not write them back into Magento, does not generate AWBs on its own, and the checkout prices are your fixed prices, not live courier rates.

Uninstalling

  • To stop offering the methods, set Enabled to No (step 5): nothing is removed.
  • To remove the module and keep the courier and locker saved on your orders: run bin/magento maintenance:enable, delete app/code/Europarcel/Eawb (or run composer remove europarcel/module-eawb), then run bin/magento setup:upgrade.
  • Disabling the module first (bin/magento maintenance:enable, bin/magento module:disable Europarcel_Eawb, then bin/magento setup:upgrade) removes its database columns, and with them the courier and locker saved on every order. Back up the database first.
  • Finish both routes as in step 3: in production mode run bin/magento setup:di:compile and bin/magento setup:static-content:deploy; then, in every mode, bin/magento cache:flush and bin/magento maintenance:disable.
  • In eAWB, disconnect the integration with ✕ on its card. The orders already imported stay in Comenzi aplicații.

Troubleshooting

eAWB checks the connection to your store when you connect it, when you change the store URL or the values of the integration in Setări, when you press Activează (▶) on the integration card and on every import. When the store does not answer as expected, eAWB shows a message with what to do. Under it, Detalii tehnice holds the store’s technical answer: include it if you write to us at cs@eawb.ro.

When a manual import fails, the integration card switches to Eroare at once and shows the same message, with the time of the last attempt. An automatic import first retries a failure that may clear by itself (store unreachable, timeout, server error, rate limit, a request cut off before the store answered, a refused time or nonce of the request, or a temporary database error in eAWB) after about 2 and then 10 minutes, and switches to Eroare only if those retries fail too. Any other failure switches it at once, for example one only you can fix (the values of the integration, the store URL, a firewall or the certificate) or an answer that would come back the same.

Editing the settings does not clear Eroare. Fix the cause, then press Activează (▶) on the card: eAWB tests the connection and turns the integration back on. The message disappears after the next import that ends without errors.

An import that reached the store but could not bring in some of its orders is a warning, not a failure: the card stays Activ and shows Unele comenzi nu au putut fi importate.

Connection errors

eAWB shows “Magento a refuzat datele de acces”

token_rejected
What it means
Magento answered 401 (or 400 for an Access Token of the wrong length): the store is reachable, but it does not accept the integration’s credentials. It does not know the Consumer Key or the Access Token saved in eAWB, or the integration is not active or may not read the orders. A store with a language pack answers in its own language; eAWB then cannot tell the causes apart, so it shows this message for a refused signature or request time too, with Magento’s own words under Detalii tehnice.
How to fix it
Check in Magento, in order: the integration is Active (step 10); it has Sales → Operations → Orders → Actions → View ticked (step 9); eAWB holds the four values of this integration, each in its own field: Consumer Key, Consumer Secret, Access Token and Access Token Secret. If you clicked Reauthorize, paste the new Access Token and Access Token Secret (Integration Details on the integration’s edit page in Magento) in Setări; if you deleted and recreated the integration, paste all four again. If all three are right, follow Magazinul a refuzat semnătura cererii and Magazinul a refuzat ora cererii below.

eAWB shows “Magazinul a refuzat semnătura cererii”

signature_rejected
What it means
Magento answered 401: it recognised the integration, but the signature of the request does not match. Usually the Consumer Secret or the Access Token Secret saved in eAWB is not the one of this integration, or the two were swapped. Otherwise a proxy or load balancer in front of Magento does not pass on the original https address, so the store sees its own address differently from the store URL saved in eAWB.
How to fix it
Copy the Consumer Secret and the Access Token Secret again (Integration Details on the integration’s edit page in Magento), each into its own field in Setări, then try again. If both values are right, ask your hosting provider to pass the X-Forwarded-Proto header and the original domain name on to Magento.

eAWB shows “Magazinul a refuzat ora cererii”

nonce_rejected
What it means
Magento answered 401 and refused the time or the nonce of the request. Usually the clock of the store’s server is more than 10 minutes behind. Rarely, something in front of the store (a proxy or a CDN) delivered the same request twice, and Magento refuses the second copy.
How to fix it
Ask your hosting provider to correct the time of the store’s server, then try again. An automatic import retries this failure by itself, so a request that was delivered twice clears on the next attempt.

eAWB shows “Magazinul a blocat accesul eAWB”

access_forbidden
What it means
Something in front of Magento refused the request before Magento could check its credentials: a firewall, a security module, an IP rule, or HTTP basic authentication (the browser’s user-and-password prompt, common on staging sites). eAWB reports it for every 4xx answer that is not Magento’s own, except 404, 408 and 429.
How to fix it
Allow requests to the /rest/V1/ path of your store, or remove the password prompt from that path, then try again. To keep the exception narrow, match eAWB’s requests: GET /rest/V1/orders with a User-Agent header that starts with eAWB-Magento/ (currently eAWB-Magento/1.0.0; eAWB sends no other request to your store).

eAWB shows “O protecție anti-bot a oprit conexiunea”

anti_bot
What it means
A challenge page (Cloudflare Bot Fight Mode, Sucuri, DDoS-Guard, DataDome, a WAF) came back instead of the API answer.
How to fix it
Add an exception (skip rule) for the /rest/V1/ path of your store in your protection service, then try again. To keep the exception narrow, match eAWB’s requests: GET /rest/V1/orders with a User-Agent header that starts with eAWB-Magento/.

eAWB shows “Magazinul nu poate fi accesat”

store_unreachable
What it means
eAWB could not open a connection to the store: the domain does not resolve, the server refused the connection or it is down.
How to fix it
Check the store URL in Setări and that your store opens in a browser, then try again.

eAWB shows “Magazinul nu a răspuns la timp”

store_timeout
What it means
The store took too long to answer, or answered 408: it is overloaded or very slow.
How to fix it
Try again in a few minutes. If it keeps happening, check the server load with your hosting provider.

eAWB shows “Certificatul SSL al magazinului nu este valid”

store_tls_error
What it means
The secure (https) connection failed: the certificate is expired, invalid or issued for another domain.
How to fix it
Renew or fix the certificate (your hosting provider can help), then try again.

eAWB shows “Adresa magazinului redirecționează în altă parte”

store_redirected
What it means
The store answered with a redirect, usually because the URL was entered with or without www, or the domain changed. When the store redirects to another public https address, Detalii tehnice names it.
How to fix it
Enter the address Detalii tehnice names as the store URL (without /rest/ and what follows it), in the connect form or in Setări with the four values of the integration again, then try again. If Detalii tehnice names no address, enter the https address your store answers on directly, without redirects.

eAWB shows “Magazinul a răspuns cu o eroare”

store_server_error
What it means
The store answered with a server error (5xx): it crashed, is in maintenance mode (503) or a gateway in front of it failed.
How to fix it
Check that the store works (and is out of maintenance mode with bin/magento maintenance:disable), then try again.

eAWB shows “Magazinul limitează cererile”

rate_limited
What it means
The store, or a service in front of it, answered 429: too many requests.
How to fix it
Wait a few minutes and try again. If it keeps happening, raise the limit for the requests that match eAWB’s: GET /rest/V1/orders with a User-Agent header that starts with eAWB-Magento/.

eAWB shows “API-ul magazinului nu a fost găsit”

api_not_found
What it means
The store URL is wrong: your-store/rest/V1/orders answered 404, or something other than the Magento API answered there. The URL contains a store code or store-view path, REST is not reachable, or it is not a Magento store.
How to fix it
Use the base URL under which /rest/V1/ works (a sub-folder install is fine), then try again.

eAWB shows “Magazinul a trimis un răspuns neașteptat”

invalid_response
What it means
The store answered, but not with the expected data: a cache module, a proxy or a plugin changed the API response, or the response was too large.
How to fix it
Exclude /rest/V1/ from full-page cache, proxies and plugins that rewrite responses, then try again.

eAWB shows “Prea multe comenzi de importat deodată”

too_many_orders
What it means
The store has more orders in the selected statuses, within the import window, than eAWB can read in one import, so the integration switches to Eroare. The orders already imported stay.
How to fix it
In Setări, keep only the statuses you ship from in Statusuri comenzi de importat (for example only În procesare (Processing)), then press Activează (▶) on the integration card. If it was an import of a chosen period and it had stored some orders, the next import, manual or automatic, continues from that day and the period is not asked again. Otherwise the next import starts again from the same point, and while no import has succeeded yet, Importă comenzi offers the period choice again.

eAWB shows “Unele comenzi nu au putut fi importate”

orders_failed
What it means
The import reached the store, but some of its orders could not be imported, usually because a value in the order does not fit. It is a warning, not a failure: the integration stays Activ, the other orders are not affected, and every import, manual or automatic, tries the failed ones again. Detalii tehnice names up to five of them.
How to fix it
Check those orders in Magento. The warning goes away after an import in which every order is imported. While an order keeps failing, every import starts again from the same point; if that period grows too large, the integration ends in Prea multe comenzi de importat deodată. To ship such an order meanwhile, create it in eAWB from Comandă nouă, then move it in Magento to a status that is not ticked under Statusuri comenzi de importat. If the same orders keep failing, write to us at cs@eawb.ro with the Detalii tehnice text.

eAWB shows “Magazinul este deja conectat”

store_already_connected
What it means
This store address is already used by another integration in your eAWB account. One integration covers the whole Magento installation.
How to fix it
Open the existing integration under Integrări conectate (it has the same address) instead of adding a new one.

eAWB shows “Eroare neașteptată”

unknown
What it means
Any other failure: the store answered in a way eAWB does not recognise, the request to the store broke off before an answer, or a temporary error in eAWB stopped the import (the reason is under Detalii tehnice).
How to fix it
Try again in a few minutes. If it keeps happening, check the store URL and the four values of the integration, or write to us at cs@eawb.ro with the Detalii tehnice text.

Order checks

eAWB checks every order it imports, of every platform, and again each time you save it. Each check below gives the line the dashboard shows. An error keeps the order from getting an AWB until you fix it in the order’s edit window; a warning only asks you to look. Where a code ends in _N, N is the number of the parcel.

Locker

A locker order never turns into home delivery on its own: when a locker check fails, choose the locker yourself in the edit window, under Livrare în locker: Selectează punct de livrare, or Schimbă when a locker is shown.

missing_fixed_location error eAWB shows “Comanda a fost plasată cu „Ridicare din locker”, dar a ajuns în eAWB fără locker. Alege lockerul în fereastra de editare a comenzii: la „Livrare în locker”, apasă „Selectează punct de livrare”. Se întâmplă și când modulul eAWB a fost dezactivat în magazin după plasarea comenzii.”
The order was placed with locker pickup, but it reached eAWB without a locker. Choose the locker in the edit window, ideally the one the customer wants. This also happens when the eAWB module was disabled in the store after the order was placed.
fixed_location_unavailable error eAWB shows “Lockerul ales de cumpărător nu mai este disponibil. Alege alt locker cu „Schimbă”, la „Livrare în locker”.”
The locker the customer chose is no longer available. Its name, address and id are on the order in the Magento admin (order view). Choose another locker nearby, ideally after asking the customer.
fixed_location_carrier_mismatch error eAWB shows “Lockerul ales de cumpărător aparține altui curier decât cel al serviciului ales pentru comandă. La „Livrare în locker”, păstrează lockerul sau alege altul cu „Schimbă”, apoi apasă „Salvează modificările”: comanda primește din nou curierul lockerului.”
The chosen locker belongs to a courier other than that of the service chosen for the order, usually after a door service of another courier was picked in Generează AWB. Open Completează Comanda, keep the locker under Livrare în locker (or choose another with Schimbă) and click Salvează modificările; the order takes the locker’s courier again.
fixed_location_carrier_replaced warning eAWB shows “Curierul trimis de magazin nu corespundea lockerului; comanda folosește curierul căruia îi aparține lockerul.”
The courier sent by the store did not match the locker; eAWB uses the courier the locker belongs to. Nothing to do.
incomplete_fixed_location_data warning eAWB shows “eAWB nu are numele lockerului ales de cumpărător. Alege din nou lockerul cu „Schimbă”, la „Livrare în locker”.”
eAWB has no name for the order’s locker. Choose the locker again with Schimbă under Livrare în locker.

Recipient and address

Who receives the parcel and where. The length limits are the ones couriers apply when an AWB is generated. The edit window lists what it found at the top and marks the field; an error goes away as soon as the field is filled in correctly.

missing_customer_email error eAWB shows “Lipsește email-ul clientului”
The order has no email address for the customer. Fill in Email.
invalid_customer_email error eAWB shows “Email client invalid”
The customer’s email address (Email) is not a valid address. Correct it.
customer_email_too_long error eAWB shows “Adresa de email are peste 100 de caractere, cât acceptă curierii. Folosește o adresă mai scurtă.”
The email address (Email) has more than 100 characters, the most couriers accept. Use a shorter address.
missing_shipping_name error eAWB shows “Lipsește numele pentru livrare”
The shipping address has no recipient name. Fill in Nume și prenume, or Persoană contact for a company.
incomplete_shipping_name warning eAWB shows “Numele pare incomplet (lipsește prenumele sau numele de familie)”
The recipient’s name is a single word. Add the missing first or last name.
shipping_name_too_short error eAWB shows “Numele destinatarului are sub 5 caractere, cât cer curierii. Scrie numele și prenumele.”
The recipient’s name (Nume și prenume, or Persoană contact for a company) has fewer than 5 characters, the least couriers accept. Write the first and last name.
shipping_name_too_long error eAWB shows “Numele destinatarului are peste 100 de caractere, cât acceptă curierii. Scurtează-l.”
The recipient’s name has more than 100 characters, the most couriers accept. Shorten it.
company_too_short error eAWB shows “Numele companiei are sub 5 caractere, cât cer curierii. Scrie numele întreg sau trece destinatarul pe „Persoană”.”
The company name (Companie) has fewer than 5 characters, the least couriers accept. Write the full name, or switch the recipient to Persoană.
company_too_long error eAWB shows “Numele companiei are peste 64 de caractere, cât acceptă curierii. Scurtează-l.”
The company name (Companie) has more than 64 characters, the most couriers accept. Shorten it.
missing_phone error eAWB shows “Lipsește numărul de telefon”
The shipping address has no phone number. Fill in Telefon.
phone_too_short error eAWB shows “Numărul de telefon are sub 7 caractere. Scrie numărul întreg.”
The phone number (Telefon) has fewer than 7 characters, the least couriers accept. Write the full number.
phone_too_long error eAWB shows “Numărul de telefon are peste 64 de caractere. Lasă un singur număr.”
The phone number (Telefon) has more than 64 characters, the most couriers accept. Keep a single number.
missing_country_code error eAWB shows “Lipsește codul țării”
The shipping address has no country. Saving the order from the edit window sets Romania, where these orders are delivered.
missing_locality_name error eAWB shows “Lipsește numele localității”
The shipping address has no city. Choose the locality from the list in Localitate.
missing_county_name error eAWB shows “Lipsește numele județului”
The shipping address has no county (Magento’s State/Province). Choose the locality from the list in Localitate: it carries the county.
invalid_locality error eAWB shows “Localitatea „<localitate>” din județul „<județ>” nu este validă în baza de date”
eAWB could not match the city and county of the shipping address to a locality in its list (Magento’s city is free text, so an unusual spelling can fail). Choose the locality from the list in Localitate.
missing_street_name error eAWB shows “Lipsește strada”
The shipping address has no street. Fill in Strada.
street_name_too_short error eAWB shows “Strada are sub 5 caractere, cât cer curierii. Scrie numele întreg al străzii.”
The street (Strada) has fewer than 5 characters, the least couriers accept. Write the full street name.
street_name_too_long error eAWB shows “Strada are peste 100 de caractere, cât acceptă curierii. Scurteaz-o și mută blocul, scara sau apartamentul la „Detalii adresă”.”
The street (Strada) has more than 100 characters, the most couriers accept. Shorten it and move block, staircase and apartment to Detalii adresă.
street_no_too_long error eAWB shows “Numărul are peste 25 de caractere, cât acceptă curierii. Lasă doar numărul și mută restul la „Detalii adresă”.”
The house number (Număr) has more than 25 characters, the most couriers accept. Keep only the number and move the rest to Detalii adresă.
street_details_too_long error eAWB shows “Detaliile adresei au peste 60 de caractere, cât acceptă curierii. Scurtează-le.”
The address details line (Detalii adresă) has more than 60 characters, the most couriers accept. Shorten it.
street_details_truncated warning eAWB shows “Detaliile adresei aveau peste 60 de caractere, cât acceptă curierii, și au fost scurtate. Verifică-le. Textul din magazin: „<textul din magazin>”.”
The address details line was longer than the 60 characters couriers accept and was shortened at import. Check it in the edit window (Detalii adresă).
postal_code_too_short error eAWB shows “Codul poștal are sub 4 caractere. Corectează-l sau lasă câmpul gol.”
The postal code (Cod poștal) has fewer than 4 characters, the least couriers accept. Correct it or leave the field empty.
postal_code_too_long error eAWB shows “Codul poștal are peste 50 de caractere. Corectează-l sau lasă câmpul gol.”
The postal code (Cod poștal) has more than 50 characters, the most couriers accept. Correct it or leave the field empty.
postal_code_mismatch warning eAWB shows “Codul poștal nu corespunde cu localitatea selectată. Corectează-l sau lasă câmpul gol.”
The postal code does not belong to the order’s locality. Correct Cod poștal or leave the field empty.
invalid_postal_code_format warning eAWB shows “Formatul codului poștal este invalid (pentru România: 6 cifre)”
A Romanian postal code has 6 digits. Correct Cod poștal or leave the field empty.
invalid_address_format error eAWB shows “Formatul adresei este invalid”
The order reached eAWB without a readable shipping address. Fill in the recipient in the edit window and save; if the error stays, write to us at cs@eawb.ro.

Parcels and content

What is shipped, under Detalii colet in the edit window. Each save rewrites the parcel list from the parcels shown there: their count, their numbering and the total weight.

missing_contents error eAWB shows “Lipsește descrierea conținutului”
The shipment has no content description. Fill in Conținut.
missing_package_count error eAWB shows “Trebuie specificat cel puțin un tip de colet”
The order has no envelope, parcel or pallet. Choose Plic or Colet and save.
missing_total_weight error eAWB shows “Lipsește greutatea totală pentru colete”
The parcels have no total weight. Fill in the weight of each parcel; eAWB adds them up when you save.
missing_parcels_data error eAWB shows “Lipsesc datele coletelor”
The order counts parcels but lists none. Fill in the parcel and save.
parcels_count_mismatch error eAWB shows “Numărul de colete nu corespunde cu cel declarat”
The number of parcels differs from the parcels listed, or an envelope still lists parcels. Saving the order from the edit window rewrites the list.
total_weight_mismatch error eAWB shows “Greutatea totală nu corespunde cu suma greutăților coletelor”
The total weight differs from the sum of the parcels’ weights. Saving the order from the edit window adds them up again.
invalid_sequence_numbers error eAWB shows “Numerotarea coletelor trebuie să fie consecutivă (1, 2, 3...)”
The parcels are not numbered 1, 2, 3 and so on. Saving the order from the edit window numbers them again.
missing_parcel_weight_N error eAWB shows “Lipsește greutatea pentru coletul #N”
Parcel N has no weight. Fill it in under Colet #N.
missing_parcel_width_N error eAWB shows “Lipsește lățimea pentru coletul #N”
Parcel N has no width. Fill it in under Colet #N.
missing_parcel_height_N error eAWB shows “Lipsește înălțimea pentru coletul #N”
Parcel N has no height. Fill it in under Colet #N.
missing_parcel_length_N error eAWB shows “Lipsește lungimea pentru coletul #N”
Parcel N has no length. Fill it in under Colet #N.
missing_parcel_sequence_N warning eAWB shows “Lipsește numărul de ordine pentru coletul #N”
Parcel N has no number. Saving the order from the edit window numbers the parcels.
invalid_parcel_format_N error eAWB shows “Formatul coletului #N este invalid”
Parcel N is not readable. Fill in its weight and sizes under Colet #N and save; if the error stays, write to us at cs@eawb.ro.
invalid_content_format error eAWB shows “Formatul conținutului este invalid”
The order reached eAWB without readable parcel data. Fill in the parcel and save; if the error stays, write to us at cs@eawb.ro.

Courier and extra services

The AWB window opens with the order’s courier service selected in Serviciu curier; an order without one waits for your choice there. Cash on delivery and insurance are under Servicii suplimentare in the edit window.

missing_carrier_id warning eAWB shows “Lipsește ID-ul transportatorului”
The order has no courier yet. Choose it in Serviciu curier when you generate the AWB.
missing_service_id warning eAWB shows “Lipsește ID-ul serviciului”
The order has no delivery service yet. Choose it in Serviciu curier when you generate the AWB.
bank_repayment_currency_required error eAWB shows “Moneda este obligatorie pentru ramburs bancar”
Cash on delivery has an amount but no currency. Saving the order from the edit window sets the order’s currency.
invalid_bank_details error eAWB shows “Detaliile bancare (IBAN/titular) sunt invalide”
The IBAN or the account holder of the cash on delivery is not valid. Correct IBAN and Titular cont under Ramburs la livrare.
insurance_currency_required error eAWB shows “Moneda este obligatorie pentru asigurare”
The insurance has an amount but no currency. Saving the order from the edit window sets the order’s currency.
invalid_extra_format error eAWB shows “Formatul serviciilor suplimentare este invalid”
The order reached eAWB without readable extra services. Save it from the edit window; if the error stays, write to us at cs@eawb.ro.

Other issues

Some orders do not appear in eAWB

Only orders in the statuses ticked under Statusuri comenzi de importat are imported (by default În așteptare (Pending) and În procesare (Processing)); a status of your own must be added by its code. Orders with nothing to ship (only virtual or downloadable products) and orders the customer collects in your store (Magento’s In-Store Pickup) are not imported. Check that the integration is Activ (not paused or in Eroare) and that the first import went back far enough; an order that could not be imported is named under Detalii tehnice of the warning Unele comenzi nu au putut fi importate on the integration card. An order older than the first import’s period still arrives if it is changed in Magento after the last successful import while in a ticked status (for example moved to Processing); otherwise create its shipment from Comandă nouă (New order) in the dashboard. Automatic sync runs every 4 hours; click Importă comenzi to import right away.

The locker method does not show at checkout

In Stores → Configuration → Sales → Delivery Methods → eAWB, check that Enabled is Yes and, in Locker Pickup, that Enabled is Yes and at least one network is selected in Locker Networks; also that Ship to Specific Countries includes the customer’s country. Locker pickup is offered only in checkouts that use Magento’s REST checkout API (the standard Magento checkout, and one-step checkouts built on it) and to REST API clients (see Good to Know). After installing or updating the module, run the commands from step 3.

eAWB shows “Prea multe încercări. Așteaptă un minut și încearcă din nou.”

eAWB limits how often the same action can be repeated. Wait a minute, then try again.