diff --git a/DotNetShipping/ShippingProviders/UPSProvider.cs b/DotNetShipping/ShippingProviders/UPSProvider.cs index 06716a4..2c7060f 100644 --- a/DotNetShipping/ShippingProviders/UPSProvider.cs +++ b/DotNetShipping/ShippingProviders/UPSProvider.cs @@ -177,6 +177,10 @@ private byte[] BuildRatesRequestMessage() writer.WriteEndElement(); // writer.WriteStartElement("ShipTo"); writer.WriteStartElement("Address"); + if (!string.IsNullOrWhiteSpace(Shipment.DestinationAddress.State)) + { + writer.WriteElementString("StateProvinceCode", Shipment.DestinationAddress.State); + } if (Shipment.DestinationAddress.IsUnitedStatesAddress() || Shipment.DestinationAddress.IsCanadaAddress()) { writer.WriteElementString("PostalCode", Shipment.DestinationAddress.PostalCode);