Log in
Interface

TrackInterface

Magento\Sales\Api\Data\TrackInterface

What it does

This interface defines the contract for shipment tracking information in Magento 2.

Developers use it when creating or managing shipping tracking numbers for orders, allowing them to set and retrieve the tracking number, carrier code (like UPS, FedEx), and title for a shipment package.

It's commonly used when integrating with shipping carriers or customizing the order fulfillment process.

Public Methods

  • setTrackNumber()
  • getTrackNumber()
  • setTitle()
  • getTitle()
  • setCarrierCode()
  • getCarrierCode()