Log in
Repository

ShipmentTrackRepositoryInterface

Magento\Sales\Api\ShipmentTrackRepositoryInterface

What it does

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

Developers use this repository to create, retrieve, update, and delete tracking numbers associated with shipments, such as UPS or FedEx tracking codes.

It provides methods to save new tracking information, fetch existing tracks by ID or search criteria, and remove tracking records when needed.

Public Methods

  • getList()
  • get()
  • delete()
  • save()
  • deleteById()