• Resolved dnikod

    (@dnikod)


    Hello guys

    I switched from XML to OAuth since a week, and I get an error:
    {“response”:{“errors”:[{“code”:”250002″,”message”:”Invalid Authentication Information.”}]}}
    I had issues with accurate rates since the beginning, and no one could really discover the reason – I contacted both your support and the UPS technical support. Discrepancy was always there, but never this high.


    I checked the authentication details and everything seems to be connected well:
    https://ibb.co/VmC6FPP

    In addition I get this on the checkout page:
    UPS Live Rates: No rates added from collection point rates!
    UPS SurePost Live Rates: No rates added from standard service rates!

    Here are the API request and response.

    API request:

    {
    "RateRequest": {
    "PickupType": {
    "Code": "03"
    },
    "Shipment": {
    "Service": [],
    "ShipFrom": {
    "Address": {
    "AddressLine1": "Schulstrasse 163",
    "City": "Regensdorf",
    "CountryCode": "CH",
    "PostalCode": "8105",
    "StateProvinceCode": "ZH"
    }
    },
    "ShipTo": {
    "Address": {
    "AddressLine1": "La Roche",
    "City": "S\u00e9rent",
    "CountryCode": "FR",
    "PostalCode": "56460"
    }
    },
    "Shipper": {
    "Address": {
    "AddressLine1": "Schulstrasse 163",
    "City": "Regensdorf",
    "CountryCode": "CH",
    "PostalCode": "8105",
    "StateProvinceCode": "ZH"
    },
    "ShipperNumber": "hidden"
    },
    "Package": [
    {
    "PackageWeight": {
    "UnitOfMeasurement": {
    "Code": "KGS"
    },
    "Weight": "2"
    },
    "PackagingType": {
    "Code": "02"
    }
    }
    ]
    }
    }
    }


    API Response:

    {
    "RateResponse": {
    "Response": {
    "ResponseStatus": {
    "Code": "1",
    "Description": "Success"
    },
    "Alert": [
    {
    "Code": "110971",
    "Description": "Your invoice may vary from the displayed reference rates"
    }
    ],
    "TransactionReference": {
    "CustomerContext": "Octolize Plugin",
    "TransactionIdentifier": "xwssoas18152DBzc7npKgG"
    }
    },
    "RatedShipment": [
    {
    "Service": {
    "Code": "07",
    "Description": ""
    },
    "RatedShipmentAlert": {
    "Code": "110971",
    "Description": "Your invoice may vary from the displayed reference rates"
    },
    "BillingWeight": {
    "UnitOfMeasurement": {
    "Code": "KGS",
    "Description": "Kilograms"
    },
    "Weight": "2.0"
    },
    "TransportationCharges": {
    "CurrencyCode": "CHF",
    "MonetaryValue": "42.80"
    },
    "BaseServiceCharge": {
    "CurrencyCode": "CHF",
    "MonetaryValue": "42.35"
    },
    "ItemizedCharges": {
    "Code": "430",
    "CurrencyCode": "CHF",
    "MonetaryValue": "0.45",
    "SubType": "Commercial_Seasonal_Surcharge"
    },
    "ServiceOptionsCharges": {
    "CurrencyCode": "CHF",
    "MonetaryValue": "0.00"
    },
    "TotalCharges": {
    "CurrencyCode": "CHF",
    "MonetaryValue": "42.80"
    },
    "RatedPackage": {
    "Weight": "2.0"
    }
    },
    {
    "Service": {
    "Code": "11",
    "Description": ""
    },
    "RatedShipmentAlert": {
    "Code": "110971",
    "Description": "Your invoice may vary from the displayed reference rates"
    },
    "BillingWeight": {
    "UnitOfMeasurement": {
    "Code": "KGS",
    "Description": "Kilograms"
    },
    "Weight": "2.0"
    },
    "TransportationCharges": {
    "CurrencyCode": "CHF",
    "MonetaryValue": "21.95"
    },
    "BaseServiceCharge": {
    "CurrencyCode": "CHF",
    "MonetaryValue": "21.95"
    },
    "ServiceOptionsCharges": {
    "CurrencyCode": "CHF",
    "MonetaryValue": "0.00"
    },
    "TotalCharges": {
    "CurrencyCode": "CHF",
    "MonetaryValue": "21.95"
    },
    "RatedPackage": {
    "Weight": "2.0"
    }
    },
    {
    "Service": {
    "Code": "65",
    "Description": ""
    },
    "RatedShipmentAlert": {
    "Code": "110971",
    "Description": "Your invoice may vary from the displayed reference rates"
    },
    "BillingWeight": {
    "UnitOfMeasurement": {
    "Code": "KGS",
    "Description": "Kilograms"
    },
    "Weight": "2.0"
    },
    "TransportationCharges": {
    "CurrencyCode": "CHF",
    "MonetaryValue": "38.75"
    },
    "BaseServiceCharge": {
    "CurrencyCode": "CHF",
    "MonetaryValue": "38.30"
    },
    "ItemizedCharges": {
    "Code": "430",
    "CurrencyCode": "CHF",
    "MonetaryValue": "0.45",
    "SubType": "Commercial_Seasonal_Surcharge"
    },
    "ServiceOptionsCharges": {
    "CurrencyCode": "CHF",
    "MonetaryValue": "0.00"
    },
    "TotalCharges": {
    "CurrencyCode": "CHF",
    "MonetaryValue": "38.75"
    },
    "RatedPackage": {
    "Weight": "2.0"
    }
    }
    ]
    }
    }

    • This topic was modified 2 years, 4 months ago by dnikod.

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Grzegorz Rola

    (@grola)

    Hi @dnikod,

    does the problem still occur? I went to your website and UPS rates are available.

    Best regards
    Grzegorz

    Thread Starter dnikod

    (@dnikod)

    Hi @grola

    The rates are always showing, but incorrect, that’s why I thought that it is not fetching the live rates at all maybe – since I still have the error displayed.
    I checked on the UPS shipping webpage today (while logged in), and one package should cost CHF 34,55 with UPS Standard Shipping. However, on the webpage displays CHF 21,95. The API request and reply are specifically from that one part that should be shipped (the other ones also don’t match pricing from the UPS webpage). I have all measurements and the weight of the package, and I checked the settings many times until now.
    I also tried changing the weight from 2kg to 10kg, on the extreme side to see if the rates change, and there was no change.
    Also, there’s this part in the report:
    “Code”: “110971”,
    “Description”: “Your invoice may vary from the displayed reference rates”

    Does it mean that there is something wrongly set up?
    Thanks for looking into the issue!

    Plugin Author Grzegorz Rola

    (@grola)

    Hi @dnikod,

    I think you should consult this matter with UPS.
    In our UPS account, a shipment between the given addresses costs CHF 27 and for the UPS Standard service the price also does not change depending on the weight. However, other services clearly depend on the weight of the shipment.

    Best regards
    Grzegorz

    Thread Starter dnikod

    (@dnikod)

    Thank you for your feedback. I already contacted UPS and they checked. The rates that I get on the official UPS page (CHF 34,55) are the correct ones, and they claim that the lower rates displayed on our online shop come from an error in the plugin. I’m not sure what to do at this point, but I really need to resolve this issue ASAP, since it affects us with every order.

    if you have any additional advice, I’m open to it.

    Plugin Support WojtekPS

    (@wojtekpyrgies)

    Hi @dnikod,

    Sorry for the late response. I have checked your data from the API request and API Response and recreated it on my staging site.
    I also ran some tests on your checkout using the same data and compared it with the UPS calculator.
    I have attached several screenshots from your checkout and the UPS calculator when I use the same shipping address Serent, 56460, France.
    As you can see the UPS standard rate is the same in both cases (21,95 CHF) when I used almost 2 kg weight product and it is the same when I added almost 10 kg weight product (23.20 CF). There are slight differences between UPS Express and UPS Express Saver.

    https://ibb.co/7gpf71r
    https://ibb.co/fkhR3ky
    https://ibb.co/phkXhs7
    https://ibb.co/Tw1YPzQ

    I believe that the reason for the disparency in rates that you described is that the UPS free version plugin calculates the rate based only on the shop address, shipping address, and the weight of the products in the cart. It doesn’t include any Value-Added Services except for the insurance (you can enable it) which does not always increase the value of the shipping costs.
    I am assuming that when you create your shipment on the ups account you are adding some of the Value-Added Services or have some option enabled which increase the shipping rate.

    To test it please navigate to your UPS account, add a 2 kg package that is shipped to Serent, 56460, France, and uncheck all additional services. Also, do not enter the package dimensions. I think that the UPS standard rate will be the same as it is in your store.

    If you need to use additional surcharges the UPS PRO version might be the solution here.

    Please let me know about the result of your test.

    Regards,
    Wojtek

    Plugin Support WojtekPS

    (@wojtekpyrgies)

    Hi @dnikod,

    Below links to screenshots from your checkout and the UPS calculator.

    https://ibb.co/Kh1ppxB
    https://ibb.co/cQHnGpM
    https://ibb.co/c35Qf5V
    https://ibb.co/qkHpz8c

    Regards,

    Wojtek

    Thread Starter dnikod

    (@dnikod)

    Hi @WojtekPS

    Thanks for the feedback, this actually helped. I tried turning on and off the additional surcharges and I understood why the rates don’t match. As you said, when I don’t input additional details, the shipping rate matches. The problem is that when I add the declared value, it changes the rate. Here are the screenshots:

    https://ibb.co/kxCcHf2
    https://ibb.co/NLFRqXD


    Does this mean that the plugin doesn’t fetch the value of the package from the webpage for the declared values, is this counted as an additional surcharge? Would it be fixed if I purchase the PRO version of the plugin?

    Cheers,
    Danijela

    Plugin Support WojtekPS

    (@wojtekpyrgies)

    The monetary value of the package is included in the API request in the PRO version however it doesn’t affect the rates and unfortunately there is no option to enable the Declared Value in the plugin.


    As for the Declared Value are you obliged by UPS to add this value when creating a shipment in the UPS calculator? Could you use a Customs Value instead?

    https://ibb.co/VV20317

    Best regards,

    Wojtek

    Thread Starter dnikod

    (@dnikod)

    Hi again

    In order to insure the packages that are over 100 CHF worth (in case that they get lost), we need to declare this value. This is the case with UPS in Switzerland, I’m not sure about other countries. I believe that we will have to opt out for another plugin that covers this option.

    Thanks for your help!
    Danijela

    Thread Starter dnikod

    (@dnikod)

    Hi @WojtekPS

    I have an update regarding this issue, in case that anyone else has a similar problem. After reading into your documentation, I have found a part which specifies that your plugin supports the declared value insurance (Insurance paragraph):
    https://octolize.com/blog/what-affects-the-ups-rates-in-ups-woocommerce-plugin/

    I found this option in the settings and set it up, and it seems as that corrects the shipping costs:

    https://ibb.co/KDFnCng
    https://ibb.co/6NwDYKC

    Considering the amount declared, the discrepancy is minimal, especially for the UPS standard shipping, which I believe is acceptable.

    Cheers!
    Danijela

    Plugin Support WojtekPS

    (@wojtekpyrgies)

    Hi @dnikod,
    I’m glad that enabling the insurance option works for you and thanks for sharing the solution!

    As for the topic I am marking it as resolved.

    Regards,

    Wojtek

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Error “code”:”250002″,”message”:”Invalid Authentication Information.”’ is closed to new replies.