alexeybusygin / ShippingRates

.NET wrapper for UPS, FedEx, USPS and DHL shipping rate APIs
MIT License
48 stars 15 forks source link

Support for UK shipping #27

Closed jentrinanes closed 3 years ago

jentrinanes commented 3 years ago

Seems the code only works for US or Canada shipments. Please include domestic shipments in UK.

alexeybusygin commented 3 years ago

As far as I can see DHL and UPS work fine. For FedEx, you will need an account "enabled for domestic shipping in the United Kingdom" (according to the FedEx site). If you have one then could you please tell me what Errors and InternalErrors do you get?

jentrinanes commented 3 years ago

I just use FedEx test keys for intra-shipping in the UK. Apparently, the code only works for FedEx US and Canada shipping.

alexeybusygin commented 3 years ago

Could you please post the list of error messages you receive (from both Errors and InternalErrors fields)?

jentrinanes commented 3 years ago

I get 2 errors:

I can ignore the 2nd error because I only pass UK post code and GB country code. But it doesn't return rates.

alexeybusygin commented 3 years ago

The problem seems to be not with the ShippingRates. The error "no valid services available" is coming directly from FedEx API. Could you please login to the FedEx site and try to get rates with their online Rate & Ship calculator? If you get a message like the one below then you may need to contact FedEx Support:

image