Log in
Interface

ShipmentTrackCreationInterface

Magento\Sales\Api\Data\ShipmentTrackCreationInterface

What it does

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

Developers use it when they need to add tracking numbers to order shipments programmatically, such as when integrating with shipping carriers or creating custom shipment workflows.

It extends TrackInterface to include tracking details like carrier code, tracking number, and title, while also supporting extension attributes for custom data.

Public Methods

  • getExtensionAttributes()
  • setExtensionAttributes()