Incorrect international rates & service codes in API requests
-
I am getting very different shipping rates when in my UPS account versus the plugin for international shipments. I think there is a bug in service codes being requested by the plugin.
(Order has 2 items with a weight of 9.3oz ea.)
UPS rate: ~$45
Plugin Rate: ~$130In the Debug I see it is pulling $130.06 for service Code 07 which is “UPS Worldwide Express”, but you can see in the screenshot I’ve asked for “UPS Worldwide Expedited” (Which is service code 08). I believe its wrong for all of them.
My question is:
- How is there such a huge discrepency?
- Is the plugin pulling rates for the wrong shipping service?
UPS API Service Codes:
Description Shipping Rating Service Codes: UPS Standard: 11 UPS Worldwide Express: 07 UPS Worldwide Expedited: 08 UPS Worldwide Express Plus: 54 UPS Worldwide Saver: 65
ScreenShots
UPS Live rate from their website: https://drive.google.com/file/d/1lUwWEV-w8TSgCrOLaldAEPuKQpzGTOBC/view?usp=sharingPlugin Calculation: https://drive.google.com/file/d/1mVrPFbPSdPqT3WPk__Lxf5E3C19Zj672/view?usp=sharing
API Request sent to UPS
<?xml version="1.0"?> <RatingServiceSelectionRequest xml:lang="en-US"> <Request> <TransactionReference/> <RequestAction>Rate</RequestAction> <RequestOption>Shop</RequestOption> </Request> <PickupType> <Code>03</Code> <Description/> </PickupType> <Shipment> <Service> <Code>03</Code> <Description/> </Service> <Shipper> <ShipperNumber>HIDDEN</ShipperNumber> <Address> <AddressLine1>HIDDEN</AddressLine1> <City>Rochester Hills</City> <StateProvinceCode>MI</StateProvinceCode> <PostalCode>48309</PostalCode> <CountryCode>US</CountryCode> </Address> </Shipper> <ShipFrom> <Address> <AddressLine1>HIDDEN</AddressLine1> <City>Rochester Hills</City> <StateProvinceCode>MI</StateProvinceCode> <PostalCode>48309</PostalCode> <CountryCode>US</CountryCode> </Address> </ShipFrom> <ShipTo> <Name/> <CompanyName/> <AttentionName/> <Address> <City>Alkmaar</City> <CountryCode>NL</CountryCode> </Address> </ShipTo> <RateInformation> <NegotiatedRatesIndicator/> </RateInformation> <Package> <PackagingType> <Code>02</Code> <Description/> </PackagingType> <PackageWeight> <Weight>1.16</Weight> <UnitOfMeasurement> <Code>LBS</Code> <Description/> </UnitOfMeasurement> </PackageWeight> <PackageServiceOptions/> </Package> <ShipmentServiceOptions/> </Shipment> </RatingServiceSelectionRequest>
API Response from UPS:
<?xml version="1.0"?> <RatingServiceSelectionResponse> <Response> <ResponseStatusCode>1</ResponseStatusCode> <ResponseStatusDescription>Success</ResponseStatusDescription> </Response> <RatedShipment> <Service> <Code>54</Code> </Service> <RatedShipmentWarning>The selected service may not guarantee early AM arrival to the requested location.</RatedShipmentWarning> <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning> <BillingWeight> <UnitOfMeasurement> <Code>LBS</Code> </UnitOfMeasurement> <Weight>2.0</Weight> </BillingWeight> <TransportationCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>187.47</MonetaryValue> </TransportationCharges> <ServiceOptionsCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>0.00</MonetaryValue> </ServiceOptionsCharges> <TotalCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>187.47</MonetaryValue> </TotalCharges> <GuaranteedDaysToDelivery/> <ScheduledDeliveryTime/> <RatedPackage> <TransportationCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>0.00</MonetaryValue> </TransportationCharges> <ServiceOptionsCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>0.00</MonetaryValue> </ServiceOptionsCharges> <TotalCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>0.00</MonetaryValue> </TotalCharges> <Weight>1.2</Weight> <BillingWeight> <UnitOfMeasurement> <Code>LBS</Code> </UnitOfMeasurement> <Weight>2.0</Weight> </BillingWeight> </RatedPackage> </RatedShipment> <RatedShipment> <Service> <Code>65</Code> </Service> <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning> <BillingWeight> <UnitOfMeasurement> <Code>LBS</Code> </UnitOfMeasurement> <Weight>2.0</Weight> </BillingWeight> <TransportationCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>141.10</MonetaryValue> </TransportationCharges> <ServiceOptionsCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>0.00</MonetaryValue> </ServiceOptionsCharges> <TotalCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>141.10</MonetaryValue> </TotalCharges> <GuaranteedDaysToDelivery/> <ScheduledDeliveryTime/> <RatedPackage> <TransportationCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>0.00</MonetaryValue> </TransportationCharges> <ServiceOptionsCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>0.00</MonetaryValue> </ServiceOptionsCharges> <TotalCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>0.00</MonetaryValue> </TotalCharges> <Weight>1.2</Weight> <BillingWeight> <UnitOfMeasurement> <Code>LBS</Code> </UnitOfMeasurement> <Weight>2.0</Weight> </BillingWeight> </RatedPackage> </RatedShipment> <RatedShipment> <Service> <Code>07</Code> </Service> <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning> <BillingWeight> <UnitOfMeasurement> <Code>LBS</Code> </UnitOfMeasurement> <Weight>2.0</Weight> </BillingWeight> <TransportationCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>142.97</MonetaryValue> </TransportationCharges> <ServiceOptionsCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>0.00</MonetaryValue> </ServiceOptionsCharges> <TotalCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>142.97</MonetaryValue> </TotalCharges> <GuaranteedDaysToDelivery/> <ScheduledDeliveryTime/> <RatedPackage> <TransportationCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>0.00</MonetaryValue> </TransportationCharges> <ServiceOptionsCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>0.00</MonetaryValue> </ServiceOptionsCharges> <TotalCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>0.00</MonetaryValue> </TotalCharges> <Weight>1.2</Weight> <BillingWeight> <UnitOfMeasurement> <Code>LBS</Code> </UnitOfMeasurement> <Weight>2.0</Weight> </BillingWeight> </RatedPackage> </RatedShipment> <RatedShipment> <Service> <Code>08</Code> </Service> <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning> <BillingWeight> <UnitOfMeasurement> <Code>LBS</Code> </UnitOfMeasurement> <Weight>2.0</Weight> </BillingWeight> <TransportationCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>130.06</MonetaryValue> </TransportationCharges> <ServiceOptionsCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>0.00</MonetaryValue> </ServiceOptionsCharges> <TotalCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>130.06</MonetaryValue> </TotalCharges> <GuaranteedDaysToDelivery/> <ScheduledDeliveryTime/> <RatedPackage> <TransportationCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>0.00</MonetaryValue> </TransportationCharges> <ServiceOptionsCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>0.00</MonetaryValue> </ServiceOptionsCharges> <TotalCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>0.00</MonetaryValue> </TotalCharges> <Weight>1.2</Weight> <BillingWeight> <UnitOfMeasurement> <Code>LBS</Code> </UnitOfMeasurement> <Weight>2.0</Weight> </BillingWeight> </RatedPackage> </RatedShipment> </RatingServiceSelectionResponse>
- The topic ‘Incorrect international rates & service codes in API requests’ is closed to new replies.