Log in
Model

Carrier

Magento\Ups\Model\Carrier

What it does

The UPS Carrier class handles all interactions with UPS shipping services in Magento 2.

Developers use this class to get shipping rates, create shipment labels, track packages, and manage UPS-specific shipping options like delivery confirmation types and container types.

It supports multiple UPS API versions (CGI, XML, and REST) and handles both domestic and international shipments.

Public Methods

  • collectRates()
  • setRequest()
  • getResult()
  • getShipmentByCode()
  • getTracking()
  • getResponse()
  • getAllowedMethods()
  • getShipAcceptUrl()
  • getShipConfirmUrl()
  • requestToShipment()
  • returnOfShipment()
  • getContainerTypes()
  • getContainerTypesAll()
  • getContainerTypesFilter()
  • getDeliveryConfirmationTypes()
  • getCustomizableContainerTypes()