How to Create and Print Shipping Labels in Magento 2

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

  1. Configure shipping settings to create a point of origin for your store.
  2. Contact the shipping carriers and create an account to process labels.
  3. 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

  1. Go to Stores > Settings > Configuration.

    Configuration in the sidebar
  2. Expand “Sales” in the sidebar and click Shipping Settings.

    Shipping Settings in the left panel
  3. Go to the “Origin” section and fill out the shipping origin address.

    Origin section
    Expand the Origin section
  4. 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.

  1. Navigate to Sales > Delivery Methods from the sidebar.

    Delivery Methods
    Delivery Methods in the left panel
  2. Expand the “UPS” section.

    UPS section
    Expand the UPS section
  3. 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.

    Shipper Number field and Save Config button
    Add the Shipper Number field and click the Save Config button
  4. Click the orange Save Config button.

USPS

The United States Postal Service ships both domestically and internationally.

  1. Expand the “USPS” section in the “Delivery Methods.”

    USPS section
    Expand the USPS section
  2. Check if the Secure Gateway URL is correct.

    Secure Gateway URL
    Verify Secure Gateway URL
  3. Enter the password provided by USPS in the Password text area.
  4. 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.
  5. Click the orange Save Config button.

    Password field, Size field, and 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.

  1. Expand the “FedEx” section in the “Delivery Methods.”
  2. Check if your FedEx credentials such as Meter Number, Key, and Password are correct.
  3. Click the orange Save Config button.

    FedEx credentials and Save Config button
    Check the FedEx credentials and click Save Config

DHL

DHL offers international shipping.

  1. Expand the “DHL” section in the “Delivery Methods.”
  2. Check if your DHL credentials such as Access ID, Password, and Account Number are correct.
  3. Click the orange Save Config button.

    DHL credentials and Save Config
    Check the DHL credentials and click Save Config

Create Shipping Labels

Method 1: Create Label for New Shipment

  1. Navigate to Sales > Orders from the sidebar.

    Orders
    Orders in the sidebar
  2. Locate the order in the grid and click View in the corresponding “Action” column. The order status must be either “Pending” or “Processing.”

    View button
    Find the order and click View
  3. Click Ship located on the top-right corner.

    Ship button
    Click Ship
  4. Verify the shipping information as per the carrier requirements.
  5. Tick the Create Shipping Label checkbox in the bottom-right corner.
  6. Click on the Submit Shipment button.
  7. 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

  1. Navigate to Sales > Orders from the sidebar.

    Orders
    Orders in the sidebar
  2. Locate the order in the grid and open the Shipping Form.
  3. Click Create Shipping Label in the “Shipping and Tracking Information” section.
  4. Assign the ordered products to packages.
  5. Click Show Packages to review the package information.

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

  1. Go to Sales > Orders from the admin sidebar.

    Orders in the sidebar
    Orders in the sidebar
  2. Locate the order in the grid and click View in the corresponding Action column.
  3. Select Shipments from the left panel.

    Shipments
    Shipments in the left panel
  4. Click View to open the shipping record.
  5. Go to the “Shipping and Tracking Information” section.
  6. Click Print Shipping Label.

Print Label of a Single Order via Shipments

  1. Go to Sales > Shipments from the admin sidebar.

    Shipments in the sidebar
    Shipments in the sidebar
  2. Find the order in the grid and click View in the corresponding Action column.

    Orders in Shipments
    Find the order and click View
  3. Locate the “Shipping and Tracking Information” section.
  4. 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

  1. Go to either of the following pages and tick the checkboxes of the orders for printing:
    Sales > Orders
    Sales > Shipments
  2. Select the Action dropdown and click Print Shipping Labels.

    Print Shipping Labels
    Click Print Shipping Labels
  3. Click the orange Submit button on the top right.

You should see a set of shipping labels for each shipment.

Was this article helpful?

Leave a Comment