Log in
Model

Labels

Magento\Shipping\Model\Shipping\Labels

What it does

This class handles the creation of shipping labels in Magento 2.

Developers use it to prepare and submit shipment requests to shipping carriers, gathering all necessary information like shipper details from store configuration and recipient details from the order shipping address.

It validates that required store information is complete before generating the shipping label request.

Public Methods

  • requestToShipment()