Add method to retrieve UPS Shipment status in shipping method plugin

Created on 8 May 2024, 8 months ago

Currently, there is no direct method available in the UPS plugin to retrieve the status of UPS shipments programmatically. This functionality is essential for scenarios where custom code needs to interact with UPS shipments, such as updating the state of an order or shipment based on UPS tracking information.

API documentation: https://developer.ups.com/api/reference?loc=en_US#operation/getSingleTra...

Example code demonstrating how it could be used:

        // Instantiate the UPS shipment method plugin.
        $ups_plugin = $shipment->getShippingMethod()->getPlugin();

        $result = $ups_plugin->trackShipment($shipment);
        ...
Feature request
Status

Active

Version

3.0

Component

Code

Created by

🇵🇹Portugal introfini

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024