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 this when creating or managing tracking numbers for shipped orders, allowing them to set and retrieve the tracking number, carrier code (like UPS, FedEx), and a descriptive title for each shipment package.

It's commonly used in custom shipping integrations or when programmatically adding tracking information to orders.

Public Methods

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