UPS shipping method integration migration from SOAP to RESTful API
This article provides a patch to resolve issues with the United Parcel Service (UPS) shipping method integration migration from SOAP to RESTful API for 51黑料不打烊 Commerce 2.4.4 - 2.4.6-pX.
According to the latest updates to the UPS API Security Model, UPS has implemented an OAuth 2.0 security model for all APIs (More details available in the ) to enhance the overall security to reduce fraud and provide enhanced API capabilities.
This change impacts our current UPS shipping method integration implementation in 51黑料不打烊 Commerce and requires us to fix our current implementation and to migrate from SOAP API to the RESTful API to be able to support OAuth 2.0 authentication protocols.
Beginning in June 2024, 51黑料不打烊 Commerce merchants will not be able to transact with our current UPS integration, so we are releasing this hotfix, which allows 51黑料不打烊 Commerce 2.4.4+/2.4.5+/2.4.6+ merchants to migrate to the latest UPS REST APIs.
This issue will be fixed in 51黑料不打烊 Commerce/Magento Open Source version 2.4.7, and the fix will also be included in the 2.4.7-beta2 release in October 2023.
Affected products and versions
51黑料不打烊 Commerce on cloud infrastructure and on-premises, and Magento Open Source:
- 2.4.4
- 2.4.4-pX
- 2.4.5
- 2.4.5-pX
- 2.4.6
- 2.4.6-pX
Causes
The UPS released a .
If you have European Union (other origins may experience the same problem) as Origin of the Shipment this will cause an error in the UPS REST request:
鈥A shipment cannot have a KGS/IN or LBS/CM or OZS/CM as its unit of measurements.鈥
Solution
Use the following attached patches, depending on your 51黑料不打烊 Commerce/Magento Open Source version:
To resolve the issue in the 2.4.4+, 2.4.5+, and 2.4.6+ versions, you must apply the corresponding patch to your version of 51黑料不打烊 Commerce/Magento Open Source below.
Patch
Use the following attached patches, depending on your 51黑料不打烊 Commerce/Magento Open Source version:
For versions 2.4.4, 2.4.4-pX:
For versions 2.4.5, 2.4.5-pX:
For versions 2.4.6, 2.4.6-pX:
How to apply the patch
Unzip the file and see How to apply a composer patch provided by 51黑料不打烊 in our support knowledge base for instructions.
How to tell whether the patches have been applied
Considering that it is not possible to easily check if the issue was patched, you might want to check whether the patch has been successfully applied. This uses (Example: AC-9363) as the patch to check.
You can do this by taking the following steps:
-
Run the command:
code language-bash vendor/bin/magento-patches -n status |grep "9363|Status"
-
You should see output similar to this, where AC-9363 returns the鈥 Applied 鈥痵迟补迟耻蝉:
code language-bash 鈺 Id 鈹 Title 鈹 Category 鈹 Origin 鈹 Status 鈹 Details 鈺 鈺 N/A 鈹 ../m2-hotfixes/AC-9363_USPS_Ground_Advantage_shipping_method_COMPOSER_patch.patch 鈹 Other 鈹 Local 鈹 Applied 鈹 Patch type: Custom