Magento connects your online store to third-party shipping providers such as DHL, FedEx, and UPS. When you process an order, you can generate shipping labels from within the Magento 2 panel.
This guide shows you how to create shipping labels in Magento 2. We’re using the Magento 2.4.3 version for this tutorial.
Get in Touch with Your Shipping Carriers
- Configure shipping settings to create a point of origin for your store.
- Contact the shipping carriers and create an account to process labels.
- Set up shipping label support for each carrier to your account. These are the instructions provided by shipping carriers:
FedEx: Get support from FedEx Web Integration Services and learn the label printing requirements for your account.
USPS: Contact Web Tools API Portal under Shipper Support Center to understand how to configure label printing credentials for your account.
UPS: Contact UPS Online Support Resources to verify if your account supports shipping labels. You must use the UPS XML option to create shipping labels.
DHL: Get in touch with DHL eCommerce Solutions and understand your label printing requirements.
Update Configuration for All Shipping Carriers
- Go to Stores > Settings > Configuration.
- Expand “Sales” in the sidebar and click Shipping Settings.
- Go to the “Origin” section and fill out the shipping origin address.
- Configure each shipping carrier to be used for label printing below.
UPS
Although UPS ships domestically and internationally, you can only generate shipping labels that originate in the US.
- Navigate to Sales > Delivery Methods from the sidebar.
- Expand the “UPS” section.
- Scroll down, locate the Shipper Number field, and verify it’s correct. The Shipper Number is a six-digit number the UPS assigns if you have special or negotiated rates.
Note: The United Parcel Service XML needs to be enabled for the Shipping Number to display.Add the Shipper Number field and click the Save Config button - Click the orange Save Config button.
USPS
The United States Postal Service ships both domestically and internationally.
- Expand the “USPS” section in the “Delivery Methods.”
- Check if the Secure Gateway URL is correct.
- Enter the password provided by USPS in the Password text area.
- Go to the Size field, uncheck the Use system value checkbox, and set it to Large. The page updates to add Length, Width, Height, and Girth. Enter the values of the package dimensions.
- Click the orange Save Config button.
Enter the Password, update the Size field, and click Save Config button
FedEx
FedEx offers both domestic and international shipping. Stores located internationally, i.e., outside the US, can create FedEx labels only for international shipments.
- Expand the “FedEx” section in the “Delivery Methods.”
- Check if your FedEx credentials such as Meter Number, Key, and Password are correct.
- Click the orange Save Config button.
DHL
DHL offers international shipping.
- Expand the “DHL” section in the “Delivery Methods.”
- Check if your DHL credentials such as Access ID, Password, and Account Number are correct.
- Click the orange Save Config button.
Create Shipping Labels
Method 1: Create Label for New Shipment
- Navigate to Sales > Orders from the sidebar.
- Locate the order in the grid and click View in the corresponding “Action” column. The order status must be either “Pending” or “Processing.”
- Click Ship located on the top-right corner.
- Verify the shipping information as per the carrier requirements.
- Tick the Create Shipping Label checkbox in the bottom-right corner.
- Click on the Submit Shipment button.
- Add, remove, or update products in a package by following these steps:
Add products from the order to the package: Click Add Products. The Quality column updates to show the maximum number of products allowed in the package. Tick the checkbox of products to be added to the package and then enter the Quantity of each. Click Add Selected Products to Package.
To cancel an order, click Cancel. The “Create Shipping Label” checkbox is blank, and the shipping label isn’t created.
Method 2: Create Label for Existing Shipment
- Navigate to Sales > Orders from the sidebar.
- Locate the order in the grid and open the Shipping Form.
- Click Create Shipping Label in the “Shipping and Tracking Information” section.
- Assign the ordered products to packages.
- Click Show Packages to review the package information.
Print Shipping Labels
Method 1: Print Label of a Single Order
You can print the shipping label from “Orders” or “Shipments.” We’ll show both the ways below:
Print Label of a Single Order via Orders
- Go to Sales > Orders from the admin sidebar.
- Locate the order in the grid and click View in the corresponding Action column.
- Select Shipments from the left panel.
- Click View to open the shipping record.
- Go to the “Shipping and Tracking Information” section.
- Click Print Shipping Label.
Print Label of a Single Order via Shipments
- Go to Sales > Shipments from the admin sidebar.
- Find the order in the grid and click View in the corresponding Action column.
- Locate the “Shipping and Tracking Information” section.
- Click Print Shipping Label.
If you can’t see the “Print Shipping Label” button, click Create Shipping Label to generate shipping labels. The “Print Shipping Label” button will appear after Magento receives the label from the shipping carrier.
Method 2: Print Labels for Multiple Orders
- Go to either of the following pages and tick the checkboxes of the orders for printing:
Sales > Orders
Sales > Shipments - Select the Action dropdown and click Print Shipping Labels.
- Click the orange Submit button on the top right.
You should see a set of shipping labels for each shipment.