Log in
Interface

CarrierInterface

Magento\Shipping\Model\Carrier\CarrierInterface

What it does

This interface defines the contract that all shipping carrier implementations must follow in Magento 2.

Developers implement this interface when creating custom shipping carriers or payment methods to ensure they provide tracking availability information and a list of allowed shipping methods.

It serves as the foundation for integrating third-party shipping providers like UPS, FedEx, or custom carriers.

Public Methods

  • isTrackingAvailable()
  • getAllowedMethods()