Log in
Interface

AbstractCarrierInterface

Magento\Shipping\Model\Carrier\AbstractCarrierInterface

What it does

This interface defines the contract for all shipping carrier implementations in Magento 2.

Developers use this when creating custom shipping methods or integrating third-party carriers, as it specifies required methods for rate calculation, shipment creation, tracking, label generation, and validation of shipping destinations and requirements.

Public Methods

  • getConfigData()
  • collectRates()
  • requestToShipment()
  • returnOfShipment()
  • getContainerTypes()
  • getCustomizableContainerTypes()
  • getDeliveryConfirmationTypes()
  • checkAvailableShipCountries()
  • proccessAdditionalValidation()
  • isActive()
  • isFixed()
  • isTrackingAvailable()
  • isShippingLabelsAvailable()
  • getSortOrder()
  • getFinalPriceWithHandlingFee()
  • getTotalNumOfBoxes()
  • isStateProvinceRequired()
  • isCityRequired()
  • isZipCodeRequired()
  • debugData()
  • getCarrierCode()
  • getContentTypes()