cancel
Showing results for 
Search instead for 
Did you mean: 

UPS Rates not showing in

UPS Rates not showing in

Hi all,

I'm currently trying to set up a connection to our UPS account in our Magento 2.4.7 store. I've set all the settings and UPS API credentials - according to UPS - correctly but am still not seeing any rates on the frontend of our store. The var/log/shipping.log Log gives me the following output (I've replaced our account number with <account> for security purposes):

 

[2025-02-17T01:05:13.538915+00:00] main.DEBUG: array (
'request' => '{
"RateRequest": {
"Request": {
"TransactionReference": {
"CustomerContext": "Rating and Service"
}
},
"Shipment": {
"Shipper": {
"Name": "UPS",
"ShipperNumber": "<account>",
"Address": {
"AddressLine": [
"01"
],
"City": "Stans",
"StateProvinceCode": "NW",
"PostalCode": "6370",
"CountryCode": "CH"
}
},
"ShipTo": {
"Address": {
"AddressLine": [
"01"
],
"StateProvinceCode": "NSW",
"PostalCode": "2060",
"CountryCode": "AU",
"ResidentialAddressIndicator": "01"
}
},
"ShipFrom": {
"Address": {
"AddressLine": [],
"StateProvinceCode": "NW",
"PostalCode": "6370",
"CountryCode": "CH"
}
},
"ShipmentRatingOptions": {
"TPFCNegotiatedRatesIndicator": "Y",
"NegotiatedRatesIndicator": "Y"
},
"Package": [
{
"PackagingType": {
"Code": "00",
"Description": "Packaging"
},
"Dimensions": {
"UnitOfMeasurement": {
"Code": "CM",
"Description": "Centimeter"
},
"Length": "0",
"Width": "0",
"Height": "0"
},
"PackageWeight": {
"UnitOfMeasurement": {
"Code": "KGS"
},
"We ight": "0.1"
}
}
]
}
}
}',
'result' => '{"RateResponse":{"Response":{"ResponseStatus":{"Code":"1", "Description":"Success"}, "Alert":[{"Code":"110971", "Description":"Your invoice may vary from the displayed reference rates"}, {"Code":"111685", "Description":"TPFCNegotiatedRatesIndicator is applicable only for Third party/Freight Collect shipments."}], "TransactionReference":{"CustomerContext":"Rating and Service"}}, "RatedShipment":[{"Service":{"Code":"07", "Description":""}, "RatedShipmentAlert":{"Code":"110971", "Description":"Your invoice may vary from the displayed reference rates"}, "BillingWeight":{"UnitOfMeasurement":{"Code":"KGS", "Description":"Kilograms"}, "We ight":"0.5"}, "TransportationCharges":{"CurrencyCode":"CHF", "MonetaryValue":"391.15"}, "ServiceOptionsCharges":{"CurrencyCode":"CHF", "MonetaryValue":"0.00"}, "TotalCharges":{"CurrencyCode":"CHF", "MonetaryValue":"391.15"}, "NegotiatedRateCharges":{"TotalCharge":{"CurrencyCode":"CHF", "MonetaryValue":"387.24"}}, "RatedPackage":{"We ight":"0.1"}}, {"Service":{"Code":"08", "Description":""}, "RatedShipmentAlert":{"Code":"110971", "Description":"Your invoice may vary from the displayed reference rates"}, "BillingWeight":{"UnitOfMeasurement":{"Code":"KGS", "Description":"Kilograms"}, "We ight":"0.5"}, "TransportationCharges":{"CurrencyCode":"CHF", "MonetaryValue":"417.40"}, "ServiceOptionsCharges":{"CurrencyCode":"CHF", "MonetaryValue":"0.00"}, "TotalCharges":{"CurrencyCode":"CHF", "MonetaryValue":"417.40"}, "NegotiatedRateCharges":{"TotalCharge":{"CurrencyCode":"CHF", "MonetaryValue":"413.23"}}, "RatedPackage":{"We ight":"0.1"}}, {"Service":{"Code":"54", "Description":""}, "RatedShipmentAlert":{"Code":"110971", "Description":"Your invoice may vary from the displayed reference rates"}, "BillingWeight":{"UnitOfMeasurement":{"Code":"KGS", "Description":"Kilograms"}, "We ight":"0.5"}, "TransportationCharges":{"CurrencyCode":"CHF", "MonetaryValue":"543.05"}, "ServiceOptionsCharges":{"CurrencyCode":"CHF", "MonetaryValue":"0.00"}, "TotalCharges":{"CurrencyCode":"CHF", "MonetaryValue":"543.05"}, "NegotiatedRateCharges":{"TotalCharge":{"CurrencyCode":"CHF", "MonetaryValue":"537.62"}}, "RatedPackage":{"We ight":"0.1"}}, {"Service":{"Code":"65", "Description":""}, "RatedShipmentAlert":{"Code":"110971", "Description":"Your invoice may vary from the displayed reference rates"}, "BillingWeight":{"UnitOfMeasurement":{"Code":"KGS", "Description":"Kilograms"}, "We ight":"0.5"}, "TransportationCharges":{"CurrencyCode":"CHF", "MonetaryValue":"365.85"}, "ServiceOptionsCharges":{"CurrencyCode":"CHF", "MonetaryValue":"0.00"}, "TotalCharges":{"CurrencyCode":"CHF", "MonetaryValue":"365.85"}, "NegotiatedRateCharges":{"TotalCharge":{"CurrencyCode":"CHF", "MonetaryValue":"362.19"}}, "RatedPackage":{"We ight":"0.1"}}]}}',
) [] []
According to the log, we're getting a successful response. However, the frontend shows the following error message:
Screenshot 2025-02-17 at 12.19.08 PM.png
 
The origin in Store > Settings > Config > Shipping Settings is set correctly too.
 
Can you share any advice on why the REST API return is not displayed on the frontend?
 
Thanks,
Max