Sameday WooCommerce integration: automatic AWB and easybox lockers
· The AYT team · 6 min read

You integrate Sameday, a Romanian courier, with WooCommerce using the free, official plugin SamedayCourier Shipping, published by Sameday on wordpress.org. You set it up with the username and password Sameday sends after you sign a contract, import the services, pickup points and easybox lockers, add the shipping method to the Romania zone, and then generate the AWB (the courier's waybill) in one click from the order.
What you need first
- a contract with Sameday; the plugin is free, but without a contract you don't get credentials;
- the API username and password from Sameday (the test and production environments have separate sets);
- WordPress 6.6 or newer, WooCommerce 6.1 or newer and PHP 7.4 or newer, according to the plugin page;
- a weight on every product (Products → Edit product → Shipping), for cost estimates.
The plugin supports WooCommerce's HPOS (High-Performance Order Storage) as well as the legacy storage, so it works on new and old stores. What HPOS means is in the article on HPOS in WooCommerce.
Do the setup on a staging copy first, with Sameday's test credentials, so you don't create real AWBs by mistake.
Step 1: install the plugin
In wp-admin, go to Plugins → Add Plugin, search for "SamedayCourier Shipping", install and activate. Check the author: it should be SamedayCourier. wordpress.org also has third-party plugins that mention Sameday, some of them for Bulgaria.
Step 2: credentials and general settings
Go to WooCommerce → Settings → the SamedayCourier tab and fill in (field names as in version 2.3 of the plugin):
- Title: the shipping method's name shown to the customer;
- Username and Password: the credentials from Sameday;
- Default label format: the paper format for AWBs (for example A4);
- Use estimated cost: "Never" shows the fixed price you set on each service, "Always" shows Sameday's estimated cost, and "If its cost is bigger than fixed price" shows the estimate only when it exceeds the fixed price;
- Extra fee: a percentage added on top of the estimated cost;
- Open package status and Open package label: whether customers may open the parcel on delivery, and the wording of the checkout question;
- Locker max. items: how many different products a cart may hold and still get the easybox option (5 by default);
- Order status after AWB: the status an order gets once its AWB is generated ("Do not change" leaves it alone).
Save. If the credentials are correct, you get a confirmation message, and the Env. Mode field shows "Prod" or "Demo" on its own, depending on which set of credentials you used.
Step 3: import services, pickup points and lockers
The plugin doesn't know on its own which services your contract has. You fetch them from the plugin's pages in wp-admin:
- in Sameday Services, click Refresh Services to fetch the services from your account;
- in Sameday Pickup-points, click Refresh Pickup point to fetch the places where the courier collects your parcels;
- in Sameday lockers, click Refresh Lockers if you want easybox delivery.
All imported services start disabled. Open each service you want to offer and fill in:
- Service name: the name shown at checkout;
- Price: the fixed delivery price, used when Use estimated cost is "Never";
- Free delivery price: the minimum order value for free delivery (leave blank if you don't offer it);
- Status: change it from "Disabled" to "Always".
Step 4: add Sameday to the shipping zone
Go to WooCommerce → Settings → Shipping → Shipping zones. Edit the zone that contains Romania (or create one with Romania as the region), click Add shipping method, choose SamedayCourier and save. Without this step, the services don't show at checkout even if they're enabled.
Place a test order: at checkout you should see the enabled services, with the fixed or estimated price.
Step 5: generate the AWB
On the order page, click Generate awb. A window opens, pre-filled from the order, where you can correct the number of parcels, the weight or the cash-on-delivery amount. After generating it you can:
- download the AWB as a PDF for printing;
- see the AWB's history and status;
- add another parcel to the same AWB;
- delete the AWB if you got something wrong.
For several orders at once, select them in the orders list and use bulk generation: the window shows the orders, the progress and the result for each one. If you set Order status after AWB (for example "Completed"), the order moves to that status on its own, and if you delete the AWB, it goes back to its previous status.
For cash-on-delivery orders, the plugin warns you if the repayment currency doesn't match the destination country, so you don't send the courier a wrong amount.
easybox locker delivery
Locker delivery shows at checkout once you've imported the locker list and enabled the locker service (Locker NextDay) in the services list. The customer picks the locker on a map or from a list, depending on Show locker map method. Two things limit the option:
- carts with more different products than the Locker max. items value don't get the locker option (the plugin counts cart lines, not units);
- the parcel has to fit the locker's compartment, so fill in dimensions for bulky products.
Common problems
I see the fixed price although I chose the estimated cost
According to the plugin's FAQ, the usual cause is a town spelled differently from Sameday's list of localities. Check the town in the customer's address.
The services don't show at checkout
Check three things: the service's status is "Always", the SamedayCourier method is added to the right shipping zone, and the customer's address is in Romania.
The AWB won't generate
Check whether Env. Mode shows the environment you want (Prod for real AWBs), whether the products have a weight, and whether the address has a valid county and town. The error in the AWB window usually says which field is missing.
Sameday on a store hosted at AYT
On AYT WordPress hosting you test the setup on a staging site created from the WordPress Toolkit, then repeat it on the live store or push it back. Under Push to live, pick "Files only" or "Files and settings" (the latter also brings over the settings and plugin data changed on staging, but keeps live's orders, posts and users). "Everything" replaces the whole live database, including orders received in the meantime. Live is backed up before any push. Daily backups let you go back if a plugin update breaks checkout. The panel's monitoring emails you if the site stops responding or a plugin slows it down.
